@harnessio/react-har-service-client 0.4.0 → 0.6.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.
- package/dist/har-service/src/services/hooks/useCreateWebhookMutation.d.ts +23 -0
- package/dist/har-service/src/services/hooks/useCreateWebhookMutation.js +14 -0
- package/dist/har-service/src/services/hooks/useDeleteWebhookMutation.d.ts +22 -0
- package/dist/har-service/src/services/hooks/useDeleteWebhookMutation.js +14 -0
- package/dist/har-service/src/services/hooks/useGetWebhookExecutionQuery.d.ts +22 -0
- package/dist/har-service/src/services/hooks/useGetWebhookExecutionQuery.js +19 -0
- package/dist/har-service/src/services/hooks/useGetWebhookQuery.d.ts +21 -0
- package/dist/har-service/src/services/hooks/useGetWebhookQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useListWebhookExecutionsQuery.d.ts +34 -0
- package/dist/har-service/src/services/hooks/useListWebhookExecutionsQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useListWebhooksQuery.d.ts +36 -0
- package/dist/har-service/src/services/hooks/useListWebhooksQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useReTriggerWebhookExecutionQuery.d.ts +22 -0
- package/dist/har-service/src/services/hooks/useReTriggerWebhookExecutionQuery.js +19 -0
- package/dist/har-service/src/services/hooks/useUpdateWebhookMutation.d.ts +24 -0
- package/dist/har-service/src/services/hooks/useUpdateWebhookMutation.js +14 -0
- package/dist/har-service/src/services/index.d.ts +31 -0
- package/dist/har-service/src/services/index.js +8 -0
- package/dist/har-service/src/services/requestBodies/WebhookRequestRequestBody.d.ts +2 -0
- package/dist/har-service/src/services/requestBodies/WebhookRequestRequestBody.js +1 -0
- package/dist/har-service/src/services/responses/ListWebhooksExecutionResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/ListWebhooksExecutionResponseResponse.js +1 -0
- package/dist/har-service/src/services/responses/ListWebhooksResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/ListWebhooksResponseResponse.js +1 -0
- package/dist/har-service/src/services/responses/WebhookExecutionResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/WebhookExecutionResponseResponse.js +1 -0
- package/dist/har-service/src/services/responses/WebhookResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/WebhookResponseResponse.js +1 -0
- package/dist/har-service/src/services/schemas/AccessKeySecretKey.d.ts +2 -0
- package/dist/har-service/src/services/schemas/ExtraHeader.d.ts +7 -0
- package/dist/har-service/src/services/schemas/ExtraHeader.js +4 -0
- package/dist/har-service/src/services/schemas/ListWebhooks.d.ts +33 -0
- package/dist/har-service/src/services/schemas/ListWebhooks.js +1 -0
- package/dist/har-service/src/services/schemas/ListWebhooksExecutions.d.ts +33 -0
- package/dist/har-service/src/services/schemas/ListWebhooksExecutions.js +1 -0
- package/dist/har-service/src/services/schemas/Trigger.d.ts +4 -0
- package/dist/har-service/src/services/schemas/Trigger.js +4 -0
- package/dist/har-service/src/services/schemas/Webhook.d.ts +30 -0
- package/dist/har-service/src/services/schemas/Webhook.js +1 -0
- package/dist/har-service/src/services/schemas/WebhookExecRequest.d.ts +8 -0
- package/dist/har-service/src/services/schemas/WebhookExecRequest.js +4 -0
- package/dist/har-service/src/services/schemas/WebhookExecResponse.d.ts +9 -0
- package/dist/har-service/src/services/schemas/WebhookExecResponse.js +4 -0
- package/dist/har-service/src/services/schemas/WebhookExecResult.d.ts +4 -0
- package/dist/har-service/src/services/schemas/WebhookExecResult.js +4 -0
- package/dist/har-service/src/services/schemas/WebhookExecution.d.ts +35 -0
- package/dist/har-service/src/services/schemas/WebhookExecution.js +1 -0
- package/dist/har-service/src/services/schemas/WebhookRequest.d.ts +15 -0
- package/dist/har-service/src/services/schemas/WebhookRequest.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { WebhookResponseResponse } from '../responses/WebhookResponseResponse';
|
|
3
|
+
import type { BadRequestResponse } from '../responses/BadRequestResponse';
|
|
4
|
+
import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
|
|
5
|
+
import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
|
|
6
|
+
import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
7
|
+
import type { WebhookRequestRequestBody } from '../requestBodies/WebhookRequestRequestBody';
|
|
8
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
9
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
10
|
+
export interface CreateWebhookMutationPathParams {
|
|
11
|
+
registry_ref: string;
|
|
12
|
+
}
|
|
13
|
+
export type CreateWebhookRequestBody = WebhookRequestRequestBody;
|
|
14
|
+
export type CreateWebhookOkResponse = ResponseWithPagination<WebhookResponseResponse>;
|
|
15
|
+
export type CreateWebhookErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | InternalServerErrorResponse;
|
|
16
|
+
export interface CreateWebhookProps extends CreateWebhookMutationPathParams, Omit<FetcherOptions<unknown, CreateWebhookRequestBody>, 'url'> {
|
|
17
|
+
body: CreateWebhookRequestBody;
|
|
18
|
+
}
|
|
19
|
+
export declare function createWebhook(props: CreateWebhookProps): Promise<CreateWebhookOkResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Returns Webhook Details
|
|
22
|
+
*/
|
|
23
|
+
export declare function useCreateWebhookMutation(options?: Omit<UseMutationOptions<CreateWebhookOkResponse, CreateWebhookErrorResponse, CreateWebhookProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateWebhookOkResponse, import("..").Error, CreateWebhookProps, 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 createWebhook(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/webhooks`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns Webhook Details
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateWebhookMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createWebhook(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { SuccessResponse } from '../responses/SuccessResponse';
|
|
3
|
+
import type { BadRequestResponse } from '../responses/BadRequestResponse';
|
|
4
|
+
import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
|
|
5
|
+
import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
|
|
6
|
+
import type { NotFoundResponse } from '../responses/NotFoundResponse';
|
|
7
|
+
import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
8
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
9
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
10
|
+
export interface DeleteWebhookMutationPathParams {
|
|
11
|
+
registry_ref: string;
|
|
12
|
+
webhook_identifier: string;
|
|
13
|
+
}
|
|
14
|
+
export type DeleteWebhookOkResponse = ResponseWithPagination<SuccessResponse>;
|
|
15
|
+
export type DeleteWebhookErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
16
|
+
export interface DeleteWebhookProps extends DeleteWebhookMutationPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
17
|
+
}
|
|
18
|
+
export declare function deleteWebhook(props: DeleteWebhookProps): Promise<DeleteWebhookOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Delete a Webhook
|
|
21
|
+
*/
|
|
22
|
+
export declare function useDeleteWebhookMutation(options?: Omit<UseMutationOptions<DeleteWebhookOkResponse, DeleteWebhookErrorResponse, DeleteWebhookProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteWebhookOkResponse, import("..").Error, DeleteWebhookProps, 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 deleteWebhook(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/webhooks/${props.webhook_identifier}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Delete a Webhook
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteWebhookMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteWebhook(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { WebhookExecutionResponseResponse } from '../responses/WebhookExecutionResponseResponse';
|
|
3
|
+
import type { BadRequestResponse } from '../responses/BadRequestResponse';
|
|
4
|
+
import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
|
|
5
|
+
import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
|
|
6
|
+
import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
7
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
8
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
9
|
+
export interface GetWebhookExecutionQueryPathParams {
|
|
10
|
+
registry_ref: string;
|
|
11
|
+
webhook_identifier: string;
|
|
12
|
+
webhook_execution_id: string;
|
|
13
|
+
}
|
|
14
|
+
export type GetWebhookExecutionOkResponse = ResponseWithPagination<WebhookExecutionResponseResponse>;
|
|
15
|
+
export type GetWebhookExecutionErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | InternalServerErrorResponse;
|
|
16
|
+
export interface GetWebhookExecutionProps extends GetWebhookExecutionQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
17
|
+
}
|
|
18
|
+
export declare function getWebhookExecution(props: GetWebhookExecutionProps): Promise<GetWebhookExecutionOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Returns Webhook Execution Details
|
|
21
|
+
*/
|
|
22
|
+
export declare function useGetWebhookExecutionQuery(props: GetWebhookExecutionProps, options?: Omit<UseQueryOptions<GetWebhookExecutionOkResponse, GetWebhookExecutionErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetWebhookExecutionOkResponse, import("..").Error>;
|
|
@@ -0,0 +1,19 @@
|
|
|
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 getWebhookExecution(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/webhooks/${props.webhook_identifier}/executions/${props.webhook_execution_id}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns Webhook Execution Details
|
|
11
|
+
*/
|
|
12
|
+
export function useGetWebhookExecutionQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'GetWebhookExecution',
|
|
15
|
+
props.registry_ref,
|
|
16
|
+
props.webhook_identifier,
|
|
17
|
+
props.webhook_execution_id,
|
|
18
|
+
], ({ signal }) => getWebhookExecution(Object.assign(Object.assign({}, props), { signal })), options);
|
|
19
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { WebhookResponseResponse } from '../responses/WebhookResponseResponse';
|
|
3
|
+
import type { BadRequestResponse } from '../responses/BadRequestResponse';
|
|
4
|
+
import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
|
|
5
|
+
import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
|
|
6
|
+
import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
7
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
8
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
9
|
+
export interface GetWebhookQueryPathParams {
|
|
10
|
+
registry_ref: string;
|
|
11
|
+
webhook_identifier: string;
|
|
12
|
+
}
|
|
13
|
+
export type GetWebhookOkResponse = ResponseWithPagination<WebhookResponseResponse>;
|
|
14
|
+
export type GetWebhookErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | InternalServerErrorResponse;
|
|
15
|
+
export interface GetWebhookProps extends GetWebhookQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
16
|
+
}
|
|
17
|
+
export declare function getWebhook(props: GetWebhookProps): Promise<GetWebhookOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Returns Webhook Details
|
|
20
|
+
*/
|
|
21
|
+
export declare function useGetWebhookQuery(props: GetWebhookProps, options?: Omit<UseQueryOptions<GetWebhookOkResponse, GetWebhookErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetWebhookOkResponse, 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 getWebhook(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/webhooks/${props.webhook_identifier}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns Webhook Details
|
|
11
|
+
*/
|
|
12
|
+
export function useGetWebhookQuery(props, options) {
|
|
13
|
+
return useQuery(['GetWebhook', props.registry_ref, props.webhook_identifier], ({ signal }) => getWebhook(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ListWebhooksExecutionResponseResponse } from '../responses/ListWebhooksExecutionResponseResponse';
|
|
3
|
+
import type { BadRequestResponse } from '../responses/BadRequestResponse';
|
|
4
|
+
import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
|
|
5
|
+
import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
|
|
6
|
+
import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
7
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
8
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
9
|
+
export interface ListWebhookExecutionsQueryPathParams {
|
|
10
|
+
registry_ref: string;
|
|
11
|
+
webhook_identifier: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ListWebhookExecutionsQueryQueryParams {
|
|
14
|
+
/**
|
|
15
|
+
* @format int64
|
|
16
|
+
* @default 1
|
|
17
|
+
*/
|
|
18
|
+
page?: number;
|
|
19
|
+
/**
|
|
20
|
+
* @format int64
|
|
21
|
+
* @default 20
|
|
22
|
+
*/
|
|
23
|
+
size?: number;
|
|
24
|
+
}
|
|
25
|
+
export type ListWebhookExecutionsOkResponse = ResponseWithPagination<ListWebhooksExecutionResponseResponse>;
|
|
26
|
+
export type ListWebhookExecutionsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | InternalServerErrorResponse;
|
|
27
|
+
export interface ListWebhookExecutionsProps extends ListWebhookExecutionsQueryPathParams, Omit<FetcherOptions<ListWebhookExecutionsQueryQueryParams, unknown>, 'url'> {
|
|
28
|
+
queryParams: ListWebhookExecutionsQueryQueryParams;
|
|
29
|
+
}
|
|
30
|
+
export declare function listWebhookExecutions(props: ListWebhookExecutionsProps): Promise<ListWebhookExecutionsOkResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Returns Webhook Execution Details List
|
|
33
|
+
*/
|
|
34
|
+
export declare function useListWebhookExecutionsQuery(props: ListWebhookExecutionsProps, options?: Omit<UseQueryOptions<ListWebhookExecutionsOkResponse, ListWebhookExecutionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListWebhookExecutionsOkResponse, 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 listWebhookExecutions(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/webhooks/${props.webhook_identifier}/executions`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns Webhook Execution Details List
|
|
11
|
+
*/
|
|
12
|
+
export function useListWebhookExecutionsQuery(props, options) {
|
|
13
|
+
return useQuery(['ListWebhookExecutions', props.registry_ref, props.webhook_identifier, props.queryParams], ({ signal }) => listWebhookExecutions(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ListWebhooksResponseResponse } from '../responses/ListWebhooksResponseResponse';
|
|
3
|
+
import type { BadRequestResponse } from '../responses/BadRequestResponse';
|
|
4
|
+
import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
|
|
5
|
+
import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
|
|
6
|
+
import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
7
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
8
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
9
|
+
export interface ListWebhooksQueryPathParams {
|
|
10
|
+
registry_ref: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ListWebhooksQueryQueryParams {
|
|
13
|
+
/**
|
|
14
|
+
* @format int64
|
|
15
|
+
* @default 1
|
|
16
|
+
*/
|
|
17
|
+
page?: number;
|
|
18
|
+
/**
|
|
19
|
+
* @format int64
|
|
20
|
+
* @default 20
|
|
21
|
+
*/
|
|
22
|
+
size?: number;
|
|
23
|
+
sort_order?: string;
|
|
24
|
+
sort_field?: string;
|
|
25
|
+
search_term?: string;
|
|
26
|
+
}
|
|
27
|
+
export type ListWebhooksOkResponse = ResponseWithPagination<ListWebhooksResponseResponse>;
|
|
28
|
+
export type ListWebhooksErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | InternalServerErrorResponse;
|
|
29
|
+
export interface ListWebhooksProps extends ListWebhooksQueryPathParams, Omit<FetcherOptions<ListWebhooksQueryQueryParams, unknown>, 'url'> {
|
|
30
|
+
queryParams: ListWebhooksQueryQueryParams;
|
|
31
|
+
}
|
|
32
|
+
export declare function listWebhooks(props: ListWebhooksProps): Promise<ListWebhooksOkResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* Returns List of Webhook Details
|
|
35
|
+
*/
|
|
36
|
+
export declare function useListWebhooksQuery(props: ListWebhooksProps, options?: Omit<UseQueryOptions<ListWebhooksOkResponse, ListWebhooksErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListWebhooksOkResponse, 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 listWebhooks(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/webhooks`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns List of Webhook Details
|
|
11
|
+
*/
|
|
12
|
+
export function useListWebhooksQuery(props, options) {
|
|
13
|
+
return useQuery(['ListWebhooks', props.registry_ref, props.queryParams], ({ signal }) => listWebhooks(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { WebhookExecutionResponseResponse } from '../responses/WebhookExecutionResponseResponse';
|
|
3
|
+
import type { BadRequestResponse } from '../responses/BadRequestResponse';
|
|
4
|
+
import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
|
|
5
|
+
import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
|
|
6
|
+
import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
7
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
8
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
9
|
+
export interface ReTriggerWebhookExecutionQueryPathParams {
|
|
10
|
+
registry_ref: string;
|
|
11
|
+
webhook_identifier: string;
|
|
12
|
+
webhook_execution_id: string;
|
|
13
|
+
}
|
|
14
|
+
export type ReTriggerWebhookExecutionOkResponse = ResponseWithPagination<WebhookExecutionResponseResponse>;
|
|
15
|
+
export type ReTriggerWebhookExecutionErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | InternalServerErrorResponse;
|
|
16
|
+
export interface ReTriggerWebhookExecutionProps extends ReTriggerWebhookExecutionQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
17
|
+
}
|
|
18
|
+
export declare function reTriggerWebhookExecution(props: ReTriggerWebhookExecutionProps): Promise<ReTriggerWebhookExecutionOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Retrigger Webhook Execution
|
|
21
|
+
*/
|
|
22
|
+
export declare function useReTriggerWebhookExecutionQuery(props: ReTriggerWebhookExecutionProps, options?: Omit<UseQueryOptions<ReTriggerWebhookExecutionOkResponse, ReTriggerWebhookExecutionErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ReTriggerWebhookExecutionOkResponse, import("..").Error>;
|
|
@@ -0,0 +1,19 @@
|
|
|
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 reTriggerWebhookExecution(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/webhooks/${props.webhook_identifier}/executions/${props.webhook_execution_id}/retrigger`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrigger Webhook Execution
|
|
11
|
+
*/
|
|
12
|
+
export function useReTriggerWebhookExecutionQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'ReTriggerWebhookExecution',
|
|
15
|
+
props.registry_ref,
|
|
16
|
+
props.webhook_identifier,
|
|
17
|
+
props.webhook_execution_id,
|
|
18
|
+
], ({ signal }) => reTriggerWebhookExecution(Object.assign(Object.assign({}, props), { signal })), options);
|
|
19
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { WebhookResponseResponse } from '../responses/WebhookResponseResponse';
|
|
3
|
+
import type { BadRequestResponse } from '../responses/BadRequestResponse';
|
|
4
|
+
import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
|
|
5
|
+
import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
|
|
6
|
+
import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
7
|
+
import type { WebhookRequestRequestBody } from '../requestBodies/WebhookRequestRequestBody';
|
|
8
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
9
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
10
|
+
export interface UpdateWebhookMutationPathParams {
|
|
11
|
+
registry_ref: string;
|
|
12
|
+
webhook_identifier: string;
|
|
13
|
+
}
|
|
14
|
+
export type UpdateWebhookRequestBody = WebhookRequestRequestBody;
|
|
15
|
+
export type UpdateWebhookOkResponse = ResponseWithPagination<WebhookResponseResponse>;
|
|
16
|
+
export type UpdateWebhookErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | InternalServerErrorResponse;
|
|
17
|
+
export interface UpdateWebhookProps extends UpdateWebhookMutationPathParams, Omit<FetcherOptions<unknown, UpdateWebhookRequestBody>, 'url'> {
|
|
18
|
+
body: UpdateWebhookRequestBody;
|
|
19
|
+
}
|
|
20
|
+
export declare function updateWebhook(props: UpdateWebhookProps): Promise<UpdateWebhookOkResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Returns Webhook Details
|
|
23
|
+
*/
|
|
24
|
+
export declare function useUpdateWebhookMutation(options?: Omit<UseMutationOptions<UpdateWebhookOkResponse, UpdateWebhookErrorResponse, UpdateWebhookProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateWebhookOkResponse, import("..").Error, UpdateWebhookProps, 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 updateWebhook(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/webhooks/${props.webhook_identifier}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns Webhook Details
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateWebhookMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateWebhook(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
export type { GetPathParamsType, ResponseWithPagination } from './helpers';
|
|
2
2
|
export type { CreateRegistryErrorResponse, CreateRegistryMutationQueryParams, CreateRegistryOkResponse, CreateRegistryProps, CreateRegistryRequestBody, } from './hooks/useCreateRegistryMutation';
|
|
3
3
|
export { createRegistry, useCreateRegistryMutation } from './hooks/useCreateRegistryMutation';
|
|
4
|
+
export type { CreateWebhookErrorResponse, CreateWebhookMutationPathParams, CreateWebhookOkResponse, CreateWebhookProps, CreateWebhookRequestBody, } from './hooks/useCreateWebhookMutation';
|
|
5
|
+
export { createWebhook, useCreateWebhookMutation } from './hooks/useCreateWebhookMutation';
|
|
4
6
|
export type { DeleteArtifactErrorResponse, DeleteArtifactMutationPathParams, DeleteArtifactOkResponse, DeleteArtifactProps, } from './hooks/useDeleteArtifactMutation';
|
|
5
7
|
export { deleteArtifact, useDeleteArtifactMutation } from './hooks/useDeleteArtifactMutation';
|
|
6
8
|
export type { DeleteArtifactVersionErrorResponse, DeleteArtifactVersionMutationPathParams, DeleteArtifactVersionOkResponse, DeleteArtifactVersionProps, } from './hooks/useDeleteArtifactVersionMutation';
|
|
7
9
|
export { deleteArtifactVersion, useDeleteArtifactVersionMutation, } from './hooks/useDeleteArtifactVersionMutation';
|
|
8
10
|
export type { DeleteRegistryErrorResponse, DeleteRegistryMutationPathParams, DeleteRegistryOkResponse, DeleteRegistryProps, } from './hooks/useDeleteRegistryMutation';
|
|
9
11
|
export { deleteRegistry, useDeleteRegistryMutation } from './hooks/useDeleteRegistryMutation';
|
|
12
|
+
export type { DeleteWebhookErrorResponse, DeleteWebhookMutationPathParams, DeleteWebhookOkResponse, DeleteWebhookProps, } from './hooks/useDeleteWebhookMutation';
|
|
13
|
+
export { deleteWebhook, useDeleteWebhookMutation } from './hooks/useDeleteWebhookMutation';
|
|
10
14
|
export type { GetAllArtifactVersionsErrorResponse, GetAllArtifactVersionsOkResponse, GetAllArtifactVersionsProps, GetAllArtifactVersionsQueryPathParams, GetAllArtifactVersionsQueryQueryParams, } from './hooks/useGetAllArtifactVersionsQuery';
|
|
11
15
|
export { getAllArtifactVersions, useGetAllArtifactVersionsQuery, } from './hooks/useGetAllArtifactVersionsQuery';
|
|
12
16
|
export type { GetAllArtifactsByRegistryErrorResponse, GetAllArtifactsByRegistryOkResponse, GetAllArtifactsByRegistryProps, GetAllArtifactsByRegistryQueryPathParams, GetAllArtifactsByRegistryQueryQueryParams, } from './hooks/useGetAllArtifactsByRegistryQuery';
|
|
@@ -49,16 +53,29 @@ export type { GetHelmArtifactManifestErrorResponse, GetHelmArtifactManifestOkRes
|
|
|
49
53
|
export { getHelmArtifactManifest, useGetHelmArtifactManifestQuery, } from './hooks/useGetHelmArtifactManifestQuery';
|
|
50
54
|
export type { GetRegistryErrorResponse, GetRegistryOkResponse, GetRegistryProps, GetRegistryQueryPathParams, } from './hooks/useGetRegistryQuery';
|
|
51
55
|
export { getRegistry, useGetRegistryQuery } from './hooks/useGetRegistryQuery';
|
|
56
|
+
export type { GetWebhookExecutionErrorResponse, GetWebhookExecutionOkResponse, GetWebhookExecutionProps, GetWebhookExecutionQueryPathParams, } from './hooks/useGetWebhookExecutionQuery';
|
|
57
|
+
export { getWebhookExecution, useGetWebhookExecutionQuery, } from './hooks/useGetWebhookExecutionQuery';
|
|
58
|
+
export type { GetWebhookErrorResponse, GetWebhookOkResponse, GetWebhookProps, GetWebhookQueryPathParams, } from './hooks/useGetWebhookQuery';
|
|
59
|
+
export { getWebhook, useGetWebhookQuery } from './hooks/useGetWebhookQuery';
|
|
52
60
|
export type { ListArtifactLabelsErrorResponse, ListArtifactLabelsOkResponse, ListArtifactLabelsProps, ListArtifactLabelsQueryPathParams, ListArtifactLabelsQueryQueryParams, } from './hooks/useListArtifactLabelsQuery';
|
|
53
61
|
export { listArtifactLabels, useListArtifactLabelsQuery } from './hooks/useListArtifactLabelsQuery';
|
|
62
|
+
export type { ListWebhookExecutionsErrorResponse, ListWebhookExecutionsOkResponse, ListWebhookExecutionsProps, ListWebhookExecutionsQueryPathParams, ListWebhookExecutionsQueryQueryParams, } from './hooks/useListWebhookExecutionsQuery';
|
|
63
|
+
export { listWebhookExecutions, useListWebhookExecutionsQuery, } from './hooks/useListWebhookExecutionsQuery';
|
|
64
|
+
export type { ListWebhooksErrorResponse, ListWebhooksOkResponse, ListWebhooksProps, ListWebhooksQueryPathParams, ListWebhooksQueryQueryParams, } from './hooks/useListWebhooksQuery';
|
|
65
|
+
export { listWebhooks, useListWebhooksQuery } from './hooks/useListWebhooksQuery';
|
|
54
66
|
export type { ModifyRegistryErrorResponse, ModifyRegistryMutationPathParams, ModifyRegistryOkResponse, ModifyRegistryProps, ModifyRegistryRequestBody, } from './hooks/useModifyRegistryMutation';
|
|
55
67
|
export { modifyRegistry, useModifyRegistryMutation } from './hooks/useModifyRegistryMutation';
|
|
68
|
+
export type { ReTriggerWebhookExecutionErrorResponse, ReTriggerWebhookExecutionOkResponse, ReTriggerWebhookExecutionProps, ReTriggerWebhookExecutionQueryPathParams, } from './hooks/useReTriggerWebhookExecutionQuery';
|
|
69
|
+
export { reTriggerWebhookExecution, useReTriggerWebhookExecutionQuery, } from './hooks/useReTriggerWebhookExecutionQuery';
|
|
56
70
|
export type { RedirectHarnessArtifactErrorResponse, RedirectHarnessArtifactOkResponse, RedirectHarnessArtifactProps, RedirectHarnessArtifactQueryPathParams, RedirectHarnessArtifactQueryQueryParams, } from './hooks/useRedirectHarnessArtifactQuery';
|
|
57
71
|
export { redirectHarnessArtifact, useRedirectHarnessArtifactQuery, } from './hooks/useRedirectHarnessArtifactQuery';
|
|
58
72
|
export type { UpdateArtifactLabelsErrorResponse, UpdateArtifactLabelsMutationPathParams, UpdateArtifactLabelsOkResponse, UpdateArtifactLabelsProps, UpdateArtifactLabelsRequestBody, } from './hooks/useUpdateArtifactLabelsMutation';
|
|
59
73
|
export { updateArtifactLabels, useUpdateArtifactLabelsMutation, } from './hooks/useUpdateArtifactLabelsMutation';
|
|
74
|
+
export type { UpdateWebhookErrorResponse, UpdateWebhookMutationPathParams, UpdateWebhookOkResponse, UpdateWebhookProps, UpdateWebhookRequestBody, } from './hooks/useUpdateWebhookMutation';
|
|
75
|
+
export { updateWebhook, useUpdateWebhookMutation } from './hooks/useUpdateWebhookMutation';
|
|
60
76
|
export type { ArtifactLabelRequestRequestBody } from './requestBodies/ArtifactLabelRequestRequestBody';
|
|
61
77
|
export type { RegistryRequestRequestBody } from './requestBodies/RegistryRequestRequestBody';
|
|
78
|
+
export type { WebhookRequestRequestBody } from './requestBodies/WebhookRequestRequestBody';
|
|
62
79
|
export type { ArtifactDeploymentsResponseResponse } from './responses/ArtifactDeploymentsResponseResponse';
|
|
63
80
|
export type { ArtifactDetailResponseResponse } from './responses/ArtifactDetailResponseResponse';
|
|
64
81
|
export type { ArtifactLabelResponseResponse } from './responses/ArtifactLabelResponseResponse';
|
|
@@ -81,12 +98,16 @@ export type { ListArtifactResponseResponse } from './responses/ListArtifactRespo
|
|
|
81
98
|
export type { ListArtifactVersionResponseResponse } from './responses/ListArtifactVersionResponseResponse';
|
|
82
99
|
export type { ListRegistryArtifactResponseResponse } from './responses/ListRegistryArtifactResponseResponse';
|
|
83
100
|
export type { ListRegistryResponseResponse } from './responses/ListRegistryResponseResponse';
|
|
101
|
+
export type { ListWebhooksExecutionResponseResponse } from './responses/ListWebhooksExecutionResponseResponse';
|
|
102
|
+
export type { ListWebhooksResponseResponse } from './responses/ListWebhooksResponseResponse';
|
|
84
103
|
export type { NotFoundResponse } from './responses/NotFoundResponse';
|
|
85
104
|
export type { RedirectResponse } from './responses/RedirectResponse';
|
|
86
105
|
export type { RegistryResponseResponse } from './responses/RegistryResponseResponse';
|
|
87
106
|
export type { SuccessResponse } from './responses/SuccessResponse';
|
|
88
107
|
export type { UnauthenticatedResponse } from './responses/UnauthenticatedResponse';
|
|
89
108
|
export type { UnauthorizedResponse } from './responses/UnauthorizedResponse';
|
|
109
|
+
export type { WebhookExecutionResponseResponse } from './responses/WebhookExecutionResponseResponse';
|
|
110
|
+
export type { WebhookResponseResponse } from './responses/WebhookResponseResponse';
|
|
90
111
|
export type { AccessKeySecretKey } from './schemas/AccessKeySecretKey';
|
|
91
112
|
export type { Anonymous } from './schemas/Anonymous';
|
|
92
113
|
export type { ArtifactDeploymentsDetail } from './schemas/ArtifactDeploymentsDetail';
|
|
@@ -120,6 +141,7 @@ export type { DockerManifestDetails } from './schemas/DockerManifestDetails';
|
|
|
120
141
|
export type { DockerManifests } from './schemas/DockerManifests';
|
|
121
142
|
export type { EnvironmentType } from './schemas/EnvironmentType';
|
|
122
143
|
export type { Error } from './schemas/Error';
|
|
144
|
+
export type { ExtraHeader } from './schemas/ExtraHeader';
|
|
123
145
|
export type { FileDetail } from './schemas/FileDetail';
|
|
124
146
|
export type { GenericArtifactDetailConfig } from './schemas/GenericArtifactDetailConfig';
|
|
125
147
|
export type { HelmArtifactDetail } from './schemas/HelmArtifactDetail';
|
|
@@ -130,6 +152,8 @@ export type { ListArtifactLabel } from './schemas/ListArtifactLabel';
|
|
|
130
152
|
export type { ListArtifactVersion } from './schemas/ListArtifactVersion';
|
|
131
153
|
export type { ListRegistry } from './schemas/ListRegistry';
|
|
132
154
|
export type { ListRegistryArtifact } from './schemas/ListRegistryArtifact';
|
|
155
|
+
export type { ListWebhooks } from './schemas/ListWebhooks';
|
|
156
|
+
export type { ListWebhooksExecutions } from './schemas/ListWebhooksExecutions';
|
|
133
157
|
export type { PackageType } from './schemas/PackageType';
|
|
134
158
|
export type { Registry } from './schemas/Registry';
|
|
135
159
|
export type { RegistryArtifactMetadata } from './schemas/RegistryArtifactMetadata';
|
|
@@ -144,6 +168,13 @@ export type { Status } from './schemas/Status';
|
|
|
144
168
|
export type { StoDetails } from './schemas/StoDetails';
|
|
145
169
|
export type { StoDigestMetadata } from './schemas/StoDigestMetadata';
|
|
146
170
|
export type { StoMetadata } from './schemas/StoMetadata';
|
|
171
|
+
export type { Trigger } from './schemas/Trigger';
|
|
147
172
|
export type { UpstreamConfig } from './schemas/UpstreamConfig';
|
|
148
173
|
export type { UserPassword } from './schemas/UserPassword';
|
|
149
174
|
export type { VirtualConfig } from './schemas/VirtualConfig';
|
|
175
|
+
export type { Webhook } from './schemas/Webhook';
|
|
176
|
+
export type { WebhookExecRequest } from './schemas/WebhookExecRequest';
|
|
177
|
+
export type { WebhookExecResponse } from './schemas/WebhookExecResponse';
|
|
178
|
+
export type { WebhookExecResult } from './schemas/WebhookExecResult';
|
|
179
|
+
export type { WebhookExecution } from './schemas/WebhookExecution';
|
|
180
|
+
export type { WebhookRequest } from './schemas/WebhookRequest';
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export { createRegistry, useCreateRegistryMutation } from './hooks/useCreateRegistryMutation';
|
|
2
|
+
export { createWebhook, useCreateWebhookMutation } from './hooks/useCreateWebhookMutation';
|
|
2
3
|
export { deleteArtifact, useDeleteArtifactMutation } from './hooks/useDeleteArtifactMutation';
|
|
3
4
|
export { deleteArtifactVersion, useDeleteArtifactVersionMutation, } from './hooks/useDeleteArtifactVersionMutation';
|
|
4
5
|
export { deleteRegistry, useDeleteRegistryMutation } from './hooks/useDeleteRegistryMutation';
|
|
6
|
+
export { deleteWebhook, useDeleteWebhookMutation } from './hooks/useDeleteWebhookMutation';
|
|
5
7
|
export { getAllArtifactVersions, useGetAllArtifactVersionsQuery, } from './hooks/useGetAllArtifactVersionsQuery';
|
|
6
8
|
export { getAllArtifactsByRegistry, useGetAllArtifactsByRegistryQuery, } from './hooks/useGetAllArtifactsByRegistryQuery';
|
|
7
9
|
export { getAllHarnessArtifacts, useGetAllHarnessArtifactsQuery, } from './hooks/useGetAllHarnessArtifactsQuery';
|
|
@@ -23,7 +25,13 @@ export { getDockerArtifactManifests, useGetDockerArtifactManifestsQuery, } from
|
|
|
23
25
|
export { getHelmArtifactDetails, useGetHelmArtifactDetailsQuery, } from './hooks/useGetHelmArtifactDetailsQuery';
|
|
24
26
|
export { getHelmArtifactManifest, useGetHelmArtifactManifestQuery, } from './hooks/useGetHelmArtifactManifestQuery';
|
|
25
27
|
export { getRegistry, useGetRegistryQuery } from './hooks/useGetRegistryQuery';
|
|
28
|
+
export { getWebhookExecution, useGetWebhookExecutionQuery, } from './hooks/useGetWebhookExecutionQuery';
|
|
29
|
+
export { getWebhook, useGetWebhookQuery } from './hooks/useGetWebhookQuery';
|
|
26
30
|
export { listArtifactLabels, useListArtifactLabelsQuery } from './hooks/useListArtifactLabelsQuery';
|
|
31
|
+
export { listWebhookExecutions, useListWebhookExecutionsQuery, } from './hooks/useListWebhookExecutionsQuery';
|
|
32
|
+
export { listWebhooks, useListWebhooksQuery } from './hooks/useListWebhooksQuery';
|
|
27
33
|
export { modifyRegistry, useModifyRegistryMutation } from './hooks/useModifyRegistryMutation';
|
|
34
|
+
export { reTriggerWebhookExecution, useReTriggerWebhookExecutionQuery, } from './hooks/useReTriggerWebhookExecutionQuery';
|
|
28
35
|
export { redirectHarnessArtifact, useRedirectHarnessArtifactQuery, } from './hooks/useRedirectHarnessArtifactQuery';
|
|
29
36
|
export { updateArtifactLabels, useUpdateArtifactLabelsMutation, } from './hooks/useUpdateArtifactLabelsMutation';
|
|
37
|
+
export { updateWebhook, useUpdateWebhookMutation } from './hooks/useUpdateWebhookMutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { Webhook } from '../schemas/Webhook';
|
|
2
|
+
/**
|
|
3
|
+
* A list of Harness Registries webhooks
|
|
4
|
+
*/
|
|
5
|
+
export interface ListWebhooks {
|
|
6
|
+
/**
|
|
7
|
+
* The total number of items
|
|
8
|
+
* @format int64
|
|
9
|
+
* @example 1
|
|
10
|
+
*/
|
|
11
|
+
itemCount?: number;
|
|
12
|
+
/**
|
|
13
|
+
* The total number of pages
|
|
14
|
+
* @format int64
|
|
15
|
+
* @example 100
|
|
16
|
+
*/
|
|
17
|
+
pageCount?: number;
|
|
18
|
+
/**
|
|
19
|
+
* The current page
|
|
20
|
+
* @format int64
|
|
21
|
+
* @example 0
|
|
22
|
+
*/
|
|
23
|
+
pageIndex?: number;
|
|
24
|
+
/**
|
|
25
|
+
* The number of items per page
|
|
26
|
+
* @example 1
|
|
27
|
+
*/
|
|
28
|
+
pageSize?: number;
|
|
29
|
+
/**
|
|
30
|
+
* A list of Registries webhooks
|
|
31
|
+
*/
|
|
32
|
+
webhooks: Webhook[];
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { WebhookExecution } from '../schemas/WebhookExecution';
|
|
2
|
+
/**
|
|
3
|
+
* A list of Harness Registries webhooks executions
|
|
4
|
+
*/
|
|
5
|
+
export interface ListWebhooksExecutions {
|
|
6
|
+
/**
|
|
7
|
+
* A list of Registries webhooks executions
|
|
8
|
+
*/
|
|
9
|
+
executions: WebhookExecution[];
|
|
10
|
+
/**
|
|
11
|
+
* The total number of items
|
|
12
|
+
* @format int64
|
|
13
|
+
* @example 1
|
|
14
|
+
*/
|
|
15
|
+
itemCount?: number;
|
|
16
|
+
/**
|
|
17
|
+
* The total number of pages
|
|
18
|
+
* @format int64
|
|
19
|
+
* @example 100
|
|
20
|
+
*/
|
|
21
|
+
pageCount?: number;
|
|
22
|
+
/**
|
|
23
|
+
* The current page
|
|
24
|
+
* @format int64
|
|
25
|
+
* @example 0
|
|
26
|
+
*/
|
|
27
|
+
pageIndex?: number;
|
|
28
|
+
/**
|
|
29
|
+
* The number of items per page
|
|
30
|
+
* @example 1
|
|
31
|
+
*/
|
|
32
|
+
pageSize?: number;
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ExtraHeader } from '../schemas/ExtraHeader';
|
|
2
|
+
import type { WebhookExecResult } from '../schemas/WebhookExecResult';
|
|
3
|
+
import type { Trigger } from '../schemas/Trigger';
|
|
4
|
+
/**
|
|
5
|
+
* Harness Regstries Webhook
|
|
6
|
+
*/
|
|
7
|
+
export interface Webhook {
|
|
8
|
+
createdAt?: string;
|
|
9
|
+
/**
|
|
10
|
+
* @format int64
|
|
11
|
+
*/
|
|
12
|
+
createdBy?: number;
|
|
13
|
+
description?: string;
|
|
14
|
+
enabled: boolean;
|
|
15
|
+
extraHeaders?: ExtraHeader[];
|
|
16
|
+
identifier: string;
|
|
17
|
+
insecure: boolean;
|
|
18
|
+
latestExecutionResult?: WebhookExecResult;
|
|
19
|
+
modifiedAt?: string;
|
|
20
|
+
name: string;
|
|
21
|
+
secretIdentifier?: string;
|
|
22
|
+
secretSpaceId?: number;
|
|
23
|
+
secretSpacePath?: string;
|
|
24
|
+
triggers?: Trigger[];
|
|
25
|
+
url: string;
|
|
26
|
+
/**
|
|
27
|
+
* @format int64
|
|
28
|
+
*/
|
|
29
|
+
version?: number;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { WebhookExecRequest } from '../schemas/WebhookExecRequest';
|
|
2
|
+
import type { WebhookExecResponse } from '../schemas/WebhookExecResponse';
|
|
3
|
+
import type { WebhookExecResult } from '../schemas/WebhookExecResult';
|
|
4
|
+
import type { Trigger } from '../schemas/Trigger';
|
|
5
|
+
/**
|
|
6
|
+
* Harness Regstries Webhook Execution
|
|
7
|
+
*/
|
|
8
|
+
export interface WebhookExecution {
|
|
9
|
+
/**
|
|
10
|
+
* @format int64
|
|
11
|
+
*/
|
|
12
|
+
created?: number;
|
|
13
|
+
/**
|
|
14
|
+
* @format int64
|
|
15
|
+
*/
|
|
16
|
+
duration?: number;
|
|
17
|
+
error?: string;
|
|
18
|
+
/**
|
|
19
|
+
* @format int64
|
|
20
|
+
*/
|
|
21
|
+
id?: number;
|
|
22
|
+
request?: WebhookExecRequest;
|
|
23
|
+
response?: WebhookExecResponse;
|
|
24
|
+
result?: WebhookExecResult;
|
|
25
|
+
/**
|
|
26
|
+
* @format int64
|
|
27
|
+
*/
|
|
28
|
+
retriggerOf?: number;
|
|
29
|
+
retriggerable?: boolean;
|
|
30
|
+
triggerType?: Trigger;
|
|
31
|
+
/**
|
|
32
|
+
* @format int64
|
|
33
|
+
*/
|
|
34
|
+
webhookId?: number;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ExtraHeader } from '../schemas/ExtraHeader';
|
|
2
|
+
import type { Trigger } from '../schemas/Trigger';
|
|
3
|
+
export interface WebhookRequest {
|
|
4
|
+
description?: string;
|
|
5
|
+
enabled: boolean;
|
|
6
|
+
extraHeaders?: ExtraHeader[];
|
|
7
|
+
identifier: string;
|
|
8
|
+
insecure: boolean;
|
|
9
|
+
name: string;
|
|
10
|
+
secretIdentifier?: string;
|
|
11
|
+
secretSpaceId?: number;
|
|
12
|
+
secretSpacePath?: string;
|
|
13
|
+
triggers?: Trigger[];
|
|
14
|
+
url: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|