@harnessio/react-pipeline-swagger-service-client 1.16.0 → 1.17.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,41 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ResponsePageNgTriggerEventHistoryResponse } from '../schemas/ResponsePageNgTriggerEventHistoryResponse';
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 TriggerEventHistoryNewQueryPathParams {
8
+ triggerIdentifier: string;
9
+ }
10
+ export interface TriggerEventHistoryNewQueryQueryParams {
11
+ accountIdentifier: string;
12
+ orgIdentifier: string;
13
+ projectIdentifier: string;
14
+ targetIdentifier: string;
15
+ searchTerm?: string;
16
+ /**
17
+ * @format int32
18
+ * @default 0
19
+ */
20
+ page?: number;
21
+ /**
22
+ * @format int32
23
+ * @default 10
24
+ */
25
+ size?: number;
26
+ sort?: string[];
27
+ /**
28
+ * @default true
29
+ */
30
+ shouldSendTriggerPayload?: boolean;
31
+ }
32
+ export type TriggerEventHistoryNewOkResponse = ResponseWithPagination<ResponsePageNgTriggerEventHistoryResponse>;
33
+ export type TriggerEventHistoryNewErrorResponse = Failure | Error;
34
+ export interface TriggerEventHistoryNewProps extends TriggerEventHistoryNewQueryPathParams, Omit<FetcherOptions<TriggerEventHistoryNewQueryQueryParams, unknown>, 'url'> {
35
+ queryParams: TriggerEventHistoryNewQueryQueryParams;
36
+ }
37
+ export declare function triggerEventHistoryNew(props: TriggerEventHistoryNewProps): Promise<TriggerEventHistoryNewOkResponse>;
38
+ /**
39
+ *
40
+ */
41
+ export declare function useTriggerEventHistoryNewQuery(props: TriggerEventHistoryNewProps, options?: Omit<UseQueryOptions<TriggerEventHistoryNewOkResponse, TriggerEventHistoryNewErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<TriggerEventHistoryNewOkResponse, TriggerEventHistoryNewErrorResponse>;
@@ -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 triggerEventHistoryNew(props) {
7
+ return fetcher(Object.assign({ url: `/triggers/eventHistory/${props.triggerIdentifier}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useTriggerEventHistoryNewQuery(props, options) {
13
+ return useQuery(['triggerEventHistoryNew', props.triggerIdentifier, props.queryParams], ({ signal }) => triggerEventHistoryNew(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -75,6 +75,8 @@ export type { RetryHistoryErrorResponse, RetryHistoryOkResponse, RetryHistoryPro
75
75
  export { retryHistory, useRetryHistoryQuery } from './hooks/useRetryHistoryQuery';
76
76
  export type { StartPreflightCheckErrorResponse, StartPreflightCheckMutationQueryParams, StartPreflightCheckOkResponse, StartPreflightCheckProps, } from './hooks/useStartPreflightCheckMutation';
77
77
  export { startPreflightCheck, useStartPreflightCheckMutation, } from './hooks/useStartPreflightCheckMutation';
78
+ export type { TriggerEventHistoryNewErrorResponse, TriggerEventHistoryNewOkResponse, TriggerEventHistoryNewProps, TriggerEventHistoryNewQueryPathParams, TriggerEventHistoryNewQueryQueryParams, } from './hooks/useTriggerEventHistoryNewQuery';
79
+ export { triggerEventHistoryNew, useTriggerEventHistoryNewQuery, } from './hooks/useTriggerEventHistoryNewQuery';
78
80
  export type { TriggerEventHistoryErrorResponse, TriggerEventHistoryOkResponse, TriggerEventHistoryProps, TriggerEventHistoryQueryPathParams, TriggerEventHistoryQueryQueryParams, } from './hooks/useTriggerEventHistoryQuery';
79
81
  export { triggerEventHistory, useTriggerEventHistoryQuery, } from './hooks/useTriggerEventHistoryQuery';
80
82
  export type { TriggerHistoryEventCorrelationV2ErrorResponse, TriggerHistoryEventCorrelationV2OkResponse, TriggerHistoryEventCorrelationV2Props, TriggerHistoryEventCorrelationV2QueryPathParams, TriggerHistoryEventCorrelationV2QueryQueryParams, } from './hooks/useTriggerHistoryEventCorrelationV2Query';
@@ -36,6 +36,7 @@ export { handleStageInterrupt, useHandleStageInterruptMutation, } from './hooks/
36
36
  export { postFilter, usePostFilterMutation } from './hooks/usePostFilterMutation';
37
37
  export { retryHistory, useRetryHistoryQuery } from './hooks/useRetryHistoryQuery';
38
38
  export { startPreflightCheck, useStartPreflightCheckMutation, } from './hooks/useStartPreflightCheckMutation';
39
+ export { triggerEventHistoryNew, useTriggerEventHistoryNewQuery, } from './hooks/useTriggerEventHistoryNewQuery';
39
40
  export { triggerEventHistory, useTriggerEventHistoryQuery, } from './hooks/useTriggerEventHistoryQuery';
40
41
  export { triggerHistoryEventCorrelationV2, useTriggerHistoryEventCorrelationV2Query, } from './hooks/useTriggerHistoryEventCorrelationV2Query';
41
42
  export { updateFilter, useUpdateFilterMutation } from './hooks/useUpdateFilterMutation';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-pipeline-swagger-service-client",
3
- "version": "1.16.0",
3
+ "version": "1.17.0",
4
4
  "description": "Harness React pipeline service client - Pipeline APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",