@harnessio/react-ng-manager-swagger-service-client 1.24.0 → 1.25.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/useShouldDisableDeploymentQuery.d.ts +22 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useShouldDisableDeploymentQuery.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/index.d.ts +5 -0
- package/dist/ng-manager-swagger-service/src/services/index.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/FreezeReference.d.ts +5 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/FreezeReference.js +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseShouldDisableDeploymentFreezeResponseDto.d.ts +9 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseShouldDisableDeploymentFreezeResponseDto.js +1 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ShouldDisableDeploymentFreezeResponseDto.d.ts +5 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ShouldDisableDeploymentFreezeResponseDto.js +1 -0
- package/package.json +1 -1
package/dist/ng-manager-swagger-service/src/services/hooks/useShouldDisableDeploymentQuery.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseShouldDisableDeploymentFreezeResponseDto } from '../schemas/ResponseShouldDisableDeploymentFreezeResponseDto';
|
|
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 ShouldDisableDeploymentQueryQueryParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
orgIdentifier?: string;
|
|
10
|
+
projectIdentifier?: string;
|
|
11
|
+
pipelineIdentifier?: string;
|
|
12
|
+
}
|
|
13
|
+
export type ShouldDisableDeploymentOkResponse = ResponseWithPagination<ResponseShouldDisableDeploymentFreezeResponseDto>;
|
|
14
|
+
export type ShouldDisableDeploymentErrorResponse = Failure | Error;
|
|
15
|
+
export interface ShouldDisableDeploymentProps extends Omit<FetcherOptions<ShouldDisableDeploymentQueryQueryParams, unknown>, 'url'> {
|
|
16
|
+
queryParams: ShouldDisableDeploymentQueryQueryParams;
|
|
17
|
+
}
|
|
18
|
+
export declare function shouldDisableDeployment(props: ShouldDisableDeploymentProps): Promise<ShouldDisableDeploymentOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
export declare function useShouldDisableDeploymentQuery(props: ShouldDisableDeploymentProps, options?: Omit<UseQueryOptions<ShouldDisableDeploymentOkResponse, ShouldDisableDeploymentErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ShouldDisableDeploymentOkResponse, ShouldDisableDeploymentErrorResponse>;
|
|
@@ -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 shouldDisableDeployment(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/freeze/evaluate/shouldDisableDeployment`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useShouldDisableDeploymentQuery(props, options) {
|
|
13
|
+
return useQuery(['shouldDisableDeployment', props.queryParams], ({ signal }) => shouldDisableDeployment(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -277,6 +277,8 @@ export type { RotateTokenErrorResponse, RotateTokenMutationPathParams, RotateTok
|
|
|
277
277
|
export { rotateToken, useRotateTokenMutation } from './hooks/useRotateTokenMutation';
|
|
278
278
|
export type { SearchLdapGroupsErrorResponse, SearchLdapGroupsOkResponse, SearchLdapGroupsProps, SearchLdapGroupsQueryPathParams, SearchLdapGroupsQueryQueryParams, } from './hooks/useSearchLdapGroupsQuery';
|
|
279
279
|
export { searchLdapGroups, useSearchLdapGroupsQuery } from './hooks/useSearchLdapGroupsQuery';
|
|
280
|
+
export type { ShouldDisableDeploymentErrorResponse, ShouldDisableDeploymentOkResponse, ShouldDisableDeploymentProps, ShouldDisableDeploymentQueryQueryParams, } from './hooks/useShouldDisableDeploymentQuery';
|
|
281
|
+
export { shouldDisableDeployment, useShouldDisableDeploymentQuery, } from './hooks/useShouldDisableDeploymentQuery';
|
|
280
282
|
export type { TagsErrorResponse, TagsOkResponse, TagsProps, TagsQueryQueryParams, } from './hooks/useTagsQuery';
|
|
281
283
|
export { tags, useTagsQuery } from './hooks/useTagsQuery';
|
|
282
284
|
export type { UnlinkSsoGroupErrorResponse, UnlinkSsoGroupMutationPathParams, UnlinkSsoGroupMutationQueryParams, UnlinkSsoGroupOkResponse, UnlinkSsoGroupProps, } from './hooks/useUnlinkSsoGroupMutation';
|
|
@@ -374,6 +376,7 @@ export type { Error } from './schemas/Error';
|
|
|
374
376
|
export type { ErrorMetadataDto } from './schemas/ErrorMetadataDto';
|
|
375
377
|
export type { Failure } from './schemas/Failure';
|
|
376
378
|
export type { FilePaths } from './schemas/FilePaths';
|
|
379
|
+
export type { FreezeReference } from './schemas/FreezeReference';
|
|
377
380
|
export type { GarBuildDetailsDto } from './schemas/GarBuildDetailsDto';
|
|
378
381
|
export type { GarPackageDto } from './schemas/GarPackageDto';
|
|
379
382
|
export type { GarPackageDtoList } from './schemas/GarPackageDtoList';
|
|
@@ -531,6 +534,7 @@ export type { ResponseServiceResponse } from './schemas/ResponseServiceResponse'
|
|
|
531
534
|
export type { ResponseServicesV2YamlMetadataDto } from './schemas/ResponseServicesV2YamlMetadataDto';
|
|
532
535
|
export type { ResponseSetHelmCommandFlagType } from './schemas/ResponseSetHelmCommandFlagType';
|
|
533
536
|
export type { ResponseSetString } from './schemas/ResponseSetString';
|
|
537
|
+
export type { ResponseShouldDisableDeploymentFreezeResponseDto } from './schemas/ResponseShouldDisableDeploymentFreezeResponseDto';
|
|
534
538
|
export type { ResponseString } from './schemas/ResponseString';
|
|
535
539
|
export type { ResponseTokenDto } from './schemas/ResponseTokenDto';
|
|
536
540
|
export type { ResponseUserGroupAggregateDto } from './schemas/ResponseUserGroupAggregateDto';
|
|
@@ -558,6 +562,7 @@ export type { ServiceV2YamlMetadata } from './schemas/ServiceV2YamlMetadata';
|
|
|
558
562
|
export type { ServicesV2YamlMetadataDto } from './schemas/ServicesV2YamlMetadataDto';
|
|
559
563
|
export type { ServicesYamlMetadataApiInputV2 } from './schemas/ServicesYamlMetadataApiInputV2';
|
|
560
564
|
export type { SetupUsageDetail } from './schemas/SetupUsageDetail';
|
|
565
|
+
export type { ShouldDisableDeploymentFreezeResponseDto } from './schemas/ShouldDisableDeploymentFreezeResponseDto';
|
|
561
566
|
export type { StackTraceElement } from './schemas/StackTraceElement';
|
|
562
567
|
export type { TaskSelectorYaml } from './schemas/TaskSelectorYaml';
|
|
563
568
|
export type { Throwable } from './schemas/Throwable';
|
|
@@ -137,6 +137,7 @@ export { postProject, usePostProjectMutation } from './hooks/usePostProjectMutat
|
|
|
137
137
|
export { removeMember, useRemoveMemberMutation } from './hooks/useRemoveMemberMutation';
|
|
138
138
|
export { rotateToken, useRotateTokenMutation } from './hooks/useRotateTokenMutation';
|
|
139
139
|
export { searchLdapGroups, useSearchLdapGroupsQuery } from './hooks/useSearchLdapGroupsQuery';
|
|
140
|
+
export { shouldDisableDeployment, useShouldDisableDeploymentQuery, } from './hooks/useShouldDisableDeploymentQuery';
|
|
140
141
|
export { tags, useTagsQuery } from './hooks/useTagsQuery';
|
|
141
142
|
export { unlinkSsoGroup, useUnlinkSsoGroupMutation } from './hooks/useUnlinkSsoGroupMutation';
|
|
142
143
|
export { updateApiKey, useUpdateApiKeyMutation } from './hooks/useUpdateApiKeyMutation';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ShouldDisableDeploymentFreezeResponseDto } from '../schemas/ShouldDisableDeploymentFreezeResponseDto';
|
|
2
|
+
export interface ResponseShouldDisableDeploymentFreezeResponseDto {
|
|
3
|
+
correlationId?: string;
|
|
4
|
+
data?: ShouldDisableDeploymentFreezeResponseDto;
|
|
5
|
+
metaData?: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnessio/react-ng-manager-swagger-service-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.25.0",
|
|
4
4
|
"description": "Harness React NG Manager Swagger service client - NG Manager APIs integrated with react hooks",
|
|
5
5
|
"author": "Harness Inc",
|
|
6
6
|
"license": "MIT",
|