@harnessio/react-ng-manager-swagger-service-client 1.42.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 { 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
+ }
@@ -335,6 +335,8 @@ export type { ListFeedsForAzureArtifactsErrorResponse, ListFeedsForAzureArtifact
335
335
  export { listFeedsForAzureArtifacts, useListFeedsForAzureArtifactsQuery, } from './hooks/useListFeedsForAzureArtifactsQuery';
336
336
  export type { ListFeedsForAzureArtifactsWithServiceV2ErrorResponse, ListFeedsForAzureArtifactsWithServiceV2MutationQueryParams, ListFeedsForAzureArtifactsWithServiceV2OkResponse, ListFeedsForAzureArtifactsWithServiceV2Props, ListFeedsForAzureArtifactsWithServiceV2RequestBody, } from './hooks/useListFeedsForAzureArtifactsWithServiceV2Mutation';
337
337
  export { listFeedsForAzureArtifactsWithServiceV2, useListFeedsForAzureArtifactsWithServiceV2Mutation, } from './hooks/useListFeedsForAzureArtifactsWithServiceV2Mutation';
338
+ export type { ListManageableServiceAccountsErrorResponse, ListManageableServiceAccountsOkResponse, ListManageableServiceAccountsProps, ListManageableServiceAccountsQueryQueryParams, } from './hooks/useListManageableServiceAccountsQuery';
339
+ export { listManageableServiceAccounts, useListManageableServiceAccountsQuery, } from './hooks/useListManageableServiceAccountsQuery';
338
340
  export type { ListMcpToolsErrorResponse, ListMcpToolsOkResponse, ListMcpToolsProps, ListMcpToolsQueryQueryParams, } from './hooks/useListMcpToolsQuery';
339
341
  export { listMcpTools, useListMcpToolsQuery } from './hooks/useListMcpToolsQuery';
340
342
  export type { ListPackagesForAzureArtifactsErrorResponse, ListPackagesForAzureArtifactsOkResponse, ListPackagesForAzureArtifactsProps, ListPackagesForAzureArtifactsQueryQueryParams, } from './hooks/useListPackagesForAzureArtifactsQuery';
@@ -632,6 +634,7 @@ export type { PageProjectAggregateDto } from './schemas/PageProjectAggregateDto'
632
634
  export type { PageProjectResponse } from './schemas/PageProjectResponse';
633
635
  export type { PageSecretResponseWrapper } from './schemas/PageSecretResponseWrapper';
634
636
  export type { PageServiceAccountAggregateDto } from './schemas/PageServiceAccountAggregateDto';
637
+ export type { PageServiceAccountDto } from './schemas/PageServiceAccountDto';
635
638
  export type { PageServiceDashboardResponseDto } from './schemas/PageServiceDashboardResponseDto';
636
639
  export type { PageServiceResponse } from './schemas/PageServiceResponse';
637
640
  export type { PageTokenAggregateDto } from './schemas/PageTokenAggregateDto';
@@ -744,6 +747,7 @@ export type { ResponsePageProjectAggregateDto } from './schemas/ResponsePageProj
744
747
  export type { ResponsePageProjectResponse } from './schemas/ResponsePageProjectResponse';
745
748
  export type { ResponsePageSecretResponseWrapper } from './schemas/ResponsePageSecretResponseWrapper';
746
749
  export type { ResponsePageServiceAccountAggregateDto } from './schemas/ResponsePageServiceAccountAggregateDto';
750
+ export type { ResponsePageServiceAccountDto } from './schemas/ResponsePageServiceAccountDto';
747
751
  export type { ResponsePageServiceDashboardResponseDto } from './schemas/ResponsePageServiceDashboardResponseDto';
748
752
  export type { ResponsePageServiceResponse } from './schemas/ResponsePageServiceResponse';
749
753
  export type { ResponsePageTokenAggregateDto } from './schemas/ResponsePageTokenAggregateDto';
@@ -166,6 +166,7 @@ export { listAwsRegions, useListAwsRegionsQuery } from './hooks/useListAwsRegion
166
166
  export { listBucketsWithServiceV2, useListBucketsWithServiceV2Mutation, } from './hooks/useListBucketsWithServiceV2Mutation';
167
167
  export { listFeedsForAzureArtifacts, useListFeedsForAzureArtifactsQuery, } from './hooks/useListFeedsForAzureArtifactsQuery';
168
168
  export { listFeedsForAzureArtifactsWithServiceV2, useListFeedsForAzureArtifactsWithServiceV2Mutation, } from './hooks/useListFeedsForAzureArtifactsWithServiceV2Mutation';
169
+ export { listManageableServiceAccounts, useListManageableServiceAccountsQuery, } from './hooks/useListManageableServiceAccountsQuery';
169
170
  export { listMcpTools, useListMcpToolsQuery } from './hooks/useListMcpToolsQuery';
170
171
  export { listPackagesForAzureArtifacts, useListPackagesForAzureArtifactsQuery, } from './hooks/useListPackagesForAzureArtifactsQuery';
171
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.42.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",