@harnessio/react-ng-manager-swagger-service-client 1.27.0 → 1.28.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,20 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ResponseCannyCategoriesResponseDto } from '../schemas/ResponseCannyCategoriesResponseDto';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { AccessControlCheckError } from '../schemas/AccessControlCheckError';
5
+ import type { Error } from '../schemas/Error';
6
+ import type { ResponseWithPagination } from '../helpers';
7
+ import { FetcherOptions } from '../../../../fetcher/index.js';
8
+ export interface GetCannyCategoriesQueryQueryParams {
9
+ accountIdentifier: string;
10
+ }
11
+ export type GetCannyCategoriesOkResponse = ResponseWithPagination<ResponseCannyCategoriesResponseDto>;
12
+ export type GetCannyCategoriesErrorResponse = Failure | AccessControlCheckError | Error;
13
+ export interface GetCannyCategoriesProps extends Omit<FetcherOptions<GetCannyCategoriesQueryQueryParams, unknown>, 'url'> {
14
+ queryParams: GetCannyCategoriesQueryQueryParams;
15
+ }
16
+ export declare function getCannyCategories(props: GetCannyCategoriesProps): Promise<GetCannyCategoriesOkResponse>;
17
+ /**
18
+ *
19
+ */
20
+ export declare function useGetCannyCategoriesQuery(props: GetCannyCategoriesProps, options?: Omit<UseQueryOptions<GetCannyCategoriesOkResponse, GetCannyCategoriesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetCannyCategoriesOkResponse, GetCannyCategoriesErrorResponse>;
@@ -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 getCannyCategories(props) {
7
+ return fetcher(Object.assign({ url: `/canny/categories`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useGetCannyCategoriesQuery(props, options) {
13
+ return useQuery(['getCannyCategories', props.queryParams], ({ signal }) => getCannyCategories(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -17,6 +17,8 @@ export interface GetHelmChartVersionDetailsQueryQueryParams {
17
17
  folderPath?: string;
18
18
  lastTag?: string;
19
19
  registryId?: string;
20
+ gcpProject?: string;
21
+ garRepositoryName?: string;
20
22
  }
21
23
  export type GetHelmChartVersionDetailsOkResponse = ResponseWithPagination<ResponseHelmChartResponseDto>;
22
24
  export type GetHelmChartVersionDetailsErrorResponse = Failure | Error;
@@ -18,6 +18,8 @@ export interface GetHelmChartVersionDetailsV1QueryQueryParams {
18
18
  ociHelmChartStoreConfigType?: string;
19
19
  helmVersion?: string;
20
20
  registryId?: string;
21
+ gcpProject?: string;
22
+ garRepositoryName?: string;
21
23
  }
22
24
  export type GetHelmChartVersionDetailsV1OkResponse = ResponseWithPagination<ResponseHelmChartResponseDto>;
23
25
  export type GetHelmChartVersionDetailsV1ErrorResponse = Failure | Error;
@@ -19,6 +19,8 @@ export interface GetHelmChartVersionDetailsWithYamlMutationQueryParams {
19
19
  folderPath?: string;
20
20
  lastTag?: string;
21
21
  registryId?: string;
22
+ gcpProject?: string;
23
+ garRepositoryName?: string;
22
24
  chartVersionInput?: string;
23
25
  branch?: string;
24
26
  repoIdentifier?: string;
@@ -87,6 +87,8 @@ export type { GetBuildsForBambooErrorResponse, GetBuildsForBambooMutationQueryPa
87
87
  export { getBuildsForBamboo, useGetBuildsForBambooMutation, } from './hooks/useGetBuildsForBambooMutation';
88
88
  export type { GetBuildsForJenkinsErrorResponse, GetBuildsForJenkinsOkResponse, GetBuildsForJenkinsProps, GetBuildsForJenkinsQueryPathParams, GetBuildsForJenkinsQueryQueryParams, } from './hooks/useGetBuildsForJenkinsQuery';
89
89
  export { getBuildsForJenkins, useGetBuildsForJenkinsQuery, } from './hooks/useGetBuildsForJenkinsQuery';
90
+ export type { GetCannyCategoriesErrorResponse, GetCannyCategoriesOkResponse, GetCannyCategoriesProps, GetCannyCategoriesQueryQueryParams, } from './hooks/useGetCannyCategoriesQuery';
91
+ export { getCannyCategories, useGetCannyCategoriesQuery } from './hooks/useGetCannyCategoriesQuery';
90
92
  export type { GetClusterNamesForGcpErrorResponse, GetClusterNamesForGcpOkResponse, GetClusterNamesForGcpProps, GetClusterNamesForGcpQueryQueryParams, } from './hooks/useGetClusterNamesForGcpQuery';
91
93
  export { getClusterNamesForGcp, useGetClusterNamesForGcpQuery, } from './hooks/useGetClusterNamesForGcpQuery';
92
94
  export type { GetEksClusterNamesErrorResponse, GetEksClusterNamesOkResponse, GetEksClusterNamesProps, GetEksClusterNamesQueryQueryParams, } from './hooks/useGetEksClusterNamesQuery';
@@ -359,6 +361,8 @@ export type { BambooPlanNames } from './schemas/BambooPlanNames';
359
361
  export type { BucketResponse } from './schemas/BucketResponse';
360
362
  export type { BuildDetails } from './schemas/BuildDetails';
361
363
  export type { CacheResponseMetadata } from './schemas/CacheResponseMetadata';
364
+ export type { CannyCategoriesResponseDto } from './schemas/CannyCategoriesResponseDto';
365
+ export type { Category } from './schemas/Category';
362
366
  export type { CustomScriptInfo } from './schemas/CustomScriptInfo';
363
367
  export type { DestinationEnvironmentConfig } from './schemas/DestinationEnvironmentConfig';
364
368
  export type { DestinationServiceConfig } from './schemas/DestinationServiceConfig';
@@ -485,6 +489,7 @@ export type { ResponseAzureTagsDto } from './schemas/ResponseAzureTagsDto';
485
489
  export type { ResponseBambooPlanKeysDto } from './schemas/ResponseBambooPlanKeysDto';
486
490
  export type { ResponseBoolean } from './schemas/ResponseBoolean';
487
491
  export type { ResponseBuildDetails } from './schemas/ResponseBuildDetails';
492
+ export type { ResponseCannyCategoriesResponseDto } from './schemas/ResponseCannyCategoriesResponseDto';
488
493
  export type { ResponseDockerBuildDetailsDto } from './schemas/ResponseDockerBuildDetailsDto';
489
494
  export type { ResponseDockerResponseDto } from './schemas/ResponseDockerResponseDto';
490
495
  export type { ResponseEcrBuildDetailsDto } from './schemas/ResponseEcrBuildDetailsDto';
@@ -42,6 +42,7 @@ export { getBuildDetailsForNexusArtifact, useGetBuildDetailsForNexusArtifactQuer
42
42
  export { getBuildDetailsForNexusArtifactWithYaml, useGetBuildDetailsForNexusArtifactWithYamlMutation, } from './hooks/useGetBuildDetailsForNexusArtifactWithYamlMutation';
43
43
  export { getBuildsForBamboo, useGetBuildsForBambooMutation, } from './hooks/useGetBuildsForBambooMutation';
44
44
  export { getBuildsForJenkins, useGetBuildsForJenkinsQuery, } from './hooks/useGetBuildsForJenkinsQuery';
45
+ export { getCannyCategories, useGetCannyCategoriesQuery } from './hooks/useGetCannyCategoriesQuery';
45
46
  export { getClusterNamesForGcp, useGetClusterNamesForGcpQuery, } from './hooks/useGetClusterNamesForGcpQuery';
46
47
  export { getEksClusterNames, useGetEksClusterNamesQuery } from './hooks/useGetEksClusterNamesQuery';
47
48
  export { getEnvironmentListV2, useGetEnvironmentListV2Mutation, } from './hooks/useGetEnvironmentListV2Mutation';
@@ -0,0 +1,5 @@
1
+ import type { Category } from '../schemas/Category';
2
+ export interface CannyCategoriesResponseDto {
3
+ boardId?: string;
4
+ categoryList?: Category[];
5
+ }
@@ -0,0 +1,4 @@
1
+ export interface Category {
2
+ id?: string;
3
+ name?: string;
4
+ }
@@ -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,9 @@
1
+ import type { CannyCategoriesResponseDto } from '../schemas/CannyCategoriesResponseDto';
2
+ export interface ResponseCannyCategoriesResponseDto {
3
+ correlationId?: string;
4
+ data?: CannyCategoriesResponseDto;
5
+ metaData?: {
6
+ [key: string]: any;
7
+ };
8
+ status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
9
+ }
@@ -3,7 +3,7 @@ import type { ScopedResourceMetadata } from '../schemas/ScopedResourceMetadata';
3
3
  import type { ScopedResourcePermission } from '../schemas/ScopedResourcePermission';
4
4
  export interface TokenDto {
5
5
  accountIdentifier: string;
6
- apiKeyIdentifier: string;
6
+ apiKeyIdentifier?: string;
7
7
  apiKeyType: 'PGP_KEY' | 'SCOPED_TOKEN' | 'SERVICE_ACCOUNT' | 'SSH_KEY' | 'USER';
8
8
  content?: string;
9
9
  description?: string;
@@ -13,7 +13,7 @@ export interface TokenDto {
13
13
  name: string;
14
14
  orgIdentifier?: string;
15
15
  parentEntityUniqueId?: string;
16
- parentIdentifier: string;
16
+ parentIdentifier?: string;
17
17
  parentUniqueId?: string;
18
18
  pgpIdentities?: PgpKeyIdentity[];
19
19
  pgpIsSubKey?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ng-manager-swagger-service-client",
3
- "version": "1.27.0",
3
+ "version": "1.28.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",