@harnessio/react-ng-manager-swagger-service-client 1.44.0 → 1.45.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.
Files changed (75) hide show
  1. package/dist/ng-manager-swagger-service/src/services/hooks/useCreateServiceOverrideV2Mutation.d.ts +33 -0
  2. package/dist/ng-manager-swagger-service/src/services/hooks/useCreateServiceOverrideV2Mutation.js +14 -0
  3. package/dist/ng-manager-swagger-service/src/services/hooks/useDeleteServiceOverrideV2Mutation.d.ts +24 -0
  4. package/dist/ng-manager-swagger-service/src/services/hooks/useDeleteServiceOverrideV2Mutation.js +14 -0
  5. package/dist/ng-manager-swagger-service/src/services/hooks/useForceImportOverrideMutation.d.ts +22 -0
  6. package/dist/ng-manager-swagger-service/src/services/hooks/useForceImportOverrideMutation.js +14 -0
  7. package/dist/ng-manager-swagger-service/src/services/hooks/useGetEnvironmentAccessListV2Mutation.d.ts +39 -0
  8. package/dist/ng-manager-swagger-service/src/services/hooks/useGetEnvironmentAccessListV2Mutation.js +14 -0
  9. package/dist/ng-manager-swagger-service/src/services/hooks/useGetInfrastructureAccessListQuery.d.ts +39 -0
  10. package/dist/ng-manager-swagger-service/src/services/hooks/useGetInfrastructureAccessListQuery.js +14 -0
  11. package/dist/ng-manager-swagger-service/src/services/hooks/useGetServiceOverrideListV3Mutation.d.ts +37 -0
  12. package/dist/ng-manager-swagger-service/src/services/hooks/useGetServiceOverrideListV3Mutation.js +14 -0
  13. package/dist/ng-manager-swagger-service/src/services/hooks/useGetServiceOverridesQuery.d.ts +41 -0
  14. package/dist/ng-manager-swagger-service/src/services/hooks/useGetServiceOverridesQuery.js +14 -0
  15. package/dist/ng-manager-swagger-service/src/services/hooks/useGetServiceOverridesV2Query.d.ts +41 -0
  16. package/dist/ng-manager-swagger-service/src/services/hooks/useGetServiceOverridesV2Query.js +14 -0
  17. package/dist/ng-manager-swagger-service/src/services/hooks/useUpdateServiceOverrideV2Mutation.d.ts +35 -0
  18. package/dist/ng-manager-swagger-service/src/services/hooks/useUpdateServiceOverrideV2Mutation.js +14 -0
  19. package/dist/ng-manager-swagger-service/src/services/hooks/useUpsertServiceOverrideV2Mutation.d.ts +23 -0
  20. package/dist/ng-manager-swagger-service/src/services/hooks/useUpsertServiceOverrideV2Mutation.js +15 -0
  21. package/dist/ng-manager-swagger-service/src/services/index.d.ts +46 -0
  22. package/dist/ng-manager-swagger-service/src/services/index.js +10 -0
  23. package/dist/ng-manager-swagger-service/src/services/requestBodies/ForceImportOverridesRequestRequestBody.d.ts +2 -0
  24. package/dist/ng-manager-swagger-service/src/services/requestBodies/ForceImportOverridesRequestRequestBody.js +1 -0
  25. package/dist/ng-manager-swagger-service/src/services/requestBodies/OverrideFilterPropertiesRequestBody.d.ts +2 -0
  26. package/dist/ng-manager-swagger-service/src/services/requestBodies/OverrideFilterPropertiesRequestBody.js +1 -0
  27. package/dist/ng-manager-swagger-service/src/services/requestBodies/ServiceOverrideRequestDtov2RequestBody.d.ts +2 -0
  28. package/dist/ng-manager-swagger-service/src/services/requestBodies/ServiceOverrideRequestDtov2RequestBody.js +1 -0
  29. package/dist/ng-manager-swagger-service/src/services/schemas/ApplicationSettingsConfiguration.d.ts +5 -0
  30. package/dist/ng-manager-swagger-service/src/services/schemas/ApplicationSettingsConfiguration.js +1 -0
  31. package/dist/ng-manager-swagger-service/src/services/schemas/ConfigFile.d.ts +5 -0
  32. package/dist/ng-manager-swagger-service/src/services/schemas/ConfigFile.js +1 -0
  33. package/dist/ng-manager-swagger-service/src/services/schemas/ConfigFileAttributes.d.ts +4 -0
  34. package/dist/ng-manager-swagger-service/src/services/schemas/ConfigFileAttributes.js +1 -0
  35. package/dist/ng-manager-swagger-service/src/services/schemas/ConfigFileWrapper.d.ts +4 -0
  36. package/dist/ng-manager-swagger-service/src/services/schemas/ConfigFileWrapper.js +1 -0
  37. package/dist/ng-manager-swagger-service/src/services/schemas/ConnectionStringsConfiguration.d.ts +5 -0
  38. package/dist/ng-manager-swagger-service/src/services/schemas/ConnectionStringsConfiguration.js +1 -0
  39. package/dist/ng-manager-swagger-service/src/services/schemas/EntityGitInfo.d.ts +9 -0
  40. package/dist/ng-manager-swagger-service/src/services/schemas/EntityGitInfo.js +4 -0
  41. package/dist/ng-manager-swagger-service/src/services/schemas/ForceImportGovernanceResponse.d.ts +4 -0
  42. package/dist/ng-manager-swagger-service/src/services/schemas/ForceImportGovernanceResponse.js +4 -0
  43. package/dist/ng-manager-swagger-service/src/services/schemas/ForceImportOverridesRequest.d.ts +14 -0
  44. package/dist/ng-manager-swagger-service/src/services/schemas/ForceImportOverridesRequest.js +4 -0
  45. package/dist/ng-manager-swagger-service/src/services/schemas/ForceImportOverridesResponse.d.ts +5 -0
  46. package/dist/ng-manager-swagger-service/src/services/schemas/ForceImportOverridesResponse.js +1 -0
  47. package/dist/ng-manager-swagger-service/src/services/schemas/ManifestAttributes.d.ts +3 -0
  48. package/dist/ng-manager-swagger-service/src/services/schemas/ManifestAttributes.js +4 -0
  49. package/dist/ng-manager-swagger-service/src/services/schemas/ManifestConfig.d.ts +6 -0
  50. package/dist/ng-manager-swagger-service/src/services/schemas/ManifestConfig.js +1 -0
  51. package/dist/ng-manager-swagger-service/src/services/schemas/ManifestConfigWrapper.d.ts +4 -0
  52. package/dist/ng-manager-swagger-service/src/services/schemas/ManifestConfigWrapper.js +1 -0
  53. package/dist/ng-manager-swagger-service/src/services/schemas/OverrideFilterProperties.d.ts +12 -0
  54. package/dist/ng-manager-swagger-service/src/services/schemas/OverrideFilterProperties.js +4 -0
  55. package/dist/ng-manager-swagger-service/src/services/schemas/PageServiceOverridesResponseDtov2.d.ts +26 -0
  56. package/dist/ng-manager-swagger-service/src/services/schemas/PageServiceOverridesResponseDtov2.js +1 -0
  57. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseForceImportOverridesResponse.d.ts +9 -0
  58. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseForceImportOverridesResponse.js +1 -0
  59. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseListInfrastructureResponse.d.ts +9 -0
  60. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseListInfrastructureResponse.js +1 -0
  61. package/dist/ng-manager-swagger-service/src/services/schemas/ResponsePageServiceOverridesResponseDtov2.d.ts +9 -0
  62. package/dist/ng-manager-swagger-service/src/services/schemas/ResponsePageServiceOverridesResponseDtov2.js +1 -0
  63. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseServiceOverridesResponseDtov2.d.ts +9 -0
  64. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseServiceOverridesResponseDtov2.js +1 -0
  65. package/dist/ng-manager-swagger-service/src/services/schemas/ServiceOverrideRequestDtov2.d.ts +15 -0
  66. package/dist/ng-manager-swagger-service/src/services/schemas/ServiceOverrideRequestDtov2.js +1 -0
  67. package/dist/ng-manager-swagger-service/src/services/schemas/ServiceOverridesResponseDtov2.d.ts +27 -0
  68. package/dist/ng-manager-swagger-service/src/services/schemas/ServiceOverridesResponseDtov2.js +1 -0
  69. package/dist/ng-manager-swagger-service/src/services/schemas/ServiceOverridesSpec.d.ts +14 -0
  70. package/dist/ng-manager-swagger-service/src/services/schemas/ServiceOverridesSpec.js +1 -0
  71. package/dist/ng-manager-swagger-service/src/services/schemas/StoreConfig.d.ts +3 -0
  72. package/dist/ng-manager-swagger-service/src/services/schemas/StoreConfig.js +4 -0
  73. package/dist/ng-manager-swagger-service/src/services/schemas/StoreConfigWrapper.d.ts +6 -0
  74. package/dist/ng-manager-swagger-service/src/services/schemas/StoreConfigWrapper.js +1 -0
  75. package/package.json +1 -1
@@ -0,0 +1,33 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseServiceOverridesResponseDtov2 } from '../schemas/ResponseServiceOverridesResponseDtov2';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { Error } from '../schemas/Error';
5
+ import type { ServiceOverrideRequestDtov2RequestBody } from '../requestBodies/ServiceOverrideRequestDtov2RequestBody';
6
+ import type { ResponseWithPagination } from '../helpers';
7
+ import { FetcherOptions } from '../../../../fetcher/index.js';
8
+ export interface CreateServiceOverrideV2MutationQueryParams {
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 CreateServiceOverrideV2RequestBody = ServiceOverrideRequestDtov2RequestBody;
23
+ export type CreateServiceOverrideV2OkResponse = ResponseWithPagination<ResponseServiceOverridesResponseDtov2>;
24
+ export type CreateServiceOverrideV2ErrorResponse = Failure | Error;
25
+ export interface CreateServiceOverrideV2Props extends Omit<FetcherOptions<CreateServiceOverrideV2MutationQueryParams, CreateServiceOverrideV2RequestBody>, 'url'> {
26
+ queryParams: CreateServiceOverrideV2MutationQueryParams;
27
+ body: CreateServiceOverrideV2RequestBody;
28
+ }
29
+ export declare function createServiceOverrideV2(props: CreateServiceOverrideV2Props): Promise<CreateServiceOverrideV2OkResponse>;
30
+ /**
31
+ *
32
+ */
33
+ export declare function useCreateServiceOverrideV2Mutation(options?: Omit<UseMutationOptions<CreateServiceOverrideV2OkResponse, CreateServiceOverrideV2ErrorResponse, CreateServiceOverrideV2Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateServiceOverrideV2OkResponse, CreateServiceOverrideV2ErrorResponse, CreateServiceOverrideV2Props, 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 createServiceOverrideV2(props) {
7
+ return fetcher(Object.assign({ url: `/serviceOverrides`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useCreateServiceOverrideV2Mutation(options) {
13
+ return useMutation((mutateProps) => createServiceOverrideV2(mutateProps), options);
14
+ }
@@ -0,0 +1,24 @@
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 DeleteServiceOverrideV2MutationPathParams {
8
+ identifier: string;
9
+ }
10
+ export interface DeleteServiceOverrideV2MutationQueryParams {
11
+ accountIdentifier: string;
12
+ orgIdentifier?: string;
13
+ projectIdentifier?: string;
14
+ }
15
+ export type DeleteServiceOverrideV2OkResponse = ResponseWithPagination<ResponseBoolean>;
16
+ export type DeleteServiceOverrideV2ErrorResponse = Failure | Error;
17
+ export interface DeleteServiceOverrideV2Props extends DeleteServiceOverrideV2MutationPathParams, Omit<FetcherOptions<DeleteServiceOverrideV2MutationQueryParams, unknown>, 'url'> {
18
+ queryParams: DeleteServiceOverrideV2MutationQueryParams;
19
+ }
20
+ export declare function deleteServiceOverrideV2(props: DeleteServiceOverrideV2Props): Promise<DeleteServiceOverrideV2OkResponse>;
21
+ /**
22
+ *
23
+ */
24
+ export declare function useDeleteServiceOverrideV2Mutation(options?: Omit<UseMutationOptions<DeleteServiceOverrideV2OkResponse, DeleteServiceOverrideV2ErrorResponse, DeleteServiceOverrideV2Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteServiceOverrideV2OkResponse, DeleteServiceOverrideV2ErrorResponse, DeleteServiceOverrideV2Props, 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 deleteServiceOverrideV2(props) {
7
+ return fetcher(Object.assign({ url: `/serviceOverrides/${props.identifier}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useDeleteServiceOverrideV2Mutation(options) {
13
+ return useMutation((mutateProps) => deleteServiceOverrideV2(mutateProps), options);
14
+ }
@@ -0,0 +1,22 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseForceImportOverridesResponse } from '../schemas/ResponseForceImportOverridesResponse';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { Error } from '../schemas/Error';
5
+ import type { ForceImportOverridesRequestRequestBody } from '../requestBodies/ForceImportOverridesRequestRequestBody';
6
+ import type { ResponseWithPagination } from '../helpers';
7
+ import { FetcherOptions } from '../../../../fetcher/index.js';
8
+ export interface ForceImportOverrideMutationQueryParams {
9
+ accountIdentifier: string;
10
+ }
11
+ export type ForceImportOverrideRequestBody = ForceImportOverridesRequestRequestBody;
12
+ export type ForceImportOverrideOkResponse = ResponseWithPagination<ResponseForceImportOverridesResponse>;
13
+ export type ForceImportOverrideErrorResponse = Failure | Error;
14
+ export interface ForceImportOverrideProps extends Omit<FetcherOptions<ForceImportOverrideMutationQueryParams, ForceImportOverrideRequestBody>, 'url'> {
15
+ queryParams: ForceImportOverrideMutationQueryParams;
16
+ body: ForceImportOverrideRequestBody;
17
+ }
18
+ export declare function forceImportOverride(props: ForceImportOverrideProps): Promise<ForceImportOverrideOkResponse>;
19
+ /**
20
+ *
21
+ */
22
+ export declare function useForceImportOverrideMutation(options?: Omit<UseMutationOptions<ForceImportOverrideOkResponse, ForceImportOverrideErrorResponse, ForceImportOverrideProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ForceImportOverrideOkResponse, ForceImportOverrideErrorResponse, ForceImportOverrideProps, 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 forceImportOverride(props) {
7
+ return fetcher(Object.assign({ url: `/serviceOverrides/force-import`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useForceImportOverrideMutation(options) {
13
+ return useMutation((mutateProps) => forceImportOverride(mutateProps), options);
14
+ }
@@ -0,0 +1,39 @@
1
+ import { UseMutationOptions } 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 { EnvironmentFilterPropertiesRequestBody } from '../requestBodies/EnvironmentFilterPropertiesRequestBody';
6
+ import type { ResponseWithPagination } from '../helpers';
7
+ import { FetcherOptions } from '../../../../fetcher/index.js';
8
+ export interface GetEnvironmentAccessListV2MutationQueryParams {
9
+ /**
10
+ * @format int32
11
+ * @default 0
12
+ */
13
+ page?: number;
14
+ /**
15
+ * @format int32
16
+ * @default 100
17
+ */
18
+ size?: number;
19
+ accountIdentifier: string;
20
+ orgIdentifier?: string;
21
+ projectIdentifier?: string;
22
+ searchTerm?: string;
23
+ envIdentifiers?: string[];
24
+ sort?: string[];
25
+ filterIdentifier?: string;
26
+ includeAllAccessibleAtScope?: boolean;
27
+ }
28
+ export type GetEnvironmentAccessListV2RequestBody = EnvironmentFilterPropertiesRequestBody;
29
+ export type GetEnvironmentAccessListV2OkResponse = ResponseWithPagination<ResponseListEnvironmentResponse>;
30
+ export type GetEnvironmentAccessListV2ErrorResponse = Failure | Error;
31
+ export interface GetEnvironmentAccessListV2Props extends Omit<FetcherOptions<GetEnvironmentAccessListV2MutationQueryParams, GetEnvironmentAccessListV2RequestBody>, 'url'> {
32
+ queryParams: GetEnvironmentAccessListV2MutationQueryParams;
33
+ body: GetEnvironmentAccessListV2RequestBody;
34
+ }
35
+ export declare function getEnvironmentAccessListV2(props: GetEnvironmentAccessListV2Props): Promise<GetEnvironmentAccessListV2OkResponse>;
36
+ /**
37
+ *
38
+ */
39
+ export declare function useGetEnvironmentAccessListV2Mutation(options?: Omit<UseMutationOptions<GetEnvironmentAccessListV2OkResponse, GetEnvironmentAccessListV2ErrorResponse, GetEnvironmentAccessListV2Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetEnvironmentAccessListV2OkResponse, GetEnvironmentAccessListV2ErrorResponse, GetEnvironmentAccessListV2Props, 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 getEnvironmentAccessListV2(props) {
7
+ return fetcher(Object.assign({ url: `/environmentsV2/listV2/access`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useGetEnvironmentAccessListV2Mutation(options) {
13
+ return useMutation((mutateProps) => getEnvironmentAccessListV2(mutateProps), options);
14
+ }
@@ -0,0 +1,39 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ResponseListInfrastructureResponse } from '../schemas/ResponseListInfrastructureResponse';
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 GetInfrastructureAccessListQueryQueryParams {
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
+ infraIdentifiers?: string[];
23
+ deploymentType?: 'AWS_SAM' | 'AiAgent' | 'Asg' | 'AwsAgentCore' | 'AwsLambda' | 'AzureContainerApps' | 'AzureFunction' | 'AzureWebApp' | 'CustomDeployment' | 'ECS' | 'Elastigroup' | 'GoogleAgentRuntime' | 'GoogleCloudFunctions' | 'GoogleCloudRun' | 'GoogleManagedInstanceGroup' | 'Kubernetes' | 'NativeHelm' | 'SERVICE_YAML_V1_TYPE' | 'Salesforce' | 'ServerlessAwsLambda' | 'Ssh' | 'TAS' | 'WinRm';
24
+ deploymentTemplateIdentifier?: string;
25
+ versionLabel?: string;
26
+ sort?: string[];
27
+ serviceRefs?: string[];
28
+ repoName?: string;
29
+ }
30
+ export type GetInfrastructureAccessListOkResponse = ResponseWithPagination<ResponseListInfrastructureResponse>;
31
+ export type GetInfrastructureAccessListErrorResponse = Failure | Error;
32
+ export interface GetInfrastructureAccessListProps extends Omit<FetcherOptions<GetInfrastructureAccessListQueryQueryParams, unknown>, 'url'> {
33
+ queryParams: GetInfrastructureAccessListQueryQueryParams;
34
+ }
35
+ export declare function getInfrastructureAccessList(props: GetInfrastructureAccessListProps): Promise<GetInfrastructureAccessListOkResponse>;
36
+ /**
37
+ *
38
+ */
39
+ export declare function useGetInfrastructureAccessListQuery(props: GetInfrastructureAccessListProps, options?: Omit<UseQueryOptions<GetInfrastructureAccessListOkResponse, GetInfrastructureAccessListErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetInfrastructureAccessListOkResponse, GetInfrastructureAccessListErrorResponse>;
@@ -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 getInfrastructureAccessList(props) {
7
+ return fetcher(Object.assign({ url: `/infrastructures/list-access`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useGetInfrastructureAccessListQuery(props, options) {
13
+ return useQuery(['getInfrastructureAccessList', props.queryParams], ({ signal }) => getInfrastructureAccessList(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,37 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponsePageServiceOverridesResponseDtov2 } from '../schemas/ResponsePageServiceOverridesResponseDtov2';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { Error } from '../schemas/Error';
5
+ import type { OverrideFilterPropertiesRequestBody } from '../requestBodies/OverrideFilterPropertiesRequestBody';
6
+ import type { ResponseWithPagination } from '../helpers';
7
+ import { FetcherOptions } from '../../../../fetcher/index.js';
8
+ export interface GetServiceOverrideListV3MutationQueryParams {
9
+ /**
10
+ * @format int32
11
+ * @default 0
12
+ */
13
+ page?: number;
14
+ /**
15
+ * @format int32
16
+ * @default 500
17
+ */
18
+ size?: number;
19
+ accountIdentifier: string;
20
+ orgIdentifier?: string;
21
+ projectIdentifier?: string;
22
+ type?: 'CLUSTER_GLOBAL_OVERRIDE' | 'CLUSTER_SERVICE_OVERRIDE' | 'ENV_GLOBAL_OVERRIDE' | 'ENV_SERVICE_OVERRIDE' | 'INFRA_GLOBAL_OVERRIDE' | 'INFRA_SERVICE_OVERRIDE';
23
+ searchTerm?: string;
24
+ filterIdentifier?: string;
25
+ }
26
+ export type GetServiceOverrideListV3RequestBody = OverrideFilterPropertiesRequestBody;
27
+ export type GetServiceOverrideListV3OkResponse = ResponseWithPagination<ResponsePageServiceOverridesResponseDtov2>;
28
+ export type GetServiceOverrideListV3ErrorResponse = Failure | Error;
29
+ export interface GetServiceOverrideListV3Props extends Omit<FetcherOptions<GetServiceOverrideListV3MutationQueryParams, GetServiceOverrideListV3RequestBody>, 'url'> {
30
+ queryParams: GetServiceOverrideListV3MutationQueryParams;
31
+ body: GetServiceOverrideListV3RequestBody;
32
+ }
33
+ export declare function getServiceOverrideListV3(props: GetServiceOverrideListV3Props): Promise<GetServiceOverrideListV3OkResponse>;
34
+ /**
35
+ *
36
+ */
37
+ export declare function useGetServiceOverrideListV3Mutation(options?: Omit<UseMutationOptions<GetServiceOverrideListV3OkResponse, GetServiceOverrideListV3ErrorResponse, GetServiceOverrideListV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetServiceOverrideListV3OkResponse, GetServiceOverrideListV3ErrorResponse, GetServiceOverrideListV3Props, 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 getServiceOverrideListV3(props) {
7
+ return fetcher(Object.assign({ url: `/serviceOverrides/v2/list`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useGetServiceOverrideListV3Mutation(options) {
13
+ return useMutation((mutateProps) => getServiceOverrideListV3(mutateProps), options);
14
+ }
@@ -0,0 +1,41 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ResponseServiceOverridesResponseDtov2 } from '../schemas/ResponseServiceOverridesResponseDtov2';
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 GetServiceOverridesQueryQueryParams {
8
+ accountIdentifier: string;
9
+ orgIdentifier?: string;
10
+ projectIdentifier?: string;
11
+ environmentRef: string;
12
+ serviceRef?: string;
13
+ infraIdentifier?: string;
14
+ branch?: string;
15
+ repoIdentifier?: string;
16
+ getDefaultFromOtherRepo?: boolean;
17
+ parentEntityConnectorRef?: string;
18
+ parentEntityRepoName?: string;
19
+ parentEntityAccountIdentifier?: string;
20
+ parentEntityOrgIdentifier?: string;
21
+ parentEntityProjectIdentifier?: string;
22
+ repoName?: string;
23
+ loadFromFallbackBranch?: boolean;
24
+ getMetadataOnly?: boolean;
25
+ }
26
+ export interface GetServiceOverridesQueryHeaderParams {
27
+ /**
28
+ * @default "false"
29
+ */
30
+ 'Load-From-Cache'?: string;
31
+ }
32
+ export type GetServiceOverridesOkResponse = ResponseWithPagination<ResponseServiceOverridesResponseDtov2>;
33
+ export type GetServiceOverridesErrorResponse = Failure | Error;
34
+ export interface GetServiceOverridesProps extends Omit<FetcherOptions<GetServiceOverridesQueryQueryParams, unknown, GetServiceOverridesQueryHeaderParams>, 'url'> {
35
+ queryParams: GetServiceOverridesQueryQueryParams;
36
+ }
37
+ export declare function getServiceOverrides(props: GetServiceOverridesProps): Promise<GetServiceOverridesOkResponse>;
38
+ /**
39
+ *
40
+ */
41
+ export declare function useGetServiceOverridesQuery(props: GetServiceOverridesProps, options?: Omit<UseQueryOptions<GetServiceOverridesOkResponse, GetServiceOverridesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetServiceOverridesOkResponse, GetServiceOverridesErrorResponse>;
@@ -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 getServiceOverrides(props) {
7
+ return fetcher(Object.assign({ url: `/serviceOverrides`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useGetServiceOverridesQuery(props, options) {
13
+ return useQuery(['getServiceOverrides', props.queryParams], ({ signal }) => getServiceOverrides(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,41 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ResponseServiceOverridesResponseDtov2 } from '../schemas/ResponseServiceOverridesResponseDtov2';
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 GetServiceOverridesV2QueryPathParams {
8
+ identifier: string;
9
+ }
10
+ export interface GetServiceOverridesV2QueryQueryParams {
11
+ accountIdentifier: string;
12
+ orgIdentifier?: string;
13
+ projectIdentifier?: string;
14
+ branch?: string;
15
+ repoIdentifier?: string;
16
+ getDefaultFromOtherRepo?: boolean;
17
+ parentEntityConnectorRef?: string;
18
+ parentEntityRepoName?: string;
19
+ parentEntityAccountIdentifier?: string;
20
+ parentEntityOrgIdentifier?: string;
21
+ parentEntityProjectIdentifier?: string;
22
+ repoName?: string;
23
+ loadFromFallbackBranch?: boolean;
24
+ getMetadataOnly?: boolean;
25
+ }
26
+ export interface GetServiceOverridesV2QueryHeaderParams {
27
+ /**
28
+ * @default "false"
29
+ */
30
+ 'Load-From-Cache'?: string;
31
+ }
32
+ export type GetServiceOverridesV2OkResponse = ResponseWithPagination<ResponseServiceOverridesResponseDtov2>;
33
+ export type GetServiceOverridesV2ErrorResponse = Failure | Error;
34
+ export interface GetServiceOverridesV2Props extends GetServiceOverridesV2QueryPathParams, Omit<FetcherOptions<GetServiceOverridesV2QueryQueryParams, unknown, GetServiceOverridesV2QueryHeaderParams>, 'url'> {
35
+ queryParams: GetServiceOverridesV2QueryQueryParams;
36
+ }
37
+ export declare function getServiceOverridesV2(props: GetServiceOverridesV2Props): Promise<GetServiceOverridesV2OkResponse>;
38
+ /**
39
+ *
40
+ */
41
+ export declare function useGetServiceOverridesV2Query(props: GetServiceOverridesV2Props, options?: Omit<UseQueryOptions<GetServiceOverridesV2OkResponse, GetServiceOverridesV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetServiceOverridesV2OkResponse, GetServiceOverridesV2ErrorResponse>;
@@ -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 getServiceOverridesV2(props) {
7
+ return fetcher(Object.assign({ url: `/serviceOverrides/${props.identifier}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useGetServiceOverridesV2Query(props, options) {
13
+ return useQuery(['getServiceOverridesV2', props.identifier, props.queryParams], ({ signal }) => getServiceOverridesV2(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,35 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseServiceOverridesResponseDtov2 } from '../schemas/ResponseServiceOverridesResponseDtov2';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { Error } from '../schemas/Error';
5
+ import type { ServiceOverrideRequestDtov2RequestBody } from '../requestBodies/ServiceOverrideRequestDtov2RequestBody';
6
+ import type { ResponseWithPagination } from '../helpers';
7
+ import { FetcherOptions } from '../../../../fetcher/index.js';
8
+ export interface UpdateServiceOverrideV2MutationQueryParams {
9
+ accountIdentifier: string;
10
+ branch?: string;
11
+ repoIdentifier?: string;
12
+ rootFolder?: string;
13
+ filePath?: string;
14
+ commitMsg?: string;
15
+ lastObjectId?: string;
16
+ resolvedConflictCommitId?: string;
17
+ baseBranch?: string;
18
+ connectorRef?: string;
19
+ storeType?: 'INLINE' | 'INLINE_HC' | 'REMOTE';
20
+ lastCommitId?: string;
21
+ isNewBranch?: boolean;
22
+ isHarnessCodeRepo?: boolean;
23
+ }
24
+ export type UpdateServiceOverrideV2RequestBody = ServiceOverrideRequestDtov2RequestBody;
25
+ export type UpdateServiceOverrideV2OkResponse = ResponseWithPagination<ResponseServiceOverridesResponseDtov2>;
26
+ export type UpdateServiceOverrideV2ErrorResponse = Failure | Error;
27
+ export interface UpdateServiceOverrideV2Props extends Omit<FetcherOptions<UpdateServiceOverrideV2MutationQueryParams, UpdateServiceOverrideV2RequestBody>, 'url'> {
28
+ queryParams: UpdateServiceOverrideV2MutationQueryParams;
29
+ body: UpdateServiceOverrideV2RequestBody;
30
+ }
31
+ export declare function updateServiceOverrideV2(props: UpdateServiceOverrideV2Props): Promise<UpdateServiceOverrideV2OkResponse>;
32
+ /**
33
+ *
34
+ */
35
+ export declare function useUpdateServiceOverrideV2Mutation(options?: Omit<UseMutationOptions<UpdateServiceOverrideV2OkResponse, UpdateServiceOverrideV2ErrorResponse, UpdateServiceOverrideV2Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateServiceOverrideV2OkResponse, UpdateServiceOverrideV2ErrorResponse, UpdateServiceOverrideV2Props, 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 updateServiceOverrideV2(props) {
7
+ return fetcher(Object.assign({ url: `/serviceOverrides`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useUpdateServiceOverrideV2Mutation(options) {
13
+ return useMutation((mutateProps) => updateServiceOverrideV2(mutateProps), options);
14
+ }
@@ -0,0 +1,23 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseServiceOverridesResponseDtov2 } from '../schemas/ResponseServiceOverridesResponseDtov2';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { Error } from '../schemas/Error';
5
+ import type { ServiceOverrideRequestDtov2RequestBody } from '../requestBodies/ServiceOverrideRequestDtov2RequestBody';
6
+ import type { ResponseWithPagination } from '../helpers';
7
+ import { FetcherOptions } from '../../../../fetcher/index.js';
8
+ export interface UpsertServiceOverrideV2MutationQueryParams {
9
+ accountIdentifier: string;
10
+ }
11
+ export type UpsertServiceOverrideV2RequestBody = ServiceOverrideRequestDtov2RequestBody;
12
+ export type UpsertServiceOverrideV2OkResponse = ResponseWithPagination<ResponseServiceOverridesResponseDtov2>;
13
+ export type UpsertServiceOverrideV2ErrorResponse = Failure | Error;
14
+ export interface UpsertServiceOverrideV2Props extends Omit<FetcherOptions<UpsertServiceOverrideV2MutationQueryParams, UpsertServiceOverrideV2RequestBody>, 'url'> {
15
+ queryParams: UpsertServiceOverrideV2MutationQueryParams;
16
+ body: UpsertServiceOverrideV2RequestBody;
17
+ }
18
+ export declare function upsertServiceOverrideV2(props: UpsertServiceOverrideV2Props): Promise<UpsertServiceOverrideV2OkResponse>;
19
+ /**
20
+ *
21
+ * @deprecated
22
+ */
23
+ export declare function useUpsertServiceOverrideV2Mutation(options?: Omit<UseMutationOptions<UpsertServiceOverrideV2OkResponse, UpsertServiceOverrideV2ErrorResponse, UpsertServiceOverrideV2Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpsertServiceOverrideV2OkResponse, UpsertServiceOverrideV2ErrorResponse, UpsertServiceOverrideV2Props, unknown>;
@@ -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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function upsertServiceOverrideV2(props) {
7
+ return fetcher(Object.assign({ url: `/serviceOverrides/upsert`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ *
11
+ * @deprecated
12
+ */
13
+ export function useUpsertServiceOverrideV2Mutation(options) {
14
+ return useMutation((mutateProps) => upsertServiceOverrideV2(mutateProps), options);
15
+ }