@harnessio/react-ng-manager-swagger-service-client 1.34.0 → 1.35.1
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/useDeleteServiceV2Mutation.d.ts +28 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useDeleteServiceV2Mutation.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetConnectorListV2Mutation.d.ts +51 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetConnectorListV2Mutation.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetEnvironmentGroupListMutation.d.ts +48 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetEnvironmentGroupListMutation.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetProjectAggregateDtoListQuery.d.ts +1 -1
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetProjectListQuery.d.ts +1 -1
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetServiceV2Query.d.ts +42 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetServiceV2Query.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetServicesListQuery.d.ts +1 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useListAggregatedServiceAccountsQuery.d.ts +39 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useListAggregatedServiceAccountsQuery.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/useListSecretsV2Query.d.ts +42 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useListSecretsV2Query.js +15 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/usePostSecretMutation.d.ts +25 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/usePostSecretMutation.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/index.d.ts +41 -0
- package/dist/ng-manager-swagger-service/src/services/index.js +7 -0
- package/dist/ng-manager-swagger-service/src/services/requestBodies/ConnectorFilterPropertiesRequestBody.d.ts +2 -0
- package/dist/ng-manager-swagger-service/src/services/requestBodies/ConnectorFilterPropertiesRequestBody.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/CcmConnectorFilter.d.ts +10 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/CcmConnectorFilter.js +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ConnectorActivityDetails.d.ts +6 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ConnectorActivityDetails.js +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ConnectorConfigDto.d.ts +3 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ConnectorConfigDto.js +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ConnectorConnectivityDetails.d.ts +18 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ConnectorConnectivityDetails.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ConnectorFilterProperties.d.ts +17 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ConnectorFilterProperties.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ConnectorInfoDto.d.ts +16 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ConnectorInfoDto.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ConnectorResponse.d.ts +24 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ConnectorResponse.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/EnvironmentGroupResponse.d.ts +12 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/EnvironmentGroupResponse.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/EnvironmentGroupResponseDto.d.ts +19 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/EnvironmentGroupResponseDto.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ErrorDetail.d.ts +8 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ErrorDetail.js +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/FeatureRestrictionDetailsDto.d.ts +1 -1
- package/dist/ng-manager-swagger-service/src/services/schemas/FilterProperties.d.ts +9 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/FilterProperties.js +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/LdapSettings.d.ts +2 -2
- package/dist/ng-manager-swagger-service/src/services/schemas/PageConnectorResponse.d.ts +26 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/PageConnectorResponse.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/PageEnvironmentGroupResponse.d.ts +26 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/PageEnvironmentGroupResponse.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/PageSecretResponseWrapper.d.ts +26 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/PageSecretResponseWrapper.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/PageServiceAccountAggregateDto.d.ts +26 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/PageServiceAccountAggregateDto.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/Project.d.ts +1 -1
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponsePageConnectorResponse.d.ts +9 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponsePageConnectorResponse.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponsePageEnvironmentGroupResponse.d.ts +9 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponsePageEnvironmentGroupResponse.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponsePageSecretResponseWrapper.d.ts +9 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponsePageSecretResponseWrapper.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponsePageServiceAccountAggregateDto.d.ts +9 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponsePageServiceAccountAggregateDto.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseSecretResponseWrapper.d.ts +9 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseSecretResponseWrapper.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/SecretDtov2.d.ts +15 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/SecretDtov2.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/SecretRequestWrapper.d.ts +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/SecretRequestWrapper.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/SecretResponseWrapper.d.ts +15 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/SecretResponseWrapper.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/SecretSpecDto.d.ts +3 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/SecretSpecDto.js +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ServiceAccountAggregateDto.d.ts +18 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ServiceAccountAggregateDto.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ServiceAccountDto.d.ts +16 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ServiceAccountDto.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
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 DeleteServiceV2MutationPathParams {
|
|
8
|
+
serviceIdentifier: string;
|
|
9
|
+
}
|
|
10
|
+
export interface DeleteServiceV2MutationQueryParams {
|
|
11
|
+
accountIdentifier: string;
|
|
12
|
+
orgIdentifier?: string;
|
|
13
|
+
projectIdentifier?: string;
|
|
14
|
+
forceDelete?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface DeleteServiceV2MutationHeaderParams {
|
|
17
|
+
'If-Match'?: string;
|
|
18
|
+
}
|
|
19
|
+
export type DeleteServiceV2OkResponse = ResponseWithPagination<ResponseBoolean>;
|
|
20
|
+
export type DeleteServiceV2ErrorResponse = Failure | Error;
|
|
21
|
+
export interface DeleteServiceV2Props extends DeleteServiceV2MutationPathParams, Omit<FetcherOptions<DeleteServiceV2MutationQueryParams, unknown, DeleteServiceV2MutationHeaderParams>, 'url'> {
|
|
22
|
+
queryParams: DeleteServiceV2MutationQueryParams;
|
|
23
|
+
}
|
|
24
|
+
export declare function deleteServiceV2(props: DeleteServiceV2Props): Promise<DeleteServiceV2OkResponse>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare function useDeleteServiceV2Mutation(options?: Omit<UseMutationOptions<DeleteServiceV2OkResponse, DeleteServiceV2ErrorResponse, DeleteServiceV2Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteServiceV2OkResponse, DeleteServiceV2ErrorResponse, DeleteServiceV2Props, 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 deleteServiceV2(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/servicesV2/${props.serviceIdentifier}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteServiceV2Mutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteServiceV2(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponsePageConnectorResponse } from '../schemas/ResponsePageConnectorResponse';
|
|
3
|
+
import type { Failure } from '../schemas/Failure';
|
|
4
|
+
import type { Error } from '../schemas/Error';
|
|
5
|
+
import type { ConnectorFilterPropertiesRequestBody } from '../requestBodies/ConnectorFilterPropertiesRequestBody';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export interface GetConnectorListV2MutationQueryParams {
|
|
9
|
+
accountIdentifier?: string;
|
|
10
|
+
searchTerm?: string;
|
|
11
|
+
orgIdentifier?: string;
|
|
12
|
+
projectIdentifier?: string;
|
|
13
|
+
filterIdentifier?: string;
|
|
14
|
+
includeAllConnectorsAvailableAtScope?: boolean;
|
|
15
|
+
branch?: string;
|
|
16
|
+
repoIdentifier?: string;
|
|
17
|
+
getDefaultFromOtherRepo?: boolean;
|
|
18
|
+
parentEntityConnectorRef?: string;
|
|
19
|
+
parentEntityRepoName?: string;
|
|
20
|
+
parentEntityAccountIdentifier?: string;
|
|
21
|
+
parentEntityOrgIdentifier?: string;
|
|
22
|
+
parentEntityProjectIdentifier?: string;
|
|
23
|
+
repoName?: string;
|
|
24
|
+
getDistinctFromBranches?: boolean;
|
|
25
|
+
version?: string;
|
|
26
|
+
onlyFavorites?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* @format int32
|
|
29
|
+
* @default 0
|
|
30
|
+
*/
|
|
31
|
+
pageIndex?: number;
|
|
32
|
+
/**
|
|
33
|
+
* @format int32
|
|
34
|
+
* @default 50
|
|
35
|
+
*/
|
|
36
|
+
pageSize?: number;
|
|
37
|
+
sortOrders?: string[];
|
|
38
|
+
pageToken?: string;
|
|
39
|
+
}
|
|
40
|
+
export type GetConnectorListV2RequestBody = ConnectorFilterPropertiesRequestBody;
|
|
41
|
+
export type GetConnectorListV2OkResponse = ResponseWithPagination<ResponsePageConnectorResponse>;
|
|
42
|
+
export type GetConnectorListV2ErrorResponse = Failure | Error;
|
|
43
|
+
export interface GetConnectorListV2Props extends Omit<FetcherOptions<GetConnectorListV2MutationQueryParams, GetConnectorListV2RequestBody>, 'url'> {
|
|
44
|
+
queryParams: GetConnectorListV2MutationQueryParams;
|
|
45
|
+
body: GetConnectorListV2RequestBody;
|
|
46
|
+
}
|
|
47
|
+
export declare function getConnectorListV2(props: GetConnectorListV2Props): Promise<GetConnectorListV2OkResponse>;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
export declare function useGetConnectorListV2Mutation(options?: Omit<UseMutationOptions<GetConnectorListV2OkResponse, GetConnectorListV2ErrorResponse, GetConnectorListV2Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetConnectorListV2OkResponse, GetConnectorListV2ErrorResponse, GetConnectorListV2Props, 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 getConnectorListV2(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/connectors/listV2`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useGetConnectorListV2Mutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => getConnectorListV2(mutateProps), options);
|
|
14
|
+
}
|
package/dist/ng-manager-swagger-service/src/services/hooks/useGetEnvironmentGroupListMutation.d.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponsePageEnvironmentGroupResponse } from '../schemas/ResponsePageEnvironmentGroupResponse';
|
|
3
|
+
import type { Failure } from '../schemas/Failure';
|
|
4
|
+
import type { Error } from '../schemas/Error';
|
|
5
|
+
import type { FilterProperties } from '../schemas/FilterProperties';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export interface GetEnvironmentGroupListMutationQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
orgIdentifier?: string;
|
|
11
|
+
projectIdentifier?: string;
|
|
12
|
+
envGroupIdentifiers?: string[];
|
|
13
|
+
searchTerm?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @format int32
|
|
16
|
+
* @default 0
|
|
17
|
+
*/
|
|
18
|
+
page?: number;
|
|
19
|
+
/**
|
|
20
|
+
* @format int32
|
|
21
|
+
* @default 25
|
|
22
|
+
*/
|
|
23
|
+
size?: number;
|
|
24
|
+
sort?: string[];
|
|
25
|
+
filterIdentifier?: string;
|
|
26
|
+
branch?: string;
|
|
27
|
+
repoIdentifier?: string;
|
|
28
|
+
getDefaultFromOtherRepo?: boolean;
|
|
29
|
+
parentEntityConnectorRef?: string;
|
|
30
|
+
parentEntityRepoName?: string;
|
|
31
|
+
parentEntityAccountIdentifier?: string;
|
|
32
|
+
parentEntityOrgIdentifier?: string;
|
|
33
|
+
parentEntityProjectIdentifier?: string;
|
|
34
|
+
repoName?: string;
|
|
35
|
+
includeAllEnvGroupsAccessibleAtScope?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export type GetEnvironmentGroupListRequestBody = FilterProperties;
|
|
38
|
+
export type GetEnvironmentGroupListOkResponse = ResponseWithPagination<ResponsePageEnvironmentGroupResponse>;
|
|
39
|
+
export type GetEnvironmentGroupListErrorResponse = Failure | Error;
|
|
40
|
+
export interface GetEnvironmentGroupListProps extends Omit<FetcherOptions<GetEnvironmentGroupListMutationQueryParams, GetEnvironmentGroupListRequestBody>, 'url'> {
|
|
41
|
+
queryParams: GetEnvironmentGroupListMutationQueryParams;
|
|
42
|
+
body: GetEnvironmentGroupListRequestBody;
|
|
43
|
+
}
|
|
44
|
+
export declare function getEnvironmentGroupList(props: GetEnvironmentGroupListProps): Promise<GetEnvironmentGroupListOkResponse>;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
export declare function useGetEnvironmentGroupListMutation(options?: Omit<UseMutationOptions<GetEnvironmentGroupListOkResponse, GetEnvironmentGroupListErrorResponse, GetEnvironmentGroupListProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetEnvironmentGroupListOkResponse, GetEnvironmentGroupListErrorResponse, GetEnvironmentGroupListProps, unknown>;
|
package/dist/ng-manager-swagger-service/src/services/hooks/useGetEnvironmentGroupListMutation.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 getEnvironmentGroupList(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/environmentGroup/list`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useGetEnvironmentGroupListMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => getEnvironmentGroupList(mutateProps), options);
|
|
14
|
+
}
|
package/dist/ng-manager-swagger-service/src/services/hooks/useGetProjectAggregateDtoListQuery.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface GetProjectAggregateDtoListQueryQueryParams {
|
|
|
11
11
|
* @default true
|
|
12
12
|
*/
|
|
13
13
|
hasModule?: boolean;
|
|
14
|
-
moduleType?: 'AARP' | 'AASP' | 'AAST' | 'AISRE' | 'AI_AGENT_MLOPS' | 'AI_TEST_AUTOMATION' | 'CD' | 'CE' | 'CET' | 'CF' | 'CHAOS' | 'CI' | 'CODE' | 'CORE' | 'CV' | 'DBOPS' | 'DevopsEssentials' | 'FME' | 'GOVERNANCE' | 'HAR' | 'IACM' | 'IDP' | 'PLATFORM' | 'PMS' | 'RMG' | 'SEI' | 'SRM' | 'SSCA' | 'STO' | 'TEMPLATESERVICE';
|
|
14
|
+
moduleType?: 'AARP' | 'AASP' | 'AAST' | 'AISEC' | 'AISRE' | 'AI_AGENT_MLOPS' | 'AI_TEST_AUTOMATION' | 'CD' | 'CE' | 'CET' | 'CF' | 'CHAOS' | 'CI' | 'CODE' | 'CORE' | 'CV' | 'DBOPS' | 'DevopsEssentials' | 'FME' | 'GOVERNANCE' | 'HAR' | 'IACM' | 'IDP' | 'PLATFORM' | 'PMS' | 'RMG' | 'SEI' | 'SRM' | 'SSCA' | 'STO' | 'TEMPLATESERVICE';
|
|
15
15
|
searchTerm?: string;
|
|
16
16
|
onlyFavorites?: boolean;
|
|
17
17
|
/**
|
|
@@ -12,7 +12,7 @@ export interface GetProjectListQueryQueryParams {
|
|
|
12
12
|
*/
|
|
13
13
|
hasModule?: boolean;
|
|
14
14
|
identifiers?: string[];
|
|
15
|
-
moduleType?: 'AARP' | 'AASP' | 'AAST' | 'AISRE' | 'AI_AGENT_MLOPS' | 'AI_TEST_AUTOMATION' | 'CD' | 'CE' | 'CET' | 'CF' | 'CHAOS' | 'CI' | 'CODE' | 'CORE' | 'CV' | 'DBOPS' | 'DevopsEssentials' | 'FME' | 'GOVERNANCE' | 'HAR' | 'IACM' | 'IDP' | 'PLATFORM' | 'PMS' | 'RMG' | 'SEI' | 'SRM' | 'SSCA' | 'STO' | 'TEMPLATESERVICE';
|
|
15
|
+
moduleType?: 'AARP' | 'AASP' | 'AAST' | 'AISEC' | 'AISRE' | 'AI_AGENT_MLOPS' | 'AI_TEST_AUTOMATION' | 'CD' | 'CE' | 'CET' | 'CF' | 'CHAOS' | 'CI' | 'CODE' | 'CORE' | 'CV' | 'DBOPS' | 'DevopsEssentials' | 'FME' | 'GOVERNANCE' | 'HAR' | 'IACM' | 'IDP' | 'PLATFORM' | 'PMS' | 'RMG' | 'SEI' | 'SRM' | 'SSCA' | 'STO' | 'TEMPLATESERVICE';
|
|
16
16
|
searchTerm?: string;
|
|
17
17
|
onlyFavorites?: boolean;
|
|
18
18
|
/**
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseServiceResponse } from '../schemas/ResponseServiceResponse';
|
|
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 GetServiceV2QueryPathParams {
|
|
8
|
+
serviceIdentifier: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetServiceV2QueryQueryParams {
|
|
11
|
+
accountIdentifier: string;
|
|
12
|
+
orgIdentifier?: string;
|
|
13
|
+
projectIdentifier?: string;
|
|
14
|
+
deleted?: boolean;
|
|
15
|
+
fetchResolvedYaml?: boolean;
|
|
16
|
+
branch?: string;
|
|
17
|
+
repoIdentifier?: string;
|
|
18
|
+
getDefaultFromOtherRepo?: boolean;
|
|
19
|
+
parentEntityConnectorRef?: string;
|
|
20
|
+
parentEntityRepoName?: string;
|
|
21
|
+
parentEntityAccountIdentifier?: string;
|
|
22
|
+
parentEntityOrgIdentifier?: string;
|
|
23
|
+
parentEntityProjectIdentifier?: string;
|
|
24
|
+
repoName?: string;
|
|
25
|
+
loadFromFallbackBranch?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface GetServiceV2QueryHeaderParams {
|
|
28
|
+
/**
|
|
29
|
+
* @default "false"
|
|
30
|
+
*/
|
|
31
|
+
'Load-From-Cache'?: string;
|
|
32
|
+
}
|
|
33
|
+
export type GetServiceV2OkResponse = ResponseWithPagination<ResponseServiceResponse>;
|
|
34
|
+
export type GetServiceV2ErrorResponse = Failure | Error;
|
|
35
|
+
export interface GetServiceV2Props extends GetServiceV2QueryPathParams, Omit<FetcherOptions<GetServiceV2QueryQueryParams, unknown, GetServiceV2QueryHeaderParams>, 'url'> {
|
|
36
|
+
queryParams: GetServiceV2QueryQueryParams;
|
|
37
|
+
}
|
|
38
|
+
export declare function getServiceV2(props: GetServiceV2Props): Promise<GetServiceV2OkResponse>;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
export declare function useGetServiceV2Query(props: GetServiceV2Props, options?: Omit<UseQueryOptions<GetServiceV2OkResponse, GetServiceV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetServiceV2OkResponse, GetServiceV2ErrorResponse>;
|
|
@@ -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 getServiceV2(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/servicesV2/${props.serviceIdentifier}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useGetServiceV2Query(props, options) {
|
|
13
|
+
return useQuery(['getServiceV2', props.serviceIdentifier, props.queryParams], ({ signal }) => getServiceV2(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -21,6 +21,7 @@ export interface GetServicesListQueryQueryParams {
|
|
|
21
21
|
*/
|
|
22
22
|
size?: number;
|
|
23
23
|
searchTerm?: string;
|
|
24
|
+
serviceDefinitionType?: string;
|
|
24
25
|
}
|
|
25
26
|
export type GetServicesListOkResponse = ResponseWithPagination<ResponsePageServiceDashboardResponseDto>;
|
|
26
27
|
export type GetServicesListErrorResponse = Failure | Error;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponsePageServiceAccountAggregateDto } from '../schemas/ResponsePageServiceAccountAggregateDto';
|
|
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 ListAggregatedServiceAccountsQueryQueryParams {
|
|
8
|
+
accountIdentifier?: string;
|
|
9
|
+
orgIdentifier?: string;
|
|
10
|
+
projectIdentifier?: string;
|
|
11
|
+
identifiers?: string[];
|
|
12
|
+
/**
|
|
13
|
+
* @format int32
|
|
14
|
+
* @default 0
|
|
15
|
+
*/
|
|
16
|
+
pageIndex?: number;
|
|
17
|
+
/**
|
|
18
|
+
* @format int32
|
|
19
|
+
* @default 50
|
|
20
|
+
*/
|
|
21
|
+
pageSize?: number;
|
|
22
|
+
sortOrders?: string[];
|
|
23
|
+
pageToken?: string;
|
|
24
|
+
searchTerm?: string;
|
|
25
|
+
/**
|
|
26
|
+
* @default "EXCLUDE_INHERITED_SERVICE_ACCOUNTS"
|
|
27
|
+
*/
|
|
28
|
+
filterType?: 'EXCLUDE_INHERITED_SERVICE_ACCOUNTS' | 'INCLUDE_CHILD_SCOPE_SERVICE_ACCOUNTS' | 'INCLUDE_INHERITED_SERVICE_ACCOUNTS';
|
|
29
|
+
}
|
|
30
|
+
export type ListAggregatedServiceAccountsOkResponse = ResponseWithPagination<ResponsePageServiceAccountAggregateDto>;
|
|
31
|
+
export type ListAggregatedServiceAccountsErrorResponse = Failure | Error;
|
|
32
|
+
export interface ListAggregatedServiceAccountsProps extends Omit<FetcherOptions<ListAggregatedServiceAccountsQueryQueryParams, unknown>, 'url'> {
|
|
33
|
+
queryParams: ListAggregatedServiceAccountsQueryQueryParams;
|
|
34
|
+
}
|
|
35
|
+
export declare function listAggregatedServiceAccounts(props: ListAggregatedServiceAccountsProps): Promise<ListAggregatedServiceAccountsOkResponse>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
export declare function useListAggregatedServiceAccountsQuery(props: ListAggregatedServiceAccountsProps, options?: Omit<UseQueryOptions<ListAggregatedServiceAccountsOkResponse, ListAggregatedServiceAccountsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListAggregatedServiceAccountsOkResponse, ListAggregatedServiceAccountsErrorResponse>;
|
package/dist/ng-manager-swagger-service/src/services/hooks/useListAggregatedServiceAccountsQuery.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 listAggregatedServiceAccounts(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/serviceaccount/aggregate`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useListAggregatedServiceAccountsQuery(props, options) {
|
|
13
|
+
return useQuery(['listAggregatedServiceAccounts', props.queryParams], ({ signal }) => listAggregatedServiceAccounts(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
package/dist/ng-manager-swagger-service/src/services/hooks/useListAllEntityUsageByFqnQuery.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export interface ListAllEntityUsageByFqnQueryQueryParams {
|
|
|
15
15
|
pageSize?: number;
|
|
16
16
|
accountIdentifier?: string;
|
|
17
17
|
referredEntityFQN?: string;
|
|
18
|
-
referredEntityType?: 'AIEvaluation' | 'AIExperiment' | 'AWSECR' | 'AWSSecurityHub' | '
|
|
18
|
+
referredEntityType?: 'AIEvaluation' | 'AIExperiment' | 'AWSECR' | 'AWSSecurityHub' | 'Action' | 'AiTestAutomation' | 'AiVerify' | 'AlertSetting' | 'AnalyzeDeploymentImpact' | 'Anchore' | 'AppResize' | 'AppRollback' | 'ApprovalStage' | 'AquaSecurity' | 'AquaTrivy' | 'ArtifactSource' | 'ArtifactoryUpload' | 'AsgBlueGreenDeploy' | 'AsgBlueGreenRollback' | 'AsgBlueGreenSwapService' | 'AsgCanaryDelete' | 'AsgCanaryDeploy' | 'AsgPhasedDeploy' | 'AsgRollback' | 'AsgRollingDeploy' | 'AsgRollingRollback' | 'AsgScale' | 'AsgSetup' | 'AsgShiftTraffic' | 'AsgSteadyState' | 'AuditStreamingDestination' | 'AwsCdkBootstrap' | 'AwsCdkDeploy' | 'AwsCdkDestroy' | 'AwsCdkDiff' | 'AwsCdkRollback' | 'AwsCdkSynth' | 'AwsLambdaDeploy' | 'AwsLambdaRollback' | 'AwsSamBuild' | 'AwsSamDeploy' | 'AwsSamRollback' | 'AzureARMRollback' | 'AzureCreateARMResource' | 'AzureCreateBPResource' | 'AzureFunctionDeploy' | 'AzureFunctionRollback' | 'AzureSlotDeployment' | 'AzureSwapSlot' | 'AzureTrafficShift' | 'AzureWebAppRollback' | 'BGAppSetup' | 'Background' | 'BackstageEnvironmentVariable' | 'BambooBuild' | 'Bandit' | 'Barrier' | 'BasicAppSetup' | 'Bitrise' | 'BlackDuck' | 'Brakeman' | 'BuildAndPushACR' | 'BuildAndPushDockerRegistry' | 'BuildAndPushECR' | 'BuildAndPushGAR' | 'BuildAndPushGCR' | 'Burp' | 'CanaryAppSetup' | 'CdSscaEnforcement' | 'CdSscaOrchestration' | 'Certificates' | 'Chaos' | 'ChaosHub' | 'ChaosInfrastructure' | 'ChaosInfrastructureV2' | 'Checkmarx' | 'CheckmarxOne' | 'Checkov' | 'Clair' | 'CloudFunctionRollback' | 'CloudFunctionTrafficShift' | 'CodeQL' | 'Command' | 'Connectors' | 'Container' | 'CookieCutter' | 'CortexCloud' | 'Coverity' | 'CreateCatalog' | 'CreateOrganisation' | 'CreatePR' | 'CreateProject' | 'CreateRepo' | 'CreateResource' | 'CreateStack' | 'CustomApproval' | 'CustomDeployment' | 'CustomIngest' | 'CustomStage' | 'CvConfig' | 'CvKubernetesActivitySource' | 'CvVerificationJob' | 'DBSchemaApply' | 'DBSchemaRollback' | 'DataSink' | 'DataTheorem' | 'DelegateConfigurations' | 'Delegates' | 'DeleteStack' | 'DeployAwsAgentCoreRevision' | 'DeployCloudFunction' | 'DeployCloudFunctionGenOne' | 'DeployCloudFunctionWithNoTraffic' | 'DeployGoogleAgentRuntimeRevision' | 'Deployable' | 'DeploymentStage' | 'DeploymentSteps' | 'DirectPush' | 'DockerContentTrust' | 'DownloadAwsS3' | 'DownloadHarnessStore' | 'DownloadManifests' | 'EcsBasicRollback' | 'EcsBlueGreenCreateService' | 'EcsBlueGreenRollback' | 'EcsBlueGreenSwapTargetGroups' | 'EcsBlueGreenTrafficShift' | 'EcsCanaryDelete' | 'EcsCanaryDeploy' | 'EcsRollingDeploy' | 'EcsRollingRollback' | 'EcsRunTask' | 'EcsScale' | 'EcsServiceSetup' | 'EcsUpgradeContainer' | 'ElastigroupBGStageSetup' | 'ElastigroupBlueGreenTrafficShift' | 'ElastigroupDeploy' | 'ElastigroupRollback' | 'ElastigroupSetup' | 'ElastigroupSwapRoute' | 'Email' | 'Environment' | 'EnvironmentGroup' | 'External' | 'FeatureFlagStage' | 'FeatureFlags' | 'FetchInstanceScript' | 'Files' | 'FlagConfiguration' | 'FortifyOnDemand' | 'Fossa' | 'Freeze' | 'GCSUpload' | 'GitClone' | 'GitHubAdvancedSecurity' | 'GitOpsApplication' | 'GitOpsFetchLinkedApps' | 'GitOpsRollout' | 'GitOpsSync' | 'GitOpsUpdateReleaseRepo' | 'GitRepositories' | 'Gitleaks' | 'GoogleCloudRunDeploy' | 'GoogleCloudRunJob' | 'GoogleCloudRunPrepareRollbackData' | 'GoogleCloudRunRollback' | 'GoogleCloudRunTrafficShift' | 'GovernancePolicies' | 'GovernanceRuleAWS' | 'Grype' | 'HarUpload' | 'HarnessApproval' | 'HelmDelete' | 'HelmDeploy' | 'HelmRollback' | 'Http' | 'IACM' | 'IACMAnsiblePlugin' | 'IACMApproval' | 'IACMAwsCdkPlugin' | 'IACMBlastRadiusAgent' | 'IACMCheckov' | 'IACMModuleTestPlugin' | 'IACMOpenTofuPlugin' | 'IACMPrepareExecution' | 'IACMRemediationAgent' | 'IACMStage' | 'IACMStep' | 'IACMTFCompliance' | 'IACMTFLint' | 'IACMTFSec' | 'IACMTerraformPlugin' | 'IACMTerragruntPlugin' | 'IACMWorkspace' | 'IDPStage' | 'IdpCatalog' | 'IdpCdService' | 'IdpCheck' | 'IdpConnector' | 'IdpEnvironment' | 'IdpEnvironmentBlueprint' | 'IdpScorecard' | 'Infrastructure' | 'InputSets' | 'IntegrationStage' | 'IntegrationSteps' | 'JenkinsBuild' | 'JfrogXray' | 'JiraApproval' | 'JiraCreate' | 'JiraUpdate' | 'K8sApply' | 'K8sBGSwapServices' | 'K8sBlueGreenDeploy' | 'K8sBlueGreenStageScaleDown' | 'K8sBlueGreenStageScaleUp' | 'K8sCanaryDelete' | 'K8sCanaryDeploy' | 'K8sDelete' | 'K8sDryRun' | 'K8sPatch' | 'K8sProgressiveCanaryRollback' | 'K8sRollingDeploy' | 'K8sRollingRollback' | 'K8sRollout' | 'K8sScale' | 'K8sTrafficRouting' | 'Mend' | 'MergePR' | 'Metasploit' | 'ModelScan' | 'MonitoredService' | 'Nessus' | 'NexusIQ' | 'Nikto' | 'Nmap' | 'NotificationChannel' | 'NotificationRule' | 'OpenAi' | 'Openvas' | 'OsvScaner' | 'Overrides' | 'Owasp' | 'PipelineStage' | 'PipelineSteps' | 'Pipelines' | 'Plugin' | 'Policy' | 'PrismaCloud' | 'Projects' | 'Prowler' | 'Qualys' | 'Queue' | 'Reapsaw' | 'RegisterCatalog' | 'RestoreCache' | 'RestoreCacheAzure' | 'RestoreCacheGCS' | 'RestoreCacheS3' | 'RevertPR' | 'RollbackAwsAgentCoreRevision' | 'RollbackCloudFunctionGenOne' | 'RollbackGoogleAgentRuntimeRevision' | 'RollbackStack' | 'RouteMapping' | 'Run' | 'RunTests' | 'S3Upload' | 'SASTSecret' | 'SCA' | 'SalesforceApexTest' | 'SalesforceChangeset' | 'SalesforceComparisonPair' | 'SalesforceCreateScratchOrg' | 'SalesforceDeleteScratchOrg' | 'SalesforceDeploy' | 'SalesforceDownloadDeployables' | 'SalesforceDownloadOrg' | 'SalesforceEvaluateDiff' | 'SalesforceExecution' | 'SalesforceQuickDeploy' | 'SalesforceRollback' | 'SalesforceSourceBackup' | 'SalesforceValidate' | 'SaveCache' | 'SaveCacheAzure' | 'SaveCacheGCS' | 'SaveCacheS3' | 'Secrets' | 'Security' | 'SecurityStage' | 'SecuritySteps' | 'Semgrep' | 'ServerlessAwsLambdaDeploy' | 'ServerlessAwsLambdaDeployV2' | 'ServerlessAwsLambdaPackageV2' | 'ServerlessAwsLambdaPrepareRollbackV2' | 'ServerlessAwsLambdaRollback' | 'ServerlessAwsLambdaRollbackV2' | 'Service' | 'ServiceDiscoveryAgent' | 'ServiceNowApproval' | 'ServiceNowCreate' | 'ServiceNowImportSet' | 'ServiceNowUpdate' | 'ShellScript' | 'ShellScriptProvision' | 'ShiftAwsAgentCoreTraffic' | 'ShiftGoogleAgentRuntimeTraffic' | 'ShiftLeft' | 'SlackNotify' | 'SlsaVerification' | 'Sniper' | 'Snyk' | 'Sonarqube' | 'SscaArtifactVerification' | 'SscaEnforcement' | 'SscaOrchestration' | 'StandAloneTrafficShiftRollback' | 'StrategyNode' | 'SwapRollback' | 'SwapRoutes' | 'Sysdig' | 'TanzuCommand' | 'TasRollingDeploy' | 'TasRollingRollback' | 'Template' | 'TemplateStage' | 'Tenable' | 'TerraformApply' | 'TerraformCloudRollback' | 'TerraformCloudRun' | 'TerraformDestroy' | 'TerraformPlan' | 'TerraformRollback' | 'TerragruntApply' | 'TerragruntDestroy' | 'TerragruntPlan' | 'TerragruntRollback' | 'Test' | 'Traceable' | 'Triggers' | 'UpdateCatalogProperty' | 'UpdateGitOpsApp' | 'UserGroup' | 'Veracode' | 'Verify' | 'Wait' | 'Wiz' | 'Zap';
|
|
19
19
|
searchTerm?: string;
|
|
20
20
|
}
|
|
21
21
|
export type ListAllEntityUsageByFqnOkResponse = ResponseWithPagination<ResponsePageEntitySetupUsageDto>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponsePageSecretResponseWrapper } from '../schemas/ResponsePageSecretResponseWrapper';
|
|
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 ListSecretsV2QueryQueryParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
orgIdentifier?: string;
|
|
10
|
+
projectIdentifier?: string;
|
|
11
|
+
identifiers?: string[];
|
|
12
|
+
type?: 'SSHKey' | 'SecretFile' | 'SecretText' | 'WinRmCredentials';
|
|
13
|
+
searchTerm?: string;
|
|
14
|
+
types?: Array<'SSHKey' | 'SecretFile' | 'SecretText' | 'WinRmCredentials'>;
|
|
15
|
+
source_category?: 'AI' | 'ARTIFACTORY' | 'CLOUD_COST' | 'CLOUD_PROVIDER' | 'CODE_REPO' | 'COMMUNICATION' | 'CUSTOM' | 'DATABASE' | 'DOCUMENTATION' | 'MCP' | 'ML_OPS' | 'MONITORING' | 'SECRET_MANAGER' | 'TICKETING';
|
|
16
|
+
includeSecretsFromEverySubScope?: boolean;
|
|
17
|
+
includeAllSecretsAccessibleAtScope?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* @format int32
|
|
20
|
+
* @default 0
|
|
21
|
+
*/
|
|
22
|
+
pageIndex?: number;
|
|
23
|
+
/**
|
|
24
|
+
* @format int32
|
|
25
|
+
* @default 50
|
|
26
|
+
*/
|
|
27
|
+
pageSize?: number;
|
|
28
|
+
sortOrders?: string[];
|
|
29
|
+
pageToken?: string;
|
|
30
|
+
secretManagerIdentifiers?: string[];
|
|
31
|
+
}
|
|
32
|
+
export type ListSecretsV2OkResponse = ResponseWithPagination<ResponsePageSecretResponseWrapper>;
|
|
33
|
+
export type ListSecretsV2ErrorResponse = Failure | Error;
|
|
34
|
+
export interface ListSecretsV2Props extends Omit<FetcherOptions<ListSecretsV2QueryQueryParams, unknown>, 'url'> {
|
|
35
|
+
queryParams: ListSecretsV2QueryQueryParams;
|
|
36
|
+
}
|
|
37
|
+
export declare function listSecretsV2(props: ListSecretsV2Props): Promise<ListSecretsV2OkResponse>;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @deprecated
|
|
41
|
+
*/
|
|
42
|
+
export declare function useListSecretsV2Query(props: ListSecretsV2Props, options?: Omit<UseQueryOptions<ListSecretsV2OkResponse, ListSecretsV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListSecretsV2OkResponse, ListSecretsV2ErrorResponse>;
|
|
@@ -0,0 +1,15 @@
|
|
|
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 listSecretsV2(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/secrets`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @deprecated
|
|
12
|
+
*/
|
|
13
|
+
export function useListSecretsV2Query(props, options) {
|
|
14
|
+
return useQuery(['listSecretsV2', props.queryParams], ({ signal }) => listSecretsV2(Object.assign(Object.assign({}, props), { signal })), options);
|
|
15
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseSecretResponseWrapper } from '../schemas/ResponseSecretResponseWrapper';
|
|
3
|
+
import type { Failure } from '../schemas/Failure';
|
|
4
|
+
import type { Error } from '../schemas/Error';
|
|
5
|
+
import type { SecretRequestWrapper } from '../schemas/SecretRequestWrapper';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export interface PostSecretMutationQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
orgIdentifier?: string;
|
|
11
|
+
projectIdentifier?: string;
|
|
12
|
+
privateSecret?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export type PostSecretRequestBody = SecretRequestWrapper;
|
|
15
|
+
export type PostSecretOkResponse = ResponseWithPagination<ResponseSecretResponseWrapper>;
|
|
16
|
+
export type PostSecretErrorResponse = Failure | Error;
|
|
17
|
+
export interface PostSecretProps extends Omit<FetcherOptions<PostSecretMutationQueryParams, PostSecretRequestBody>, 'url'> {
|
|
18
|
+
queryParams: PostSecretMutationQueryParams;
|
|
19
|
+
body: PostSecretRequestBody;
|
|
20
|
+
}
|
|
21
|
+
export declare function postSecret(props: PostSecretProps): Promise<PostSecretOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export declare function usePostSecretMutation(options?: Omit<UseMutationOptions<PostSecretOkResponse, PostSecretErrorResponse, PostSecretProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PostSecretOkResponse, PostSecretErrorResponse, PostSecretProps, 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 postSecret(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/secrets`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function usePostSecretMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => postSecret(mutateProps), options);
|
|
14
|
+
}
|