@harnessio/react-ng-manager-swagger-service-client 1.31.0 → 1.33.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/useCreateInfrastructureMutation.d.ts +33 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useCreateInfrastructureMutation.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/useGetEnvironmentAccessListQuery.d.ts +36 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetEnvironmentAccessListQuery.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetInfrastructureListQuery.d.ts +40 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetInfrastructureListQuery.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/useGetServiceAccessListQuery.d.ts +40 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetServiceAccessListQuery.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetServiceListQuery.d.ts +1 -1
- 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/useListAllEntityUsageByFqnQuery.d.ts +1 -1
- 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/useUpdateInfrastructureMutation.d.ts +35 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useUpdateInfrastructureMutation.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 +78 -0
- package/dist/ng-manager-swagger-service/src/services/index.js +21 -0
- package/dist/ng-manager-swagger-service/src/services/requestBodies/InfrastructureRequestDtoRequestBody.d.ts +2 -0
- package/dist/ng-manager-swagger-service/src/services/requestBodies/InfrastructureRequestDtoRequestBody.js +1 -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/EntityDetail.d.ts +1 -1
- 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/InfrastructureRequestDto.d.ts +13 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/InfrastructureRequestDto.js +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/InfrastructureResponseDto.d.ts +2 -2
- 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/PageInfrastructureResponse.d.ts +26 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/PageInfrastructureResponse.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/ResponseInfrastructureResponse.d.ts +9 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseInfrastructureResponse.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/ResponseListEnvironmentResponse.d.ts +9 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseListEnvironmentResponse.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/ResponseListServiceDefinitionType.d.ts +1 -1
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseListServiceResponse.d.ts +9 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseListServiceResponse.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponsePageInfrastructureResponse.d.ts +9 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponsePageInfrastructureResponse.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/ServiceResponseDto.d.ts +1 -1
- 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
|
+
}
|
package/dist/ng-manager-swagger-service/src/services/hooks/useCreateInfrastructureMutation.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseInfrastructureResponse } from '../schemas/ResponseInfrastructureResponse';
|
|
3
|
+
import type { Failure } from '../schemas/Failure';
|
|
4
|
+
import type { Error } from '../schemas/Error';
|
|
5
|
+
import type { InfrastructureRequestDtoRequestBody } from '../requestBodies/InfrastructureRequestDtoRequestBody';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export interface CreateInfrastructureMutationQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
branch?: string;
|
|
11
|
+
repoIdentifier?: string;
|
|
12
|
+
rootFolder?: string;
|
|
13
|
+
filePath?: string;
|
|
14
|
+
commitMsg?: string;
|
|
15
|
+
isNewBranch?: boolean;
|
|
16
|
+
baseBranch?: string;
|
|
17
|
+
connectorRef?: string;
|
|
18
|
+
storeType?: 'INLINE' | 'INLINE_HC' | 'REMOTE';
|
|
19
|
+
repoName?: string;
|
|
20
|
+
isHarnessCodeRepo?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export type CreateInfrastructureRequestBody = InfrastructureRequestDtoRequestBody;
|
|
23
|
+
export type CreateInfrastructureOkResponse = ResponseWithPagination<ResponseInfrastructureResponse>;
|
|
24
|
+
export type CreateInfrastructureErrorResponse = Failure | Error;
|
|
25
|
+
export interface CreateInfrastructureProps extends Omit<FetcherOptions<CreateInfrastructureMutationQueryParams, CreateInfrastructureRequestBody>, 'url'> {
|
|
26
|
+
queryParams: CreateInfrastructureMutationQueryParams;
|
|
27
|
+
body: CreateInfrastructureRequestBody;
|
|
28
|
+
}
|
|
29
|
+
export declare function createInfrastructure(props: CreateInfrastructureProps): Promise<CreateInfrastructureOkResponse>;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
export declare function useCreateInfrastructureMutation(options?: Omit<UseMutationOptions<CreateInfrastructureOkResponse, CreateInfrastructureErrorResponse, CreateInfrastructureProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateInfrastructureOkResponse, CreateInfrastructureErrorResponse, CreateInfrastructureProps, 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 createInfrastructure(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/infrastructures`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateInfrastructureMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createInfrastructure(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
|
+
}
|
package/dist/ng-manager-swagger-service/src/services/hooks/useGetEnvironmentAccessListQuery.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseListEnvironmentResponse } from '../schemas/ResponseListEnvironmentResponse';
|
|
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 GetEnvironmentAccessListQueryQueryParams {
|
|
8
|
+
/**
|
|
9
|
+
* @format int32
|
|
10
|
+
* @default 0
|
|
11
|
+
*/
|
|
12
|
+
page?: number;
|
|
13
|
+
/**
|
|
14
|
+
* @format int32
|
|
15
|
+
* @default 100
|
|
16
|
+
*/
|
|
17
|
+
size?: number;
|
|
18
|
+
accountIdentifier: string;
|
|
19
|
+
orgIdentifier?: string;
|
|
20
|
+
projectIdentifier?: string;
|
|
21
|
+
searchTerm?: string;
|
|
22
|
+
envIdentifiers?: string[];
|
|
23
|
+
envGroupIdentifier?: string;
|
|
24
|
+
type?: 'PreProduction' | 'Production';
|
|
25
|
+
sort?: string[];
|
|
26
|
+
}
|
|
27
|
+
export type GetEnvironmentAccessListOkResponse = ResponseWithPagination<ResponseListEnvironmentResponse>;
|
|
28
|
+
export type GetEnvironmentAccessListErrorResponse = Failure | Error;
|
|
29
|
+
export interface GetEnvironmentAccessListProps extends Omit<FetcherOptions<GetEnvironmentAccessListQueryQueryParams, unknown>, 'url'> {
|
|
30
|
+
queryParams: GetEnvironmentAccessListQueryQueryParams;
|
|
31
|
+
}
|
|
32
|
+
export declare function getEnvironmentAccessList(props: GetEnvironmentAccessListProps): Promise<GetEnvironmentAccessListOkResponse>;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
export declare function useGetEnvironmentAccessListQuery(props: GetEnvironmentAccessListProps, options?: Omit<UseQueryOptions<GetEnvironmentAccessListOkResponse, GetEnvironmentAccessListErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetEnvironmentAccessListOkResponse, GetEnvironmentAccessListErrorResponse>;
|
package/dist/ng-manager-swagger-service/src/services/hooks/useGetEnvironmentAccessListQuery.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 getEnvironmentAccessList(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/environmentsV2/list/access`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useGetEnvironmentAccessListQuery(props, options) {
|
|
13
|
+
return useQuery(['getEnvironmentAccessList', props.queryParams], ({ signal }) => getEnvironmentAccessList(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponsePageInfrastructureResponse } from '../schemas/ResponsePageInfrastructureResponse';
|
|
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 GetInfrastructureListQueryQueryParams {
|
|
8
|
+
/**
|
|
9
|
+
* @format int32
|
|
10
|
+
* @default 0
|
|
11
|
+
*/
|
|
12
|
+
page?: number;
|
|
13
|
+
/**
|
|
14
|
+
* @format int32
|
|
15
|
+
* @default 100
|
|
16
|
+
*/
|
|
17
|
+
size?: number;
|
|
18
|
+
accountIdentifier: string;
|
|
19
|
+
orgIdentifier?: string;
|
|
20
|
+
projectIdentifier?: string;
|
|
21
|
+
environmentIdentifier?: string;
|
|
22
|
+
searchTerm?: string;
|
|
23
|
+
infraIdentifiers?: string[];
|
|
24
|
+
deploymentType?: 'AWS_SAM' | 'AiAgent' | 'Asg' | 'AwsLambda' | 'AzureContainerApps' | 'AzureFunction' | 'AzureWebApp' | 'CustomDeployment' | 'ECS' | 'Elastigroup' | 'GoogleCloudFunctions' | 'GoogleCloudRun' | 'GoogleManagedInstanceGroup' | 'Kubernetes' | 'NativeHelm' | 'SERVICE_YAML_V1_TYPE' | 'Salesforce' | 'ServerlessAwsLambda' | 'Ssh' | 'TAS' | 'WinRm';
|
|
25
|
+
deploymentTemplateIdentifier?: string;
|
|
26
|
+
versionLabel?: string;
|
|
27
|
+
sort?: string[];
|
|
28
|
+
serviceRefs?: string[];
|
|
29
|
+
repoName?: string;
|
|
30
|
+
}
|
|
31
|
+
export type GetInfrastructureListOkResponse = ResponseWithPagination<ResponsePageInfrastructureResponse>;
|
|
32
|
+
export type GetInfrastructureListErrorResponse = Failure | Error;
|
|
33
|
+
export interface GetInfrastructureListProps extends Omit<FetcherOptions<GetInfrastructureListQueryQueryParams, unknown>, 'url'> {
|
|
34
|
+
queryParams: GetInfrastructureListQueryQueryParams;
|
|
35
|
+
}
|
|
36
|
+
export declare function getInfrastructureList(props: GetInfrastructureListProps): Promise<GetInfrastructureListOkResponse>;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
export declare function useGetInfrastructureListQuery(props: GetInfrastructureListProps, options?: Omit<UseQueryOptions<GetInfrastructureListOkResponse, GetInfrastructureListErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetInfrastructureListOkResponse, GetInfrastructureListErrorResponse>;
|
|
@@ -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 getInfrastructureList(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/infrastructures`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useGetInfrastructureListQuery(props, options) {
|
|
13
|
+
return useQuery(['getInfrastructureList', props.queryParams], ({ signal }) => getInfrastructureList(Object.assign(Object.assign({}, props), { signal })), 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
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseListServiceResponse } from '../schemas/ResponseListServiceResponse';
|
|
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 GetServiceAccessListQueryQueryParams {
|
|
8
|
+
/**
|
|
9
|
+
* @format int32
|
|
10
|
+
* @default 0
|
|
11
|
+
*/
|
|
12
|
+
page?: number;
|
|
13
|
+
/**
|
|
14
|
+
* @format int32
|
|
15
|
+
* @default 100
|
|
16
|
+
*/
|
|
17
|
+
size?: number;
|
|
18
|
+
accountIdentifier: string;
|
|
19
|
+
orgIdentifier?: string;
|
|
20
|
+
projectIdentifier?: string;
|
|
21
|
+
searchTerm?: string;
|
|
22
|
+
serviceIdentifiers?: string[];
|
|
23
|
+
sort?: string[];
|
|
24
|
+
type?: 'AWS_SAM' | 'AiAgent' | 'Asg' | 'AwsLambda' | 'AzureContainerApps' | 'AzureFunction' | 'AzureWebApp' | 'CustomDeployment' | 'ECS' | 'Elastigroup' | 'GoogleCloudFunctions' | 'GoogleCloudRun' | 'GoogleManagedInstanceGroup' | 'Kubernetes' | 'NativeHelm' | 'SERVICE_YAML_V1_TYPE' | 'Salesforce' | 'ServerlessAwsLambda' | 'Ssh' | 'TAS' | 'WinRm';
|
|
25
|
+
gitOpsEnabled?: boolean;
|
|
26
|
+
deploymentTemplateIdentifier?: string;
|
|
27
|
+
versionLabel?: string;
|
|
28
|
+
deploymentMetadataYaml?: string;
|
|
29
|
+
includeAllServicesAccessibleAtScope?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export type GetServiceAccessListOkResponse = ResponseWithPagination<ResponseListServiceResponse>;
|
|
32
|
+
export type GetServiceAccessListErrorResponse = Failure | Error;
|
|
33
|
+
export interface GetServiceAccessListProps extends Omit<FetcherOptions<GetServiceAccessListQueryQueryParams, unknown>, 'url'> {
|
|
34
|
+
queryParams: GetServiceAccessListQueryQueryParams;
|
|
35
|
+
}
|
|
36
|
+
export declare function getServiceAccessList(props: GetServiceAccessListProps): Promise<GetServiceAccessListOkResponse>;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
export declare function useGetServiceAccessListQuery(props: GetServiceAccessListProps, options?: Omit<UseQueryOptions<GetServiceAccessListOkResponse, GetServiceAccessListErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetServiceAccessListOkResponse, GetServiceAccessListErrorResponse>;
|
|
@@ -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 getServiceAccessList(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/servicesV2/list/access`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useGetServiceAccessListQuery(props, options) {
|
|
13
|
+
return useQuery(['getServiceAccessList', props.queryParams], ({ signal }) => getServiceAccessList(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -21,7 +21,7 @@ export interface GetServiceListQueryQueryParams {
|
|
|
21
21
|
searchTerm?: string;
|
|
22
22
|
serviceIdentifiers?: string[];
|
|
23
23
|
sort?: string[];
|
|
24
|
-
type?: 'AWS_SAM' | 'Asg' | 'AwsLambda' | 'AzureContainerApps' | 'AzureFunction' | 'AzureWebApp' | 'CustomDeployment' | 'ECS' | 'Elastigroup' | 'GoogleCloudFunctions' | 'GoogleCloudRun' | 'GoogleManagedInstanceGroup' | 'Kubernetes' | 'NativeHelm' | 'SERVICE_YAML_V1_TYPE' | 'Salesforce' | 'ServerlessAwsLambda' | 'Ssh' | 'TAS' | 'WinRm';
|
|
24
|
+
type?: 'AWS_SAM' | 'AiAgent' | 'Asg' | 'AwsLambda' | 'AzureContainerApps' | 'AzureFunction' | 'AzureWebApp' | 'CustomDeployment' | 'ECS' | 'Elastigroup' | 'GoogleCloudFunctions' | 'GoogleCloudRun' | 'GoogleManagedInstanceGroup' | 'Kubernetes' | 'NativeHelm' | 'SERVICE_YAML_V1_TYPE' | 'Salesforce' | 'ServerlessAwsLambda' | 'Ssh' | 'TAS' | 'WinRm';
|
|
25
25
|
gitOpsEnabled?: boolean;
|
|
26
26
|
deploymentTemplateIdentifier?: string;
|
|
27
27
|
versionLabel?: string;
|
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
|
+
}
|