@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.
Files changed (61) hide show
  1. package/dist/notification-service/src/services/hooks/useCreateNotificationChannelRefQuery.d.ts +39 -0
  2. package/dist/notification-service/src/services/hooks/useCreateNotificationChannelRefQuery.js +30 -0
  3. package/dist/notification-service/src/services/hooks/useCreateNotificationRuleRefQuery.d.ts +39 -0
  4. package/dist/notification-service/src/services/hooks/useCreateNotificationRuleRefQuery.js +30 -0
  5. package/dist/notification-service/src/services/hooks/useDeleteNotificationChannelRefQuery.d.ts +37 -0
  6. package/dist/notification-service/src/services/hooks/useDeleteNotificationChannelRefQuery.js +30 -0
  7. package/dist/notification-service/src/services/hooks/useDeleteNotificationRuleRefQuery.d.ts +37 -0
  8. package/dist/notification-service/src/services/hooks/useDeleteNotificationRuleRefQuery.js +30 -0
  9. package/dist/notification-service/src/services/hooks/useGetNotificationChannelAccountQuery.d.ts +19 -0
  10. package/dist/notification-service/src/services/hooks/useGetNotificationChannelAccountQuery.js +14 -0
  11. package/dist/notification-service/src/services/hooks/useGetNotificationChannelOrgQuery.d.ts +20 -0
  12. package/dist/notification-service/src/services/hooks/useGetNotificationChannelOrgQuery.js +14 -0
  13. package/dist/notification-service/src/services/hooks/useGetNotificationChannelQuery.d.ts +5 -14
  14. package/dist/notification-service/src/services/hooks/useGetNotificationChannelQuery.js +3 -3
  15. package/dist/notification-service/src/services/hooks/useGetNotificationRuleAccountQuery.d.ts +19 -0
  16. package/dist/notification-service/src/services/hooks/useGetNotificationRuleAccountQuery.js +14 -0
  17. package/dist/notification-service/src/services/hooks/useGetNotificationRuleOrgQuery.d.ts +20 -0
  18. package/dist/notification-service/src/services/hooks/useGetNotificationRuleOrgQuery.js +14 -0
  19. package/dist/notification-service/src/services/hooks/useGetNotificationRuleQuery.d.ts +21 -0
  20. package/dist/notification-service/src/services/hooks/useGetNotificationRuleQuery.js +14 -0
  21. package/dist/notification-service/src/services/hooks/useListNotificationChannelsRefQuery.d.ts +65 -0
  22. package/dist/notification-service/src/services/hooks/useListNotificationChannelsRefQuery.js +30 -0
  23. package/dist/notification-service/src/services/hooks/useListNotificationRulesRefQuery.d.ts +74 -0
  24. package/dist/notification-service/src/services/hooks/useListNotificationRulesRefQuery.js +30 -0
  25. package/dist/notification-service/src/services/hooks/useUpdateNotificationChannelRefQuery.d.ts +42 -0
  26. package/dist/notification-service/src/services/hooks/useUpdateNotificationChannelRefQuery.js +30 -0
  27. package/dist/notification-service/src/services/hooks/useUpdateNotificationRuleRefMutation.d.ts +42 -0
  28. package/dist/notification-service/src/services/hooks/useUpdateNotificationRuleRefMutation.js +30 -0
  29. package/dist/notification-service/src/services/index.d.ts +31 -19
  30. package/dist/notification-service/src/services/index.js +13 -9
  31. package/dist/notification-service/src/services/schemas/ChannelDto.d.ts +8 -0
  32. package/dist/notification-service/src/services/schemas/ChannelDto.js +4 -0
  33. package/dist/notification-service/src/services/schemas/ChannelType.d.ts +5 -0
  34. package/dist/notification-service/src/services/schemas/ChannelType.js +4 -0
  35. package/dist/notification-service/src/services/schemas/NotificationChannelDto.d.ts +8 -10
  36. package/dist/notification-service/src/services/schemas/NotificationChannelDto.js +0 -3
  37. package/dist/notification-service/src/services/schemas/NotificationRuleDto.d.ts +9 -20
  38. package/dist/notification-service/src/services/schemas/NotificationRuleDto.js +0 -3
  39. package/dist/notification-service/src/services/schemas/Status.d.ts +5 -0
  40. package/dist/notification-service/src/services/schemas/Status.js +4 -0
  41. package/dist/notification-service/src/services/schemas/UserGroup.d.ts +5 -0
  42. package/dist/notification-service/src/services/schemas/UserGroup.js +4 -0
  43. package/package.json +1 -1
  44. package/dist/notification-service/src/services/hooks/useDeleteV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleMutation.d.ts +0 -20
  45. package/dist/notification-service/src/services/hooks/useDeleteV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleMutation.js +0 -14
  46. package/dist/notification-service/src/services/hooks/useDeletev1OrgsOrgProjectsProjectNotificationChannelsNotificationChannelMutation.d.ts +0 -20
  47. package/dist/notification-service/src/services/hooks/useDeletev1OrgsOrgProjectsProjectNotificationChannelsNotificationChannelMutation.js +0 -14
  48. package/dist/notification-service/src/services/hooks/useGetNotificationChannelsNotificationChannelQuery.d.ts +0 -21
  49. package/dist/notification-service/src/services/hooks/useGetNotificationChannelsNotificationChannelQuery.js +0 -19
  50. package/dist/notification-service/src/services/hooks/useGetNotificationRuleListQuery.d.ts +0 -33
  51. package/dist/notification-service/src/services/hooks/useGetNotificationRuleListQuery.js +0 -14
  52. package/dist/notification-service/src/services/hooks/useGetV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleQuery.d.ts +0 -21
  53. package/dist/notification-service/src/services/hooks/useGetV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleQuery.js +0 -19
  54. package/dist/notification-service/src/services/hooks/usePostNotificationChannelMutation.d.ts +0 -23
  55. package/dist/notification-service/src/services/hooks/usePostNotificationChannelMutation.js +0 -14
  56. package/dist/notification-service/src/services/hooks/usePostNotificationRuleMutation.d.ts +0 -23
  57. package/dist/notification-service/src/services/hooks/usePostNotificationRuleMutation.js +0 -14
  58. package/dist/notification-service/src/services/hooks/usePutV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleMutation.d.ts +0 -24
  59. package/dist/notification-service/src/services/hooks/usePutV1OrgsOrgProjectsProjectNotificationRuleNotificationRuleMutation.js +0 -14
  60. package/dist/notification-service/src/services/hooks/usePutv1OrgsOrgProjectsProjectNotificationChannelsNotificationChannelMutation.d.ts +0 -24
  61. package/dist/notification-service/src/services/hooks/usePutv1OrgsOrgProjectsProjectNotificationChannelsNotificationChannelMutation.js +0 -14
@@ -0,0 +1,39 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { NotificationChannelResponseResponse } from '../responses/NotificationChannelResponseResponse';
3
+ import type { NotificationChannelRequestRequestBody } from '../requestBodies/NotificationChannelRequestRequestBody';
4
+ import type { GetPathParamsType, ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface CreateNotificationChannelRefAccountPathParams {
7
+ }
8
+ export interface CreateNotificationChannelRefAccountHeaderParams {
9
+ 'Harness-Account'?: string;
10
+ }
11
+ export type CreateNotificationChannelRefAccountRequestBody = NotificationChannelRequestRequestBody;
12
+ export type CreateNotificationChannelRefAccountOKResponse = NotificationChannelResponseResponse;
13
+ export type CreateNotificationChannelRefAccountErrorResponse = unknown;
14
+ export interface CreateNotificationChannelRefOrgPathParams {
15
+ org: string;
16
+ }
17
+ export interface CreateNotificationChannelRefOrgHeaderParams {
18
+ 'Harness-Account'?: string;
19
+ }
20
+ export type CreateNotificationChannelRefOrgRequestBody = NotificationChannelRequestRequestBody;
21
+ export type CreateNotificationChannelRefOrgOKResponse = NotificationChannelResponseResponse;
22
+ export type CreateNotificationChannelRefOrgErrorResponse = unknown;
23
+ export interface CreateNotificationChannelRefProjectPathParams {
24
+ org: string;
25
+ project: string;
26
+ }
27
+ export interface CreateNotificationChannelRefProjectHeaderParams {
28
+ 'Harness-Account'?: string;
29
+ }
30
+ export type CreateNotificationChannelRefProjectRequestBody = NotificationChannelRequestRequestBody;
31
+ export type CreateNotificationChannelRefProjectOKResponse = NotificationChannelResponseResponse;
32
+ export type CreateNotificationChannelRefProjectErrorResponse = unknown;
33
+ export type CreateNotificationChannelRefOKResponse<T> = T extends CreateNotificationChannelRefProjectPathParams ? ResponseWithPagination<CreateNotificationChannelRefProjectOKResponse> : T extends CreateNotificationChannelRefOrgPathParams ? ResponseWithPagination<CreateNotificationChannelRefOrgOKResponse> : ResponseWithPagination<CreateNotificationChannelRefAccountOKResponse>;
34
+ export type CreateNotificationChannelRefErrorResponse<T> = T extends CreateNotificationChannelRefProjectPathParams ? CreateNotificationChannelRefProjectErrorResponse : T extends CreateNotificationChannelRefOrgPathParams ? CreateNotificationChannelRefOrgErrorResponse : CreateNotificationChannelRefAccountErrorResponse;
35
+ export interface CreateNotificationChannelRefProps extends Omit<FetcherOptions<unknown, unknown>, 'url'> {
36
+ pathParams: CreateNotificationChannelRefAccountPathParams | CreateNotificationChannelRefOrgPathParams | CreateNotificationChannelRefProjectPathParams;
37
+ }
38
+ export declare function createNotificationChannelRef<T extends CreateNotificationChannelRefProps = CreateNotificationChannelRefProps>(props: T): Promise<CreateNotificationChannelRefOKResponse<GetPathParamsType<T>>>;
39
+ export declare function useCreateNotificationChannelRefQuery<T extends CreateNotificationChannelRefProps = CreateNotificationChannelRefProps>(props: T, options?: Omit<UseQueryOptions<CreateNotificationChannelRefOKResponse<GetPathParamsType<T>>, CreateNotificationChannelRefErrorResponse<GetPathParamsType<T>>>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<CreateNotificationChannelRefOKResponse<GetPathParamsType<T>>, CreateNotificationChannelRefErrorResponse<GetPathParamsType<T>>>;
@@ -0,0 +1,30 @@
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
+ function isProjectPathParams(pathParams) {
7
+ return !!(pathParams.org &&
8
+ pathParams.project);
9
+ }
10
+ function isOrgPathParams(pathParams) {
11
+ return !!(pathParams.org &&
12
+ !pathParams.project);
13
+ }
14
+ export function createNotificationChannelRef(props) {
15
+ let url = `/v1/notification-channels`;
16
+ let method = 'POST';
17
+ if (isProjectPathParams(props.pathParams)) {
18
+ url = `/v1/orgs/${props.pathParams.org}/projects/${props.pathParams.project}/notification-channels`;
19
+ method = 'POST';
20
+ }
21
+ else if (isOrgPathParams(props.pathParams)) {
22
+ url = `/v1/orgs/${props.pathParams.org}/notification-channels`;
23
+ method = 'POST';
24
+ }
25
+ return fetcher(Object.assign({ url,
26
+ method }, props));
27
+ }
28
+ export function useCreateNotificationChannelRefQuery(props, options) {
29
+ return useQuery(['createNotificationChannelRef'], ({ signal }) => createNotificationChannelRef(Object.assign(Object.assign({}, props), { signal })), options);
30
+ }
@@ -0,0 +1,39 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { NotificationRuleResponseResponse } from '../responses/NotificationRuleResponseResponse';
3
+ import type { NotificationRuleRequestRequestBody } from '../requestBodies/NotificationRuleRequestRequestBody';
4
+ import type { GetPathParamsType, ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface CreateNotificationRuleRefAccountPathParams {
7
+ }
8
+ export interface CreateNotificationRuleRefAccountHeaderParams {
9
+ 'Harness-Account'?: string;
10
+ }
11
+ export type CreateNotificationRuleRefAccountRequestBody = NotificationRuleRequestRequestBody;
12
+ export type CreateNotificationRuleRefAccountOKResponse = NotificationRuleResponseResponse;
13
+ export type CreateNotificationRuleRefAccountErrorResponse = unknown;
14
+ export interface CreateNotificationRuleRefOrgPathParams {
15
+ org: string;
16
+ }
17
+ export interface CreateNotificationRuleRefOrgHeaderParams {
18
+ 'Harness-Account'?: string;
19
+ }
20
+ export type CreateNotificationRuleRefOrgRequestBody = NotificationRuleRequestRequestBody;
21
+ export type CreateNotificationRuleRefOrgOKResponse = NotificationRuleResponseResponse;
22
+ export type CreateNotificationRuleRefOrgErrorResponse = unknown;
23
+ export interface CreateNotificationRuleRefProjectPathParams {
24
+ org: string;
25
+ project: string;
26
+ }
27
+ export interface CreateNotificationRuleRefProjectHeaderParams {
28
+ 'Harness-Account'?: string;
29
+ }
30
+ export type CreateNotificationRuleRefProjectRequestBody = NotificationRuleRequestRequestBody;
31
+ export type CreateNotificationRuleRefProjectOKResponse = NotificationRuleResponseResponse;
32
+ export type CreateNotificationRuleRefProjectErrorResponse = unknown;
33
+ export type CreateNotificationRuleRefOKResponse<T> = T extends CreateNotificationRuleRefProjectPathParams ? ResponseWithPagination<CreateNotificationRuleRefProjectOKResponse> : T extends CreateNotificationRuleRefOrgPathParams ? ResponseWithPagination<CreateNotificationRuleRefOrgOKResponse> : ResponseWithPagination<CreateNotificationRuleRefAccountOKResponse>;
34
+ export type CreateNotificationRuleRefErrorResponse<T> = T extends CreateNotificationRuleRefProjectPathParams ? CreateNotificationRuleRefProjectErrorResponse : T extends CreateNotificationRuleRefOrgPathParams ? CreateNotificationRuleRefOrgErrorResponse : CreateNotificationRuleRefAccountErrorResponse;
35
+ export interface CreateNotificationRuleRefProps extends Omit<FetcherOptions<unknown, unknown>, 'url'> {
36
+ pathParams: CreateNotificationRuleRefAccountPathParams | CreateNotificationRuleRefOrgPathParams | CreateNotificationRuleRefProjectPathParams;
37
+ }
38
+ export declare function createNotificationRuleRef<T extends CreateNotificationRuleRefProps = CreateNotificationRuleRefProps>(props: T): Promise<CreateNotificationRuleRefOKResponse<GetPathParamsType<T>>>;
39
+ export declare function useCreateNotificationRuleRefQuery<T extends CreateNotificationRuleRefProps = CreateNotificationRuleRefProps>(props: T, options?: Omit<UseQueryOptions<CreateNotificationRuleRefOKResponse<GetPathParamsType<T>>, CreateNotificationRuleRefErrorResponse<GetPathParamsType<T>>>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<CreateNotificationRuleRefOKResponse<GetPathParamsType<T>>, CreateNotificationRuleRefErrorResponse<GetPathParamsType<T>>>;
@@ -0,0 +1,30 @@
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
+ function isProjectPathParams(pathParams) {
7
+ return !!(pathParams.org &&
8
+ pathParams.project);
9
+ }
10
+ function isOrgPathParams(pathParams) {
11
+ return !!(pathParams.org &&
12
+ !pathParams.project);
13
+ }
14
+ export function createNotificationRuleRef(props) {
15
+ let url = `/v1/notification-rules`;
16
+ let method = 'POST';
17
+ if (isProjectPathParams(props.pathParams)) {
18
+ url = `/v1/orgs/${props.pathParams.org}/projects/${props.pathParams.project}/notification-rules`;
19
+ method = 'POST';
20
+ }
21
+ else if (isOrgPathParams(props.pathParams)) {
22
+ url = `/v1/orgs/${props.pathParams.org}/notification-rules`;
23
+ method = 'POST';
24
+ }
25
+ return fetcher(Object.assign({ url,
26
+ method }, props));
27
+ }
28
+ export function useCreateNotificationRuleRefQuery(props, options) {
29
+ return useQuery(['createNotificationRuleRef'], ({ signal }) => createNotificationRuleRef(Object.assign(Object.assign({}, props), { signal })), options);
30
+ }
@@ -0,0 +1,37 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { GetPathParamsType, ResponseWithPagination } from '../helpers';
3
+ import { FetcherOptions } from '../../../../fetcher/index.js';
4
+ export interface DeleteNotificationChannelRefAccountPathParams {
5
+ 'notification-channel': string;
6
+ }
7
+ export interface DeleteNotificationChannelRefAccountHeaderParams {
8
+ 'Harness-Account'?: string;
9
+ }
10
+ export type DeleteNotificationChannelRefAccountOKResponse = unknown;
11
+ export type DeleteNotificationChannelRefAccountErrorResponse = unknown;
12
+ export interface DeleteNotificationChannelRefOrgPathParams {
13
+ 'notification-channel': string;
14
+ org: string;
15
+ }
16
+ export interface DeleteNotificationChannelRefOrgHeaderParams {
17
+ 'Harness-Account'?: string;
18
+ }
19
+ export type DeleteNotificationChannelRefOrgOKResponse = unknown;
20
+ export type DeleteNotificationChannelRefOrgErrorResponse = unknown;
21
+ export interface DeleteNotificationChannelRefProjectPathParams {
22
+ 'notification-channel': string;
23
+ org: string;
24
+ project: string;
25
+ }
26
+ export interface DeleteNotificationChannelRefProjectHeaderParams {
27
+ 'Harness-Account'?: string;
28
+ }
29
+ export type DeleteNotificationChannelRefProjectOKResponse = unknown;
30
+ export type DeleteNotificationChannelRefProjectErrorResponse = unknown;
31
+ export type DeleteNotificationChannelRefOKResponse<T> = T extends DeleteNotificationChannelRefProjectPathParams ? ResponseWithPagination<DeleteNotificationChannelRefProjectOKResponse> : T extends DeleteNotificationChannelRefOrgPathParams ? ResponseWithPagination<DeleteNotificationChannelRefOrgOKResponse> : ResponseWithPagination<DeleteNotificationChannelRefAccountOKResponse>;
32
+ export type DeleteNotificationChannelRefErrorResponse<T> = T extends DeleteNotificationChannelRefProjectPathParams ? DeleteNotificationChannelRefProjectErrorResponse : T extends DeleteNotificationChannelRefOrgPathParams ? DeleteNotificationChannelRefOrgErrorResponse : DeleteNotificationChannelRefAccountErrorResponse;
33
+ export interface DeleteNotificationChannelRefProps extends Omit<FetcherOptions<unknown, unknown>, 'url'> {
34
+ pathParams: DeleteNotificationChannelRefAccountPathParams | DeleteNotificationChannelRefOrgPathParams | DeleteNotificationChannelRefProjectPathParams;
35
+ }
36
+ export declare function deleteNotificationChannelRef<T extends DeleteNotificationChannelRefProps = DeleteNotificationChannelRefProps>(props: T): Promise<DeleteNotificationChannelRefOKResponse<GetPathParamsType<T>>>;
37
+ export declare function useDeleteNotificationChannelRefQuery<T extends DeleteNotificationChannelRefProps = DeleteNotificationChannelRefProps>(props: T, options?: Omit<UseQueryOptions<DeleteNotificationChannelRefOKResponse<GetPathParamsType<T>>, DeleteNotificationChannelRefErrorResponse<GetPathParamsType<T>>>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<DeleteNotificationChannelRefOKResponse<GetPathParamsType<T>>, DeleteNotificationChannelRefErrorResponse<GetPathParamsType<T>>>;
@@ -0,0 +1,30 @@
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
+ function isProjectPathParams(pathParams) {
7
+ return !!(pathParams.org &&
8
+ pathParams.project);
9
+ }
10
+ function isOrgPathParams(pathParams) {
11
+ return !!(pathParams.org &&
12
+ !pathParams.project);
13
+ }
14
+ export function deleteNotificationChannelRef(props) {
15
+ let url = `/v1/notification-channels/${props.pathParams['notification-channel']}`;
16
+ let method = 'DELETE';
17
+ if (isProjectPathParams(props.pathParams)) {
18
+ url = `/v1/orgs/${props.pathParams.org}/projects/${props.pathParams.project}/notification-channels/${props.pathParams['notification-channel']}`;
19
+ method = 'DELETE';
20
+ }
21
+ else if (isOrgPathParams(props.pathParams)) {
22
+ url = `/v1/orgs/${props.pathParams.org}/notification-channels/${props.pathParams['notification-channel']}`;
23
+ method = 'DELETE';
24
+ }
25
+ return fetcher(Object.assign({ url,
26
+ method }, props));
27
+ }
28
+ export function useDeleteNotificationChannelRefQuery(props, options) {
29
+ return useQuery(['deleteNotificationChannelRef'], ({ signal }) => deleteNotificationChannelRef(Object.assign(Object.assign({}, props), { signal })), options);
30
+ }
@@ -0,0 +1,37 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { GetPathParamsType, ResponseWithPagination } from '../helpers';
3
+ import { FetcherOptions } from '../../../../fetcher/index.js';
4
+ export interface DeleteNotificationRuleRefAccountPathParams {
5
+ 'notification-rule': string;
6
+ }
7
+ export interface DeleteNotificationRuleRefAccountHeaderParams {
8
+ 'Harness-Account'?: string;
9
+ }
10
+ export type DeleteNotificationRuleRefAccountOKResponse = unknown;
11
+ export type DeleteNotificationRuleRefAccountErrorResponse = unknown;
12
+ export interface DeleteNotificationRuleRefOrgPathParams {
13
+ org: string;
14
+ 'notification-rule': string;
15
+ }
16
+ export interface DeleteNotificationRuleRefOrgHeaderParams {
17
+ 'Harness-Account'?: string;
18
+ }
19
+ export type DeleteNotificationRuleRefOrgOKResponse = unknown;
20
+ export type DeleteNotificationRuleRefOrgErrorResponse = unknown;
21
+ export interface DeleteNotificationRuleRefProjectPathParams {
22
+ org: string;
23
+ project: string;
24
+ 'notification-rule': string;
25
+ }
26
+ export interface DeleteNotificationRuleRefProjectHeaderParams {
27
+ 'Harness-Account'?: string;
28
+ }
29
+ export type DeleteNotificationRuleRefProjectOKResponse = unknown;
30
+ export type DeleteNotificationRuleRefProjectErrorResponse = unknown;
31
+ export type DeleteNotificationRuleRefOKResponse<T> = T extends DeleteNotificationRuleRefProjectPathParams ? ResponseWithPagination<DeleteNotificationRuleRefProjectOKResponse> : T extends DeleteNotificationRuleRefOrgPathParams ? ResponseWithPagination<DeleteNotificationRuleRefOrgOKResponse> : ResponseWithPagination<DeleteNotificationRuleRefAccountOKResponse>;
32
+ export type DeleteNotificationRuleRefErrorResponse<T> = T extends DeleteNotificationRuleRefProjectPathParams ? DeleteNotificationRuleRefProjectErrorResponse : T extends DeleteNotificationRuleRefOrgPathParams ? DeleteNotificationRuleRefOrgErrorResponse : DeleteNotificationRuleRefAccountErrorResponse;
33
+ export interface DeleteNotificationRuleRefProps extends Omit<FetcherOptions<unknown, unknown>, 'url'> {
34
+ pathParams: DeleteNotificationRuleRefAccountPathParams | DeleteNotificationRuleRefOrgPathParams | DeleteNotificationRuleRefProjectPathParams;
35
+ }
36
+ export declare function deleteNotificationRuleRef<T extends DeleteNotificationRuleRefProps = DeleteNotificationRuleRefProps>(props: T): Promise<DeleteNotificationRuleRefOKResponse<GetPathParamsType<T>>>;
37
+ export declare function useDeleteNotificationRuleRefQuery<T extends DeleteNotificationRuleRefProps = DeleteNotificationRuleRefProps>(props: T, options?: Omit<UseQueryOptions<DeleteNotificationRuleRefOKResponse<GetPathParamsType<T>>, DeleteNotificationRuleRefErrorResponse<GetPathParamsType<T>>>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<DeleteNotificationRuleRefOKResponse<GetPathParamsType<T>>, DeleteNotificationRuleRefErrorResponse<GetPathParamsType<T>>>;
@@ -0,0 +1,30 @@
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
+ function isProjectPathParams(pathParams) {
7
+ return !!(pathParams.org &&
8
+ pathParams.project);
9
+ }
10
+ function isOrgPathParams(pathParams) {
11
+ return !!(pathParams.org &&
12
+ !pathParams.project);
13
+ }
14
+ export function deleteNotificationRuleRef(props) {
15
+ let url = `/v1/notification-rules/${props.pathParams['notification-rule']}`;
16
+ let method = 'DELETE';
17
+ if (isProjectPathParams(props.pathParams)) {
18
+ url = `/v1/orgs/${props.pathParams.org}/projects/${props.pathParams.project}/notification-rules/${props.pathParams['notification-rule']}`;
19
+ method = 'DELETE';
20
+ }
21
+ else if (isOrgPathParams(props.pathParams)) {
22
+ url = `/v1/orgs/${props.pathParams.org}/notification-rules/${props.pathParams['notification-rule']}`;
23
+ method = 'DELETE';
24
+ }
25
+ return fetcher(Object.assign({ url,
26
+ method }, props));
27
+ }
28
+ export function useDeleteNotificationRuleRefQuery(props, options) {
29
+ return useQuery(['deleteNotificationRuleRef'], ({ signal }) => deleteNotificationRuleRef(Object.assign(Object.assign({}, props), { signal })), options);
30
+ }
@@ -0,0 +1,19 @@
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 GetNotificationChannelAccountQueryPathParams {
6
+ 'notification-channel': string;
7
+ }
8
+ export interface GetNotificationChannelAccountQueryHeaderParams {
9
+ 'Harness-Account'?: string;
10
+ }
11
+ export type GetNotificationChannelAccountOkResponse = ResponseWithPagination<NotificationChannelResponseResponse>;
12
+ export type GetNotificationChannelAccountErrorResponse = unknown;
13
+ export interface GetNotificationChannelAccountProps extends GetNotificationChannelAccountQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetNotificationChannelAccountQueryHeaderParams>, 'url'> {
14
+ }
15
+ export declare function getNotificationChannelAccount(props: GetNotificationChannelAccountProps): Promise<GetNotificationChannelAccountOkResponse>;
16
+ /**
17
+ * Get Notification Channel
18
+ */
19
+ export declare function useGetNotificationChannelAccountQuery(props: GetNotificationChannelAccountProps, options?: Omit<UseQueryOptions<GetNotificationChannelAccountOkResponse, GetNotificationChannelAccountErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetNotificationChannelAccountOkResponse, 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 { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function getNotificationChannelAccount(props) {
7
+ return fetcher(Object.assign({ url: `/v1/notification-channels/${props['notification-channel']}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get Notification Channel
11
+ */
12
+ export function useGetNotificationChannelAccountQuery(props, options) {
13
+ return useQuery(['get-notification-channel-account', props['notification-channel']], ({ signal }) => getNotificationChannelAccount(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,20 @@
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 GetNotificationChannelOrgQueryPathParams {
6
+ 'notification-channel': string;
7
+ org: string;
8
+ }
9
+ export interface GetNotificationChannelOrgQueryHeaderParams {
10
+ 'Harness-Account'?: string;
11
+ }
12
+ export type GetNotificationChannelOrgOkResponse = ResponseWithPagination<NotificationChannelResponseResponse>;
13
+ export type GetNotificationChannelOrgErrorResponse = unknown;
14
+ export interface GetNotificationChannelOrgProps extends GetNotificationChannelOrgQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetNotificationChannelOrgQueryHeaderParams>, 'url'> {
15
+ }
16
+ export declare function getNotificationChannelOrg(props: GetNotificationChannelOrgProps): Promise<GetNotificationChannelOrgOkResponse>;
17
+ /**
18
+ * Get Notification Channel
19
+ */
20
+ export declare function useGetNotificationChannelOrgQuery(props: GetNotificationChannelOrgProps, options?: Omit<UseQueryOptions<GetNotificationChannelOrgOkResponse, GetNotificationChannelOrgErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetNotificationChannelOrgOkResponse, 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 { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function getNotificationChannelOrg(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/notification-channels/${props['notification-channel']}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get Notification Channel
11
+ */
12
+ export function useGetNotificationChannelOrgQuery(props, options) {
13
+ return useQuery(['get-notification-channel-org', props['notification-channel'], props.org], ({ signal }) => getNotificationChannelOrg(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -1,30 +1,21 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { NotificationChannelListResponseResponse } from '../responses/NotificationChannelListResponseResponse';
2
+ import type { NotificationChannelResponseResponse } from '../responses/NotificationChannelResponseResponse';
3
3
  import type { ResponseWithPagination } from '../helpers';
4
4
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
5
  export interface GetNotificationChannelQueryPathParams {
6
+ 'notification-channel': string;
6
7
  org: string;
7
8
  project: string;
8
9
  }
9
- export interface GetNotificationChannelQueryQueryParams {
10
- /**
11
- * @default 30
12
- */
13
- limit?: number;
14
- search_term?: string;
15
- sort?: 'created' | 'identifier' | 'name' | 'updated';
16
- order?: 'ASC' | 'DESC';
17
- }
18
10
  export interface GetNotificationChannelQueryHeaderParams {
19
11
  'Harness-Account'?: string;
20
12
  }
21
- export type GetNotificationChannelOkResponse = ResponseWithPagination<NotificationChannelListResponseResponse>;
13
+ export type GetNotificationChannelOkResponse = ResponseWithPagination<NotificationChannelResponseResponse>;
22
14
  export type GetNotificationChannelErrorResponse = unknown;
23
- export interface GetNotificationChannelProps extends GetNotificationChannelQueryPathParams, Omit<FetcherOptions<GetNotificationChannelQueryQueryParams, unknown, GetNotificationChannelQueryHeaderParams>, 'url'> {
24
- queryParams: GetNotificationChannelQueryQueryParams;
15
+ export interface GetNotificationChannelProps extends GetNotificationChannelQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetNotificationChannelQueryHeaderParams>, 'url'> {
25
16
  }
26
17
  export declare function getNotificationChannel(props: GetNotificationChannelProps): Promise<GetNotificationChannelOkResponse>;
27
18
  /**
28
- * Returns a list of notification channels for the scope.
19
+ * Get Notification Channel
29
20
  */
30
21
  export declare function useGetNotificationChannelQuery(props: GetNotificationChannelProps, options?: Omit<UseQueryOptions<GetNotificationChannelOkResponse, GetNotificationChannelErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetNotificationChannelOkResponse, unknown>;
@@ -4,11 +4,11 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getNotificationChannel(props) {
7
- return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/notification-channels`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/notification-channels/${props['notification-channel']}`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
- * Returns a list of notification channels for the scope.
10
+ * Get Notification Channel
11
11
  */
12
12
  export function useGetNotificationChannelQuery(props, options) {
13
- return useQuery(['get-notification-channel', props.org, props.project, props.queryParams], ({ signal }) => getNotificationChannel(Object.assign(Object.assign({}, props), { signal })), options);
13
+ return useQuery(['get-notification-channel', props['notification-channel'], props.org, props.project], ({ signal }) => getNotificationChannel(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -0,0 +1,19 @@
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 GetNotificationRuleAccountQueryPathParams {
6
+ 'notification-rule': string;
7
+ }
8
+ export interface GetNotificationRuleAccountQueryHeaderParams {
9
+ 'Harness-Account'?: string;
10
+ }
11
+ export type GetNotificationRuleAccountOkResponse = ResponseWithPagination<NotificationRuleResponseResponse>;
12
+ export type GetNotificationRuleAccountErrorResponse = unknown;
13
+ export interface GetNotificationRuleAccountProps extends GetNotificationRuleAccountQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetNotificationRuleAccountQueryHeaderParams>, 'url'> {
14
+ }
15
+ export declare function getNotificationRuleAccount(props: GetNotificationRuleAccountProps): Promise<GetNotificationRuleAccountOkResponse>;
16
+ /**
17
+ * Get notification rule
18
+ */
19
+ export declare function useGetNotificationRuleAccountQuery(props: GetNotificationRuleAccountProps, options?: Omit<UseQueryOptions<GetNotificationRuleAccountOkResponse, GetNotificationRuleAccountErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetNotificationRuleAccountOkResponse, 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 { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function getNotificationRuleAccount(props) {
7
+ return fetcher(Object.assign({ url: `/v1/notification-rules/${props['notification-rule']}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get notification rule
11
+ */
12
+ export function useGetNotificationRuleAccountQuery(props, options) {
13
+ return useQuery(['get-notification-rule-account', props['notification-rule']], ({ signal }) => getNotificationRuleAccount(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,20 @@
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 GetNotificationRuleOrgQueryPathParams {
6
+ org: string;
7
+ 'notification-rule': string;
8
+ }
9
+ export interface GetNotificationRuleOrgQueryHeaderParams {
10
+ 'Harness-Account'?: string;
11
+ }
12
+ export type GetNotificationRuleOrgOkResponse = ResponseWithPagination<NotificationRuleResponseResponse>;
13
+ export type GetNotificationRuleOrgErrorResponse = unknown;
14
+ export interface GetNotificationRuleOrgProps extends GetNotificationRuleOrgQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetNotificationRuleOrgQueryHeaderParams>, 'url'> {
15
+ }
16
+ export declare function getNotificationRuleOrg(props: GetNotificationRuleOrgProps): Promise<GetNotificationRuleOrgOkResponse>;
17
+ /**
18
+ * Get notification rule
19
+ */
20
+ export declare function useGetNotificationRuleOrgQuery(props: GetNotificationRuleOrgProps, options?: Omit<UseQueryOptions<GetNotificationRuleOrgOkResponse, GetNotificationRuleOrgErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetNotificationRuleOrgOkResponse, 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 { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function getNotificationRuleOrg(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/notification-rules/${props['notification-rule']}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get notification rule
11
+ */
12
+ export function useGetNotificationRuleOrgQuery(props, options) {
13
+ return useQuery(['get-notification-rule-org', props.org, props['notification-rule']], ({ signal }) => getNotificationRuleOrg(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,21 @@
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 GetNotificationRuleQueryPathParams {
6
+ org: string;
7
+ project: string;
8
+ 'notification-rule': string;
9
+ }
10
+ export interface GetNotificationRuleQueryHeaderParams {
11
+ 'Harness-Account'?: string;
12
+ }
13
+ export type GetNotificationRuleOkResponse = ResponseWithPagination<NotificationRuleResponseResponse>;
14
+ export type GetNotificationRuleErrorResponse = unknown;
15
+ export interface GetNotificationRuleProps extends GetNotificationRuleQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetNotificationRuleQueryHeaderParams>, 'url'> {
16
+ }
17
+ export declare function getNotificationRule(props: GetNotificationRuleProps): Promise<GetNotificationRuleOkResponse>;
18
+ /**
19
+ * Get notification rule
20
+ */
21
+ export declare function useGetNotificationRuleQuery(props: GetNotificationRuleProps, options?: Omit<UseQueryOptions<GetNotificationRuleOkResponse, GetNotificationRuleErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetNotificationRuleOkResponse, 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 { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function getNotificationRule(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/notification-rules/${props['notification-rule']}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get notification rule
11
+ */
12
+ export function useGetNotificationRuleQuery(props, options) {
13
+ return useQuery(['get-notification-rule', props.org, props.project, props['notification-rule']], ({ signal }) => getNotificationRule(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,65 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { NotificationChannelListResponseResponse } from '../responses/NotificationChannelListResponseResponse';
3
+ import type { GetPathParamsType, ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface ListNotificationChannelsRefAccountPathParams {
6
+ }
7
+ export interface ListNotificationChannelsRefAccountQueryParams {
8
+ /**
9
+ * @default 30
10
+ */
11
+ limit?: number;
12
+ search_term?: string;
13
+ sort?: 'created' | 'identifier' | 'name' | 'updated';
14
+ order?: 'ASC' | 'DESC';
15
+ notification_channel_type?: string;
16
+ }
17
+ export interface ListNotificationChannelsRefAccountHeaderParams {
18
+ 'Harness-Account'?: string;
19
+ }
20
+ export type ListNotificationChannelsRefAccountOKResponse = NotificationChannelListResponseResponse;
21
+ export type ListNotificationChannelsRefAccountErrorResponse = unknown;
22
+ export interface ListNotificationChannelsRefOrgPathParams {
23
+ org: string;
24
+ }
25
+ export interface ListNotificationChannelsRefOrgQueryParams {
26
+ /**
27
+ * @default 30
28
+ */
29
+ limit?: number;
30
+ search_term?: string;
31
+ sort?: 'created' | 'identifier' | 'name' | 'updated';
32
+ order?: 'ASC' | 'DESC';
33
+ notification_channel_type?: string;
34
+ }
35
+ export interface ListNotificationChannelsRefOrgHeaderParams {
36
+ 'Harness-Account'?: string;
37
+ }
38
+ export type ListNotificationChannelsRefOrgOKResponse = NotificationChannelListResponseResponse;
39
+ export type ListNotificationChannelsRefOrgErrorResponse = unknown;
40
+ export interface ListNotificationChannelsRefProjectPathParams {
41
+ org: string;
42
+ project: string;
43
+ }
44
+ export interface ListNotificationChannelsRefProjectQueryParams {
45
+ /**
46
+ * @default 30
47
+ */
48
+ limit?: number;
49
+ search_term?: string;
50
+ sort?: 'created' | 'identifier' | 'name' | 'updated';
51
+ order?: 'ASC' | 'DESC';
52
+ notification_channel_type?: string;
53
+ }
54
+ export interface ListNotificationChannelsRefProjectHeaderParams {
55
+ 'Harness-Account'?: string;
56
+ }
57
+ export type ListNotificationChannelsRefProjectOKResponse = NotificationChannelListResponseResponse;
58
+ export type ListNotificationChannelsRefProjectErrorResponse = unknown;
59
+ export type ListNotificationChannelsRefOKResponse<T> = T extends ListNotificationChannelsRefProjectPathParams ? ResponseWithPagination<ListNotificationChannelsRefProjectOKResponse> : T extends ListNotificationChannelsRefOrgPathParams ? ResponseWithPagination<ListNotificationChannelsRefOrgOKResponse> : ResponseWithPagination<ListNotificationChannelsRefAccountOKResponse>;
60
+ export type ListNotificationChannelsRefErrorResponse<T> = T extends ListNotificationChannelsRefProjectPathParams ? ListNotificationChannelsRefProjectErrorResponse : T extends ListNotificationChannelsRefOrgPathParams ? ListNotificationChannelsRefOrgErrorResponse : ListNotificationChannelsRefAccountErrorResponse;
61
+ export interface ListNotificationChannelsRefProps extends Omit<FetcherOptions<unknown, unknown>, 'url'> {
62
+ pathParams: ListNotificationChannelsRefAccountPathParams | ListNotificationChannelsRefOrgPathParams | ListNotificationChannelsRefProjectPathParams;
63
+ }
64
+ export declare function listNotificationChannelsRef<T extends ListNotificationChannelsRefProps = ListNotificationChannelsRefProps>(props: T): Promise<ListNotificationChannelsRefOKResponse<GetPathParamsType<T>>>;
65
+ export declare function useListNotificationChannelsRefQuery<T extends ListNotificationChannelsRefProps = ListNotificationChannelsRefProps>(props: T, options?: Omit<UseQueryOptions<ListNotificationChannelsRefOKResponse<GetPathParamsType<T>>, ListNotificationChannelsRefErrorResponse<GetPathParamsType<T>>>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListNotificationChannelsRefOKResponse<GetPathParamsType<T>>, ListNotificationChannelsRefErrorResponse<GetPathParamsType<T>>>;
@@ -0,0 +1,30 @@
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
+ function isProjectPathParams(pathParams) {
7
+ return !!(pathParams.org &&
8
+ pathParams.project);
9
+ }
10
+ function isOrgPathParams(pathParams) {
11
+ return !!(pathParams.org &&
12
+ !pathParams.project);
13
+ }
14
+ export function listNotificationChannelsRef(props) {
15
+ let url = `/v1/notification-channels`;
16
+ let method = 'GET';
17
+ if (isProjectPathParams(props.pathParams)) {
18
+ url = `/v1/orgs/${props.pathParams.org}/projects/${props.pathParams.project}/notification-channels`;
19
+ method = 'GET';
20
+ }
21
+ else if (isOrgPathParams(props.pathParams)) {
22
+ url = `/v1/orgs/${props.pathParams.org}/notification-channels`;
23
+ method = 'GET';
24
+ }
25
+ return fetcher(Object.assign({ url,
26
+ method }, props));
27
+ }
28
+ export function useListNotificationChannelsRefQuery(props, options) {
29
+ return useQuery(['listNotificationChannelsRef', props.queryParams], ({ signal }) => listNotificationChannelsRef(Object.assign(Object.assign({}, props), { signal })), options);
30
+ }