@harnessio/react-ng-manager-swagger-service-client 1.9.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetArtifactSourceInputsQuery.d.ts +39 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetArtifactSourceInputsQuery.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetBuildDetailsForDockerWithYamlMutation.d.ts +40 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetBuildDetailsForDockerWithYamlMutation.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/index.d.ts +6 -0
- package/dist/ng-manager-swagger-service/src/services/index.js +2 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ArtifactSourcesResponseDto.d.ts +6 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ArtifactSourcesResponseDto.js +4 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseArtifactSourcesResponseDto.d.ts +9 -0
- package/dist/ng-manager-swagger-service/src/services/schemas/ResponseArtifactSourcesResponseDto.js +1 -0
- package/package.json +1 -1
package/dist/ng-manager-swagger-service/src/services/hooks/useGetArtifactSourceInputsQuery.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseArtifactSourcesResponseDto } from '../schemas/ResponseArtifactSourcesResponseDto';
|
|
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 GetArtifactSourceInputsQueryPathParams {
|
|
8
|
+
serviceIdentifier: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetArtifactSourceInputsQueryQueryParams {
|
|
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
|
+
}
|
|
24
|
+
export interface GetArtifactSourceInputsQueryHeaderParams {
|
|
25
|
+
/**
|
|
26
|
+
* @default "false"
|
|
27
|
+
*/
|
|
28
|
+
'Load-From-Cache'?: string;
|
|
29
|
+
}
|
|
30
|
+
export type GetArtifactSourceInputsOkResponse = ResponseWithPagination<ResponseArtifactSourcesResponseDto>;
|
|
31
|
+
export type GetArtifactSourceInputsErrorResponse = Failure | Error;
|
|
32
|
+
export interface GetArtifactSourceInputsProps extends GetArtifactSourceInputsQueryPathParams, Omit<FetcherOptions<GetArtifactSourceInputsQueryQueryParams, unknown, GetArtifactSourceInputsQueryHeaderParams>, 'url'> {
|
|
33
|
+
queryParams: GetArtifactSourceInputsQueryQueryParams;
|
|
34
|
+
}
|
|
35
|
+
export declare function getArtifactSourceInputs(props: GetArtifactSourceInputsProps): Promise<GetArtifactSourceInputsOkResponse>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
export declare function useGetArtifactSourceInputsQuery(props: GetArtifactSourceInputsProps, options?: Omit<UseQueryOptions<GetArtifactSourceInputsOkResponse, GetArtifactSourceInputsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactSourceInputsOkResponse, GetArtifactSourceInputsErrorResponse>;
|
|
@@ -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 getArtifactSourceInputs(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/servicesV2/artifactSourceInputs/${props.serviceIdentifier}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useGetArtifactSourceInputsQuery(props, options) {
|
|
13
|
+
return useQuery(['getArtifactSourceInputs', props.serviceIdentifier, props.queryParams], ({ signal }) => getArtifactSourceInputs(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponseDockerResponseDto } from '../schemas/ResponseDockerResponseDto';
|
|
3
|
+
import type { Failure } from '../schemas/Failure';
|
|
4
|
+
import type { Error } from '../schemas/Error';
|
|
5
|
+
import type { ListTagsForAmiArtifactBodyRequestBody } from '../requestBodies/ListTagsForAmiArtifactBodyRequestBody';
|
|
6
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
7
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
|
+
export interface GetBuildDetailsForDockerWithYamlMutationQueryParams {
|
|
9
|
+
imagePath?: string;
|
|
10
|
+
connectorRef?: string;
|
|
11
|
+
accountIdentifier: string;
|
|
12
|
+
orgIdentifier?: string;
|
|
13
|
+
projectIdentifier?: string;
|
|
14
|
+
pipelineIdentifier?: string;
|
|
15
|
+
tagInput?: string;
|
|
16
|
+
fqnPath: string;
|
|
17
|
+
branch?: string;
|
|
18
|
+
repoIdentifier?: string;
|
|
19
|
+
getDefaultFromOtherRepo?: boolean;
|
|
20
|
+
parentEntityConnectorRef?: string;
|
|
21
|
+
parentEntityRepoName?: string;
|
|
22
|
+
parentEntityAccountIdentifier?: string;
|
|
23
|
+
parentEntityOrgIdentifier?: string;
|
|
24
|
+
parentEntityProjectIdentifier?: string;
|
|
25
|
+
repoName?: string;
|
|
26
|
+
serviceId?: string;
|
|
27
|
+
serviceGitBranch?: string;
|
|
28
|
+
}
|
|
29
|
+
export type GetBuildDetailsForDockerWithYamlRequestBody = ListTagsForAmiArtifactBodyRequestBody;
|
|
30
|
+
export type GetBuildDetailsForDockerWithYamlOkResponse = ResponseWithPagination<ResponseDockerResponseDto>;
|
|
31
|
+
export type GetBuildDetailsForDockerWithYamlErrorResponse = Failure | Error;
|
|
32
|
+
export interface GetBuildDetailsForDockerWithYamlProps extends Omit<FetcherOptions<GetBuildDetailsForDockerWithYamlMutationQueryParams, GetBuildDetailsForDockerWithYamlRequestBody>, 'url'> {
|
|
33
|
+
queryParams: GetBuildDetailsForDockerWithYamlMutationQueryParams;
|
|
34
|
+
body: GetBuildDetailsForDockerWithYamlRequestBody;
|
|
35
|
+
}
|
|
36
|
+
export declare function getBuildDetailsForDockerWithYaml(props: GetBuildDetailsForDockerWithYamlProps): Promise<GetBuildDetailsForDockerWithYamlOkResponse>;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
export declare function useGetBuildDetailsForDockerWithYamlMutation(options?: Omit<UseMutationOptions<GetBuildDetailsForDockerWithYamlOkResponse, GetBuildDetailsForDockerWithYamlErrorResponse, GetBuildDetailsForDockerWithYamlProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetBuildDetailsForDockerWithYamlOkResponse, GetBuildDetailsForDockerWithYamlErrorResponse, GetBuildDetailsForDockerWithYamlProps, 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 getBuildDetailsForDockerWithYaml(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/artifacts/docker/getBuildDetailsV2`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useGetBuildDetailsForDockerWithYamlMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => getBuildDetailsForDockerWithYaml(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -19,6 +19,8 @@ export type { GetArtifactPathForJenkinsErrorResponse, GetArtifactPathForJenkinsO
|
|
|
19
19
|
export { getArtifactPathForJenkins, useGetArtifactPathForJenkinsQuery, } from './hooks/useGetArtifactPathForJenkinsQuery';
|
|
20
20
|
export type { GetArtifactPathsForBambooErrorResponse, GetArtifactPathsForBambooMutationQueryParams, GetArtifactPathsForBambooOkResponse, GetArtifactPathsForBambooProps, GetArtifactPathsForBambooRequestBody, } from './hooks/useGetArtifactPathsForBambooMutation';
|
|
21
21
|
export { getArtifactPathsForBamboo, useGetArtifactPathsForBambooMutation, } from './hooks/useGetArtifactPathsForBambooMutation';
|
|
22
|
+
export type { GetArtifactSourceInputsErrorResponse, GetArtifactSourceInputsOkResponse, GetArtifactSourceInputsProps, GetArtifactSourceInputsQueryPathParams, GetArtifactSourceInputsQueryQueryParams, } from './hooks/useGetArtifactSourceInputsQuery';
|
|
23
|
+
export { getArtifactSourceInputs, useGetArtifactSourceInputsQuery, } from './hooks/useGetArtifactSourceInputsQuery';
|
|
22
24
|
export type { GetAzureClustersErrorResponse, GetAzureClustersOkResponse, GetAzureClustersProps, GetAzureClustersQueryPathParams, GetAzureClustersQueryQueryParams, } from './hooks/useGetAzureClustersQuery';
|
|
23
25
|
export { getAzureClusters, useGetAzureClustersQuery } from './hooks/useGetAzureClustersQuery';
|
|
24
26
|
export type { GetAzureResourceGroupsBySubscriptionErrorResponse, GetAzureResourceGroupsBySubscriptionOkResponse, GetAzureResourceGroupsBySubscriptionProps, GetAzureResourceGroupsBySubscriptionQueryPathParams, GetAzureResourceGroupsBySubscriptionQueryQueryParams, } from './hooks/useGetAzureResourceGroupsBySubscriptionQuery';
|
|
@@ -35,6 +37,8 @@ export type { GetBuildDetailsForArtifactoryArtifactErrorResponse, GetBuildDetail
|
|
|
35
37
|
export { getBuildDetailsForArtifactoryArtifact, useGetBuildDetailsForArtifactoryArtifactQuery, } from './hooks/useGetBuildDetailsForArtifactoryArtifactQuery';
|
|
36
38
|
export type { GetBuildDetailsForDockerErrorResponse, GetBuildDetailsForDockerOkResponse, GetBuildDetailsForDockerProps, GetBuildDetailsForDockerQueryQueryParams, } from './hooks/useGetBuildDetailsForDockerQuery';
|
|
37
39
|
export { getBuildDetailsForDocker, useGetBuildDetailsForDockerQuery, } from './hooks/useGetBuildDetailsForDockerQuery';
|
|
40
|
+
export type { GetBuildDetailsForDockerWithYamlErrorResponse, GetBuildDetailsForDockerWithYamlMutationQueryParams, GetBuildDetailsForDockerWithYamlOkResponse, GetBuildDetailsForDockerWithYamlProps, GetBuildDetailsForDockerWithYamlRequestBody, } from './hooks/useGetBuildDetailsForDockerWithYamlMutation';
|
|
41
|
+
export { getBuildDetailsForDockerWithYaml, useGetBuildDetailsForDockerWithYamlMutation, } from './hooks/useGetBuildDetailsForDockerWithYamlMutation';
|
|
38
42
|
export type { GetBuildDetailsForEcrErrorResponse, GetBuildDetailsForEcrOkResponse, GetBuildDetailsForEcrProps, GetBuildDetailsForEcrQueryQueryParams, } from './hooks/useGetBuildDetailsForEcrQuery';
|
|
39
43
|
export { getBuildDetailsForEcr, useGetBuildDetailsForEcrQuery, } from './hooks/useGetBuildDetailsForEcrQuery';
|
|
40
44
|
export type { GetBuildDetailsForGoogleArtifactRegistryErrorResponse, GetBuildDetailsForGoogleArtifactRegistryOkResponse, GetBuildDetailsForGoogleArtifactRegistryProps, GetBuildDetailsForGoogleArtifactRegistryQueryQueryParams, } from './hooks/useGetBuildDetailsForGoogleArtifactRegistryQuery';
|
|
@@ -153,6 +157,7 @@ export type { AcrRepositoryDto } from './schemas/AcrRepositoryDto';
|
|
|
153
157
|
export type { AcrResponseDto } from './schemas/AcrResponseDto';
|
|
154
158
|
export type { AmiTagObject } from './schemas/AmiTagObject';
|
|
155
159
|
export type { ArtifactFileMetadata } from './schemas/ArtifactFileMetadata';
|
|
160
|
+
export type { ArtifactSourcesResponseDto } from './schemas/ArtifactSourcesResponseDto';
|
|
156
161
|
export type { ArtifactoryBuildDetailsDto } from './schemas/ArtifactoryBuildDetailsDto';
|
|
157
162
|
export type { ArtifactoryImagePath } from './schemas/ArtifactoryImagePath';
|
|
158
163
|
export type { ArtifactoryImagePathsDto } from './schemas/ArtifactoryImagePathsDto';
|
|
@@ -243,6 +248,7 @@ export type { RegionGar } from './schemas/RegionGar';
|
|
|
243
248
|
export type { ResponseAcrRegistriesDto } from './schemas/ResponseAcrRegistriesDto';
|
|
244
249
|
export type { ResponseAcrRepositoriesDto } from './schemas/ResponseAcrRepositoriesDto';
|
|
245
250
|
export type { ResponseAcrResponseDto } from './schemas/ResponseAcrResponseDto';
|
|
251
|
+
export type { ResponseArtifactSourcesResponseDto } from './schemas/ResponseArtifactSourcesResponseDto';
|
|
246
252
|
export type { ResponseArtifactoryImagePathsDto } from './schemas/ResponseArtifactoryImagePathsDto';
|
|
247
253
|
export type { ResponseArtifactoryRepoDetailsDto } from './schemas/ResponseArtifactoryRepoDetailsDto';
|
|
248
254
|
export type { ResponseArtifactoryResponseDto } from './schemas/ResponseArtifactoryResponseDto';
|
|
@@ -8,6 +8,7 @@ export { getAcrRegistriesBySubscription, useGetAcrRegistriesBySubscriptionQuery,
|
|
|
8
8
|
export { getAcrRepositories, useGetAcrRepositoriesQuery } from './hooks/useGetAcrRepositoriesQuery';
|
|
9
9
|
export { getArtifactPathForJenkins, useGetArtifactPathForJenkinsQuery, } from './hooks/useGetArtifactPathForJenkinsQuery';
|
|
10
10
|
export { getArtifactPathsForBamboo, useGetArtifactPathsForBambooMutation, } from './hooks/useGetArtifactPathsForBambooMutation';
|
|
11
|
+
export { getArtifactSourceInputs, useGetArtifactSourceInputsQuery, } from './hooks/useGetArtifactSourceInputsQuery';
|
|
11
12
|
export { getAzureClusters, useGetAzureClustersQuery } from './hooks/useGetAzureClustersQuery';
|
|
12
13
|
export { getAzureResourceGroupsBySubscription, useGetAzureResourceGroupsBySubscriptionQuery, } from './hooks/useGetAzureResourceGroupsBySubscriptionQuery';
|
|
13
14
|
export { getAzureSubscriptions, useGetAzureSubscriptionsQuery, } from './hooks/useGetAzureSubscriptionsQuery';
|
|
@@ -16,6 +17,7 @@ export { getBucketsInManifests, useGetBucketsInManifestsMutation, } from './hook
|
|
|
16
17
|
export { getBuildDetailsForAcrRepository, useGetBuildDetailsForAcrRepositoryQuery, } from './hooks/useGetBuildDetailsForAcrRepositoryQuery';
|
|
17
18
|
export { getBuildDetailsForArtifactoryArtifact, useGetBuildDetailsForArtifactoryArtifactQuery, } from './hooks/useGetBuildDetailsForArtifactoryArtifactQuery';
|
|
18
19
|
export { getBuildDetailsForDocker, useGetBuildDetailsForDockerQuery, } from './hooks/useGetBuildDetailsForDockerQuery';
|
|
20
|
+
export { getBuildDetailsForDockerWithYaml, useGetBuildDetailsForDockerWithYamlMutation, } from './hooks/useGetBuildDetailsForDockerWithYamlMutation';
|
|
19
21
|
export { getBuildDetailsForEcr, useGetBuildDetailsForEcrQuery, } from './hooks/useGetBuildDetailsForEcrQuery';
|
|
20
22
|
export { getBuildDetailsForGoogleArtifactRegistry, useGetBuildDetailsForGoogleArtifactRegistryQuery, } from './hooks/useGetBuildDetailsForGoogleArtifactRegistryQuery';
|
|
21
23
|
export { getBuildDetailsForNexusArtifact, useGetBuildDetailsForNexusArtifactQuery, } from './hooks/useGetBuildDetailsForNexusArtifactQuery';
|
package/dist/ng-manager-swagger-service/src/services/schemas/ResponseArtifactSourcesResponseDto.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ArtifactSourcesResponseDto } from '../schemas/ArtifactSourcesResponseDto';
|
|
2
|
+
export interface ResponseArtifactSourcesResponseDto {
|
|
3
|
+
correlationId?: string;
|
|
4
|
+
data?: ArtifactSourcesResponseDto;
|
|
5
|
+
metaData?: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
|
|
9
|
+
}
|
package/dist/ng-manager-swagger-service/src/services/schemas/ResponseArtifactSourcesResponseDto.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnessio/react-ng-manager-swagger-service-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.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",
|