@harnessio/react-notification-service-client 0.1.0 → 0.2.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/notification-service/src/services/hooks/useCreateNotificationChannelRefQuery.d.ts +39 -0
- package/dist/notification-service/src/services/hooks/useCreateNotificationChannelRefQuery.js +30 -0
- package/dist/notification-service/src/services/hooks/useCreateNotificationRuleRefQuery.d.ts +39 -0
- package/dist/notification-service/src/services/hooks/useCreateNotificationRuleRefQuery.js +30 -0
- package/dist/notification-service/src/services/hooks/useDeleteNotificationChannelRefQuery.d.ts +37 -0
- package/dist/notification-service/src/services/hooks/useDeleteNotificationChannelRefQuery.js +30 -0
- package/dist/notification-service/src/services/hooks/useDeleteNotificationRuleRefQuery.d.ts +37 -0
- package/dist/notification-service/src/services/hooks/useDeleteNotificationRuleRefQuery.js +30 -0
- package/dist/notification-service/src/services/hooks/useGetNotificationChannelAccountQuery.d.ts +19 -0
- package/dist/notification-service/src/services/hooks/useGetNotificationChannelAccountQuery.js +14 -0
- package/dist/notification-service/src/services/hooks/useGetNotificationChannelOrgQuery.d.ts +20 -0
- package/dist/notification-service/src/services/hooks/useGetNotificationChannelOrgQuery.js +14 -0
- package/dist/notification-service/src/services/hooks/useGetNotificationChannelQuery.d.ts +5 -14
- package/dist/notification-service/src/services/hooks/useGetNotificationChannelQuery.js +3 -3
- package/dist/notification-service/src/services/hooks/useGetNotificationRuleAccountQuery.d.ts +19 -0
- package/dist/notification-service/src/services/hooks/useGetNotificationRuleAccountQuery.js +14 -0
- package/dist/notification-service/src/services/hooks/useGetNotificationRuleOrgQuery.d.ts +20 -0
- package/dist/notification-service/src/services/hooks/useGetNotificationRuleOrgQuery.js +14 -0
- package/dist/notification-service/src/services/hooks/useGetNotificationRuleQuery.d.ts +21 -0
- package/dist/notification-service/src/services/hooks/useGetNotificationRuleQuery.js +14 -0
- package/dist/notification-service/src/services/hooks/useListNotificationChannelsRefQuery.d.ts +65 -0
- package/dist/notification-service/src/services/hooks/useListNotificationChannelsRefQuery.js +30 -0
- package/dist/notification-service/src/services/hooks/useListNotificationRulesRefQuery.d.ts +74 -0
- package/dist/notification-service/src/services/hooks/useListNotificationRulesRefQuery.js +30 -0
- package/dist/notification-service/src/services/hooks/useUpdateNotificationChannelRefQuery.d.ts +42 -0
- package/dist/notification-service/src/services/hooks/useUpdateNotificationChannelRefQuery.js +30 -0
- package/dist/notification-service/src/services/hooks/useUpdateNotificationRuleRefMutation.d.ts +42 -0
- package/dist/notification-service/src/services/hooks/useUpdateNotificationRuleRefMutation.js +30 -0
- package/dist/notification-service/src/services/index.d.ts +31 -19
- package/dist/notification-service/src/services/index.js +13 -9
- package/dist/notification-service/src/services/schemas/ChannelDto.d.ts +8 -0
- package/dist/notification-service/src/services/schemas/ChannelDto.js +4 -0
- package/dist/notification-service/src/services/schemas/ChannelType.d.ts +5 -0
- package/dist/notification-service/src/services/schemas/ChannelType.js +4 -0
- package/dist/notification-service/src/services/schemas/NotificationChannelDto.d.ts +8 -10
- package/dist/notification-service/src/services/schemas/NotificationChannelDto.js +0 -3
- package/dist/notification-service/src/services/schemas/NotificationRuleDto.d.ts +9 -20
- package/dist/notification-service/src/services/schemas/NotificationRuleDto.js +0 -3
- package/dist/notification-service/src/services/schemas/Status.d.ts +5 -0
- package/dist/notification-service/src/services/schemas/Status.js +4 -0
- package/dist/notification-service/src/services/schemas/UserGroup.d.ts +5 -0
- package/dist/notification-service/src/services/schemas/UserGroup.js +4 -0
- package/package.json +1 -1
- package/dist/notification-service/src/services/hooks/useDeleteV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleMutation.d.ts +0 -20
- package/dist/notification-service/src/services/hooks/useDeleteV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleMutation.js +0 -14
- package/dist/notification-service/src/services/hooks/useDeletev1OrgsOrgProjectsProjectNotificationChannelsNotificationChannelMutation.d.ts +0 -20
- package/dist/notification-service/src/services/hooks/useDeletev1OrgsOrgProjectsProjectNotificationChannelsNotificationChannelMutation.js +0 -14
- package/dist/notification-service/src/services/hooks/useGetNotificationChannelsNotificationChannelQuery.d.ts +0 -21
- package/dist/notification-service/src/services/hooks/useGetNotificationChannelsNotificationChannelQuery.js +0 -19
- package/dist/notification-service/src/services/hooks/useGetNotificationRuleListQuery.d.ts +0 -33
- package/dist/notification-service/src/services/hooks/useGetNotificationRuleListQuery.js +0 -14
- package/dist/notification-service/src/services/hooks/useGetV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleQuery.d.ts +0 -21
- package/dist/notification-service/src/services/hooks/useGetV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleQuery.js +0 -19
- package/dist/notification-service/src/services/hooks/usePostNotificationChannelMutation.d.ts +0 -23
- package/dist/notification-service/src/services/hooks/usePostNotificationChannelMutation.js +0 -14
- package/dist/notification-service/src/services/hooks/usePostNotificationRuleMutation.d.ts +0 -23
- package/dist/notification-service/src/services/hooks/usePostNotificationRuleMutation.js +0 -14
- package/dist/notification-service/src/services/hooks/usePutV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleMutation.d.ts +0 -24
- package/dist/notification-service/src/services/hooks/usePutV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleMutation.js +0 -14
- package/dist/notification-service/src/services/hooks/usePutv1OrgsOrgProjectsProjectNotificationChannelsNotificationChannelMutation.d.ts +0 -24
- package/dist/notification-service/src/services/hooks/usePutv1OrgsOrgProjectsProjectNotificationChannelsNotificationChannelMutation.js +0 -14
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { NotificationChannelResponseResponse } from '../responses/NotificationChannelResponseResponse';
|
|
3
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
-
export interface GetNotificationChannelsNotificationChannelQueryPathParams {
|
|
6
|
-
'notification-channel': string;
|
|
7
|
-
org: string;
|
|
8
|
-
project: string;
|
|
9
|
-
}
|
|
10
|
-
export interface GetNotificationChannelsNotificationChannelQueryHeaderParams {
|
|
11
|
-
'Harness-Account'?: string;
|
|
12
|
-
}
|
|
13
|
-
export type GetNotificationChannelsNotificationChannelOkResponse = ResponseWithPagination<NotificationChannelResponseResponse>;
|
|
14
|
-
export type GetNotificationChannelsNotificationChannelErrorResponse = unknown;
|
|
15
|
-
export interface GetNotificationChannelsNotificationChannelProps extends GetNotificationChannelsNotificationChannelQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetNotificationChannelsNotificationChannelQueryHeaderParams>, 'url'> {
|
|
16
|
-
}
|
|
17
|
-
export declare function getNotificationChannelsNotificationChannel(props: GetNotificationChannelsNotificationChannelProps): Promise<GetNotificationChannelsNotificationChannelOkResponse>;
|
|
18
|
-
/**
|
|
19
|
-
* Get Notification Channel
|
|
20
|
-
*/
|
|
21
|
-
export declare function useGetNotificationChannelsNotificationChannelQuery(props: GetNotificationChannelsNotificationChannelProps, options?: Omit<UseQueryOptions<GetNotificationChannelsNotificationChannelOkResponse, GetNotificationChannelsNotificationChannelErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetNotificationChannelsNotificationChannelOkResponse, unknown>;
|
|
@@ -1,19 +0,0 @@
|
|
|
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 getNotificationChannelsNotificationChannel(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/notification-channels/${props['notification-channel']}`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Get Notification Channel
|
|
11
|
-
*/
|
|
12
|
-
export function useGetNotificationChannelsNotificationChannelQuery(props, options) {
|
|
13
|
-
return useQuery([
|
|
14
|
-
'get-notification-channels-notification-channel',
|
|
15
|
-
props['notification-channel'],
|
|
16
|
-
props.org,
|
|
17
|
-
props.project,
|
|
18
|
-
], ({ signal }) => getNotificationChannelsNotificationChannel(Object.assign(Object.assign({}, props), { signal })), options);
|
|
19
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { NotificationRuleListResponseResponse } from '../responses/NotificationRuleListResponseResponse';
|
|
3
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
-
export interface GetNotificationRuleListQueryPathParams {
|
|
6
|
-
org: string;
|
|
7
|
-
project: string;
|
|
8
|
-
}
|
|
9
|
-
export interface GetNotificationRuleListQueryQueryParams {
|
|
10
|
-
/**
|
|
11
|
-
* @default 0
|
|
12
|
-
*/
|
|
13
|
-
page?: number;
|
|
14
|
-
/**
|
|
15
|
-
* @default 30
|
|
16
|
-
*/
|
|
17
|
-
limit?: number;
|
|
18
|
-
sort?: 'created' | 'identifier' | 'name' | 'updated';
|
|
19
|
-
order?: 'ASC' | 'DESC';
|
|
20
|
-
}
|
|
21
|
-
export interface GetNotificationRuleListQueryHeaderParams {
|
|
22
|
-
'Harness-Account'?: string;
|
|
23
|
-
}
|
|
24
|
-
export type GetNotificationRuleListOkResponse = ResponseWithPagination<NotificationRuleListResponseResponse>;
|
|
25
|
-
export type GetNotificationRuleListErrorResponse = unknown;
|
|
26
|
-
export interface GetNotificationRuleListProps extends GetNotificationRuleListQueryPathParams, Omit<FetcherOptions<GetNotificationRuleListQueryQueryParams, unknown, GetNotificationRuleListQueryHeaderParams>, 'url'> {
|
|
27
|
-
queryParams: GetNotificationRuleListQueryQueryParams;
|
|
28
|
-
}
|
|
29
|
-
export declare function getNotificationRuleList(props: GetNotificationRuleListProps): Promise<GetNotificationRuleListOkResponse>;
|
|
30
|
-
/**
|
|
31
|
-
* Get list of notification rules
|
|
32
|
-
*/
|
|
33
|
-
export declare function useGetNotificationRuleListQuery(props: GetNotificationRuleListProps, options?: Omit<UseQueryOptions<GetNotificationRuleListOkResponse, GetNotificationRuleListErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetNotificationRuleListOkResponse, unknown>;
|
|
@@ -1,14 +0,0 @@
|
|
|
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 getNotificationRuleList(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/notification-rules`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Get list of notification rules
|
|
11
|
-
*/
|
|
12
|
-
export function useGetNotificationRuleListQuery(props, options) {
|
|
13
|
-
return useQuery(['get-notification-rule-list', props.org, props.project, props.queryParams], ({ signal }) => getNotificationRuleList(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { NotificationRuleResponseResponse } from '../responses/NotificationRuleResponseResponse';
|
|
3
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
-
export interface GetV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleQueryPathParams {
|
|
6
|
-
org: string;
|
|
7
|
-
project: string;
|
|
8
|
-
'notification-rule': string;
|
|
9
|
-
}
|
|
10
|
-
export interface GetV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleQueryHeaderParams {
|
|
11
|
-
'Harness-Account'?: string;
|
|
12
|
-
}
|
|
13
|
-
export type GetV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleOkResponse = ResponseWithPagination<NotificationRuleResponseResponse>;
|
|
14
|
-
export type GetV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleErrorResponse = unknown;
|
|
15
|
-
export interface GetV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleProps extends GetV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleQueryHeaderParams>, 'url'> {
|
|
16
|
-
}
|
|
17
|
-
export declare function getV1OrgsOrgProjectsProjectNotificationRuleNotificationRule(props: GetV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleProps): Promise<GetV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleOkResponse>;
|
|
18
|
-
/**
|
|
19
|
-
* Get notification rule
|
|
20
|
-
*/
|
|
21
|
-
export declare function useGetV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleQuery(props: GetV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleProps, options?: Omit<UseQueryOptions<GetV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleOkResponse, GetV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleOkResponse, unknown>;
|
|
@@ -1,19 +0,0 @@
|
|
|
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 getV1OrgsOrgProjectsProjectNotificationRuleNotificationRule(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/notification-rule/${props['notification-rule']}`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Get notification rule
|
|
11
|
-
*/
|
|
12
|
-
export function useGetV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleQuery(props, options) {
|
|
13
|
-
return useQuery([
|
|
14
|
-
'get-v1-orgs-org-projects-project-notification-rule-notification-rule',
|
|
15
|
-
props.org,
|
|
16
|
-
props.project,
|
|
17
|
-
props['notification-rule'],
|
|
18
|
-
], ({ signal }) => getV1OrgsOrgProjectsProjectNotificationRuleNotificationRule(Object.assign(Object.assign({}, props), { signal })), options);
|
|
19
|
-
}
|
package/dist/notification-service/src/services/hooks/usePostNotificationChannelMutation.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { NotificationChannelResponseResponse } from '../responses/NotificationChannelResponseResponse';
|
|
3
|
-
import type { NotificationChannelRequestRequestBody } from '../requestBodies/NotificationChannelRequestRequestBody';
|
|
4
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface PostNotificationChannelMutationPathParams {
|
|
7
|
-
org: string;
|
|
8
|
-
project: string;
|
|
9
|
-
}
|
|
10
|
-
export interface PostNotificationChannelMutationHeaderParams {
|
|
11
|
-
'Harness-Account'?: string;
|
|
12
|
-
}
|
|
13
|
-
export type PostNotificationChannelRequestBody = NotificationChannelRequestRequestBody;
|
|
14
|
-
export type PostNotificationChannelOkResponse = ResponseWithPagination<NotificationChannelResponseResponse>;
|
|
15
|
-
export type PostNotificationChannelErrorResponse = unknown;
|
|
16
|
-
export interface PostNotificationChannelProps extends PostNotificationChannelMutationPathParams, Omit<FetcherOptions<unknown, PostNotificationChannelRequestBody, PostNotificationChannelMutationHeaderParams>, 'url'> {
|
|
17
|
-
body: PostNotificationChannelRequestBody;
|
|
18
|
-
}
|
|
19
|
-
export declare function postNotificationChannel(props: PostNotificationChannelProps): Promise<PostNotificationChannelOkResponse>;
|
|
20
|
-
/**
|
|
21
|
-
* Create Notification Channel
|
|
22
|
-
*/
|
|
23
|
-
export declare function usePostNotificationChannelMutation(options?: Omit<UseMutationOptions<PostNotificationChannelOkResponse, PostNotificationChannelErrorResponse, PostNotificationChannelProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PostNotificationChannelOkResponse, unknown, PostNotificationChannelProps, unknown>;
|
|
@@ -1,14 +0,0 @@
|
|
|
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 postNotificationChannel(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/notification-channels`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Create Notification Channel
|
|
11
|
-
*/
|
|
12
|
-
export function usePostNotificationChannelMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => postNotificationChannel(mutateProps), options);
|
|
14
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { NotificationRuleResponseResponse } from '../responses/NotificationRuleResponseResponse';
|
|
3
|
-
import type { NotificationRuleRequestRequestBody } from '../requestBodies/NotificationRuleRequestRequestBody';
|
|
4
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface PostNotificationRuleMutationPathParams {
|
|
7
|
-
org: string;
|
|
8
|
-
project: string;
|
|
9
|
-
}
|
|
10
|
-
export interface PostNotificationRuleMutationHeaderParams {
|
|
11
|
-
'Harness-Account'?: string;
|
|
12
|
-
}
|
|
13
|
-
export type PostNotificationRuleRequestBody = NotificationRuleRequestRequestBody;
|
|
14
|
-
export type PostNotificationRuleOkResponse = ResponseWithPagination<NotificationRuleResponseResponse>;
|
|
15
|
-
export type PostNotificationRuleErrorResponse = unknown;
|
|
16
|
-
export interface PostNotificationRuleProps extends PostNotificationRuleMutationPathParams, Omit<FetcherOptions<unknown, PostNotificationRuleRequestBody, PostNotificationRuleMutationHeaderParams>, 'url'> {
|
|
17
|
-
body: PostNotificationRuleRequestBody;
|
|
18
|
-
}
|
|
19
|
-
export declare function postNotificationRule(props: PostNotificationRuleProps): Promise<PostNotificationRuleOkResponse>;
|
|
20
|
-
/**
|
|
21
|
-
* Create Notification Rule
|
|
22
|
-
*/
|
|
23
|
-
export declare function usePostNotificationRuleMutation(options?: Omit<UseMutationOptions<PostNotificationRuleOkResponse, PostNotificationRuleErrorResponse, PostNotificationRuleProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PostNotificationRuleOkResponse, unknown, PostNotificationRuleProps, unknown>;
|
|
@@ -1,14 +0,0 @@
|
|
|
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 postNotificationRule(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/notification-rules`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Create Notification Rule
|
|
11
|
-
*/
|
|
12
|
-
export function usePostNotificationRuleMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => postNotificationRule(mutateProps), options);
|
|
14
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { NotificationRuleResponseResponse } from '../responses/NotificationRuleResponseResponse';
|
|
3
|
-
import type { NotificationRuleRequestRequestBody } from '../requestBodies/NotificationRuleRequestRequestBody';
|
|
4
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface PutV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleMutationPathParams {
|
|
7
|
-
org: string;
|
|
8
|
-
project: string;
|
|
9
|
-
'notification-rule': string;
|
|
10
|
-
}
|
|
11
|
-
export interface PutV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleMutationHeaderParams {
|
|
12
|
-
'Harness-Account'?: string;
|
|
13
|
-
}
|
|
14
|
-
export type PutV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleRequestBody = NotificationRuleRequestRequestBody;
|
|
15
|
-
export type PutV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleOkResponse = ResponseWithPagination<NotificationRuleResponseResponse>;
|
|
16
|
-
export type PutV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleErrorResponse = unknown;
|
|
17
|
-
export interface PutV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleProps extends PutV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleMutationPathParams, Omit<FetcherOptions<unknown, PutV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleRequestBody, PutV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleMutationHeaderParams>, 'url'> {
|
|
18
|
-
body: PutV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleRequestBody;
|
|
19
|
-
}
|
|
20
|
-
export declare function putV1OrgsOrgProjectsProjectNotificationRuleNotificationRule(props: PutV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleProps): Promise<PutV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleOkResponse>;
|
|
21
|
-
/**
|
|
22
|
-
* Update Notification Rule
|
|
23
|
-
*/
|
|
24
|
-
export declare function usePutV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleMutation(options?: Omit<UseMutationOptions<PutV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleOkResponse, PutV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleErrorResponse, PutV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PutV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleOkResponse, unknown, PutV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleProps, unknown>;
|
|
@@ -1,14 +0,0 @@
|
|
|
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 putV1OrgsOrgProjectsProjectNotificationRuleNotificationRule(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/notification-rule/${props['notification-rule']}`, method: 'PUT' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Update Notification Rule
|
|
11
|
-
*/
|
|
12
|
-
export function usePutV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => putV1OrgsOrgProjectsProjectNotificationRuleNotificationRule(mutateProps), options);
|
|
14
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { NotificationChannelResponseResponse } from '../responses/NotificationChannelResponseResponse';
|
|
3
|
-
import type { NotificationChannelRequestRequestBody } from '../requestBodies/NotificationChannelRequestRequestBody';
|
|
4
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface Putv1OrgsOrgProjectsProjectNotificationChannelsNotificationChannelMutationPathParams {
|
|
7
|
-
'notification-channel': string;
|
|
8
|
-
org: string;
|
|
9
|
-
project: string;
|
|
10
|
-
}
|
|
11
|
-
export interface Putv1OrgsOrgProjectsProjectNotificationChannelsNotificationChannelMutationHeaderParams {
|
|
12
|
-
'Harness-Account'?: string;
|
|
13
|
-
}
|
|
14
|
-
export type Putv1OrgsOrgProjectsProjectNotificationChannelsNotificationChannelRequestBody = NotificationChannelRequestRequestBody;
|
|
15
|
-
export type Putv1OrgsOrgProjectsProjectNotificationChannelsNotificationChannelOkResponse = ResponseWithPagination<NotificationChannelResponseResponse>;
|
|
16
|
-
export type Putv1OrgsOrgProjectsProjectNotificationChannelsNotificationChannelErrorResponse = unknown;
|
|
17
|
-
export interface Putv1OrgsOrgProjectsProjectNotificationChannelsNotificationChannelProps extends Putv1OrgsOrgProjectsProjectNotificationChannelsNotificationChannelMutationPathParams, Omit<FetcherOptions<unknown, Putv1OrgsOrgProjectsProjectNotificationChannelsNotificationChannelRequestBody, Putv1OrgsOrgProjectsProjectNotificationChannelsNotificationChannelMutationHeaderParams>, 'url'> {
|
|
18
|
-
body: Putv1OrgsOrgProjectsProjectNotificationChannelsNotificationChannelRequestBody;
|
|
19
|
-
}
|
|
20
|
-
export declare function putv1OrgsOrgProjectsProjectNotificationChannelsNotificationChannel(props: Putv1OrgsOrgProjectsProjectNotificationChannelsNotificationChannelProps): Promise<Putv1OrgsOrgProjectsProjectNotificationChannelsNotificationChannelOkResponse>;
|
|
21
|
-
/**
|
|
22
|
-
* Update Notification Channel
|
|
23
|
-
*/
|
|
24
|
-
export declare function usePutv1OrgsOrgProjectsProjectNotificationChannelsNotificationChannelMutation(options?: Omit<UseMutationOptions<Putv1OrgsOrgProjectsProjectNotificationChannelsNotificationChannelOkResponse, Putv1OrgsOrgProjectsProjectNotificationChannelsNotificationChannelErrorResponse, Putv1OrgsOrgProjectsProjectNotificationChannelsNotificationChannelProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<Putv1OrgsOrgProjectsProjectNotificationChannelsNotificationChannelOkResponse, unknown, Putv1OrgsOrgProjectsProjectNotificationChannelsNotificationChannelProps, unknown>;
|
|
@@ -1,14 +0,0 @@
|
|
|
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 putv1OrgsOrgProjectsProjectNotificationChannelsNotificationChannel(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/notification-channels/${props['notification-channel']}`, method: 'PUT' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Update Notification Channel
|
|
11
|
-
*/
|
|
12
|
-
export function usePutv1OrgsOrgProjectsProjectNotificationChannelsNotificationChannelMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => putv1OrgsOrgProjectsProjectNotificationChannelsNotificationChannel(mutateProps), options);
|
|
14
|
-
}
|