@harnessio/react-ng-manager-swagger-service-client 1.6.1 → 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.
@@ -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,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
+ }
@@ -35,6 +35,8 @@ export type { GetGcsBucketsErrorResponse, GetGcsBucketsMutationQueryParams, GetG
35
35
  export { getGcsBuckets, useGetGcsBucketsMutation } from './hooks/useGetGcsBucketsMutation';
36
36
  export type { GetGroupIdsErrorResponse, GetGroupIdsMutationQueryParams, GetGroupIdsOkResponse, GetGroupIdsProps, GetGroupIdsRequestBody, } from './hooks/useGetGroupIdsMutation';
37
37
  export { getGroupIds, useGetGroupIdsMutation } from './hooks/useGetGroupIdsMutation';
38
+ export type { GetImagePathsForArtifactoryErrorResponse, GetImagePathsForArtifactoryOkResponse, GetImagePathsForArtifactoryProps, GetImagePathsForArtifactoryQueryQueryParams, } from './hooks/useGetImagePathsForArtifactoryQuery';
39
+ export { getImagePathsForArtifactory, useGetImagePathsForArtifactoryQuery, } from './hooks/useGetImagePathsForArtifactoryQuery';
38
40
  export type { GetImagesListForEcrErrorResponse, GetImagesListForEcrMutationQueryParams, GetImagesListForEcrOkResponse, GetImagesListForEcrProps, GetImagesListForEcrRequestBody, } from './hooks/useGetImagesListForEcrMutation';
39
41
  export { getImagesListForEcr, useGetImagesListForEcrMutation, } from './hooks/useGetImagesListForEcrMutation';
40
42
  export type { GetIssueTransitionsErrorResponse, GetIssueTransitionsOkResponse, GetIssueTransitionsProps, GetIssueTransitionsQueryQueryParams, } from './hooks/useGetIssueTransitionsQuery';
@@ -111,6 +113,8 @@ export type { AcrRepositoryDto } from './schemas/AcrRepositoryDto';
111
113
  export type { AcrResponseDto } from './schemas/AcrResponseDto';
112
114
  export type { AmiTagObject } from './schemas/AmiTagObject';
113
115
  export type { ArtifactFileMetadata } from './schemas/ArtifactFileMetadata';
116
+ export type { ArtifactoryImagePath } from './schemas/ArtifactoryImagePath';
117
+ export type { ArtifactoryImagePathsDto } from './schemas/ArtifactoryImagePathsDto';
114
118
  export type { ArtifactoryRepoDetailsDto } from './schemas/ArtifactoryRepoDetailsDto';
115
119
  export type { AzureArtifactsFeed } from './schemas/AzureArtifactsFeed';
116
120
  export type { AzureArtifactsPackage } from './schemas/AzureArtifactsPackage';
@@ -178,6 +182,7 @@ export type { RegionGar } from './schemas/RegionGar';
178
182
  export type { ResponseAcrRegistriesDto } from './schemas/ResponseAcrRegistriesDto';
179
183
  export type { ResponseAcrRepositoriesDto } from './schemas/ResponseAcrRepositoriesDto';
180
184
  export type { ResponseAcrResponseDto } from './schemas/ResponseAcrResponseDto';
185
+ export type { ResponseArtifactoryImagePathsDto } from './schemas/ResponseArtifactoryImagePathsDto';
181
186
  export type { ResponseArtifactoryRepoDetailsDto } from './schemas/ResponseArtifactoryRepoDetailsDto';
182
187
  export type { ResponseAzureSubscriptionsDto } from './schemas/ResponseAzureSubscriptionsDto';
183
188
  export type { ResponseBambooPlanKeysDto } from './schemas/ResponseBambooPlanKeysDto';
@@ -16,6 +16,7 @@ export { getFilePathsForS3, useGetFilePathsForS3Query } from './hooks/useGetFile
16
16
  export { getGcsBucketList, useGetGcsBucketListQuery } from './hooks/useGetGcsBucketListQuery';
17
17
  export { getGcsBuckets, useGetGcsBucketsMutation } from './hooks/useGetGcsBucketsMutation';
18
18
  export { getGroupIds, useGetGroupIdsMutation } from './hooks/useGetGroupIdsMutation';
19
+ export { getImagePathsForArtifactory, useGetImagePathsForArtifactoryQuery, } from './hooks/useGetImagePathsForArtifactoryQuery';
19
20
  export { getImagesListForEcr, useGetImagesListForEcrMutation, } from './hooks/useGetImagesListForEcrMutation';
20
21
  export { getIssueTransitions, useGetIssueTransitionsQuery, } from './hooks/useGetIssueTransitionsQuery';
21
22
  export { getJiraIssueCreateMetadata, useGetJiraIssueCreateMetadataQuery, } from './hooks/useGetJiraIssueCreateMetadataQuery';
@@ -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,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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ng-manager-swagger-service-client",
3
- "version": "1.6.1",
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",