@harnessio/react-ng-manager-swagger-service-client 1.37.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/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 +3 -0
- package/dist/ng-manager-swagger-service/src/services/index.js +1 -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/package.json +1 -1
|
@@ -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
|
+
}
|
|
@@ -341,6 +341,8 @@ export type { ListVersionsForAmiArtifactErrorResponse, ListVersionsForAmiArtifac
|
|
|
341
341
|
export { listVersionsForAmiArtifact, useListVersionsForAmiArtifactMutation, } from './hooks/useListVersionsForAmiArtifactMutation';
|
|
342
342
|
export type { ListVersionsFromPackageWithServiceV2ErrorResponse, ListVersionsFromPackageWithServiceV2MutationQueryParams, ListVersionsFromPackageWithServiceV2OkResponse, ListVersionsFromPackageWithServiceV2Props, ListVersionsFromPackageWithServiceV2RequestBody, } from './hooks/useListVersionsFromPackageWithServiceV2Mutation';
|
|
343
343
|
export { listVersionsFromPackageWithServiceV2, useListVersionsFromPackageWithServiceV2Mutation, } from './hooks/useListVersionsFromPackageWithServiceV2Mutation';
|
|
344
|
+
export type { MoveProjectErrorResponse, MoveProjectOkResponse, MoveProjectProps, MoveProjectRequestBody, } from './hooks/useMoveProjectMutation';
|
|
345
|
+
export { moveProject, useMoveProjectMutation } from './hooks/useMoveProjectMutation';
|
|
344
346
|
export type { PostLdapAuthenticationTestErrorResponse, PostLdapAuthenticationTestMutationQueryParams, PostLdapAuthenticationTestOkResponse, PostLdapAuthenticationTestProps, PostLdapAuthenticationTestRequestBody, } from './hooks/usePostLdapAuthenticationTestMutation';
|
|
345
347
|
export { postLdapAuthenticationTest, usePostLdapAuthenticationTestMutation, } from './hooks/usePostLdapAuthenticationTestMutation';
|
|
346
348
|
export type { PostOrganizationErrorResponse, PostOrganizationMutationQueryParams, PostOrganizationOkResponse, PostOrganizationProps, PostOrganizationRequestBody, } from './hooks/usePostOrganizationMutation';
|
|
@@ -572,6 +574,7 @@ export type { LdapUserResponse } from './schemas/LdapUserResponse';
|
|
|
572
574
|
export type { LdapUserSettings } from './schemas/LdapUserSettings';
|
|
573
575
|
export type { LoginSettingsDto } from './schemas/LoginSettingsDto';
|
|
574
576
|
export type { McpToolInfo } from './schemas/McpToolInfo';
|
|
577
|
+
export type { MoveProjectRequest } from './schemas/MoveProjectRequest';
|
|
575
578
|
export type { NameValuePair } from './schemas/NameValuePair';
|
|
576
579
|
export type { NexusBuildDetailsDto } from './schemas/NexusBuildDetailsDto';
|
|
577
580
|
export type { NexusRepositories } from './schemas/NexusRepositories';
|
|
@@ -169,6 +169,7 @@ export { listSecretsV2, useListSecretsV2Query } from './hooks/useListSecretsV2Qu
|
|
|
169
169
|
export { listTagsForAmiArtifact, useListTagsForAmiArtifactMutation, } from './hooks/useListTagsForAmiArtifactMutation';
|
|
170
170
|
export { listVersionsForAmiArtifact, useListVersionsForAmiArtifactMutation, } from './hooks/useListVersionsForAmiArtifactMutation';
|
|
171
171
|
export { listVersionsFromPackageWithServiceV2, useListVersionsFromPackageWithServiceV2Mutation, } from './hooks/useListVersionsFromPackageWithServiceV2Mutation';
|
|
172
|
+
export { moveProject, useMoveProjectMutation } from './hooks/useMoveProjectMutation';
|
|
172
173
|
export { postLdapAuthenticationTest, usePostLdapAuthenticationTestMutation, } from './hooks/usePostLdapAuthenticationTestMutation';
|
|
173
174
|
export { postOrganization, usePostOrganizationMutation } from './hooks/usePostOrganizationMutation';
|
|
174
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
|
}
|
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",
|