@harnessio/react-ng-manager-swagger-service-client 1.6.0 → 1.6.2

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 (30) hide show
  1. package/dist/fetcher/index.js +1 -1
  2. package/dist/ng-manager-swagger-service/src/services/hooks/useCreateServiceV2Mutation.d.ts +33 -0
  3. package/dist/ng-manager-swagger-service/src/services/hooks/useCreateServiceV2Mutation.js +14 -0
  4. package/dist/ng-manager-swagger-service/src/services/hooks/useGetImagePathsForArtifactoryQuery.d.ts +29 -0
  5. package/dist/ng-manager-swagger-service/src/services/hooks/useGetImagePathsForArtifactoryQuery.js +14 -0
  6. package/dist/ng-manager-swagger-service/src/services/hooks/useGetServiceListQuery.d.ts +42 -0
  7. package/dist/ng-manager-swagger-service/src/services/hooks/useGetServiceListQuery.js +14 -0
  8. package/dist/ng-manager-swagger-service/src/services/hooks/useUpdateServiceV2Mutation.d.ts +38 -0
  9. package/dist/ng-manager-swagger-service/src/services/hooks/useUpdateServiceV2Mutation.js +14 -0
  10. package/dist/ng-manager-swagger-service/src/services/index.d.ts +17 -0
  11. package/dist/ng-manager-swagger-service/src/services/index.js +4 -0
  12. package/dist/ng-manager-swagger-service/src/services/requestBodies/ServiceRequestDtoRequestBody.d.ts +2 -0
  13. package/dist/ng-manager-swagger-service/src/services/requestBodies/ServiceRequestDtoRequestBody.js +1 -0
  14. package/dist/ng-manager-swagger-service/src/services/schemas/ArtifactoryImagePath.d.ts +3 -0
  15. package/dist/ng-manager-swagger-service/src/services/schemas/ArtifactoryImagePath.js +4 -0
  16. package/dist/ng-manager-swagger-service/src/services/schemas/ArtifactoryImagePathsDto.d.ts +4 -0
  17. package/dist/ng-manager-swagger-service/src/services/schemas/ArtifactoryImagePathsDto.js +1 -0
  18. package/dist/ng-manager-swagger-service/src/services/schemas/PageServiceResponse.d.ts +26 -0
  19. package/dist/ng-manager-swagger-service/src/services/schemas/PageServiceResponse.js +1 -0
  20. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseArtifactoryImagePathsDto.d.ts +9 -0
  21. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseArtifactoryImagePathsDto.js +1 -0
  22. package/dist/ng-manager-swagger-service/src/services/schemas/ResponsePageServiceResponse.d.ts +9 -0
  23. package/dist/ng-manager-swagger-service/src/services/schemas/ResponsePageServiceResponse.js +1 -0
  24. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseServiceResponse.d.ts +9 -0
  25. package/dist/ng-manager-swagger-service/src/services/schemas/ResponseServiceResponse.js +1 -0
  26. package/dist/ng-manager-swagger-service/src/services/schemas/ServiceRequestDto.d.ts +11 -0
  27. package/dist/ng-manager-swagger-service/src/services/schemas/ServiceRequestDto.js +4 -0
  28. package/dist/ng-manager-swagger-service/src/services/schemas/ServiceResponse.d.ts +16 -0
  29. package/dist/ng-manager-swagger-service/src/services/schemas/ServiceResponse.js +1 -0
  30. package/package.json +1 -1
@@ -30,7 +30,7 @@ export function fetcher(options) {
30
30
  if (fetcherCallbacks === null || fetcherCallbacks === void 0 ? void 0 : fetcherCallbacks.urlInterceptor) {
31
31
  finalUrl = (_a = fetcherCallbacks === null || fetcherCallbacks === void 0 ? void 0 : fetcherCallbacks.urlInterceptor) === null || _a === void 0 ? void 0 : _a.call(fetcherCallbacks, finalUrl);
32
32
  }
33
- let request = new Request(finalUrl, Object.assign({ headers: Object.assign(Object.assign({ Authorization: `Bearer ${token}` }, headers), customHeaders), body: body ? JSON.stringify(body) : undefined }, rest));
33
+ let request = new Request(finalUrl, Object.assign({ headers: Object.assign(Object.assign(Object.assign({}, (token ? { Authorization: `Bearer ${token}` } : {})), headers), customHeaders), body: body ? JSON.stringify(body) : undefined }, rest));
34
34
  if (fetcherCallbacks === null || fetcherCallbacks === void 0 ? void 0 : fetcherCallbacks.requestInterceptor) {
35
35
  request = fetcherCallbacks.requestInterceptor(request.clone());
36
36
  }
@@ -0,0 +1,33 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseServiceResponse } from '../schemas/ResponseServiceResponse';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { Error } from '../schemas/Error';
5
+ import type { ServiceRequestDtoRequestBody } from '../requestBodies/ServiceRequestDtoRequestBody';
6
+ import type { ResponseWithPagination } from '../helpers';
7
+ import { FetcherOptions } from '../../../../fetcher/index.js';
8
+ export interface CreateServiceV2MutationQueryParams {
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 CreateServiceV2RequestBody = ServiceRequestDtoRequestBody;
23
+ export type CreateServiceV2OkResponse = ResponseWithPagination<ResponseServiceResponse>;
24
+ export type CreateServiceV2ErrorResponse = Failure | Error;
25
+ export interface CreateServiceV2Props extends Omit<FetcherOptions<CreateServiceV2MutationQueryParams, CreateServiceV2RequestBody>, 'url'> {
26
+ queryParams: CreateServiceV2MutationQueryParams;
27
+ body: CreateServiceV2RequestBody;
28
+ }
29
+ export declare function createServiceV2(props: CreateServiceV2Props): Promise<CreateServiceV2OkResponse>;
30
+ /**
31
+ *
32
+ */
33
+ export declare function useCreateServiceV2Mutation(options?: Omit<UseMutationOptions<CreateServiceV2OkResponse, CreateServiceV2ErrorResponse, CreateServiceV2Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateServiceV2OkResponse, CreateServiceV2ErrorResponse, CreateServiceV2Props, 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 createServiceV2(props) {
7
+ return fetcher(Object.assign({ url: `/servicesV2`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useCreateServiceV2Mutation(options) {
13
+ return useMutation((mutateProps) => createServiceV2(mutateProps), options);
14
+ }
@@ -0,0 +1,29 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ResponseArtifactoryImagePathsDto } from '../schemas/ResponseArtifactoryImagePathsDto';
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 GetImagePathsForArtifactoryQueryQueryParams {
8
+ connectorRef?: string;
9
+ /**
10
+ * @default "any"
11
+ */
12
+ repositoryType?: string;
13
+ accountIdentifier: string;
14
+ orgIdentifier?: string;
15
+ projectIdentifier?: string;
16
+ repository: string;
17
+ fqnPath?: string;
18
+ serviceId?: string;
19
+ }
20
+ export type GetImagePathsForArtifactoryOkResponse = ResponseWithPagination<ResponseArtifactoryImagePathsDto>;
21
+ export type GetImagePathsForArtifactoryErrorResponse = Failure | Error;
22
+ export interface GetImagePathsForArtifactoryProps extends Omit<FetcherOptions<GetImagePathsForArtifactoryQueryQueryParams, unknown>, 'url'> {
23
+ queryParams: GetImagePathsForArtifactoryQueryQueryParams;
24
+ }
25
+ export declare function getImagePathsForArtifactory(props: GetImagePathsForArtifactoryProps): Promise<GetImagePathsForArtifactoryOkResponse>;
26
+ /**
27
+ *
28
+ */
29
+ export declare function useGetImagePathsForArtifactoryQuery(props: GetImagePathsForArtifactoryProps, options?: Omit<UseQueryOptions<GetImagePathsForArtifactoryOkResponse, GetImagePathsForArtifactoryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetImagePathsForArtifactoryOkResponse, GetImagePathsForArtifactoryErrorResponse>;
@@ -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 getImagePathsForArtifactory(props) {
7
+ return fetcher(Object.assign({ url: `/artifacts/artifactory/imagePaths`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useGetImagePathsForArtifactoryQuery(props, options) {
13
+ return useQuery(['getImagePathsForArtifactory', props.queryParams], ({ signal }) => getImagePathsForArtifactory(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,42 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ResponsePageServiceResponse } from '../schemas/ResponsePageServiceResponse';
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 GetServiceListQueryQueryParams {
8
+ /**
9
+ * @format int32
10
+ * @default 0
11
+ */
12
+ page?: number;
13
+ /**
14
+ * @format int32
15
+ * @default 100
16
+ */
17
+ size?: number;
18
+ accountIdentifier: string;
19
+ orgIdentifier?: string;
20
+ projectIdentifier?: string;
21
+ searchTerm?: string;
22
+ serviceIdentifiers?: string[];
23
+ sort?: string[];
24
+ type?: 'AWS_SAM' | 'Asg' | 'AwsLambda' | 'AzureFunction' | 'AzureWebApp' | 'CustomDeployment' | 'ECS' | 'Elastigroup' | 'GoogleCloudFunctions' | 'GoogleCloudRun' | 'Kubernetes' | 'NativeHelm' | 'SERVICE_YAML_V1_TYPE' | 'Salesforce' | 'ServerlessAwsLambda' | 'Ssh' | 'TAS' | 'WinRm';
25
+ gitOpsEnabled?: boolean;
26
+ deploymentTemplateIdentifier?: string;
27
+ versionLabel?: string;
28
+ includeAllServicesAccessibleAtScope?: boolean;
29
+ includeVersionInfo?: boolean;
30
+ repoName?: string;
31
+ editOnlyRBACPermission?: boolean;
32
+ }
33
+ export type GetServiceListOkResponse = ResponseWithPagination<ResponsePageServiceResponse>;
34
+ export type GetServiceListErrorResponse = Failure | Error;
35
+ export interface GetServiceListProps extends Omit<FetcherOptions<GetServiceListQueryQueryParams, unknown>, 'url'> {
36
+ queryParams: GetServiceListQueryQueryParams;
37
+ }
38
+ export declare function getServiceList(props: GetServiceListProps): Promise<GetServiceListOkResponse>;
39
+ /**
40
+ *
41
+ */
42
+ export declare function useGetServiceListQuery(props: GetServiceListProps, options?: Omit<UseQueryOptions<GetServiceListOkResponse, GetServiceListErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetServiceListOkResponse, GetServiceListErrorResponse>;
@@ -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 getServiceList(props) {
7
+ return fetcher(Object.assign({ url: `/servicesV2`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useGetServiceListQuery(props, options) {
13
+ return useQuery(['getServiceList', props.queryParams], ({ signal }) => getServiceList(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,38 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseServiceResponse } from '../schemas/ResponseServiceResponse';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { Error } from '../schemas/Error';
5
+ import type { ServiceRequestDtoRequestBody } from '../requestBodies/ServiceRequestDtoRequestBody';
6
+ import type { ResponseWithPagination } from '../helpers';
7
+ import { FetcherOptions } from '../../../../fetcher/index.js';
8
+ export interface UpdateServiceV2MutationQueryParams {
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 interface UpdateServiceV2MutationHeaderParams {
25
+ 'If-Match'?: string;
26
+ }
27
+ export type UpdateServiceV2RequestBody = ServiceRequestDtoRequestBody;
28
+ export type UpdateServiceV2OkResponse = ResponseWithPagination<ResponseServiceResponse>;
29
+ export type UpdateServiceV2ErrorResponse = Failure | Error;
30
+ export interface UpdateServiceV2Props extends Omit<FetcherOptions<UpdateServiceV2MutationQueryParams, UpdateServiceV2RequestBody, UpdateServiceV2MutationHeaderParams>, 'url'> {
31
+ queryParams: UpdateServiceV2MutationQueryParams;
32
+ body: UpdateServiceV2RequestBody;
33
+ }
34
+ export declare function updateServiceV2(props: UpdateServiceV2Props): Promise<UpdateServiceV2OkResponse>;
35
+ /**
36
+ *
37
+ */
38
+ export declare function useUpdateServiceV2Mutation(options?: Omit<UseMutationOptions<UpdateServiceV2OkResponse, UpdateServiceV2ErrorResponse, UpdateServiceV2Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateServiceV2OkResponse, UpdateServiceV2ErrorResponse, UpdateServiceV2Props, 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 updateServiceV2(props) {
7
+ return fetcher(Object.assign({ url: `/servicesV2`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useUpdateServiceV2Mutation(options) {
13
+ return useMutation((mutateProps) => updateServiceV2(mutateProps), options);
14
+ }
@@ -5,6 +5,8 @@ export type { ArtifactIdsErrorResponse, ArtifactIdsMutationQueryParams, Artifact
5
5
  export { artifactIds, useArtifactIdsMutation } from './hooks/useArtifactIdsMutation';
6
6
  export type { CreateJiraIssueErrorResponse, CreateJiraIssueMutationQueryParams, CreateJiraIssueOkResponse, CreateJiraIssueProps, CreateJiraIssueRequestBody, } from './hooks/useCreateJiraIssueMutation';
7
7
  export { createJiraIssue, useCreateJiraIssueMutation } from './hooks/useCreateJiraIssueMutation';
8
+ export type { CreateServiceV2ErrorResponse, CreateServiceV2MutationQueryParams, CreateServiceV2OkResponse, CreateServiceV2Props, CreateServiceV2RequestBody, } from './hooks/useCreateServiceV2Mutation';
9
+ export { createServiceV2, useCreateServiceV2Mutation } from './hooks/useCreateServiceV2Mutation';
8
10
  export type { GetAcrRegistriesBySubscriptionErrorResponse, GetAcrRegistriesBySubscriptionOkResponse, GetAcrRegistriesBySubscriptionProps, GetAcrRegistriesBySubscriptionQueryQueryParams, } from './hooks/useGetAcrRegistriesBySubscriptionQuery';
9
11
  export { getAcrRegistriesBySubscription, useGetAcrRegistriesBySubscriptionQuery, } from './hooks/useGetAcrRegistriesBySubscriptionQuery';
10
12
  export type { GetAcrRepositoriesErrorResponse, GetAcrRepositoriesOkResponse, GetAcrRepositoriesProps, GetAcrRepositoriesQueryPathParams, GetAcrRepositoriesQueryQueryParams, } from './hooks/useGetAcrRepositoriesQuery';
@@ -33,6 +35,8 @@ export type { GetGcsBucketsErrorResponse, GetGcsBucketsMutationQueryParams, GetG
33
35
  export { getGcsBuckets, useGetGcsBucketsMutation } from './hooks/useGetGcsBucketsMutation';
34
36
  export type { GetGroupIdsErrorResponse, GetGroupIdsMutationQueryParams, GetGroupIdsOkResponse, GetGroupIdsProps, GetGroupIdsRequestBody, } from './hooks/useGetGroupIdsMutation';
35
37
  export { getGroupIds, useGetGroupIdsMutation } from './hooks/useGetGroupIdsMutation';
38
+ export type { GetImagePathsForArtifactoryErrorResponse, GetImagePathsForArtifactoryOkResponse, GetImagePathsForArtifactoryProps, GetImagePathsForArtifactoryQueryQueryParams, } from './hooks/useGetImagePathsForArtifactoryQuery';
39
+ export { getImagePathsForArtifactory, useGetImagePathsForArtifactoryQuery, } from './hooks/useGetImagePathsForArtifactoryQuery';
36
40
  export type { GetImagesListForEcrErrorResponse, GetImagesListForEcrMutationQueryParams, GetImagesListForEcrOkResponse, GetImagesListForEcrProps, GetImagesListForEcrRequestBody, } from './hooks/useGetImagesListForEcrMutation';
37
41
  export { getImagesListForEcr, useGetImagesListForEcrMutation, } from './hooks/useGetImagesListForEcrMutation';
38
42
  export type { GetIssueTransitionsErrorResponse, GetIssueTransitionsOkResponse, GetIssueTransitionsProps, GetIssueTransitionsQueryQueryParams, } from './hooks/useGetIssueTransitionsQuery';
@@ -75,6 +79,8 @@ export type { GetRepositoriesErrorResponse, GetRepositoriesMutationQueryParams,
75
79
  export { getRepositories, useGetRepositoriesMutation } from './hooks/useGetRepositoriesMutation';
76
80
  export type { GetServiceDefinitionTypesErrorResponse, GetServiceDefinitionTypesOkResponse, GetServiceDefinitionTypesProps, GetServiceDefinitionTypesQueryQueryParams, } from './hooks/useGetServiceDefinitionTypesQuery';
77
81
  export { getServiceDefinitionTypes, useGetServiceDefinitionTypesQuery, } from './hooks/useGetServiceDefinitionTypesQuery';
82
+ export type { GetServiceListErrorResponse, GetServiceListOkResponse, GetServiceListProps, GetServiceListQueryQueryParams, } from './hooks/useGetServiceListQuery';
83
+ export { getServiceList, useGetServiceListQuery } from './hooks/useGetServiceListQuery';
78
84
  export type { GetServicesListErrorResponse, GetServicesListOkResponse, GetServicesListProps, GetServicesListQueryQueryParams, } from './hooks/useGetServicesListQuery';
79
85
  export { getServicesList, useGetServicesListQuery } from './hooks/useGetServicesListQuery';
80
86
  export type { GetV2BucketListForS3ErrorResponse, GetV2BucketListForS3OkResponse, GetV2BucketListForS3Props, GetV2BucketListForS3QueryQueryParams, } from './hooks/useGetV2BucketListForS3Query';
@@ -91,11 +97,14 @@ export type { ListProjectsForAzureArtifactsErrorResponse, ListProjectsForAzureAr
91
97
  export { listProjectsForAzureArtifacts, useListProjectsForAzureArtifactsQuery, } from './hooks/useListProjectsForAzureArtifactsQuery';
92
98
  export type { ListTagsForAmiArtifactErrorResponse, ListTagsForAmiArtifactMutationQueryParams, ListTagsForAmiArtifactOkResponse, ListTagsForAmiArtifactProps, ListTagsForAmiArtifactRequestBody, } from './hooks/useListTagsForAmiArtifactMutation';
93
99
  export { listTagsForAmiArtifact, useListTagsForAmiArtifactMutation, } from './hooks/useListTagsForAmiArtifactMutation';
100
+ export type { UpdateServiceV2ErrorResponse, UpdateServiceV2MutationQueryParams, UpdateServiceV2OkResponse, UpdateServiceV2Props, UpdateServiceV2RequestBody, } from './hooks/useUpdateServiceV2Mutation';
101
+ export { updateServiceV2, useUpdateServiceV2Mutation } from './hooks/useUpdateServiceV2Mutation';
94
102
  export type { ValidateJiraCredentialsErrorResponse, ValidateJiraCredentialsOkResponse, ValidateJiraCredentialsProps, ValidateJiraCredentialsQueryQueryParams, } from './hooks/useValidateJiraCredentialsQuery';
95
103
  export { useValidateJiraCredentialsQuery, validateJiraCredentials, } from './hooks/useValidateJiraCredentialsQuery';
96
104
  export type { EnvironmentFilterPropertiesRequestBody } from './requestBodies/EnvironmentFilterPropertiesRequestBody';
97
105
  export type { GetFileContentUsingScopedFilePathV2BodyRequestBody } from './requestBodies/GetFileContentUsingScopedFilePathV2BodyRequestBody';
98
106
  export type { ListTagsForAmiArtifactBodyRequestBody } from './requestBodies/ListTagsForAmiArtifactBodyRequestBody';
107
+ export type { ServiceRequestDtoRequestBody } from './requestBodies/ServiceRequestDtoRequestBody';
99
108
  export type { AcrBuildDetailsDto } from './schemas/AcrBuildDetailsDto';
100
109
  export type { AcrRegistriesDto } from './schemas/AcrRegistriesDto';
101
110
  export type { AcrRegistryDto } from './schemas/AcrRegistryDto';
@@ -104,6 +113,8 @@ export type { AcrRepositoryDto } from './schemas/AcrRepositoryDto';
104
113
  export type { AcrResponseDto } from './schemas/AcrResponseDto';
105
114
  export type { AmiTagObject } from './schemas/AmiTagObject';
106
115
  export type { ArtifactFileMetadata } from './schemas/ArtifactFileMetadata';
116
+ export type { ArtifactoryImagePath } from './schemas/ArtifactoryImagePath';
117
+ export type { ArtifactoryImagePathsDto } from './schemas/ArtifactoryImagePathsDto';
107
118
  export type { ArtifactoryRepoDetailsDto } from './schemas/ArtifactoryRepoDetailsDto';
108
119
  export type { AzureArtifactsFeed } from './schemas/AzureArtifactsFeed';
109
120
  export type { AzureArtifactsPackage } from './schemas/AzureArtifactsPackage';
@@ -163,6 +174,7 @@ export type { Organization } from './schemas/Organization';
163
174
  export type { PageEnvironmentResponse } from './schemas/PageEnvironmentResponse';
164
175
  export type { PageProjectAggregateDto } from './schemas/PageProjectAggregateDto';
165
176
  export type { PageServiceDashboardResponseDto } from './schemas/PageServiceDashboardResponseDto';
177
+ export type { PageServiceResponse } from './schemas/PageServiceResponse';
166
178
  export type { Project } from './schemas/Project';
167
179
  export type { ProjectAggregateDto } from './schemas/ProjectAggregateDto';
168
180
  export type { ProjectResponse } from './schemas/ProjectResponse';
@@ -170,6 +182,7 @@ export type { RegionGar } from './schemas/RegionGar';
170
182
  export type { ResponseAcrRegistriesDto } from './schemas/ResponseAcrRegistriesDto';
171
183
  export type { ResponseAcrRepositoriesDto } from './schemas/ResponseAcrRepositoriesDto';
172
184
  export type { ResponseAcrResponseDto } from './schemas/ResponseAcrResponseDto';
185
+ export type { ResponseArtifactoryImagePathsDto } from './schemas/ResponseArtifactoryImagePathsDto';
173
186
  export type { ResponseArtifactoryRepoDetailsDto } from './schemas/ResponseArtifactoryRepoDetailsDto';
174
187
  export type { ResponseAzureSubscriptionsDto } from './schemas/ResponseAzureSubscriptionsDto';
175
188
  export type { ResponseBambooPlanKeysDto } from './schemas/ResponseBambooPlanKeysDto';
@@ -206,7 +219,11 @@ export type { ResponseMessage } from './schemas/ResponseMessage';
206
219
  export type { ResponsePageEnvironmentResponse } from './schemas/ResponsePageEnvironmentResponse';
207
220
  export type { ResponsePageProjectAggregateDto } from './schemas/ResponsePageProjectAggregateDto';
208
221
  export type { ResponsePageServiceDashboardResponseDto } from './schemas/ResponsePageServiceDashboardResponseDto';
222
+ export type { ResponsePageServiceResponse } from './schemas/ResponsePageServiceResponse';
223
+ export type { ResponseServiceResponse } from './schemas/ResponseServiceResponse';
209
224
  export type { ServiceDashboardResponseDto } from './schemas/ServiceDashboardResponseDto';
225
+ export type { ServiceRequestDto } from './schemas/ServiceRequestDto';
226
+ export type { ServiceResponse } from './schemas/ServiceResponse';
210
227
  export type { ServiceResponseDto } from './schemas/ServiceResponseDto';
211
228
  export type { StackTraceElement } from './schemas/StackTraceElement';
212
229
  export type { TaskSelectorYaml } from './schemas/TaskSelectorYaml';
@@ -1,6 +1,7 @@
1
1
  export { addJiraComment, useAddJiraCommentMutation } from './hooks/useAddJiraCommentMutation';
2
2
  export { artifactIds, useArtifactIdsMutation } from './hooks/useArtifactIdsMutation';
3
3
  export { createJiraIssue, useCreateJiraIssueMutation } from './hooks/useCreateJiraIssueMutation';
4
+ export { createServiceV2, useCreateServiceV2Mutation } from './hooks/useCreateServiceV2Mutation';
4
5
  export { getAcrRegistriesBySubscription, useGetAcrRegistriesBySubscriptionQuery, } from './hooks/useGetAcrRegistriesBySubscriptionQuery';
5
6
  export { getAcrRepositories, useGetAcrRepositoriesQuery } from './hooks/useGetAcrRepositoriesQuery';
6
7
  export { getArtifactPathForJenkins, useGetArtifactPathForJenkinsQuery, } from './hooks/useGetArtifactPathForJenkinsQuery';
@@ -15,6 +16,7 @@ export { getFilePathsForS3, useGetFilePathsForS3Query } from './hooks/useGetFile
15
16
  export { getGcsBucketList, useGetGcsBucketListQuery } from './hooks/useGetGcsBucketListQuery';
16
17
  export { getGcsBuckets, useGetGcsBucketsMutation } from './hooks/useGetGcsBucketsMutation';
17
18
  export { getGroupIds, useGetGroupIdsMutation } from './hooks/useGetGroupIdsMutation';
19
+ export { getImagePathsForArtifactory, useGetImagePathsForArtifactoryQuery, } from './hooks/useGetImagePathsForArtifactoryQuery';
18
20
  export { getImagesListForEcr, useGetImagesListForEcrMutation, } from './hooks/useGetImagesListForEcrMutation';
19
21
  export { getIssueTransitions, useGetIssueTransitionsQuery, } from './hooks/useGetIssueTransitionsQuery';
20
22
  export { getJiraIssueCreateMetadata, useGetJiraIssueCreateMetadataQuery, } from './hooks/useGetJiraIssueCreateMetadataQuery';
@@ -36,6 +38,7 @@ export { getRepositoriesDetailsV2ForArtifactory, useGetRepositoriesDetailsV2ForA
36
38
  export { getRepositoriesForGoogleArtifactRegistry, useGetRepositoriesForGoogleArtifactRegistryQuery, } from './hooks/useGetRepositoriesForGoogleArtifactRegistryQuery';
37
39
  export { getRepositories, useGetRepositoriesMutation } from './hooks/useGetRepositoriesMutation';
38
40
  export { getServiceDefinitionTypes, useGetServiceDefinitionTypesQuery, } from './hooks/useGetServiceDefinitionTypesQuery';
41
+ export { getServiceList, useGetServiceListQuery } from './hooks/useGetServiceListQuery';
39
42
  export { getServicesList, useGetServicesListQuery } from './hooks/useGetServicesListQuery';
40
43
  export { getV2BucketListForS3, useGetV2BucketListForS3Query, } from './hooks/useGetV2BucketListForS3Query';
41
44
  export { getVersionsFromPackages, useGetVersionsFromPackagesQuery, } from './hooks/useGetVersionsFromPackagesQuery';
@@ -44,4 +47,5 @@ export { listFeedsForAzureArtifacts, useListFeedsForAzureArtifactsQuery, } from
44
47
  export { listPackagesForAzureArtifacts, useListPackagesForAzureArtifactsQuery, } from './hooks/useListPackagesForAzureArtifactsQuery';
45
48
  export { listProjectsForAzureArtifacts, useListProjectsForAzureArtifactsQuery, } from './hooks/useListProjectsForAzureArtifactsQuery';
46
49
  export { listTagsForAmiArtifact, useListTagsForAmiArtifactMutation, } from './hooks/useListTagsForAmiArtifactMutation';
50
+ export { updateServiceV2, useUpdateServiceV2Mutation } from './hooks/useUpdateServiceV2Mutation';
47
51
  export { useValidateJiraCredentialsQuery, validateJiraCredentials, } from './hooks/useValidateJiraCredentialsQuery';
@@ -0,0 +1,2 @@
1
+ import type { ServiceRequestDto } from '../schemas/ServiceRequestDto';
2
+ export type ServiceRequestDtoRequestBody = ServiceRequestDto;
@@ -0,0 +1,3 @@
1
+ export interface ArtifactoryImagePath {
2
+ imagePath?: 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,4 @@
1
+ import type { ArtifactoryImagePath } from '../schemas/ArtifactoryImagePath';
2
+ export interface ArtifactoryImagePathsDto {
3
+ imagePaths?: ArtifactoryImagePath[];
4
+ }
@@ -0,0 +1,26 @@
1
+ import type { ServiceResponse } from '../schemas/ServiceResponse';
2
+ export interface PageServiceResponse {
3
+ content?: ServiceResponse[];
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,9 @@
1
+ import type { ArtifactoryImagePathsDto } from '../schemas/ArtifactoryImagePathsDto';
2
+ export interface ResponseArtifactoryImagePathsDto {
3
+ correlationId?: string;
4
+ data?: ArtifactoryImagePathsDto;
5
+ metaData?: {
6
+ [key: string]: any;
7
+ };
8
+ status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
9
+ }
@@ -0,0 +1,9 @@
1
+ import type { PageServiceResponse } from '../schemas/PageServiceResponse';
2
+ export interface ResponsePageServiceResponse {
3
+ correlationId?: string;
4
+ data?: PageServiceResponse;
5
+ metaData?: {
6
+ [key: string]: any;
7
+ };
8
+ status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
9
+ }
@@ -0,0 +1,9 @@
1
+ import type { ServiceResponse } from '../schemas/ServiceResponse';
2
+ export interface ResponseServiceResponse {
3
+ correlationId?: string;
4
+ data?: ServiceResponse;
5
+ metaData?: {
6
+ [key: string]: any;
7
+ };
8
+ status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
9
+ }
@@ -0,0 +1,11 @@
1
+ export interface ServiceRequestDto {
2
+ description?: string;
3
+ identifier?: string;
4
+ name?: string;
5
+ orgIdentifier?: string;
6
+ projectIdentifier?: string;
7
+ tags?: {
8
+ [key: string]: string;
9
+ };
10
+ yaml?: string;
11
+ }
@@ -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,16 @@
1
+ import type { EntityValidityDetails } from '../schemas/EntityValidityDetails';
2
+ import type { GovernanceMetadata } from '../schemas/GovernanceMetadata';
3
+ import type { ServiceResponseDto } from '../schemas/ServiceResponseDto';
4
+ export interface ServiceResponse {
5
+ /**
6
+ * @format int64
7
+ */
8
+ createdAt?: number;
9
+ entityValidityDetails?: EntityValidityDetails;
10
+ governanceMetadata?: GovernanceMetadata;
11
+ /**
12
+ * @format int64
13
+ */
14
+ lastModifiedAt?: number;
15
+ service?: ServiceResponseDto;
16
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ng-manager-swagger-service-client",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
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",