@harnessio/react-ng-manager-swagger-service-client 1.31.0 → 1.32.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/useChangeUserPasswordMutation.d.ts +22 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useChangeUserPasswordMutation.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useCreateKeyMutation.d.ts +23 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useCreateKeyMutation.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useCreateProviderMutation.d.ts +22 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useCreateProviderMutation.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useCreateUserMutation.d.ts +18 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useCreateUserMutation.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useDeleteKeyMutation.d.ts +23 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useDeleteKeyMutation.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useDeleteUserSourceCodeManagerMutation.d.ts +21 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useDeleteUserSourceCodeManagerMutation.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useDisableTwoFactorAuthMutation.d.ts +19 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useDisableTwoFactorAuthMutation.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useEnableTwoFactorAuthMutation.d.ts +22 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useEnableTwoFactorAuthMutation.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetProviderListQuery.d.ts +19 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetProviderListQuery.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetTwoFactorAuthSettingsQuery.d.ts +22 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetTwoFactorAuthSettingsQuery.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetUserSourceCodeManagersQuery.d.ts +24 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetUserSourceCodeManagersQuery.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useListAggregatedKeysQuery.d.ts +37 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useListAggregatedKeysQuery.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useSaveUserSourceCodeManagerMutation.d.ts +18 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useSaveUserSourceCodeManagerMutation.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useUpdateKeyMutation.d.ts +26 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useUpdateKeyMutation.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useUpdateUserInfoMutation.d.ts +22 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useUpdateUserInfoMutation.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useUpdateUserSourceCodeManagerMutation.d.ts +18 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useUpdateUserSourceCodeManagerMutation.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/index.d.ts +61 -0
- package/dist/ng-manager-swagger-service/src/services/index.js +16 -0
- package/dist/ng-manager-swagger-service/src/services/requestBodies/UserSourceCodeManagerRequestDtoRequestBody.d.ts +2 -0
- package/dist/ng-manager-swagger-service/src/services/requestBodies/UserSourceCodeManagerRequestDtoRequestBody.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/CreateProviderRequestDto.d.ts +7 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/CreateProviderRequestDto.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/CreateProviderResponse.d.ts +3 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/CreateProviderResponse.js +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/CreateUserDto.d.ts +16 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/CreateUserDto.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/GatewayAccountRequestDto.d.ts +8 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/GatewayAccountRequestDto.js +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/GetProviderResponse.d.ts +13 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/GetProviderResponse.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/KeyDto.d.ts +31 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/KeyDto.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/PageKeyDto.d.ts +26 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/PageKeyDto.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/PasswordChangeDto.d.ts +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/PasswordChangeDto.js +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ProviderRequestInfo.d.ts +5 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ProviderRequestInfo.js +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ProviderResponseInfo.d.ts +5 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ProviderResponseInfo.js +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseCreateProviderResponse.d.ts +9 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseCreateProviderResponse.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseKeyDto.d.ts +9 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseKeyDto.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseListGetProviderResponse.d.ts +9 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseListGetProviderResponse.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponsePageKeyDto.d.ts +9 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponsePageKeyDto.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponsePasswordChangeResponse.d.ts +8 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponsePasswordChangeResponse.js +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseTwoFactorAuthSettingsInfo.d.ts +9 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseTwoFactorAuthSettingsInfo.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseUserInfo.d.ts +9 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseUserInfo.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseUserSourceCodeManagerResponseDto.d.ts +9 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseUserSourceCodeManagerResponseDto.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseUserSourceCodeManagerResponseDtoList.d.ts +9 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseUserSourceCodeManagerResponseDtoList.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/RoleBinding.d.ts +8 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/RoleBinding.js +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/TwoFactorAuthSettingsInfo.d.ts +8 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/TwoFactorAuthSettingsInfo.js +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/UpdatePublicKeyRequest.d.ts +11 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/UpdatePublicKeyRequest.js +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/UserInfo.d.ts +40 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/UserInfo.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/UserSourceCodeManagerAuthentication.d.ts +3 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/UserSourceCodeManagerAuthentication.js +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/UserSourceCodeManagerRequestDto.d.ts +7 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/UserSourceCodeManagerRequestDto.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/UserSourceCodeManagerResponseDto.d.ts +7 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/UserSourceCodeManagerResponseDto.js +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/UserSourceCodeManagerResponseDtoList.d.ts +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/UserSourceCodeManagerResponseDtoList.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/UtmInfo.d.ts +7 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/UtmInfo.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponsePasswordChangeResponse } from '../schemas/ResponsePasswordChangeResponse';
|
|
3
|
+
import type { Failure } from '../schemas/Failure';
|
|
4
|
+
import type { Error } from '../schemas/Error';
|
|
5
|
+
import type { PasswordChangeDto } from '../schemas/PasswordChangeDto';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export interface ChangeUserPasswordMutationQueryParams {
|
|
9
|
+
accountIdentifier?: string;
|
|
10
|
+
}
|
|
11
|
+
export type ChangeUserPasswordRequestBody = PasswordChangeDto;
|
|
12
|
+
export type ChangeUserPasswordOkResponse = ResponseWithPagination<ResponsePasswordChangeResponse>;
|
|
13
|
+
export type ChangeUserPasswordErrorResponse = Failure | Error;
|
|
14
|
+
export interface ChangeUserPasswordProps extends Omit<FetcherOptions<ChangeUserPasswordMutationQueryParams, ChangeUserPasswordRequestBody>, 'url'> {
|
|
15
|
+
queryParams: ChangeUserPasswordMutationQueryParams;
|
|
16
|
+
body: ChangeUserPasswordRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function changeUserPassword(props: ChangeUserPasswordProps): Promise<ChangeUserPasswordOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
export declare function useChangeUserPasswordMutation(options?: Omit<UseMutationOptions<ChangeUserPasswordOkResponse, ChangeUserPasswordErrorResponse, ChangeUserPasswordProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ChangeUserPasswordOkResponse, ChangeUserPasswordErrorResponse, ChangeUserPasswordProps, 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 changeUserPassword(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/user/password`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useChangeUserPasswordMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => changeUserPassword(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseString } from '../schemas/ResponseString';
|
|
3
|
+
import type { Failure } from '../schemas/Failure';
|
|
4
|
+
import type { Error } from '../schemas/Error';
|
|
5
|
+
import type { KeyDto } from '../schemas/KeyDto';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export interface CreateKeyMutationQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
keyScheme?: string;
|
|
11
|
+
}
|
|
12
|
+
export type CreateKeyRequestBody = KeyDto;
|
|
13
|
+
export type CreateKeyOkResponse = ResponseWithPagination<ResponseString>;
|
|
14
|
+
export type CreateKeyErrorResponse = Failure | Error;
|
|
15
|
+
export interface CreateKeyProps extends Omit<FetcherOptions<CreateKeyMutationQueryParams, CreateKeyRequestBody>, 'url'> {
|
|
16
|
+
queryParams: CreateKeyMutationQueryParams;
|
|
17
|
+
body: CreateKeyRequestBody;
|
|
18
|
+
}
|
|
19
|
+
export declare function createKey(props: CreateKeyProps): Promise<CreateKeyOkResponse>;
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export declare function useCreateKeyMutation(options?: Omit<UseMutationOptions<CreateKeyOkResponse, CreateKeyErrorResponse, CreateKeyProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateKeyOkResponse, CreateKeyErrorResponse, CreateKeyProps, 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 createKey(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/keys`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateKeyMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createKey(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseCreateProviderResponse } from '../schemas/ResponseCreateProviderResponse';
|
|
3
|
+
import type { Failure } from '../schemas/Failure';
|
|
4
|
+
import type { Error } from '../schemas/Error';
|
|
5
|
+
import type { CreateProviderRequestDto } from '../schemas/CreateProviderRequestDto';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export interface CreateProviderMutationQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type CreateProviderRequestBody = CreateProviderRequestDto;
|
|
12
|
+
export type CreateProviderOkResponse = ResponseWithPagination<ResponseCreateProviderResponse>;
|
|
13
|
+
export type CreateProviderErrorResponse = Failure | Error;
|
|
14
|
+
export interface CreateProviderProps extends Omit<FetcherOptions<CreateProviderMutationQueryParams, CreateProviderRequestBody>, 'url'> {
|
|
15
|
+
queryParams: CreateProviderMutationQueryParams;
|
|
16
|
+
body: CreateProviderRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function createProvider(props: CreateProviderProps): Promise<CreateProviderOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreateProviderMutation(options?: Omit<UseMutationOptions<CreateProviderOkResponse, CreateProviderErrorResponse, CreateProviderProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateProviderOkResponse, CreateProviderErrorResponse, CreateProviderProps, 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 createProvider(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/provider`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateProviderMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createProvider(mutateProps), 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 { CreateUserDto } from '../schemas/CreateUserDto';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export type CreateUserRequestBody = CreateUserDto;
|
|
9
|
+
export type CreateUserOkResponse = ResponseWithPagination<ResponseBoolean>;
|
|
10
|
+
export type CreateUserErrorResponse = Failure | Error;
|
|
11
|
+
export interface CreateUserProps extends Omit<FetcherOptions<unknown, CreateUserRequestBody>, 'url'> {
|
|
12
|
+
body: CreateUserRequestBody;
|
|
13
|
+
}
|
|
14
|
+
export declare function createUser(props: CreateUserProps): Promise<CreateUserOkResponse>;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
export declare function useCreateUserMutation(options?: Omit<UseMutationOptions<CreateUserOkResponse, CreateUserErrorResponse, CreateUserProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateUserOkResponse, CreateUserErrorResponse, CreateUserProps, 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 createUser(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/user`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateUserMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createUser(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface DeleteKeyMutationPathParams {
|
|
8
|
+
identifier: string;
|
|
9
|
+
}
|
|
10
|
+
export interface DeleteKeyMutationQueryParams {
|
|
11
|
+
accountIdentifier: string;
|
|
12
|
+
parentIdentifier: string;
|
|
13
|
+
}
|
|
14
|
+
export type DeleteKeyOkResponse = ResponseWithPagination<ResponseBoolean>;
|
|
15
|
+
export type DeleteKeyErrorResponse = Failure | Error;
|
|
16
|
+
export interface DeleteKeyProps extends DeleteKeyMutationPathParams, Omit<FetcherOptions<DeleteKeyMutationQueryParams, unknown>, 'url'> {
|
|
17
|
+
queryParams: DeleteKeyMutationQueryParams;
|
|
18
|
+
}
|
|
19
|
+
export declare function deleteKey(props: DeleteKeyProps): Promise<DeleteKeyOkResponse>;
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export declare function useDeleteKeyMutation(options?: Omit<UseMutationOptions<DeleteKeyOkResponse, DeleteKeyErrorResponse, DeleteKeyProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteKeyOkResponse, DeleteKeyErrorResponse, DeleteKeyProps, 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 deleteKey(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/keys/${props.identifier}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteKeyMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteKey(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface DeleteUserSourceCodeManagerMutationQueryParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
userIdentifier: string;
|
|
10
|
+
type: 'AWS_CODE_COMMIT' | 'AZURE_REPO' | 'BITBUCKET' | 'BITBUCKET_SERVER' | 'GITHUB' | 'GITHUB_ENTERPRISE' | 'GITLAB' | 'GITLAB_ON_PREM' | 'HARNESS';
|
|
11
|
+
}
|
|
12
|
+
export type DeleteUserSourceCodeManagerOkResponse = ResponseWithPagination<ResponseBoolean>;
|
|
13
|
+
export type DeleteUserSourceCodeManagerErrorResponse = Failure | Error;
|
|
14
|
+
export interface DeleteUserSourceCodeManagerProps extends Omit<FetcherOptions<DeleteUserSourceCodeManagerMutationQueryParams, unknown>, 'url'> {
|
|
15
|
+
queryParams: DeleteUserSourceCodeManagerMutationQueryParams;
|
|
16
|
+
}
|
|
17
|
+
export declare function deleteUserSourceCodeManager(props: DeleteUserSourceCodeManagerProps): Promise<DeleteUserSourceCodeManagerOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
export declare function useDeleteUserSourceCodeManagerMutation(options?: Omit<UseMutationOptions<DeleteUserSourceCodeManagerOkResponse, DeleteUserSourceCodeManagerErrorResponse, DeleteUserSourceCodeManagerProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteUserSourceCodeManagerOkResponse, DeleteUserSourceCodeManagerErrorResponse, DeleteUserSourceCodeManagerProps, unknown>;
|
package/dist/ng-manager-swagger-service/src/services/hooks/useDeleteUserSourceCodeManagerMutation.js
ADDED
|
@@ -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 deleteUserSourceCodeManager(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/user-source-code-manager`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteUserSourceCodeManagerMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteUserSourceCodeManager(mutateProps), options);
|
|
14
|
+
}
|
package/dist/ng-manager-swagger-service/src/services/hooks/useDisableTwoFactorAuthMutation.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseUserInfo } from '../schemas/ResponseUserInfo';
|
|
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 DisableTwoFactorAuthMutationQueryParams {
|
|
8
|
+
accountIdentifier?: string;
|
|
9
|
+
}
|
|
10
|
+
export type DisableTwoFactorAuthOkResponse = ResponseWithPagination<ResponseUserInfo>;
|
|
11
|
+
export type DisableTwoFactorAuthErrorResponse = Failure | Error;
|
|
12
|
+
export interface DisableTwoFactorAuthProps extends Omit<FetcherOptions<DisableTwoFactorAuthMutationQueryParams, unknown>, 'url'> {
|
|
13
|
+
queryParams: DisableTwoFactorAuthMutationQueryParams;
|
|
14
|
+
}
|
|
15
|
+
export declare function disableTwoFactorAuth(props: DisableTwoFactorAuthProps): Promise<DisableTwoFactorAuthOkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export declare function useDisableTwoFactorAuthMutation(options?: Omit<UseMutationOptions<DisableTwoFactorAuthOkResponse, DisableTwoFactorAuthErrorResponse, DisableTwoFactorAuthProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DisableTwoFactorAuthOkResponse, DisableTwoFactorAuthErrorResponse, DisableTwoFactorAuthProps, 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 disableTwoFactorAuth(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/user/disable-two-factor-auth`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useDisableTwoFactorAuthMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => disableTwoFactorAuth(mutateProps), options);
|
|
14
|
+
}
|
package/dist/ng-manager-swagger-service/src/services/hooks/useEnableTwoFactorAuthMutation.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseUserInfo } from '../schemas/ResponseUserInfo';
|
|
3
|
+
import type { Failure } from '../schemas/Failure';
|
|
4
|
+
import type { Error } from '../schemas/Error';
|
|
5
|
+
import type { TwoFactorAuthSettingsInfo } from '../schemas/TwoFactorAuthSettingsInfo';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export interface EnableTwoFactorAuthMutationQueryParams {
|
|
9
|
+
accountIdentifier?: string;
|
|
10
|
+
}
|
|
11
|
+
export type EnableTwoFactorAuthRequestBody = TwoFactorAuthSettingsInfo;
|
|
12
|
+
export type EnableTwoFactorAuthOkResponse = ResponseWithPagination<ResponseUserInfo>;
|
|
13
|
+
export type EnableTwoFactorAuthErrorResponse = Failure | Error;
|
|
14
|
+
export interface EnableTwoFactorAuthProps extends Omit<FetcherOptions<EnableTwoFactorAuthMutationQueryParams, EnableTwoFactorAuthRequestBody>, 'url'> {
|
|
15
|
+
queryParams: EnableTwoFactorAuthMutationQueryParams;
|
|
16
|
+
body: EnableTwoFactorAuthRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function enableTwoFactorAuth(props: EnableTwoFactorAuthProps): Promise<EnableTwoFactorAuthOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
export declare function useEnableTwoFactorAuthMutation(options?: Omit<UseMutationOptions<EnableTwoFactorAuthOkResponse, EnableTwoFactorAuthErrorResponse, EnableTwoFactorAuthProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<EnableTwoFactorAuthOkResponse, EnableTwoFactorAuthErrorResponse, EnableTwoFactorAuthProps, 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 enableTwoFactorAuth(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/user/enable-two-factor-auth`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useEnableTwoFactorAuthMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => enableTwoFactorAuth(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseListGetProviderResponse } from '../schemas/ResponseListGetProviderResponse';
|
|
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 GetProviderListQueryQueryParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
}
|
|
10
|
+
export type GetProviderListOkResponse = ResponseWithPagination<ResponseListGetProviderResponse>;
|
|
11
|
+
export type GetProviderListErrorResponse = Failure | Error;
|
|
12
|
+
export interface GetProviderListProps extends Omit<FetcherOptions<GetProviderListQueryQueryParams, unknown>, 'url'> {
|
|
13
|
+
queryParams: GetProviderListQueryQueryParams;
|
|
14
|
+
}
|
|
15
|
+
export declare function getProviderList(props: GetProviderListProps): Promise<GetProviderListOkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export declare function useGetProviderListQuery(props: GetProviderListProps, options?: Omit<UseQueryOptions<GetProviderListOkResponse, GetProviderListErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetProviderListOkResponse, GetProviderListErrorResponse>;
|
|
@@ -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 getProviderList(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/provider`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useGetProviderListQuery(props, options) {
|
|
13
|
+
return useQuery(['getProviderList', props.queryParams], ({ signal }) => getProviderList(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
package/dist/ng-manager-swagger-service/src/services/hooks/useGetTwoFactorAuthSettingsQuery.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseTwoFactorAuthSettingsInfo } from '../schemas/ResponseTwoFactorAuthSettingsInfo';
|
|
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 GetTwoFactorAuthSettingsQueryPathParams {
|
|
8
|
+
authMechanism: 'TOTP';
|
|
9
|
+
}
|
|
10
|
+
export interface GetTwoFactorAuthSettingsQueryQueryParams {
|
|
11
|
+
accountIdentifier?: string;
|
|
12
|
+
}
|
|
13
|
+
export type GetTwoFactorAuthSettingsOkResponse = ResponseWithPagination<ResponseTwoFactorAuthSettingsInfo>;
|
|
14
|
+
export type GetTwoFactorAuthSettingsErrorResponse = Failure | Error;
|
|
15
|
+
export interface GetTwoFactorAuthSettingsProps extends GetTwoFactorAuthSettingsQueryPathParams, Omit<FetcherOptions<GetTwoFactorAuthSettingsQueryQueryParams, unknown>, 'url'> {
|
|
16
|
+
queryParams: GetTwoFactorAuthSettingsQueryQueryParams;
|
|
17
|
+
}
|
|
18
|
+
export declare function getTwoFactorAuthSettings(props: GetTwoFactorAuthSettingsProps): Promise<GetTwoFactorAuthSettingsOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
export declare function useGetTwoFactorAuthSettingsQuery(props: GetTwoFactorAuthSettingsProps, options?: Omit<UseQueryOptions<GetTwoFactorAuthSettingsOkResponse, GetTwoFactorAuthSettingsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetTwoFactorAuthSettingsOkResponse, GetTwoFactorAuthSettingsErrorResponse>;
|
package/dist/ng-manager-swagger-service/src/services/hooks/useGetTwoFactorAuthSettingsQuery.js
ADDED
|
@@ -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 getTwoFactorAuthSettings(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/user/two-factor-auth/${props.authMechanism}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useGetTwoFactorAuthSettingsQuery(props, options) {
|
|
13
|
+
return useQuery(['getTwoFactorAuthSettings', props.authMechanism, props.queryParams], ({ signal }) => getTwoFactorAuthSettings(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
package/dist/ng-manager-swagger-service/src/services/hooks/useGetUserSourceCodeManagersQuery.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseUserSourceCodeManagerResponseDtoList } from '../schemas/ResponseUserSourceCodeManagerResponseDtoList';
|
|
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 GetUserSourceCodeManagersQueryQueryParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
userIdentifier: string;
|
|
10
|
+
type?: 'AWS_CODE_COMMIT' | 'AZURE_REPO' | 'BITBUCKET' | 'BITBUCKET_SERVER' | 'GITHUB' | 'GITHUB_ENTERPRISE' | 'GITLAB' | 'GITLAB_ON_PREM' | 'HARNESS';
|
|
11
|
+
connectorRef?: string;
|
|
12
|
+
orgIdentifier?: string;
|
|
13
|
+
projectIdentifier?: string;
|
|
14
|
+
}
|
|
15
|
+
export type GetUserSourceCodeManagersOkResponse = ResponseWithPagination<ResponseUserSourceCodeManagerResponseDtoList>;
|
|
16
|
+
export type GetUserSourceCodeManagersErrorResponse = Failure | Error;
|
|
17
|
+
export interface GetUserSourceCodeManagersProps extends Omit<FetcherOptions<GetUserSourceCodeManagersQueryQueryParams, unknown>, 'url'> {
|
|
18
|
+
queryParams: GetUserSourceCodeManagersQueryQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export declare function getUserSourceCodeManagers(props: GetUserSourceCodeManagersProps): Promise<GetUserSourceCodeManagersOkResponse>;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export declare function useGetUserSourceCodeManagersQuery(props: GetUserSourceCodeManagersProps, options?: Omit<UseQueryOptions<GetUserSourceCodeManagersOkResponse, GetUserSourceCodeManagersErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetUserSourceCodeManagersOkResponse, GetUserSourceCodeManagersErrorResponse>;
|
package/dist/ng-manager-swagger-service/src/services/hooks/useGetUserSourceCodeManagersQuery.js
ADDED
|
@@ -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 getUserSourceCodeManagers(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/user-source-code-manager`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useGetUserSourceCodeManagersQuery(props, options) {
|
|
13
|
+
return useQuery(['getUserSourceCodeManagers', props.queryParams], ({ signal }) => getUserSourceCodeManagers(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponsePageKeyDto } from '../schemas/ResponsePageKeyDto';
|
|
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 ListAggregatedKeysQueryQueryParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
parentIdentifier?: string;
|
|
10
|
+
keyScheme?: string;
|
|
11
|
+
fingerprint?: string;
|
|
12
|
+
subKeyId?: string;
|
|
13
|
+
usages?: Array<'AUTH' | 'CERTIFY' | 'ENCRYPT' | 'SIGN'>;
|
|
14
|
+
schemes?: Array<'PGP' | 'SSH'>;
|
|
15
|
+
/**
|
|
16
|
+
* @format int32
|
|
17
|
+
* @default 0
|
|
18
|
+
*/
|
|
19
|
+
pageIndex?: number;
|
|
20
|
+
/**
|
|
21
|
+
* @format int32
|
|
22
|
+
* @default 50
|
|
23
|
+
*/
|
|
24
|
+
pageSize?: number;
|
|
25
|
+
sortOrders?: string[];
|
|
26
|
+
pageToken?: string;
|
|
27
|
+
}
|
|
28
|
+
export type ListAggregatedKeysOkResponse = ResponseWithPagination<ResponsePageKeyDto>;
|
|
29
|
+
export type ListAggregatedKeysErrorResponse = Failure | Error;
|
|
30
|
+
export interface ListAggregatedKeysProps extends Omit<FetcherOptions<ListAggregatedKeysQueryQueryParams, unknown>, 'url'> {
|
|
31
|
+
queryParams: ListAggregatedKeysQueryQueryParams;
|
|
32
|
+
}
|
|
33
|
+
export declare function listAggregatedKeys(props: ListAggregatedKeysProps): Promise<ListAggregatedKeysOkResponse>;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
export declare function useListAggregatedKeysQuery(props: ListAggregatedKeysProps, options?: Omit<UseQueryOptions<ListAggregatedKeysOkResponse, ListAggregatedKeysErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListAggregatedKeysOkResponse, ListAggregatedKeysErrorResponse>;
|
|
@@ -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 listAggregatedKeys(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/keys`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useListAggregatedKeysQuery(props, options) {
|
|
13
|
+
return useQuery(['ListAggregatedKeys', props.queryParams], ({ signal }) => listAggregatedKeys(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
package/dist/ng-manager-swagger-service/src/services/hooks/useSaveUserSourceCodeManagerMutation.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseUserSourceCodeManagerResponseDto } from '../schemas/ResponseUserSourceCodeManagerResponseDto';
|
|
3
|
+
import type { Failure } from '../schemas/Failure';
|
|
4
|
+
import type { Error } from '../schemas/Error';
|
|
5
|
+
import type { UserSourceCodeManagerRequestDtoRequestBody } from '../requestBodies/UserSourceCodeManagerRequestDtoRequestBody';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export type SaveUserSourceCodeManagerRequestBody = UserSourceCodeManagerRequestDtoRequestBody;
|
|
9
|
+
export type SaveUserSourceCodeManagerOkResponse = ResponseWithPagination<ResponseUserSourceCodeManagerResponseDto>;
|
|
10
|
+
export type SaveUserSourceCodeManagerErrorResponse = Failure | Error;
|
|
11
|
+
export interface SaveUserSourceCodeManagerProps extends Omit<FetcherOptions<unknown, SaveUserSourceCodeManagerRequestBody>, 'url'> {
|
|
12
|
+
body: SaveUserSourceCodeManagerRequestBody;
|
|
13
|
+
}
|
|
14
|
+
export declare function saveUserSourceCodeManager(props: SaveUserSourceCodeManagerProps): Promise<SaveUserSourceCodeManagerOkResponse>;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
export declare function useSaveUserSourceCodeManagerMutation(options?: Omit<UseMutationOptions<SaveUserSourceCodeManagerOkResponse, SaveUserSourceCodeManagerErrorResponse, SaveUserSourceCodeManagerProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SaveUserSourceCodeManagerOkResponse, SaveUserSourceCodeManagerErrorResponse, SaveUserSourceCodeManagerProps, unknown>;
|
package/dist/ng-manager-swagger-service/src/services/hooks/useSaveUserSourceCodeManagerMutation.js
ADDED
|
@@ -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 saveUserSourceCodeManager(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/user-source-code-manager`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useSaveUserSourceCodeManagerMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => saveUserSourceCodeManager(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseKeyDto } from '../schemas/ResponseKeyDto';
|
|
3
|
+
import type { Failure } from '../schemas/Failure';
|
|
4
|
+
import type { Error } from '../schemas/Error';
|
|
5
|
+
import type { UpdatePublicKeyRequest } from '../schemas/UpdatePublicKeyRequest';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export interface UpdateKeyMutationPathParams {
|
|
9
|
+
identifier: string;
|
|
10
|
+
}
|
|
11
|
+
export interface UpdateKeyMutationQueryParams {
|
|
12
|
+
accountIdentifier: string;
|
|
13
|
+
parentIdentifier: string;
|
|
14
|
+
}
|
|
15
|
+
export type UpdateKeyRequestBody = UpdatePublicKeyRequest;
|
|
16
|
+
export type UpdateKeyOkResponse = ResponseWithPagination<ResponseKeyDto>;
|
|
17
|
+
export type UpdateKeyErrorResponse = Failure | Error;
|
|
18
|
+
export interface UpdateKeyProps extends UpdateKeyMutationPathParams, Omit<FetcherOptions<UpdateKeyMutationQueryParams, UpdateKeyRequestBody>, 'url'> {
|
|
19
|
+
queryParams: UpdateKeyMutationQueryParams;
|
|
20
|
+
body: UpdateKeyRequestBody;
|
|
21
|
+
}
|
|
22
|
+
export declare function updateKey(props: UpdateKeyProps): Promise<UpdateKeyOkResponse>;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare function useUpdateKeyMutation(options?: Omit<UseMutationOptions<UpdateKeyOkResponse, UpdateKeyErrorResponse, UpdateKeyProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateKeyOkResponse, UpdateKeyErrorResponse, UpdateKeyProps, 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 updateKey(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/keys/${props.identifier}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateKeyMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateKey(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseUserInfo } from '../schemas/ResponseUserInfo';
|
|
3
|
+
import type { Failure } from '../schemas/Failure';
|
|
4
|
+
import type { Error } from '../schemas/Error';
|
|
5
|
+
import type { UserInfo } from '../schemas/UserInfo';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export interface UpdateUserInfoMutationQueryParams {
|
|
9
|
+
accountIdentifier?: string;
|
|
10
|
+
}
|
|
11
|
+
export type UpdateUserInfoRequestBody = UserInfo;
|
|
12
|
+
export type UpdateUserInfoOkResponse = ResponseWithPagination<ResponseUserInfo>;
|
|
13
|
+
export type UpdateUserInfoErrorResponse = Failure | Error;
|
|
14
|
+
export interface UpdateUserInfoProps extends Omit<FetcherOptions<UpdateUserInfoMutationQueryParams, UpdateUserInfoRequestBody>, 'url'> {
|
|
15
|
+
queryParams: UpdateUserInfoMutationQueryParams;
|
|
16
|
+
body: UpdateUserInfoRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function updateUserInfo(props: UpdateUserInfoProps): Promise<UpdateUserInfoOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdateUserInfoMutation(options?: Omit<UseMutationOptions<UpdateUserInfoOkResponse, UpdateUserInfoErrorResponse, UpdateUserInfoProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateUserInfoOkResponse, UpdateUserInfoErrorResponse, UpdateUserInfoProps, 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 updateUserInfo(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/user`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateUserInfoMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateUserInfo(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseUserSourceCodeManagerResponseDto } from '../schemas/ResponseUserSourceCodeManagerResponseDto';
|
|
3
|
+
import type { Failure } from '../schemas/Failure';
|
|
4
|
+
import type { Error } from '../schemas/Error';
|
|
5
|
+
import type { UserSourceCodeManagerRequestDtoRequestBody } from '../requestBodies/UserSourceCodeManagerRequestDtoRequestBody';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export type UpdateUserSourceCodeManagerRequestBody = UserSourceCodeManagerRequestDtoRequestBody;
|
|
9
|
+
export type UpdateUserSourceCodeManagerOkResponse = ResponseWithPagination<ResponseUserSourceCodeManagerResponseDto>;
|
|
10
|
+
export type UpdateUserSourceCodeManagerErrorResponse = Failure | Error;
|
|
11
|
+
export interface UpdateUserSourceCodeManagerProps extends Omit<FetcherOptions<unknown, UpdateUserSourceCodeManagerRequestBody>, 'url'> {
|
|
12
|
+
body: UpdateUserSourceCodeManagerRequestBody;
|
|
13
|
+
}
|
|
14
|
+
export declare function updateUserSourceCodeManager(props: UpdateUserSourceCodeManagerProps): Promise<UpdateUserSourceCodeManagerOkResponse>;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
export declare function useUpdateUserSourceCodeManagerMutation(options?: Omit<UseMutationOptions<UpdateUserSourceCodeManagerOkResponse, UpdateUserSourceCodeManagerErrorResponse, UpdateUserSourceCodeManagerProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateUserSourceCodeManagerOkResponse, UpdateUserSourceCodeManagerErrorResponse, UpdateUserSourceCodeManagerProps, unknown>;
|