@harnessio/react-ng-manager-swagger-service-client 1.41.0 → 1.43.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.
@@ -0,0 +1,39 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseDockerBuildDetailsDto } from '../schemas/ResponseDockerBuildDetailsDto';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { Error } from '../schemas/Error';
5
+ import type { DockerRequestDtoRequestBody } from '../requestBodies/DockerRequestDtoRequestBody';
6
+ import type { ResponseWithPagination } from '../helpers';
7
+ import { FetcherOptions } from '../../../../fetcher/index.js';
8
+ export interface GetLastSuccessfulBuildForDockerWithYamlMutationQueryParams {
9
+ imagePath?: string;
10
+ connectorRef?: string;
11
+ tag?: string;
12
+ accountIdentifier: string;
13
+ orgIdentifier?: string;
14
+ projectIdentifier?: string;
15
+ pipelineIdentifier?: 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
+ }
28
+ export type GetLastSuccessfulBuildForDockerWithYamlRequestBody = DockerRequestDtoRequestBody;
29
+ export type GetLastSuccessfulBuildForDockerWithYamlOkResponse = ResponseWithPagination<ResponseDockerBuildDetailsDto>;
30
+ export type GetLastSuccessfulBuildForDockerWithYamlErrorResponse = Failure | Error;
31
+ export interface GetLastSuccessfulBuildForDockerWithYamlProps extends Omit<FetcherOptions<GetLastSuccessfulBuildForDockerWithYamlMutationQueryParams, GetLastSuccessfulBuildForDockerWithYamlRequestBody>, 'url'> {
32
+ queryParams: GetLastSuccessfulBuildForDockerWithYamlMutationQueryParams;
33
+ body: GetLastSuccessfulBuildForDockerWithYamlRequestBody;
34
+ }
35
+ export declare function getLastSuccessfulBuildForDockerWithYaml(props: GetLastSuccessfulBuildForDockerWithYamlProps): Promise<GetLastSuccessfulBuildForDockerWithYamlOkResponse>;
36
+ /**
37
+ *
38
+ */
39
+ export declare function useGetLastSuccessfulBuildForDockerWithYamlMutation(options?: Omit<UseMutationOptions<GetLastSuccessfulBuildForDockerWithYamlOkResponse, GetLastSuccessfulBuildForDockerWithYamlErrorResponse, GetLastSuccessfulBuildForDockerWithYamlProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetLastSuccessfulBuildForDockerWithYamlOkResponse, GetLastSuccessfulBuildForDockerWithYamlErrorResponse, GetLastSuccessfulBuildForDockerWithYamlProps, 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 getLastSuccessfulBuildForDockerWithYaml(props) {
7
+ return fetcher(Object.assign({ url: `/artifacts/docker/getLastSuccessfulBuildV2`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useGetLastSuccessfulBuildForDockerWithYamlMutation(options) {
13
+ return useMutation((mutateProps) => getLastSuccessfulBuildForDockerWithYaml(mutateProps), options);
14
+ }
@@ -0,0 +1,39 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ResponsePageServiceAccountDto } from '../schemas/ResponsePageServiceAccountDto';
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 ListManageableServiceAccountsQueryQueryParams {
8
+ accountIdentifier?: string;
9
+ orgIdentifier?: string;
10
+ projectIdentifier?: string;
11
+ identifiers?: string[];
12
+ /**
13
+ * @format int32
14
+ * @default 0
15
+ */
16
+ pageIndex?: number;
17
+ /**
18
+ * @format int32
19
+ * @default 50
20
+ */
21
+ pageSize?: number;
22
+ sortOrders?: string[];
23
+ pageToken?: string;
24
+ searchTerm?: string;
25
+ /**
26
+ * @default "EXCLUDE_INHERITED_SERVICE_ACCOUNTS"
27
+ */
28
+ filterType?: 'EXCLUDE_INHERITED_SERVICE_ACCOUNTS' | 'INCLUDE_CHILD_SCOPE_SERVICE_ACCOUNTS' | 'INCLUDE_INHERITED_SERVICE_ACCOUNTS';
29
+ }
30
+ export type ListManageableServiceAccountsOkResponse = ResponseWithPagination<ResponsePageServiceAccountDto>;
31
+ export type ListManageableServiceAccountsErrorResponse = Failure | Error;
32
+ export interface ListManageableServiceAccountsProps extends Omit<FetcherOptions<ListManageableServiceAccountsQueryQueryParams, unknown>, 'url'> {
33
+ queryParams: ListManageableServiceAccountsQueryQueryParams;
34
+ }
35
+ export declare function listManageableServiceAccounts(props: ListManageableServiceAccountsProps): Promise<ListManageableServiceAccountsOkResponse>;
36
+ /**
37
+ *
38
+ */
39
+ export declare function useListManageableServiceAccountsQuery(props: ListManageableServiceAccountsProps, options?: Omit<UseQueryOptions<ListManageableServiceAccountsOkResponse, ListManageableServiceAccountsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListManageableServiceAccountsOkResponse, ListManageableServiceAccountsErrorResponse>;
@@ -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 listManageableServiceAccounts(props) {
7
+ return fetcher(Object.assign({ url: `/serviceaccount/manageable`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useListManageableServiceAccountsQuery(props, options) {
13
+ return useQuery(['listManageableServiceAccounts', props.queryParams], ({ signal }) => listManageableServiceAccounts(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -199,6 +199,8 @@ export type { GetLastSuccessfulBuildForArtifactoryArtifactErrorResponse, GetLast
199
199
  export { getLastSuccessfulBuildForArtifactoryArtifact, useGetLastSuccessfulBuildForArtifactoryArtifactMutation, } from './hooks/useGetLastSuccessfulBuildForArtifactoryArtifactMutation';
200
200
  export type { GetLastSuccessfulBuildForDockerErrorResponse, GetLastSuccessfulBuildForDockerMutationQueryParams, GetLastSuccessfulBuildForDockerOkResponse, GetLastSuccessfulBuildForDockerProps, GetLastSuccessfulBuildForDockerRequestBody, } from './hooks/useGetLastSuccessfulBuildForDockerMutation';
201
201
  export { getLastSuccessfulBuildForDocker, useGetLastSuccessfulBuildForDockerMutation, } from './hooks/useGetLastSuccessfulBuildForDockerMutation';
202
+ export type { GetLastSuccessfulBuildForDockerWithYamlErrorResponse, GetLastSuccessfulBuildForDockerWithYamlMutationQueryParams, GetLastSuccessfulBuildForDockerWithYamlOkResponse, GetLastSuccessfulBuildForDockerWithYamlProps, GetLastSuccessfulBuildForDockerWithYamlRequestBody, } from './hooks/useGetLastSuccessfulBuildForDockerWithYamlMutation';
203
+ export { getLastSuccessfulBuildForDockerWithYaml, useGetLastSuccessfulBuildForDockerWithYamlMutation, } from './hooks/useGetLastSuccessfulBuildForDockerWithYamlMutation';
202
204
  export type { GetLastSuccessfulBuildForEcrErrorResponse, GetLastSuccessfulBuildForEcrMutationQueryParams, GetLastSuccessfulBuildForEcrOkResponse, GetLastSuccessfulBuildForEcrProps, GetLastSuccessfulBuildForEcrRequestBody, } from './hooks/useGetLastSuccessfulBuildForEcrMutation';
203
205
  export { getLastSuccessfulBuildForEcr, useGetLastSuccessfulBuildForEcrMutation, } from './hooks/useGetLastSuccessfulBuildForEcrMutation';
204
206
  export type { GetLastSuccessfulBuildForEcrWithYamlErrorResponse, GetLastSuccessfulBuildForEcrWithYamlMutationQueryParams, GetLastSuccessfulBuildForEcrWithYamlOkResponse, GetLastSuccessfulBuildForEcrWithYamlProps, GetLastSuccessfulBuildForEcrWithYamlRequestBody, } from './hooks/useGetLastSuccessfulBuildForEcrWithYamlMutation';
@@ -333,6 +335,8 @@ export type { ListFeedsForAzureArtifactsErrorResponse, ListFeedsForAzureArtifact
333
335
  export { listFeedsForAzureArtifacts, useListFeedsForAzureArtifactsQuery, } from './hooks/useListFeedsForAzureArtifactsQuery';
334
336
  export type { ListFeedsForAzureArtifactsWithServiceV2ErrorResponse, ListFeedsForAzureArtifactsWithServiceV2MutationQueryParams, ListFeedsForAzureArtifactsWithServiceV2OkResponse, ListFeedsForAzureArtifactsWithServiceV2Props, ListFeedsForAzureArtifactsWithServiceV2RequestBody, } from './hooks/useListFeedsForAzureArtifactsWithServiceV2Mutation';
335
337
  export { listFeedsForAzureArtifactsWithServiceV2, useListFeedsForAzureArtifactsWithServiceV2Mutation, } from './hooks/useListFeedsForAzureArtifactsWithServiceV2Mutation';
338
+ export type { ListManageableServiceAccountsErrorResponse, ListManageableServiceAccountsOkResponse, ListManageableServiceAccountsProps, ListManageableServiceAccountsQueryQueryParams, } from './hooks/useListManageableServiceAccountsQuery';
339
+ export { listManageableServiceAccounts, useListManageableServiceAccountsQuery, } from './hooks/useListManageableServiceAccountsQuery';
336
340
  export type { ListMcpToolsErrorResponse, ListMcpToolsOkResponse, ListMcpToolsProps, ListMcpToolsQueryQueryParams, } from './hooks/useListMcpToolsQuery';
337
341
  export { listMcpTools, useListMcpToolsQuery } from './hooks/useListMcpToolsQuery';
338
342
  export type { ListPackagesForAzureArtifactsErrorResponse, ListPackagesForAzureArtifactsOkResponse, ListPackagesForAzureArtifactsProps, ListPackagesForAzureArtifactsQueryQueryParams, } from './hooks/useListPackagesForAzureArtifactsQuery';
@@ -630,6 +634,7 @@ export type { PageProjectAggregateDto } from './schemas/PageProjectAggregateDto'
630
634
  export type { PageProjectResponse } from './schemas/PageProjectResponse';
631
635
  export type { PageSecretResponseWrapper } from './schemas/PageSecretResponseWrapper';
632
636
  export type { PageServiceAccountAggregateDto } from './schemas/PageServiceAccountAggregateDto';
637
+ export type { PageServiceAccountDto } from './schemas/PageServiceAccountDto';
633
638
  export type { PageServiceDashboardResponseDto } from './schemas/PageServiceDashboardResponseDto';
634
639
  export type { PageServiceResponse } from './schemas/PageServiceResponse';
635
640
  export type { PageTokenAggregateDto } from './schemas/PageTokenAggregateDto';
@@ -742,6 +747,7 @@ export type { ResponsePageProjectAggregateDto } from './schemas/ResponsePageProj
742
747
  export type { ResponsePageProjectResponse } from './schemas/ResponsePageProjectResponse';
743
748
  export type { ResponsePageSecretResponseWrapper } from './schemas/ResponsePageSecretResponseWrapper';
744
749
  export type { ResponsePageServiceAccountAggregateDto } from './schemas/ResponsePageServiceAccountAggregateDto';
750
+ export type { ResponsePageServiceAccountDto } from './schemas/ResponsePageServiceAccountDto';
745
751
  export type { ResponsePageServiceDashboardResponseDto } from './schemas/ResponsePageServiceDashboardResponseDto';
746
752
  export type { ResponsePageServiceResponse } from './schemas/ResponsePageServiceResponse';
747
753
  export type { ResponsePageTokenAggregateDto } from './schemas/ResponsePageTokenAggregateDto';
@@ -98,6 +98,7 @@ export { getLastSuccessfulBuildForAcrArtifactWithYaml, useGetLastSuccessfulBuild
98
98
  export { getLastSuccessfulBuildForAcrRepository, useGetLastSuccessfulBuildForAcrRepositoryMutation, } from './hooks/useGetLastSuccessfulBuildForAcrRepositoryMutation';
99
99
  export { getLastSuccessfulBuildForArtifactoryArtifact, useGetLastSuccessfulBuildForArtifactoryArtifactMutation, } from './hooks/useGetLastSuccessfulBuildForArtifactoryArtifactMutation';
100
100
  export { getLastSuccessfulBuildForDocker, useGetLastSuccessfulBuildForDockerMutation, } from './hooks/useGetLastSuccessfulBuildForDockerMutation';
101
+ export { getLastSuccessfulBuildForDockerWithYaml, useGetLastSuccessfulBuildForDockerWithYamlMutation, } from './hooks/useGetLastSuccessfulBuildForDockerWithYamlMutation';
101
102
  export { getLastSuccessfulBuildForEcr, useGetLastSuccessfulBuildForEcrMutation, } from './hooks/useGetLastSuccessfulBuildForEcrMutation';
102
103
  export { getLastSuccessfulBuildForEcrWithYaml, useGetLastSuccessfulBuildForEcrWithYamlMutation, } from './hooks/useGetLastSuccessfulBuildForEcrWithYamlMutation';
103
104
  export { getLastSuccessfulBuildForGoogleArtifactRegistry, useGetLastSuccessfulBuildForGoogleArtifactRegistryMutation, } from './hooks/useGetLastSuccessfulBuildForGoogleArtifactRegistryMutation';
@@ -165,6 +166,7 @@ export { listAwsRegions, useListAwsRegionsQuery } from './hooks/useListAwsRegion
165
166
  export { listBucketsWithServiceV2, useListBucketsWithServiceV2Mutation, } from './hooks/useListBucketsWithServiceV2Mutation';
166
167
  export { listFeedsForAzureArtifacts, useListFeedsForAzureArtifactsQuery, } from './hooks/useListFeedsForAzureArtifactsQuery';
167
168
  export { listFeedsForAzureArtifactsWithServiceV2, useListFeedsForAzureArtifactsWithServiceV2Mutation, } from './hooks/useListFeedsForAzureArtifactsWithServiceV2Mutation';
169
+ export { listManageableServiceAccounts, useListManageableServiceAccountsQuery, } from './hooks/useListManageableServiceAccountsQuery';
168
170
  export { listMcpTools, useListMcpToolsQuery } from './hooks/useListMcpToolsQuery';
169
171
  export { listPackagesForAzureArtifacts, useListPackagesForAzureArtifactsQuery, } from './hooks/useListPackagesForAzureArtifactsQuery';
170
172
  export { listPackagesForAzureArtifactsWithServiceV2, useListPackagesForAzureArtifactsWithServiceV2Mutation, } from './hooks/useListPackagesForAzureArtifactsWithServiceV2Mutation';
@@ -0,0 +1,26 @@
1
+ import type { ServiceAccountDto } from '../schemas/ServiceAccountDto';
2
+ export interface PageServiceAccountDto {
3
+ content?: ServiceAccountDto[];
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 { PageServiceAccountDto } from '../schemas/PageServiceAccountDto';
2
+ export interface ResponsePageServiceAccountDto {
3
+ correlationId?: string;
4
+ data?: PageServiceAccountDto;
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.41.0",
3
+ "version": "1.43.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",