@harnessio/react-ng-manager-swagger-service-client 1.36.0 → 1.38.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.
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetOrgEntitiesReferredByProjectQuery.d.ts +19 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetOrgEntitiesReferredByProjectQuery.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useMoveProjectMutation.d.ts +18 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useMoveProjectMutation.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/index.d.ts +7 -0
- package/dist/ng-manager-swagger-service/src/services/index.js +2 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/EntityReferenceSummaryDto.d.ts +7 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/EntityReferenceSummaryDto.js +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/LdapSettings.d.ts +2 -2
- package/dist/ng-manager-swagger-service/src/services/schemas/MoveProjectRequest.d.ts +6 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/MoveProjectRequest.js +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseListEntityReferenceSummaryDto.d.ts +9 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseListEntityReferenceSummaryDto.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseListEntityReferenceSummaryDto } from '../schemas/ResponseListEntityReferenceSummaryDto';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetOrgEntitiesReferredByProjectQueryQueryParams {
|
|
6
|
+
accountIdentifier?: string;
|
|
7
|
+
orgIdentifier?: string;
|
|
8
|
+
projectIdentifier?: string;
|
|
9
|
+
}
|
|
10
|
+
export type GetOrgEntitiesReferredByProjectOkResponse = ResponseWithPagination<ResponseListEntityReferenceSummaryDto>;
|
|
11
|
+
export type GetOrgEntitiesReferredByProjectErrorResponse = unknown;
|
|
12
|
+
export interface GetOrgEntitiesReferredByProjectProps extends Omit<FetcherOptions<GetOrgEntitiesReferredByProjectQueryQueryParams, unknown>, 'url'> {
|
|
13
|
+
queryParams: GetOrgEntitiesReferredByProjectQueryQueryParams;
|
|
14
|
+
}
|
|
15
|
+
export declare function getOrgEntitiesReferredByProject(props: GetOrgEntitiesReferredByProjectProps): Promise<GetOrgEntitiesReferredByProjectOkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export declare function useGetOrgEntitiesReferredByProjectQuery(props: GetOrgEntitiesReferredByProjectProps, options?: Omit<UseQueryOptions<GetOrgEntitiesReferredByProjectOkResponse, GetOrgEntitiesReferredByProjectErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOrgEntitiesReferredByProjectOkResponse, 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 getOrgEntitiesReferredByProject(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/entitySetupUsage/getOrgEntitiesReferredByProject`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useGetOrgEntitiesReferredByProjectQuery(props, options) {
|
|
13
|
+
return useQuery(['getOrgEntitiesReferredByProject', props.queryParams], ({ signal }) => getOrgEntitiesReferredByProject(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseBoolean } from '../schemas/ResponseBoolean';
|
|
3
|
+
import type { Failure } from '../schemas/Failure';
|
|
4
|
+
import type { Error } from '../schemas/Error';
|
|
5
|
+
import type { MoveProjectRequest } from '../schemas/MoveProjectRequest';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export type MoveProjectRequestBody = MoveProjectRequest;
|
|
9
|
+
export type MoveProjectOkResponse = ResponseWithPagination<ResponseBoolean>;
|
|
10
|
+
export type MoveProjectErrorResponse = Failure | Error;
|
|
11
|
+
export interface MoveProjectProps extends Omit<FetcherOptions<unknown, MoveProjectRequestBody>, 'url'> {
|
|
12
|
+
body: MoveProjectRequestBody;
|
|
13
|
+
}
|
|
14
|
+
export declare function moveProject(props: MoveProjectProps): Promise<MoveProjectOkResponse>;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
export declare function useMoveProjectMutation(options?: Omit<UseMutationOptions<MoveProjectOkResponse, MoveProjectErrorResponse, MoveProjectProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<MoveProjectOkResponse, MoveProjectErrorResponse, MoveProjectProps, 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 moveProject(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/projects/move`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useMoveProjectMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => moveProject(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -215,6 +215,8 @@ export type { GetNgLdapSettingsErrorResponse, GetNgLdapSettingsOkResponse, GetNg
|
|
|
215
215
|
export { getNgLdapSettings, useGetNgLdapSettingsQuery } from './hooks/useGetNgLdapSettingsQuery';
|
|
216
216
|
export type { GetNgLdapSettingsWithEncryptedDataDetail_1ErrorResponse, GetNgLdapSettingsWithEncryptedDataDetail_1OkResponse, GetNgLdapSettingsWithEncryptedDataDetail_1Props, GetNgLdapSettingsWithEncryptedDataDetail_1QueryQueryParams, } from './hooks/useGetNgLdapSettingsWithEncryptedDataDetail_1Query';
|
|
217
217
|
export { getNgLdapSettingsWithEncryptedDataDetail_1, useGetNgLdapSettingsWithEncryptedDataDetail_1Query, } from './hooks/useGetNgLdapSettingsWithEncryptedDataDetail_1Query';
|
|
218
|
+
export type { GetOrgEntitiesReferredByProjectErrorResponse, GetOrgEntitiesReferredByProjectOkResponse, GetOrgEntitiesReferredByProjectProps, GetOrgEntitiesReferredByProjectQueryQueryParams, } from './hooks/useGetOrgEntitiesReferredByProjectQuery';
|
|
219
|
+
export { getOrgEntitiesReferredByProject, useGetOrgEntitiesReferredByProjectQuery, } from './hooks/useGetOrgEntitiesReferredByProjectQuery';
|
|
218
220
|
export type { GetOrganizationListErrorResponse, GetOrganizationListOkResponse, GetOrganizationListProps, GetOrganizationListQueryQueryParams, } from './hooks/useGetOrganizationListQuery';
|
|
219
221
|
export { getOrganizationList, useGetOrganizationListQuery, } from './hooks/useGetOrganizationListQuery';
|
|
220
222
|
export type { GetPackagesForGoogleArtifactRegistryErrorResponse, GetPackagesForGoogleArtifactRegistryOkResponse, GetPackagesForGoogleArtifactRegistryProps, GetPackagesForGoogleArtifactRegistryQueryQueryParams, } from './hooks/useGetPackagesForGoogleArtifactRegistryQuery';
|
|
@@ -339,6 +341,8 @@ export type { ListVersionsForAmiArtifactErrorResponse, ListVersionsForAmiArtifac
|
|
|
339
341
|
export { listVersionsForAmiArtifact, useListVersionsForAmiArtifactMutation, } from './hooks/useListVersionsForAmiArtifactMutation';
|
|
340
342
|
export type { ListVersionsFromPackageWithServiceV2ErrorResponse, ListVersionsFromPackageWithServiceV2MutationQueryParams, ListVersionsFromPackageWithServiceV2OkResponse, ListVersionsFromPackageWithServiceV2Props, ListVersionsFromPackageWithServiceV2RequestBody, } from './hooks/useListVersionsFromPackageWithServiceV2Mutation';
|
|
341
343
|
export { listVersionsFromPackageWithServiceV2, useListVersionsFromPackageWithServiceV2Mutation, } from './hooks/useListVersionsFromPackageWithServiceV2Mutation';
|
|
344
|
+
export type { MoveProjectErrorResponse, MoveProjectOkResponse, MoveProjectProps, MoveProjectRequestBody, } from './hooks/useMoveProjectMutation';
|
|
345
|
+
export { moveProject, useMoveProjectMutation } from './hooks/useMoveProjectMutation';
|
|
342
346
|
export type { PostLdapAuthenticationTestErrorResponse, PostLdapAuthenticationTestMutationQueryParams, PostLdapAuthenticationTestOkResponse, PostLdapAuthenticationTestProps, PostLdapAuthenticationTestRequestBody, } from './hooks/usePostLdapAuthenticationTestMutation';
|
|
343
347
|
export { postLdapAuthenticationTest, usePostLdapAuthenticationTestMutation, } from './hooks/usePostLdapAuthenticationTestMutation';
|
|
344
348
|
export type { PostOrganizationErrorResponse, PostOrganizationMutationQueryParams, PostOrganizationOkResponse, PostOrganizationProps, PostOrganizationRequestBody, } from './hooks/usePostOrganizationMutation';
|
|
@@ -490,6 +494,7 @@ export type { EntityDetail } from './schemas/EntityDetail';
|
|
|
490
494
|
export type { EntityGitDetails } from './schemas/EntityGitDetails';
|
|
491
495
|
export type { EntityGitMetadata } from './schemas/EntityGitMetadata';
|
|
492
496
|
export type { EntityReference } from './schemas/EntityReference';
|
|
497
|
+
export type { EntityReferenceSummaryDto } from './schemas/EntityReferenceSummaryDto';
|
|
493
498
|
export type { EntitySetupUsageDto } from './schemas/EntitySetupUsageDto';
|
|
494
499
|
export type { EntityValidityDetails } from './schemas/EntityValidityDetails';
|
|
495
500
|
export type { EntityWithGitInfo } from './schemas/EntityWithGitInfo';
|
|
@@ -569,6 +574,7 @@ export type { LdapUserResponse } from './schemas/LdapUserResponse';
|
|
|
569
574
|
export type { LdapUserSettings } from './schemas/LdapUserSettings';
|
|
570
575
|
export type { LoginSettingsDto } from './schemas/LoginSettingsDto';
|
|
571
576
|
export type { McpToolInfo } from './schemas/McpToolInfo';
|
|
577
|
+
export type { MoveProjectRequest } from './schemas/MoveProjectRequest';
|
|
572
578
|
export type { NameValuePair } from './schemas/NameValuePair';
|
|
573
579
|
export type { NexusBuildDetailsDto } from './schemas/NexusBuildDetailsDto';
|
|
574
580
|
export type { NexusRepositories } from './schemas/NexusRepositories';
|
|
@@ -666,6 +672,7 @@ export type { ResponseListAzureArtifactsPackage } from './schemas/ResponseListAz
|
|
|
666
672
|
export type { ResponseListAzureDevopsProject } from './schemas/ResponseListAzureDevopsProject';
|
|
667
673
|
export type { ResponseListBucketResponse } from './schemas/ResponseListBucketResponse';
|
|
668
674
|
export type { ResponseListBuildDetails } from './schemas/ResponseListBuildDetails';
|
|
675
|
+
export type { ResponseListEntityReferenceSummaryDto } from './schemas/ResponseListEntityReferenceSummaryDto';
|
|
669
676
|
export type { ResponseListEnvironmentResponse } from './schemas/ResponseListEnvironmentResponse';
|
|
670
677
|
export type { ResponseListFeatureRestrictionDetailsDto } from './schemas/ResponseListFeatureRestrictionDetailsDto';
|
|
671
678
|
export type { ResponseListFilePaths } from './schemas/ResponseListFilePaths';
|
|
@@ -106,6 +106,7 @@ export { getListOfAllReposByRefConnector, useGetListOfAllReposByRefConnectorQuer
|
|
|
106
106
|
export { getListOfReposByRefConnector, useGetListOfReposByRefConnectorQuery, } from './hooks/useGetListOfReposByRefConnectorQuery';
|
|
107
107
|
export { getNgLdapSettings, useGetNgLdapSettingsQuery } from './hooks/useGetNgLdapSettingsQuery';
|
|
108
108
|
export { getNgLdapSettingsWithEncryptedDataDetail_1, useGetNgLdapSettingsWithEncryptedDataDetail_1Query, } from './hooks/useGetNgLdapSettingsWithEncryptedDataDetail_1Query';
|
|
109
|
+
export { getOrgEntitiesReferredByProject, useGetOrgEntitiesReferredByProjectQuery, } from './hooks/useGetOrgEntitiesReferredByProjectQuery';
|
|
109
110
|
export { getOrganizationList, useGetOrganizationListQuery, } from './hooks/useGetOrganizationListQuery';
|
|
110
111
|
export { getPackagesForGoogleArtifactRegistry, useGetPackagesForGoogleArtifactRegistryQuery, } from './hooks/useGetPackagesForGoogleArtifactRegistryQuery';
|
|
111
112
|
export { getPackagesForGoogleArtifactRegistryV2, useGetPackagesForGoogleArtifactRegistryV2Mutation, } from './hooks/useGetPackagesForGoogleArtifactRegistryV2Mutation';
|
|
@@ -168,6 +169,7 @@ export { listSecretsV2, useListSecretsV2Query } from './hooks/useListSecretsV2Qu
|
|
|
168
169
|
export { listTagsForAmiArtifact, useListTagsForAmiArtifactMutation, } from './hooks/useListTagsForAmiArtifactMutation';
|
|
169
170
|
export { listVersionsForAmiArtifact, useListVersionsForAmiArtifactMutation, } from './hooks/useListVersionsForAmiArtifactMutation';
|
|
170
171
|
export { listVersionsFromPackageWithServiceV2, useListVersionsFromPackageWithServiceV2Mutation, } from './hooks/useListVersionsFromPackageWithServiceV2Mutation';
|
|
172
|
+
export { moveProject, useMoveProjectMutation } from './hooks/useMoveProjectMutation';
|
|
171
173
|
export { postLdapAuthenticationTest, usePostLdapAuthenticationTestMutation, } from './hooks/usePostLdapAuthenticationTestMutation';
|
|
172
174
|
export { postOrganization, usePostOrganizationMutation } from './hooks/usePostOrganizationMutation';
|
|
173
175
|
export { postProject, usePostProjectMutation } from './hooks/usePostProjectMutation';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { LdapConnectionSettings } from '../schemas/LdapConnectionSettings';
|
|
2
2
|
import type { LdapGroupSettings } from '../schemas/LdapGroupSettings';
|
|
3
3
|
import type { LdapUserSettings } from '../schemas/LdapUserSettings';
|
|
4
|
-
|
|
5
|
-
export interface LdapSettings extends NgAuthSettings {
|
|
4
|
+
export interface LdapSettings {
|
|
6
5
|
connectionSettings: LdapConnectionSettings;
|
|
7
6
|
cronExpression?: string;
|
|
8
7
|
disabled?: boolean;
|
|
@@ -10,5 +9,6 @@ export interface LdapSettings extends NgAuthSettings {
|
|
|
10
9
|
groupSettingsList?: LdapGroupSettings[];
|
|
11
10
|
identifier: string;
|
|
12
11
|
nextIterations?: number[];
|
|
12
|
+
settingsType?: 'LDAP' | 'OAUTH' | 'OIDC' | 'SAML' | 'USER_PASSWORD';
|
|
13
13
|
userSettingsList?: LdapUserSettings[];
|
|
14
14
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { EntityReferenceSummaryDto } from '../schemas/EntityReferenceSummaryDto';
|
|
2
|
+
export interface ResponseListEntityReferenceSummaryDto {
|
|
3
|
+
correlationId?: string;
|
|
4
|
+
data?: EntityReferenceSummaryDto[];
|
|
5
|
+
metaData?: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnessio/react-ng-manager-swagger-service-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.38.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",
|