@harnessio/react-ng-manager-swagger-service-client 1.13.0 → 1.15.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 (49) hide show
  1. package/dist/ng-manager-swagger-service/src/services/hooks/useCreateVariableMutation.d.ts +22 -0
  2. package/dist/ng-manager-swagger-service/src/services/hooks/useCreateVariableMutation.js +14 -0
  3. package/dist/ng-manager-swagger-service/src/services/hooks/useDeleteVariableMutation.d.ts +24 -0
  4. package/dist/ng-manager-swagger-service/src/services/hooks/useDeleteVariableMutation.js +14 -0
  5. package/dist/ng-manager-swagger-service/src/services/hooks/useGetListOfAllReposByRefConnectorQuery.d.ts +22 -0
  6. package/dist/ng-manager-swagger-service/src/services/hooks/useGetListOfAllReposByRefConnectorQuery.js +14 -0
  7. package/dist/ng-manager-swagger-service/src/services/hooks/useGetListOfReposByRefConnectorQuery.d.ts +35 -0
  8. package/dist/ng-manager-swagger-service/src/services/hooks/useGetListOfReposByRefConnectorQuery.js +14 -0
  9. package/dist/ng-manager-swagger-service/src/services/hooks/useGetPaginatedListOfReposByRefConnectorQuery.d.ts +37 -0
  10. package/dist/ng-manager-swagger-service/src/services/hooks/useGetPaginatedListOfReposByRefConnectorQuery.js +14 -0
  11. package/dist/ng-manager-swagger-service/src/services/hooks/useGetVariableQuery.d.ts +24 -0
  12. package/dist/ng-manager-swagger-service/src/services/hooks/useGetVariableQuery.js +14 -0
  13. package/dist/ng-manager-swagger-service/src/services/hooks/useGetVariablesListQuery.d.ts +35 -0
  14. package/dist/ng-manager-swagger-service/src/services/hooks/useGetVariablesListQuery.js +14 -0
  15. package/dist/ng-manager-swagger-service/src/services/hooks/useUpdateVariableMutation.d.ts +22 -0
  16. package/dist/ng-manager-swagger-service/src/services/hooks/useUpdateVariableMutation.js +14 -0
  17. package/dist/ng-manager-swagger-service/src/services/index.d.ts +31 -0
  18. package/dist/ng-manager-swagger-service/src/services/index.js +8 -0
  19. package/dist/ng-manager-swagger-service/src/services/requestBodies/VariableRequestDtoRequestBody.d.ts +2 -0
  20. package/dist/ng-manager-swagger-service/src/services/requestBodies/VariableRequestDtoRequestBody.js +1 -0
  21. package/dist/ng-manager-swagger-service/src/services/schemas/GitListRepositoryResponse.d.ts +6 -0
  22. package/dist/ng-manager-swagger-service/src/services/schemas/GitListRepositoryResponse.js +1 -0
  23. package/dist/ng-manager-swagger-service/src/services/schemas/GitRepositoryResponseDto.d.ts +3 -0
  24. package/dist/ng-manager-swagger-service/src/services/schemas/GitRepositoryResponseDto.js +4 -0
  25. package/dist/ng-manager-swagger-service/src/services/schemas/PageVariableResponseDto.d.ts +26 -0
  26. package/dist/ng-manager-swagger-service/src/services/schemas/PageVariableResponseDto.js +1 -0
  27. package/dist/ng-manager-swagger-service/src/services/schemas/PaginationDetails.d.ts +7 -0
  28. package/dist/ng-manager-swagger-service/src/services/schemas/PaginationDetails.js +4 -0
  29. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseGitListRepositoryResponse.d.ts +9 -0
  30. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseGitListRepositoryResponse.js +1 -0
  31. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseListGitRepositoryResponseDto.d.ts +9 -0
  32. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseListGitRepositoryResponseDto.js +1 -0
  33. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseListUserRepoResponse.d.ts +9 -0
  34. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseListUserRepoResponse.js +1 -0
  35. package/dist/ng-manager-swagger-service/src/services/schemas/ResponsePageVariableResponseDto.d.ts +9 -0
  36. package/dist/ng-manager-swagger-service/src/services/schemas/ResponsePageVariableResponseDto.js +1 -0
  37. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseVariableResponseDto.d.ts +9 -0
  38. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseVariableResponseDto.js +1 -0
  39. package/dist/ng-manager-swagger-service/src/services/schemas/UserRepoResponse.d.ts +4 -0
  40. package/dist/ng-manager-swagger-service/src/services/schemas/UserRepoResponse.js +4 -0
  41. package/dist/ng-manager-swagger-service/src/services/schemas/VariableConfigDto.d.ts +6 -0
  42. package/dist/ng-manager-swagger-service/src/services/schemas/VariableConfigDto.js +4 -0
  43. package/dist/ng-manager-swagger-service/src/services/schemas/VariableDto.d.ts +14 -0
  44. package/dist/ng-manager-swagger-service/src/services/schemas/VariableDto.js +1 -0
  45. package/dist/ng-manager-swagger-service/src/services/schemas/VariableRequestDto.d.ts +4 -0
  46. package/dist/ng-manager-swagger-service/src/services/schemas/VariableRequestDto.js +1 -0
  47. package/dist/ng-manager-swagger-service/src/services/schemas/VariableResponseDto.d.ts +12 -0
  48. package/dist/ng-manager-swagger-service/src/services/schemas/VariableResponseDto.js +1 -0
  49. package/package.json +1 -1
@@ -0,0 +1,22 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseVariableResponseDto } from '../schemas/ResponseVariableResponseDto';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { Error } from '../schemas/Error';
5
+ import type { VariableRequestDtoRequestBody } from '../requestBodies/VariableRequestDtoRequestBody';
6
+ import type { ResponseWithPagination } from '../helpers';
7
+ import { FetcherOptions } from '../../../../fetcher/index.js';
8
+ export interface CreateVariableMutationQueryParams {
9
+ accountIdentifier: string;
10
+ }
11
+ export type CreateVariableRequestBody = VariableRequestDtoRequestBody;
12
+ export type CreateVariableOkResponse = ResponseWithPagination<ResponseVariableResponseDto>;
13
+ export type CreateVariableErrorResponse = Failure | Error;
14
+ export interface CreateVariableProps extends Omit<FetcherOptions<CreateVariableMutationQueryParams, CreateVariableRequestBody>, 'url'> {
15
+ queryParams: CreateVariableMutationQueryParams;
16
+ body: CreateVariableRequestBody;
17
+ }
18
+ export declare function createVariable(props: CreateVariableProps): Promise<CreateVariableOkResponse>;
19
+ /**
20
+ *
21
+ */
22
+ export declare function useCreateVariableMutation(options?: Omit<UseMutationOptions<CreateVariableOkResponse, CreateVariableErrorResponse, CreateVariableProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateVariableOkResponse, CreateVariableErrorResponse, CreateVariableProps, 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 createVariable(props) {
7
+ return fetcher(Object.assign({ url: `/variables`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useCreateVariableMutation(options) {
13
+ return useMutation((mutateProps) => createVariable(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 DeleteVariableMutationPathParams {
8
+ identifier: string;
9
+ }
10
+ export interface DeleteVariableMutationQueryParams {
11
+ accountIdentifier: string;
12
+ orgIdentifier?: string;
13
+ projectIdentifier?: string;
14
+ }
15
+ export type DeleteVariableOkResponse = ResponseWithPagination<ResponseBoolean>;
16
+ export type DeleteVariableErrorResponse = Failure | Error;
17
+ export interface DeleteVariableProps extends DeleteVariableMutationPathParams, Omit<FetcherOptions<DeleteVariableMutationQueryParams, unknown>, 'url'> {
18
+ queryParams: DeleteVariableMutationQueryParams;
19
+ }
20
+ export declare function deleteVariable(props: DeleteVariableProps): Promise<DeleteVariableOkResponse>;
21
+ /**
22
+ *
23
+ */
24
+ export declare function useDeleteVariableMutation(options?: Omit<UseMutationOptions<DeleteVariableOkResponse, DeleteVariableErrorResponse, DeleteVariableProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteVariableOkResponse, DeleteVariableErrorResponse, DeleteVariableProps, 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 deleteVariable(props) {
7
+ return fetcher(Object.assign({ url: `/variables/${props.identifier}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useDeleteVariableMutation(options) {
13
+ return useMutation((mutateProps) => deleteVariable(mutateProps), options);
14
+ }
@@ -0,0 +1,22 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ResponseListUserRepoResponse } from '../schemas/ResponseListUserRepoResponse';
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 GetListOfAllReposByRefConnectorQueryQueryParams {
8
+ accountIdentifier?: string;
9
+ orgIdentifier?: string;
10
+ projectIdentifier?: string;
11
+ connectorRef?: string;
12
+ }
13
+ export type GetListOfAllReposByRefConnectorOkResponse = ResponseWithPagination<ResponseListUserRepoResponse>;
14
+ export type GetListOfAllReposByRefConnectorErrorResponse = Failure | Error;
15
+ export interface GetListOfAllReposByRefConnectorProps extends Omit<FetcherOptions<GetListOfAllReposByRefConnectorQueryQueryParams, unknown>, 'url'> {
16
+ queryParams: GetListOfAllReposByRefConnectorQueryQueryParams;
17
+ }
18
+ export declare function getListOfAllReposByRefConnector(props: GetListOfAllReposByRefConnectorProps): Promise<GetListOfAllReposByRefConnectorOkResponse>;
19
+ /**
20
+ *
21
+ */
22
+ export declare function useGetListOfAllReposByRefConnectorQuery(props: GetListOfAllReposByRefConnectorProps, options?: Omit<UseQueryOptions<GetListOfAllReposByRefConnectorOkResponse, GetListOfAllReposByRefConnectorErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetListOfAllReposByRefConnectorOkResponse, GetListOfAllReposByRefConnectorErrorResponse>;
@@ -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 getListOfAllReposByRefConnector(props) {
7
+ return fetcher(Object.assign({ url: `/scm/list-all-repos-by-connector`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useGetListOfAllReposByRefConnectorQuery(props, options) {
13
+ return useQuery(['getListOfAllReposByRefConnector', props.queryParams], ({ signal }) => getListOfAllReposByRefConnector(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,35 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ResponseListGitRepositoryResponseDto } from '../schemas/ResponseListGitRepositoryResponseDto';
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 GetListOfReposByRefConnectorQueryQueryParams {
8
+ accountIdentifier?: string;
9
+ orgIdentifier?: string;
10
+ projectIdentifier?: string;
11
+ connectorRef?: string;
12
+ /**
13
+ * @format int32
14
+ * @default 0
15
+ */
16
+ page?: number;
17
+ /**
18
+ * @format int32
19
+ * @default 50
20
+ */
21
+ size?: number;
22
+ repoNameSearchTerm?: string;
23
+ userNameSearchTerm?: string;
24
+ applyGitXRepoAllowListFilter?: boolean;
25
+ }
26
+ export type GetListOfReposByRefConnectorOkResponse = ResponseWithPagination<ResponseListGitRepositoryResponseDto>;
27
+ export type GetListOfReposByRefConnectorErrorResponse = Failure | Error;
28
+ export interface GetListOfReposByRefConnectorProps extends Omit<FetcherOptions<GetListOfReposByRefConnectorQueryQueryParams, unknown>, 'url'> {
29
+ queryParams: GetListOfReposByRefConnectorQueryQueryParams;
30
+ }
31
+ export declare function getListOfReposByRefConnector(props: GetListOfReposByRefConnectorProps): Promise<GetListOfReposByRefConnectorOkResponse>;
32
+ /**
33
+ *
34
+ */
35
+ export declare function useGetListOfReposByRefConnectorQuery(props: GetListOfReposByRefConnectorProps, options?: Omit<UseQueryOptions<GetListOfReposByRefConnectorOkResponse, GetListOfReposByRefConnectorErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetListOfReposByRefConnectorOkResponse, GetListOfReposByRefConnectorErrorResponse>;
@@ -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 getListOfReposByRefConnector(props) {
7
+ return fetcher(Object.assign({ url: `/scm/list-repos-by-connector`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useGetListOfReposByRefConnectorQuery(props, options) {
13
+ return useQuery(['getListOfReposByRefConnector', props.queryParams], ({ signal }) => getListOfReposByRefConnector(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,37 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ResponseGitListRepositoryResponse } from '../schemas/ResponseGitListRepositoryResponse';
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 GetPaginatedListOfReposByRefConnectorQueryQueryParams {
8
+ accountIdentifier?: string;
9
+ orgIdentifier?: string;
10
+ projectIdentifier?: string;
11
+ connectorRef?: string;
12
+ useSCMProviderForConnector?: boolean;
13
+ scmProviderForConnectorType?: 'AWS_CODE_COMMIT' | 'AZURE_REPO' | 'BITBUCKET' | 'BITBUCKET_SERVER' | 'GITHUB' | 'GITHUB_ENTERPRISE' | 'GITLAB' | 'GITLAB_ON_PREM' | 'HARNESS';
14
+ /**
15
+ * @format int32
16
+ * @default 0
17
+ */
18
+ page?: number;
19
+ /**
20
+ * @format int32
21
+ * @default 50
22
+ */
23
+ size?: number;
24
+ repoNameSearchTerm?: string;
25
+ userNameSearchTerm?: string;
26
+ applyGitXRepoAllowListFilter?: boolean;
27
+ }
28
+ export type GetPaginatedListOfReposByRefConnectorOkResponse = ResponseWithPagination<ResponseGitListRepositoryResponse>;
29
+ export type GetPaginatedListOfReposByRefConnectorErrorResponse = Failure | Error;
30
+ export interface GetPaginatedListOfReposByRefConnectorProps extends Omit<FetcherOptions<GetPaginatedListOfReposByRefConnectorQueryQueryParams, unknown>, 'url'> {
31
+ queryParams: GetPaginatedListOfReposByRefConnectorQueryQueryParams;
32
+ }
33
+ export declare function getPaginatedListOfReposByRefConnector(props: GetPaginatedListOfReposByRefConnectorProps): Promise<GetPaginatedListOfReposByRefConnectorOkResponse>;
34
+ /**
35
+ *
36
+ */
37
+ export declare function useGetPaginatedListOfReposByRefConnectorQuery(props: GetPaginatedListOfReposByRefConnectorProps, options?: Omit<UseQueryOptions<GetPaginatedListOfReposByRefConnectorOkResponse, GetPaginatedListOfReposByRefConnectorErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetPaginatedListOfReposByRefConnectorOkResponse, GetPaginatedListOfReposByRefConnectorErrorResponse>;
@@ -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 getPaginatedListOfReposByRefConnector(props) {
7
+ return fetcher(Object.assign({ url: `/scm/v2/list-repos`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useGetPaginatedListOfReposByRefConnectorQuery(props, options) {
13
+ return useQuery(['getPaginatedListOfReposByRefConnector', props.queryParams], ({ signal }) => getPaginatedListOfReposByRefConnector(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,24 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ResponseVariableResponseDto } from '../schemas/ResponseVariableResponseDto';
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 GetVariableQueryPathParams {
8
+ identifier: string;
9
+ }
10
+ export interface GetVariableQueryQueryParams {
11
+ accountIdentifier: string;
12
+ orgIdentifier?: string;
13
+ projectIdentifier?: string;
14
+ }
15
+ export type GetVariableOkResponse = ResponseWithPagination<ResponseVariableResponseDto>;
16
+ export type GetVariableErrorResponse = Failure | Error;
17
+ export interface GetVariableProps extends GetVariableQueryPathParams, Omit<FetcherOptions<GetVariableQueryQueryParams, unknown>, 'url'> {
18
+ queryParams: GetVariableQueryQueryParams;
19
+ }
20
+ export declare function getVariable(props: GetVariableProps): Promise<GetVariableOkResponse>;
21
+ /**
22
+ *
23
+ */
24
+ export declare function useGetVariableQuery(props: GetVariableProps, options?: Omit<UseQueryOptions<GetVariableOkResponse, GetVariableErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetVariableOkResponse, GetVariableErrorResponse>;
@@ -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 getVariable(props) {
7
+ return fetcher(Object.assign({ url: `/variables/${props.identifier}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useGetVariableQuery(props, options) {
13
+ return useQuery(['getVariable', props.identifier, props.queryParams], ({ signal }) => getVariable(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,35 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ResponsePageVariableResponseDto } from '../schemas/ResponsePageVariableResponseDto';
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 GetVariablesListQueryQueryParams {
8
+ accountIdentifier: string;
9
+ orgIdentifier?: string;
10
+ projectIdentifier?: string;
11
+ searchTerm?: string;
12
+ includeVariablesFromEverySubScope?: boolean;
13
+ /**
14
+ * @format int32
15
+ * @default 0
16
+ */
17
+ pageIndex?: number;
18
+ /**
19
+ * @format int32
20
+ * @default 50
21
+ */
22
+ pageSize?: number;
23
+ sortOrders?: string[];
24
+ pageToken?: string;
25
+ }
26
+ export type GetVariablesListOkResponse = ResponseWithPagination<ResponsePageVariableResponseDto>;
27
+ export type GetVariablesListErrorResponse = Failure | Error;
28
+ export interface GetVariablesListProps extends Omit<FetcherOptions<GetVariablesListQueryQueryParams, unknown>, 'url'> {
29
+ queryParams: GetVariablesListQueryQueryParams;
30
+ }
31
+ export declare function getVariablesList(props: GetVariablesListProps): Promise<GetVariablesListOkResponse>;
32
+ /**
33
+ *
34
+ */
35
+ export declare function useGetVariablesListQuery(props: GetVariablesListProps, options?: Omit<UseQueryOptions<GetVariablesListOkResponse, GetVariablesListErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetVariablesListOkResponse, GetVariablesListErrorResponse>;
@@ -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 getVariablesList(props) {
7
+ return fetcher(Object.assign({ url: `/variables`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useGetVariablesListQuery(props, options) {
13
+ return useQuery(['getVariablesList', props.queryParams], ({ signal }) => getVariablesList(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,22 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseVariableResponseDto } from '../schemas/ResponseVariableResponseDto';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { Error } from '../schemas/Error';
5
+ import type { VariableRequestDtoRequestBody } from '../requestBodies/VariableRequestDtoRequestBody';
6
+ import type { ResponseWithPagination } from '../helpers';
7
+ import { FetcherOptions } from '../../../../fetcher/index.js';
8
+ export interface UpdateVariableMutationQueryParams {
9
+ accountIdentifier: string;
10
+ }
11
+ export type UpdateVariableRequestBody = VariableRequestDtoRequestBody;
12
+ export type UpdateVariableOkResponse = ResponseWithPagination<ResponseVariableResponseDto>;
13
+ export type UpdateVariableErrorResponse = Failure | Error;
14
+ export interface UpdateVariableProps extends Omit<FetcherOptions<UpdateVariableMutationQueryParams, UpdateVariableRequestBody>, 'url'> {
15
+ queryParams: UpdateVariableMutationQueryParams;
16
+ body: UpdateVariableRequestBody;
17
+ }
18
+ export declare function updateVariable(props: UpdateVariableProps): Promise<UpdateVariableOkResponse>;
19
+ /**
20
+ *
21
+ */
22
+ export declare function useUpdateVariableMutation(options?: Omit<UseMutationOptions<UpdateVariableOkResponse, UpdateVariableErrorResponse, UpdateVariableProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateVariableOkResponse, UpdateVariableErrorResponse, UpdateVariableProps, 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 updateVariable(props) {
7
+ return fetcher(Object.assign({ url: `/variables`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useUpdateVariableMutation(options) {
13
+ return useMutation((mutateProps) => updateVariable(mutateProps), options);
14
+ }
@@ -19,10 +19,14 @@ export type { CreateServiceV2ErrorResponse, CreateServiceV2MutationQueryParams,
19
19
  export { createServiceV2, useCreateServiceV2Mutation } from './hooks/useCreateServiceV2Mutation';
20
20
  export type { CreateTokenErrorResponse, CreateTokenMutationQueryParams, CreateTokenOkResponse, CreateTokenProps, CreateTokenRequestBody, } from './hooks/useCreateTokenMutation';
21
21
  export { createToken, useCreateTokenMutation } from './hooks/useCreateTokenMutation';
22
+ export type { CreateVariableErrorResponse, CreateVariableMutationQueryParams, CreateVariableOkResponse, CreateVariableProps, CreateVariableRequestBody, } from './hooks/useCreateVariableMutation';
23
+ export { createVariable, useCreateVariableMutation } from './hooks/useCreateVariableMutation';
22
24
  export type { DeleteApiKeyErrorResponse, DeleteApiKeyMutationPathParams, DeleteApiKeyMutationQueryParams, DeleteApiKeyOkResponse, DeleteApiKeyProps, } from './hooks/useDeleteApiKeyMutation';
23
25
  export { deleteApiKey, useDeleteApiKeyMutation } from './hooks/useDeleteApiKeyMutation';
24
26
  export type { DeleteTokenErrorResponse, DeleteTokenMutationPathParams, DeleteTokenMutationQueryParams, DeleteTokenOkResponse, DeleteTokenProps, } from './hooks/useDeleteTokenMutation';
25
27
  export { deleteToken, useDeleteTokenMutation } from './hooks/useDeleteTokenMutation';
28
+ export type { DeleteVariableErrorResponse, DeleteVariableMutationPathParams, DeleteVariableMutationQueryParams, DeleteVariableOkResponse, DeleteVariableProps, } from './hooks/useDeleteVariableMutation';
29
+ export { deleteVariable, useDeleteVariableMutation } from './hooks/useDeleteVariableMutation';
26
30
  export type { GetAcrRegistriesBySubscriptionErrorResponse, GetAcrRegistriesBySubscriptionOkResponse, GetAcrRegistriesBySubscriptionProps, GetAcrRegistriesBySubscriptionQueryQueryParams, } from './hooks/useGetAcrRegistriesBySubscriptionQuery';
27
31
  export { getAcrRegistriesBySubscription, useGetAcrRegistriesBySubscriptionQuery, } from './hooks/useGetAcrRegistriesBySubscriptionQuery';
28
32
  export type { GetAcrRepositoriesErrorResponse, GetAcrRepositoriesOkResponse, GetAcrRepositoriesProps, GetAcrRepositoriesQueryPathParams, GetAcrRepositoriesQueryQueryParams, } from './hooks/useGetAcrRepositoriesQuery';
@@ -107,12 +111,18 @@ export type { GetLastSuccessfulBuildForEcrErrorResponse, GetLastSuccessfulBuildF
107
111
  export { getLastSuccessfulBuildForEcr, useGetLastSuccessfulBuildForEcrMutation, } from './hooks/useGetLastSuccessfulBuildForEcrMutation';
108
112
  export type { GetLastSuccessfulVersionErrorResponse, GetLastSuccessfulVersionOkResponse, GetLastSuccessfulVersionProps, GetLastSuccessfulVersionQueryQueryParams, } from './hooks/useGetLastSuccessfulVersionQuery';
109
113
  export { getLastSuccessfulVersion, useGetLastSuccessfulVersionQuery, } from './hooks/useGetLastSuccessfulVersionQuery';
114
+ export type { GetListOfAllReposByRefConnectorErrorResponse, GetListOfAllReposByRefConnectorOkResponse, GetListOfAllReposByRefConnectorProps, GetListOfAllReposByRefConnectorQueryQueryParams, } from './hooks/useGetListOfAllReposByRefConnectorQuery';
115
+ export { getListOfAllReposByRefConnector, useGetListOfAllReposByRefConnectorQuery, } from './hooks/useGetListOfAllReposByRefConnectorQuery';
116
+ export type { GetListOfReposByRefConnectorErrorResponse, GetListOfReposByRefConnectorOkResponse, GetListOfReposByRefConnectorProps, GetListOfReposByRefConnectorQueryQueryParams, } from './hooks/useGetListOfReposByRefConnectorQuery';
117
+ export { getListOfReposByRefConnector, useGetListOfReposByRefConnectorQuery, } from './hooks/useGetListOfReposByRefConnectorQuery';
110
118
  export type { GetOrganizationListErrorResponse, GetOrganizationListOkResponse, GetOrganizationListProps, GetOrganizationListQueryQueryParams, } from './hooks/useGetOrganizationListQuery';
111
119
  export { getOrganizationList, useGetOrganizationListQuery, } from './hooks/useGetOrganizationListQuery';
112
120
  export type { GetPackagesForGoogleArtifactRegistryErrorResponse, GetPackagesForGoogleArtifactRegistryOkResponse, GetPackagesForGoogleArtifactRegistryProps, GetPackagesForGoogleArtifactRegistryQueryQueryParams, } from './hooks/useGetPackagesForGoogleArtifactRegistryQuery';
113
121
  export { getPackagesForGoogleArtifactRegistry, useGetPackagesForGoogleArtifactRegistryQuery, } from './hooks/useGetPackagesForGoogleArtifactRegistryQuery';
114
122
  export type { GetPackagesFromGithubErrorResponse, GetPackagesFromGithubOkResponse, GetPackagesFromGithubProps, GetPackagesFromGithubQueryQueryParams, } from './hooks/useGetPackagesFromGithubQuery';
115
123
  export { getPackagesFromGithub, useGetPackagesFromGithubQuery, } from './hooks/useGetPackagesFromGithubQuery';
124
+ export type { GetPaginatedListOfReposByRefConnectorErrorResponse, GetPaginatedListOfReposByRefConnectorOkResponse, GetPaginatedListOfReposByRefConnectorProps, GetPaginatedListOfReposByRefConnectorQueryQueryParams, } from './hooks/useGetPaginatedListOfReposByRefConnectorQuery';
125
+ export { getPaginatedListOfReposByRefConnector, useGetPaginatedListOfReposByRefConnectorQuery, } from './hooks/useGetPaginatedListOfReposByRefConnectorQuery';
116
126
  export type { GetPlansKeyErrorResponse, GetPlansKeyMutationQueryParams, GetPlansKeyOkResponse, GetPlansKeyProps, GetPlansKeyRequestBody, } from './hooks/useGetPlansKeyMutation';
117
127
  export { getPlansKey, useGetPlansKeyMutation } from './hooks/useGetPlansKeyMutation';
118
128
  export type { GetProjectAggregateDtoListErrorResponse, GetProjectAggregateDtoListOkResponse, GetProjectAggregateDtoListProps, GetProjectAggregateDtoListQueryQueryParams, } from './hooks/useGetProjectAggregateDtoListQuery';
@@ -149,6 +159,10 @@ export type { GetUserGroupAggregateListErrorResponse, GetUserGroupAggregateListO
149
159
  export { getUserGroupAggregateList, useGetUserGroupAggregateListQuery, } from './hooks/useGetUserGroupAggregateListQuery';
150
160
  export type { GetV2BucketListForS3ErrorResponse, GetV2BucketListForS3OkResponse, GetV2BucketListForS3Props, GetV2BucketListForS3QueryQueryParams, } from './hooks/useGetV2BucketListForS3Query';
151
161
  export { getV2BucketListForS3, useGetV2BucketListForS3Query, } from './hooks/useGetV2BucketListForS3Query';
162
+ export type { GetVariableErrorResponse, GetVariableOkResponse, GetVariableProps, GetVariableQueryPathParams, GetVariableQueryQueryParams, } from './hooks/useGetVariableQuery';
163
+ export { getVariable, useGetVariableQuery } from './hooks/useGetVariableQuery';
164
+ export type { GetVariablesListErrorResponse, GetVariablesListOkResponse, GetVariablesListProps, GetVariablesListQueryQueryParams, } from './hooks/useGetVariablesListQuery';
165
+ export { getVariablesList, useGetVariablesListQuery } from './hooks/useGetVariablesListQuery';
152
166
  export type { GetVersionsFromPackagesErrorResponse, GetVersionsFromPackagesOkResponse, GetVersionsFromPackagesProps, GetVersionsFromPackagesQueryQueryParams, } from './hooks/useGetVersionsFromPackagesQuery';
153
167
  export { getVersionsFromPackages, useGetVersionsFromPackagesQuery, } from './hooks/useGetVersionsFromPackagesQuery';
154
168
  export type { HelmCmdFlagsErrorResponse, HelmCmdFlagsOkResponse, HelmCmdFlagsProps, HelmCmdFlagsQueryQueryParams, } from './hooks/useHelmCmdFlagsQuery';
@@ -185,6 +199,8 @@ export type { UpdateServiceV2ErrorResponse, UpdateServiceV2MutationQueryParams,
185
199
  export { updateServiceV2, useUpdateServiceV2Mutation } from './hooks/useUpdateServiceV2Mutation';
186
200
  export type { UpdateTokenErrorResponse, UpdateTokenMutationPathParams, UpdateTokenMutationQueryParams, UpdateTokenOkResponse, UpdateTokenProps, UpdateTokenRequestBody, } from './hooks/useUpdateTokenMutation';
187
201
  export { updateToken, useUpdateTokenMutation } from './hooks/useUpdateTokenMutation';
202
+ export type { UpdateVariableErrorResponse, UpdateVariableMutationQueryParams, UpdateVariableOkResponse, UpdateVariableProps, UpdateVariableRequestBody, } from './hooks/useUpdateVariableMutation';
203
+ export { updateVariable, useUpdateVariableMutation } from './hooks/useUpdateVariableMutation';
188
204
  export type { ValidateJiraCredentialsErrorResponse, ValidateJiraCredentialsOkResponse, ValidateJiraCredentialsProps, ValidateJiraCredentialsQueryQueryParams, } from './hooks/useValidateJiraCredentialsQuery';
189
205
  export { useValidateJiraCredentialsQuery, validateJiraCredentials, } from './hooks/useValidateJiraCredentialsQuery';
190
206
  export type { VpcsErrorResponse, VpcsOkResponse, VpcsProps, VpcsQueryQueryParams, } from './hooks/useVpcsQuery';
@@ -200,6 +216,7 @@ export type { ProjectRequestRequestBody } from './requestBodies/ProjectRequestRe
200
216
  export type { ServiceRequestDtoRequestBody } from './requestBodies/ServiceRequestDtoRequestBody';
201
217
  export type { TokenDtoRequestBody } from './requestBodies/TokenDtoRequestBody';
202
218
  export type { UserGroupFilterDtoRequestBody } from './requestBodies/UserGroupFilterDtoRequestBody';
219
+ export type { VariableRequestDtoRequestBody } from './requestBodies/VariableRequestDtoRequestBody';
203
220
  export type { AccessControlCheckError } from './schemas/AccessControlCheckError';
204
221
  export type { AcrBuildDetailsDto } from './schemas/AcrBuildDetailsDto';
205
222
  export type { AcrRegistriesDto } from './schemas/AcrRegistriesDto';
@@ -261,6 +278,8 @@ export type { GarResponseDto } from './schemas/GarResponseDto';
261
278
  export type { GcpProjectDetails } from './schemas/GcpProjectDetails';
262
279
  export type { GcpProjectResponseDto } from './schemas/GcpProjectResponseDto';
263
280
  export type { GcpResponseDto } from './schemas/GcpResponseDto';
281
+ export type { GitListRepositoryResponse } from './schemas/GitListRepositoryResponse';
282
+ export type { GitRepositoryResponseDto } from './schemas/GitRepositoryResponseDto';
264
283
  export type { GithubPackageDto } from './schemas/GithubPackageDto';
265
284
  export type { GithubPackagesResponseDto } from './schemas/GithubPackagesResponseDto';
266
285
  export type { GoogleCloudStorageBucketDetails } from './schemas/GoogleCloudStorageBucketDetails';
@@ -303,6 +322,8 @@ export type { PageServiceDashboardResponseDto } from './schemas/PageServiceDashb
303
322
  export type { PageServiceResponse } from './schemas/PageServiceResponse';
304
323
  export type { PageTokenAggregateDto } from './schemas/PageTokenAggregateDto';
305
324
  export type { PageUserGroupAggregateDto } from './schemas/PageUserGroupAggregateDto';
325
+ export type { PageVariableResponseDto } from './schemas/PageVariableResponseDto';
326
+ export type { PaginationDetails } from './schemas/PaginationDetails';
306
327
  export type { PermissionCheck } from './schemas/PermissionCheck';
307
328
  export type { PgpKeyIdentity } from './schemas/PgpKeyIdentity';
308
329
  export type { Project } from './schemas/Project';
@@ -336,6 +357,7 @@ export type { ResponseGarRepositoryDtoList } from './schemas/ResponseGarReposito
336
357
  export type { ResponseGarResponseDto } from './schemas/ResponseGarResponseDto';
337
358
  export type { ResponseGcpProjectResponseDto } from './schemas/ResponseGcpProjectResponseDto';
338
359
  export type { ResponseGcpResponseDto } from './schemas/ResponseGcpResponseDto';
360
+ export type { ResponseGitListRepositoryResponse } from './schemas/ResponseGitListRepositoryResponse';
339
361
  export type { ResponseGithubPackagesResponseDto } from './schemas/ResponseGithubPackagesResponseDto';
340
362
  export type { ResponseGoogleCloudStorageBucketsResponseDto } from './schemas/ResponseGoogleCloudStorageBucketsResponseDto';
341
363
  export type { ResponseHelmChartResponseDto } from './schemas/ResponseHelmChartResponseDto';
@@ -352,6 +374,7 @@ export type { ResponseListAzureDevopsProject } from './schemas/ResponseListAzure
352
374
  export type { ResponseListBucketResponse } from './schemas/ResponseListBucketResponse';
353
375
  export type { ResponseListBuildDetails } from './schemas/ResponseListBuildDetails';
354
376
  export type { ResponseListFilePaths } from './schemas/ResponseListFilePaths';
377
+ export type { ResponseListGitRepositoryResponseDto } from './schemas/ResponseListGitRepositoryResponseDto';
355
378
  export type { ResponseListJiraIssueTransitionNg } from './schemas/ResponseListJiraIssueTransitionNg';
356
379
  export type { ResponseListJiraProjectBasicNg } from './schemas/ResponseListJiraProjectBasicNg';
357
380
  export type { ResponseListJiraStatusNg } from './schemas/ResponseListJiraStatusNg';
@@ -361,6 +384,7 @@ export type { ResponseListRegionGar } from './schemas/ResponseListRegionGar';
361
384
  export type { ResponseListScopeName } from './schemas/ResponseListScopeName';
362
385
  export type { ResponseListServiceDefinitionType } from './schemas/ResponseListServiceDefinitionType';
363
386
  export type { ResponseListString } from './schemas/ResponseListString';
387
+ export type { ResponseListUserRepoResponse } from './schemas/ResponseListUserRepoResponse';
364
388
  export type { ResponseMapStringString } from './schemas/ResponseMapStringString';
365
389
  export type { ResponseMessage } from './schemas/ResponseMessage';
366
390
  export type { ResponseNexusResponseDto } from './schemas/ResponseNexusResponseDto';
@@ -374,6 +398,7 @@ export type { ResponsePageServiceDashboardResponseDto } from './schemas/Response
374
398
  export type { ResponsePageServiceResponse } from './schemas/ResponsePageServiceResponse';
375
399
  export type { ResponsePageTokenAggregateDto } from './schemas/ResponsePageTokenAggregateDto';
376
400
  export type { ResponsePageUserGroupAggregateDto } from './schemas/ResponsePageUserGroupAggregateDto';
401
+ export type { ResponsePageVariableResponseDto } from './schemas/ResponsePageVariableResponseDto';
377
402
  export type { ResponseProjectResponse } from './schemas/ResponseProjectResponse';
378
403
  export type { ResponseServiceResponse } from './schemas/ResponseServiceResponse';
379
404
  export type { ResponseServicesV2YamlMetadataDto } from './schemas/ResponseServicesV2YamlMetadataDto';
@@ -382,6 +407,7 @@ export type { ResponseSetString } from './schemas/ResponseSetString';
382
407
  export type { ResponseString } from './schemas/ResponseString';
383
408
  export type { ResponseTokenDto } from './schemas/ResponseTokenDto';
384
409
  export type { ResponseUserGroupDto } from './schemas/ResponseUserGroupDto';
410
+ export type { ResponseVariableResponseDto } from './schemas/ResponseVariableResponseDto';
385
411
  export type { RoleAssignmentMetadataDto } from './schemas/RoleAssignmentMetadataDto';
386
412
  export type { ScopeName } from './schemas/ScopeName';
387
413
  export type { ScopeSelector } from './schemas/ScopeSelector';
@@ -402,4 +428,9 @@ export type { UserGroupAggregateFilter } from './schemas/UserGroupAggregateFilte
402
428
  export type { UserGroupDto } from './schemas/UserGroupDto';
403
429
  export type { UserGroupFilterDto } from './schemas/UserGroupFilterDto';
404
430
  export type { UserMetadataDto } from './schemas/UserMetadataDto';
431
+ export type { UserRepoResponse } from './schemas/UserRepoResponse';
405
432
  export type { ValidationError } from './schemas/ValidationError';
433
+ export type { VariableConfigDto } from './schemas/VariableConfigDto';
434
+ export type { VariableDto } from './schemas/VariableDto';
435
+ export type { VariableRequestDto } from './schemas/VariableRequestDto';
436
+ export type { VariableResponseDto } from './schemas/VariableResponseDto';
@@ -8,8 +8,10 @@ export { createApiKey, useCreateApiKeyMutation } from './hooks/useCreateApiKeyMu
8
8
  export { createJiraIssue, useCreateJiraIssueMutation } from './hooks/useCreateJiraIssueMutation';
9
9
  export { createServiceV2, useCreateServiceV2Mutation } from './hooks/useCreateServiceV2Mutation';
10
10
  export { createToken, useCreateTokenMutation } from './hooks/useCreateTokenMutation';
11
+ export { createVariable, useCreateVariableMutation } from './hooks/useCreateVariableMutation';
11
12
  export { deleteApiKey, useDeleteApiKeyMutation } from './hooks/useDeleteApiKeyMutation';
12
13
  export { deleteToken, useDeleteTokenMutation } from './hooks/useDeleteTokenMutation';
14
+ export { deleteVariable, useDeleteVariableMutation } from './hooks/useDeleteVariableMutation';
13
15
  export { getAcrRegistriesBySubscription, useGetAcrRegistriesBySubscriptionQuery, } from './hooks/useGetAcrRegistriesBySubscriptionQuery';
14
16
  export { getAcrRepositories, useGetAcrRepositoriesQuery } from './hooks/useGetAcrRepositoriesQuery';
15
17
  export { getArtifactPathForJenkins, useGetArtifactPathForJenkinsQuery, } from './hooks/useGetArtifactPathForJenkinsQuery';
@@ -52,9 +54,12 @@ export { getJobDetailsForJenkins, useGetJobDetailsForJenkinsQuery, } from './hoo
52
54
  export { getLastSuccessfulBuildForDocker, useGetLastSuccessfulBuildForDockerMutation, } from './hooks/useGetLastSuccessfulBuildForDockerMutation';
53
55
  export { getLastSuccessfulBuildForEcr, useGetLastSuccessfulBuildForEcrMutation, } from './hooks/useGetLastSuccessfulBuildForEcrMutation';
54
56
  export { getLastSuccessfulVersion, useGetLastSuccessfulVersionQuery, } from './hooks/useGetLastSuccessfulVersionQuery';
57
+ export { getListOfAllReposByRefConnector, useGetListOfAllReposByRefConnectorQuery, } from './hooks/useGetListOfAllReposByRefConnectorQuery';
58
+ export { getListOfReposByRefConnector, useGetListOfReposByRefConnectorQuery, } from './hooks/useGetListOfReposByRefConnectorQuery';
55
59
  export { getOrganizationList, useGetOrganizationListQuery, } from './hooks/useGetOrganizationListQuery';
56
60
  export { getPackagesForGoogleArtifactRegistry, useGetPackagesForGoogleArtifactRegistryQuery, } from './hooks/useGetPackagesForGoogleArtifactRegistryQuery';
57
61
  export { getPackagesFromGithub, useGetPackagesFromGithubQuery, } from './hooks/useGetPackagesFromGithubQuery';
62
+ export { getPaginatedListOfReposByRefConnector, useGetPaginatedListOfReposByRefConnectorQuery, } from './hooks/useGetPaginatedListOfReposByRefConnectorQuery';
58
63
  export { getPlansKey, useGetPlansKeyMutation } from './hooks/useGetPlansKeyMutation';
59
64
  export { getProjectAggregateDtoList, useGetProjectAggregateDtoListQuery, } from './hooks/useGetProjectAggregateDtoListQuery';
60
65
  export { getProjectList, useGetProjectListQuery } from './hooks/useGetProjectListQuery';
@@ -73,6 +78,8 @@ export { getToken, useGetTokenQuery } from './hooks/useGetTokenQuery';
73
78
  export { getUserGroupAggregateListByUser, useGetUserGroupAggregateListByUserMutation, } from './hooks/useGetUserGroupAggregateListByUserMutation';
74
79
  export { getUserGroupAggregateList, useGetUserGroupAggregateListQuery, } from './hooks/useGetUserGroupAggregateListQuery';
75
80
  export { getV2BucketListForS3, useGetV2BucketListForS3Query, } from './hooks/useGetV2BucketListForS3Query';
81
+ export { getVariable, useGetVariableQuery } from './hooks/useGetVariableQuery';
82
+ export { getVariablesList, useGetVariablesListQuery } from './hooks/useGetVariablesListQuery';
76
83
  export { getVersionsFromPackages, useGetVersionsFromPackagesQuery, } from './hooks/useGetVersionsFromPackagesQuery';
77
84
  export { helmCmdFlags, useHelmCmdFlagsQuery } from './hooks/useHelmCmdFlagsQuery';
78
85
  export { jiraUserSearch, useJiraUserSearchQuery } from './hooks/useJiraUserSearchQuery';
@@ -91,5 +98,6 @@ export { tags, useTagsQuery } from './hooks/useTagsQuery';
91
98
  export { updateApiKey, useUpdateApiKeyMutation } from './hooks/useUpdateApiKeyMutation';
92
99
  export { updateServiceV2, useUpdateServiceV2Mutation } from './hooks/useUpdateServiceV2Mutation';
93
100
  export { updateToken, useUpdateTokenMutation } from './hooks/useUpdateTokenMutation';
101
+ export { updateVariable, useUpdateVariableMutation } from './hooks/useUpdateVariableMutation';
94
102
  export { useValidateJiraCredentialsQuery, validateJiraCredentials, } from './hooks/useValidateJiraCredentialsQuery';
95
103
  export { useVpcsQuery, vpcs } from './hooks/useVpcsQuery';
@@ -0,0 +1,2 @@
1
+ import type { VariableRequestDto } from '../schemas/VariableRequestDto';
2
+ export type VariableRequestDtoRequestBody = VariableRequestDto;
@@ -0,0 +1,6 @@
1
+ import type { GitRepositoryResponseDto } from '../schemas/GitRepositoryResponseDto';
2
+ import type { PaginationDetails } from '../schemas/PaginationDetails';
3
+ export interface GitListRepositoryResponse {
4
+ gitRepositoryResponseList?: GitRepositoryResponseDto[];
5
+ paginationDetails?: PaginationDetails;
6
+ }
@@ -0,0 +1,3 @@
1
+ export interface GitRepositoryResponseDto {
2
+ name?: string;
3
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,26 @@
1
+ import type { VariableResponseDto } from '../schemas/VariableResponseDto';
2
+ export interface PageVariableResponseDto {
3
+ content?: VariableResponseDto[];
4
+ empty?: boolean;
5
+ /**
6
+ * @format int64
7
+ */
8
+ pageIndex?: number;
9
+ /**
10
+ * @format int64
11
+ */
12
+ pageItemCount?: number;
13
+ /**
14
+ * @format int64
15
+ */
16
+ pageSize?: number;
17
+ pageToken?: string;
18
+ /**
19
+ * @format int64
20
+ */
21
+ totalItems?: number;
22
+ /**
23
+ * @format int64
24
+ */
25
+ totalPages?: number;
26
+ }
@@ -0,0 +1,7 @@
1
+ export interface PaginationDetails {
2
+ /**
3
+ * @format int32
4
+ */
5
+ nextPage?: number;
6
+ nextPageUrl?: string;
7
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { GitListRepositoryResponse } from '../schemas/GitListRepositoryResponse';
2
+ export interface ResponseGitListRepositoryResponse {
3
+ correlationId?: string;
4
+ data?: GitListRepositoryResponse;
5
+ metaData?: {
6
+ [key: string]: any;
7
+ };
8
+ status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
9
+ }
@@ -0,0 +1,9 @@
1
+ import type { GitRepositoryResponseDto } from '../schemas/GitRepositoryResponseDto';
2
+ export interface ResponseListGitRepositoryResponseDto {
3
+ correlationId?: string;
4
+ data?: GitRepositoryResponseDto[];
5
+ metaData?: {
6
+ [key: string]: any;
7
+ };
8
+ status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
9
+ }
@@ -0,0 +1,9 @@
1
+ import type { UserRepoResponse } from '../schemas/UserRepoResponse';
2
+ export interface ResponseListUserRepoResponse {
3
+ correlationId?: string;
4
+ data?: UserRepoResponse[];
5
+ metaData?: {
6
+ [key: string]: any;
7
+ };
8
+ status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
9
+ }
@@ -0,0 +1,9 @@
1
+ import type { PageVariableResponseDto } from '../schemas/PageVariableResponseDto';
2
+ export interface ResponsePageVariableResponseDto {
3
+ correlationId?: string;
4
+ data?: PageVariableResponseDto;
5
+ metaData?: {
6
+ [key: string]: any;
7
+ };
8
+ status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
9
+ }
@@ -0,0 +1,9 @@
1
+ import type { VariableResponseDto } from '../schemas/VariableResponseDto';
2
+ export interface ResponseVariableResponseDto {
3
+ correlationId?: string;
4
+ data?: VariableResponseDto;
5
+ metaData?: {
6
+ [key: string]: any;
7
+ };
8
+ status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
9
+ }
@@ -0,0 +1,4 @@
1
+ export interface UserRepoResponse {
2
+ name?: string;
3
+ namespace?: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface VariableConfigDto {
2
+ value?: {
3
+ [key: string]: any;
4
+ };
5
+ valueType: 'FIXED' | 'FIXED_SET' | 'REGEX';
6
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,14 @@
1
+ import type { GovernanceMetadata } from '../schemas/GovernanceMetadata';
2
+ import type { VariableConfigDto } from '../schemas/VariableConfigDto';
3
+ export interface VariableDto {
4
+ description?: string;
5
+ governanceMetadata?: GovernanceMetadata;
6
+ identifier: string;
7
+ name: string;
8
+ orgIdentifier?: string;
9
+ parentUniqueId?: string;
10
+ projectIdentifier?: string;
11
+ spec: VariableConfigDto;
12
+ type: 'String';
13
+ uniqueId?: string;
14
+ }
@@ -0,0 +1,4 @@
1
+ import type { VariableDto } from '../schemas/VariableDto';
2
+ export interface VariableRequestDto {
3
+ variable?: VariableDto;
4
+ }
@@ -0,0 +1,12 @@
1
+ import type { VariableDto } from '../schemas/VariableDto';
2
+ export interface VariableResponseDto {
3
+ /**
4
+ * @format int64
5
+ */
6
+ createdAt?: number;
7
+ /**
8
+ * @format int64
9
+ */
10
+ lastModifiedAt?: number;
11
+ variable: VariableDto;
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ng-manager-swagger-service-client",
3
- "version": "1.13.0",
3
+ "version": "1.15.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",