@harnessio/react-rmg-service-client 0.6.0 → 0.7.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 { ReleaseGroupComponentResponseResponse } from '../responses/ReleaseGroupComponentResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetReleaseGroupReleaseGroupIdComponentsQueryPathParams {
7
+ releaseGroupId: string;
8
+ }
9
+ export interface GetReleaseGroupReleaseGroupIdComponentsQueryHeaderParams {
10
+ 'Harness-Account': string;
11
+ }
12
+ export type GetReleaseGroupReleaseGroupIdComponentsOkResponse = ResponseWithPagination<ReleaseGroupComponentResponseResponse>;
13
+ export type GetReleaseGroupReleaseGroupIdComponentsErrorResponse = ErrorResponseResponse;
14
+ export interface GetReleaseGroupReleaseGroupIdComponentsProps extends GetReleaseGroupReleaseGroupIdComponentsQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetReleaseGroupReleaseGroupIdComponentsQueryHeaderParams>, 'url'> {
15
+ }
16
+ export declare function getReleaseGroupReleaseGroupIdComponents(props: GetReleaseGroupReleaseGroupIdComponentsProps): Promise<GetReleaseGroupReleaseGroupIdComponentsOkResponse>;
17
+ /**
18
+ * Get Component Details for a given releaseGroupId
19
+ */
20
+ export declare function useGetReleaseGroupReleaseGroupIdComponentsQuery(props: GetReleaseGroupReleaseGroupIdComponentsProps, options?: Omit<UseQueryOptions<GetReleaseGroupReleaseGroupIdComponentsOkResponse, GetReleaseGroupReleaseGroupIdComponentsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetReleaseGroupReleaseGroupIdComponentsOkResponse, import("..").Error>;
@@ -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 getReleaseGroupReleaseGroupIdComponents(props) {
7
+ return fetcher(Object.assign({ url: `/releaseGroup/${props.releaseGroupId}/components`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get Component Details for a given releaseGroupId
11
+ */
12
+ export function useGetReleaseGroupReleaseGroupIdComponentsQuery(props, options) {
13
+ return useQuery(['get-releaseGroup-releaseGroupId-components', props.releaseGroupId], ({ signal }) => getReleaseGroupReleaseGroupIdComponents(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -5,6 +5,8 @@ export type { GetReleaseActivitiesErrorResponse, GetReleaseActivitiesOkResponse,
5
5
  export { getReleaseActivities, useGetReleaseActivitiesQuery, } from './hooks/useGetReleaseActivitiesQuery';
6
6
  export type { GetReleaseGroupErrorResponse, GetReleaseGroupOkResponse, GetReleaseGroupProps, GetReleaseGroupQueryPathParams, GetReleaseGroupQueryQueryParams, } from './hooks/useGetReleaseGroupQuery';
7
7
  export { getReleaseGroup, useGetReleaseGroupQuery } from './hooks/useGetReleaseGroupQuery';
8
+ export type { GetReleaseGroupReleaseGroupIdComponentsErrorResponse, GetReleaseGroupReleaseGroupIdComponentsOkResponse, GetReleaseGroupReleaseGroupIdComponentsProps, GetReleaseGroupReleaseGroupIdComponentsQueryPathParams, } from './hooks/useGetReleaseGroupReleaseGroupIdComponentsQuery';
9
+ export { getReleaseGroupReleaseGroupIdComponents, useGetReleaseGroupReleaseGroupIdComponentsQuery, } from './hooks/useGetReleaseGroupReleaseGroupIdComponentsQuery';
8
10
  export type { GetReleaseGroupSummaryErrorResponse, GetReleaseGroupSummaryOkResponse, GetReleaseGroupSummaryProps, GetReleaseGroupSummaryQueryQueryParams, } from './hooks/useGetReleaseGroupSummaryQuery';
9
11
  export { getReleaseGroupSummary, useGetReleaseGroupSummaryQuery, } from './hooks/useGetReleaseGroupSummaryQuery';
10
12
  export type { GetReleaseErrorResponse, GetReleaseOkResponse, GetReleaseProps, GetReleaseQueryPathParams, } from './hooks/useGetReleaseQuery';
@@ -30,6 +32,7 @@ export type { GetReleaseGroupResponseResponse } from './responses/GetReleaseGrou
30
32
  export type { ReleaseActivitiesResponseResponse } from './responses/ReleaseActivitiesResponseResponse';
31
33
  export type { ReleaseApprovalsResponseResponse } from './responses/ReleaseApprovalsResponseResponse';
32
34
  export type { ReleaseDetailsResponseResponse } from './responses/ReleaseDetailsResponseResponse';
35
+ export type { ReleaseGroupComponentResponseResponse } from './responses/ReleaseGroupComponentResponseResponse';
33
36
  export type { ReleaseGroupSummaryResponseResponse } from './responses/ReleaseGroupSummaryResponseResponse';
34
37
  export type { ReleaseSummaryResponseResponse } from './responses/ReleaseSummaryResponseResponse';
35
38
  export type { UpdateReleaseGroupResponseResponse } from './responses/UpdateReleaseGroupResponseResponse';
@@ -1,6 +1,7 @@
1
1
  export { deleteReleaseGroup, useDeleteReleaseGroupMutation, } from './hooks/useDeleteReleaseGroupMutation';
2
2
  export { getReleaseActivities, useGetReleaseActivitiesQuery, } from './hooks/useGetReleaseActivitiesQuery';
3
3
  export { getReleaseGroup, useGetReleaseGroupQuery } from './hooks/useGetReleaseGroupQuery';
4
+ export { getReleaseGroupReleaseGroupIdComponents, useGetReleaseGroupReleaseGroupIdComponentsQuery, } from './hooks/useGetReleaseGroupReleaseGroupIdComponentsQuery';
4
5
  export { getReleaseGroupSummary, useGetReleaseGroupSummaryQuery, } from './hooks/useGetReleaseGroupSummaryQuery';
5
6
  export { getRelease, useGetReleaseQuery } from './hooks/useGetReleaseQuery';
6
7
  export { getReleaseReleaseIdApprovals, useGetReleaseReleaseIdApprovalsQuery, } from './hooks/useGetReleaseReleaseIdApprovalsQuery';
@@ -0,0 +1,4 @@
1
+ import type { ReleaseComponent } from '../schemas/ReleaseComponent';
2
+ export interface ReleaseGroupComponentResponseResponse {
3
+ components: ReleaseComponent[];
4
+ }
@@ -1,10 +1,20 @@
1
- import type { ReleaseGroupYaml } from '../schemas/ReleaseGroupYaml';
1
+ import type { ReleaseCadence } from '../schemas/ReleaseCadence';
2
+ import type { ReleaseType } from '../schemas/ReleaseType';
2
3
  export interface ReleaseGroupDto {
4
+ cadence: ReleaseCadence;
5
+ color: string;
6
+ description?: string;
7
+ identifier: string;
3
8
  lastUpdatedAt: number;
4
9
  lastUpdatedBy: {
5
10
  email?: string;
6
11
  identifier: string;
7
12
  name?: string;
8
13
  };
9
- yaml: ReleaseGroupYaml;
14
+ name: string;
15
+ releaseType: ReleaseType;
16
+ releaseVersion: string;
17
+ tags?: {
18
+ [key: string]: string;
19
+ };
10
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-rmg-service-client",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Harness Release Management Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",