@harnessio/react-notification-service-client 0.13.0 → 0.13.2-beta.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 (30) hide show
  1. package/dist/notification-service/src/services/hooks/useCreateDefaultNotificationTemplateSetRefMutation.d.ts +39 -0
  2. package/dist/notification-service/src/services/hooks/useCreateDefaultNotificationTemplateSetRefMutation.js +30 -0
  3. package/dist/notification-service/src/services/hooks/useDeleteDefaultNotificationTemplateSetRefMutation.d.ts +37 -0
  4. package/dist/notification-service/src/services/hooks/useDeleteDefaultNotificationTemplateSetRefMutation.js +30 -0
  5. package/dist/notification-service/src/services/hooks/useGetDefaultNotificationTemplateSetRefQuery.d.ts +38 -0
  6. package/dist/notification-service/src/services/hooks/useGetDefaultNotificationTemplateSetRefQuery.js +30 -0
  7. package/dist/notification-service/src/services/hooks/useListDefaultNotificationTemplateSetRefQuery.d.ts +74 -0
  8. package/dist/notification-service/src/services/hooks/useListDefaultNotificationTemplateSetRefQuery.js +30 -0
  9. package/dist/notification-service/src/services/hooks/useUpdateDefaultNotificationTemplateSetRefMutation.d.ts +42 -0
  10. package/dist/notification-service/src/services/hooks/useUpdateDefaultNotificationTemplateSetRefMutation.js +30 -0
  11. package/dist/notification-service/src/services/index.d.ts +18 -0
  12. package/dist/notification-service/src/services/index.js +5 -0
  13. package/dist/notification-service/src/services/requestBodies/DefaultNotificationTemplateSetRequestRequestBody.d.ts +2 -0
  14. package/dist/notification-service/src/services/requestBodies/DefaultNotificationTemplateSetRequestRequestBody.js +1 -0
  15. package/dist/notification-service/src/services/responses/DefaultNotificationTemplateSetListResponseResponse.d.ts +2 -0
  16. package/dist/notification-service/src/services/responses/DefaultNotificationTemplateSetListResponseResponse.js +1 -0
  17. package/dist/notification-service/src/services/responses/DefaultNotificationTemplateSetResponseResponse.d.ts +3 -0
  18. package/dist/notification-service/src/services/responses/DefaultNotificationTemplateSetResponseResponse.js +4 -0
  19. package/dist/notification-service/src/services/schemas/DefaultNotificationTemplateSetDto.d.ts +24 -0
  20. package/dist/notification-service/src/services/schemas/DefaultNotificationTemplateSetDto.js +1 -0
  21. package/dist/notification-service/src/services/schemas/DefaultNotificationTemplateSetResponse.d.ts +15 -0
  22. package/dist/notification-service/src/services/schemas/DefaultNotificationTemplateSetResponse.js +1 -0
  23. package/dist/notification-service/src/services/schemas/EventTemplateConfigurationDto.d.ts +11 -0
  24. package/dist/notification-service/src/services/schemas/EventTemplateConfigurationDto.js +1 -0
  25. package/dist/notification-service/src/services/schemas/NotificationEntity.d.ts +4 -0
  26. package/dist/notification-service/src/services/schemas/NotificationEntity.js +4 -0
  27. package/dist/notification-service/src/services/schemas/ResourceTypeEnum.d.ts +1 -1
  28. package/dist/notification-service/src/services/schemas/StoExperimentEventNotificationParamsDto.d.ts +4 -0
  29. package/dist/notification-service/src/services/schemas/StoExperimentEventNotificationParamsDto.js +1 -0
  30. package/package.json +1 -1
@@ -0,0 +1,39 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { DefaultNotificationTemplateSetResponseResponse } from '../responses/DefaultNotificationTemplateSetResponseResponse';
3
+ import type { DefaultNotificationTemplateSetRequestRequestBody } from '../requestBodies/DefaultNotificationTemplateSetRequestRequestBody';
4
+ import type { GetPathParamsType, ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface CreateDefaultNotificationTemplateSetRefAccountPathParams {
7
+ }
8
+ export interface CreateDefaultNotificationTemplateSetRefAccountHeaderParams {
9
+ 'Harness-Account'?: string;
10
+ }
11
+ export type CreateDefaultNotificationTemplateSetRefAccountRequestBody = DefaultNotificationTemplateSetRequestRequestBody;
12
+ export type CreateDefaultNotificationTemplateSetRefAccountOKResponse = DefaultNotificationTemplateSetResponseResponse;
13
+ export type CreateDefaultNotificationTemplateSetRefAccountErrorResponse = unknown;
14
+ export interface CreateDefaultNotificationTemplateSetRefOrgPathParams {
15
+ org: string;
16
+ }
17
+ export interface CreateDefaultNotificationTemplateSetRefOrgHeaderParams {
18
+ 'Harness-Account'?: string;
19
+ }
20
+ export type CreateDefaultNotificationTemplateSetRefOrgRequestBody = DefaultNotificationTemplateSetRequestRequestBody;
21
+ export type CreateDefaultNotificationTemplateSetRefOrgOKResponse = DefaultNotificationTemplateSetResponseResponse;
22
+ export type CreateDefaultNotificationTemplateSetRefOrgErrorResponse = unknown;
23
+ export interface CreateDefaultNotificationTemplateSetRefProjectPathParams {
24
+ org: string;
25
+ project: string;
26
+ }
27
+ export interface CreateDefaultNotificationTemplateSetRefProjectHeaderParams {
28
+ 'Harness-Account'?: string;
29
+ }
30
+ export type CreateDefaultNotificationTemplateSetRefProjectRequestBody = DefaultNotificationTemplateSetRequestRequestBody;
31
+ export type CreateDefaultNotificationTemplateSetRefProjectOKResponse = DefaultNotificationTemplateSetResponseResponse;
32
+ export type CreateDefaultNotificationTemplateSetRefProjectErrorResponse = unknown;
33
+ export type CreateDefaultNotificationTemplateSetRefOKResponse<T> = T extends CreateDefaultNotificationTemplateSetRefProjectPathParams ? ResponseWithPagination<CreateDefaultNotificationTemplateSetRefProjectOKResponse> : T extends CreateDefaultNotificationTemplateSetRefOrgPathParams ? ResponseWithPagination<CreateDefaultNotificationTemplateSetRefOrgOKResponse> : ResponseWithPagination<CreateDefaultNotificationTemplateSetRefAccountOKResponse>;
34
+ export type CreateDefaultNotificationTemplateSetRefErrorResponse<T> = T extends CreateDefaultNotificationTemplateSetRefProjectPathParams ? CreateDefaultNotificationTemplateSetRefProjectErrorResponse : T extends CreateDefaultNotificationTemplateSetRefOrgPathParams ? CreateDefaultNotificationTemplateSetRefOrgErrorResponse : CreateDefaultNotificationTemplateSetRefAccountErrorResponse;
35
+ export interface CreateDefaultNotificationTemplateSetRefProps extends Omit<FetcherOptions<unknown, unknown>, 'url'> {
36
+ pathParams: CreateDefaultNotificationTemplateSetRefAccountPathParams | CreateDefaultNotificationTemplateSetRefOrgPathParams | CreateDefaultNotificationTemplateSetRefProjectPathParams;
37
+ }
38
+ export declare function createDefaultNotificationTemplateSetRef<T extends CreateDefaultNotificationTemplateSetRefProps = CreateDefaultNotificationTemplateSetRefProps>(props: T): Promise<CreateDefaultNotificationTemplateSetRefOKResponse<GetPathParamsType<T>>>;
39
+ export declare function useCreateDefaultNotificationTemplateSetRefMutation(options?: Omit<UseMutationOptions<CreateDefaultNotificationTemplateSetRefOKResponse<unknown>, CreateDefaultNotificationTemplateSetRefErrorResponse<unknown>, CreateDefaultNotificationTemplateSetRefProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ResponseWithPagination<DefaultNotificationTemplateSetResponseResponse>, unknown, CreateDefaultNotificationTemplateSetRefProps, unknown>;
@@ -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 { useMutation } 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 createDefaultNotificationTemplateSetRef(props) {
15
+ let url = `/v1/default-notification-template-set`;
16
+ let method = 'POST';
17
+ if (isProjectPathParams(props.pathParams)) {
18
+ url = `/v1/orgs/${props.pathParams.org}/projects/${props.pathParams.project}/default-notification-template-set`;
19
+ method = 'POST';
20
+ }
21
+ else if (isOrgPathParams(props.pathParams)) {
22
+ url = `/v1/orgs/${props.pathParams.org}/default-notification-template-set`;
23
+ method = 'POST';
24
+ }
25
+ return fetcher(Object.assign({ url,
26
+ method }, props));
27
+ }
28
+ export function useCreateDefaultNotificationTemplateSetRefMutation(options) {
29
+ return useMutation((mutateProps) => createDefaultNotificationTemplateSetRef(mutateProps), options);
30
+ }
@@ -0,0 +1,37 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { GetPathParamsType, ResponseWithPagination } from '../helpers';
3
+ import { FetcherOptions } from '../../../../fetcher/index.js';
4
+ export interface DeleteDefaultNotificationTemplateSetRefAccountPathParams {
5
+ identifier: string;
6
+ }
7
+ export interface DeleteDefaultNotificationTemplateSetRefAccountHeaderParams {
8
+ 'Harness-Account'?: string;
9
+ }
10
+ export type DeleteDefaultNotificationTemplateSetRefAccountOKResponse = unknown;
11
+ export type DeleteDefaultNotificationTemplateSetRefAccountErrorResponse = unknown;
12
+ export interface DeleteDefaultNotificationTemplateSetRefOrgPathParams {
13
+ identifier: string;
14
+ org: string;
15
+ }
16
+ export interface DeleteDefaultNotificationTemplateSetRefOrgHeaderParams {
17
+ 'Harness-Account'?: string;
18
+ }
19
+ export type DeleteDefaultNotificationTemplateSetRefOrgOKResponse = unknown;
20
+ export type DeleteDefaultNotificationTemplateSetRefOrgErrorResponse = unknown;
21
+ export interface DeleteDefaultNotificationTemplateSetRefProjectPathParams {
22
+ identifier: string;
23
+ org: string;
24
+ project: string;
25
+ }
26
+ export interface DeleteDefaultNotificationTemplateSetRefProjectHeaderParams {
27
+ 'Harness-Account'?: string;
28
+ }
29
+ export type DeleteDefaultNotificationTemplateSetRefProjectOKResponse = unknown;
30
+ export type DeleteDefaultNotificationTemplateSetRefProjectErrorResponse = unknown;
31
+ export type DeleteDefaultNotificationTemplateSetRefOKResponse<T> = T extends DeleteDefaultNotificationTemplateSetRefProjectPathParams ? ResponseWithPagination<DeleteDefaultNotificationTemplateSetRefProjectOKResponse> : T extends DeleteDefaultNotificationTemplateSetRefOrgPathParams ? ResponseWithPagination<DeleteDefaultNotificationTemplateSetRefOrgOKResponse> : ResponseWithPagination<DeleteDefaultNotificationTemplateSetRefAccountOKResponse>;
32
+ export type DeleteDefaultNotificationTemplateSetRefErrorResponse<T> = T extends DeleteDefaultNotificationTemplateSetRefProjectPathParams ? DeleteDefaultNotificationTemplateSetRefProjectErrorResponse : T extends DeleteDefaultNotificationTemplateSetRefOrgPathParams ? DeleteDefaultNotificationTemplateSetRefOrgErrorResponse : DeleteDefaultNotificationTemplateSetRefAccountErrorResponse;
33
+ export interface DeleteDefaultNotificationTemplateSetRefProps extends Omit<FetcherOptions<unknown, unknown>, 'url'> {
34
+ pathParams: DeleteDefaultNotificationTemplateSetRefAccountPathParams | DeleteDefaultNotificationTemplateSetRefOrgPathParams | DeleteDefaultNotificationTemplateSetRefProjectPathParams;
35
+ }
36
+ export declare function deleteDefaultNotificationTemplateSetRef<T extends DeleteDefaultNotificationTemplateSetRefProps = DeleteDefaultNotificationTemplateSetRefProps>(props: T): Promise<DeleteDefaultNotificationTemplateSetRefOKResponse<GetPathParamsType<T>>>;
37
+ export declare function useDeleteDefaultNotificationTemplateSetRefMutation(options?: Omit<UseMutationOptions<DeleteDefaultNotificationTemplateSetRefOKResponse<unknown>, DeleteDefaultNotificationTemplateSetRefErrorResponse<unknown>, DeleteDefaultNotificationTemplateSetRefProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ResponseWithPagination<unknown>, unknown, DeleteDefaultNotificationTemplateSetRefProps, unknown>;
@@ -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 { useMutation } 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 deleteDefaultNotificationTemplateSetRef(props) {
15
+ let url = `/v1/default-notification-template-set/${props.pathParams.identifier}`;
16
+ let method = 'DELETE';
17
+ if (isProjectPathParams(props.pathParams)) {
18
+ url = `/v1/orgs/${props.pathParams.org}/projects/${props.pathParams.project}/default-notification-template-set/${props.pathParams.identifier}`;
19
+ method = 'DELETE';
20
+ }
21
+ else if (isOrgPathParams(props.pathParams)) {
22
+ url = `/v1/orgs/${props.pathParams.org}/default-notification-template-set/${props.pathParams.identifier}`;
23
+ method = 'DELETE';
24
+ }
25
+ return fetcher(Object.assign({ url,
26
+ method }, props));
27
+ }
28
+ export function useDeleteDefaultNotificationTemplateSetRefMutation(options) {
29
+ return useMutation((mutateProps) => deleteDefaultNotificationTemplateSetRef(mutateProps), options);
30
+ }
@@ -0,0 +1,38 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { DefaultNotificationTemplateSetResponseResponse } from '../responses/DefaultNotificationTemplateSetResponseResponse';
3
+ import type { GetPathParamsType, ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetDefaultNotificationTemplateSetRefAccountPathParams {
6
+ identifier: string;
7
+ }
8
+ export interface GetDefaultNotificationTemplateSetRefAccountHeaderParams {
9
+ 'Harness-Account'?: string;
10
+ }
11
+ export type GetDefaultNotificationTemplateSetRefAccountOKResponse = DefaultNotificationTemplateSetResponseResponse;
12
+ export type GetDefaultNotificationTemplateSetRefAccountErrorResponse = unknown;
13
+ export interface GetDefaultNotificationTemplateSetRefOrgPathParams {
14
+ identifier: string;
15
+ org: string;
16
+ }
17
+ export interface GetDefaultNotificationTemplateSetRefOrgHeaderParams {
18
+ 'Harness-Account'?: string;
19
+ }
20
+ export type GetDefaultNotificationTemplateSetRefOrgOKResponse = DefaultNotificationTemplateSetResponseResponse;
21
+ export type GetDefaultNotificationTemplateSetRefOrgErrorResponse = unknown;
22
+ export interface GetDefaultNotificationTemplateSetRefProjectPathParams {
23
+ identifier: string;
24
+ org: string;
25
+ project: string;
26
+ }
27
+ export interface GetDefaultNotificationTemplateSetRefProjectHeaderParams {
28
+ 'Harness-Account'?: string;
29
+ }
30
+ export type GetDefaultNotificationTemplateSetRefProjectOKResponse = DefaultNotificationTemplateSetResponseResponse;
31
+ export type GetDefaultNotificationTemplateSetRefProjectErrorResponse = unknown;
32
+ export type GetDefaultNotificationTemplateSetRefOKResponse<T> = T extends GetDefaultNotificationTemplateSetRefProjectPathParams ? ResponseWithPagination<GetDefaultNotificationTemplateSetRefProjectOKResponse> : T extends GetDefaultNotificationTemplateSetRefOrgPathParams ? ResponseWithPagination<GetDefaultNotificationTemplateSetRefOrgOKResponse> : ResponseWithPagination<GetDefaultNotificationTemplateSetRefAccountOKResponse>;
33
+ export type GetDefaultNotificationTemplateSetRefErrorResponse<T> = T extends GetDefaultNotificationTemplateSetRefProjectPathParams ? GetDefaultNotificationTemplateSetRefProjectErrorResponse : T extends GetDefaultNotificationTemplateSetRefOrgPathParams ? GetDefaultNotificationTemplateSetRefOrgErrorResponse : GetDefaultNotificationTemplateSetRefAccountErrorResponse;
34
+ export interface GetDefaultNotificationTemplateSetRefProps extends Omit<FetcherOptions<unknown, unknown>, 'url'> {
35
+ pathParams: GetDefaultNotificationTemplateSetRefAccountPathParams | GetDefaultNotificationTemplateSetRefOrgPathParams | GetDefaultNotificationTemplateSetRefProjectPathParams;
36
+ }
37
+ export declare function getDefaultNotificationTemplateSetRef<T extends GetDefaultNotificationTemplateSetRefProps = GetDefaultNotificationTemplateSetRefProps>(props: T): Promise<GetDefaultNotificationTemplateSetRefOKResponse<GetPathParamsType<T>>>;
38
+ export declare function useGetDefaultNotificationTemplateSetRefQuery<T extends GetDefaultNotificationTemplateSetRefProps = GetDefaultNotificationTemplateSetRefProps>(props: T, options?: Omit<UseQueryOptions<GetDefaultNotificationTemplateSetRefOKResponse<GetPathParamsType<T>>, GetDefaultNotificationTemplateSetRefErrorResponse<GetPathParamsType<T>>>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetDefaultNotificationTemplateSetRefOKResponse<GetPathParamsType<T>>, GetDefaultNotificationTemplateSetRefErrorResponse<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 getDefaultNotificationTemplateSetRef(props) {
15
+ let url = `/v1/default-notification-template-set/${props.pathParams.identifier}`;
16
+ let method = 'GET';
17
+ if (isProjectPathParams(props.pathParams)) {
18
+ url = `/v1/orgs/${props.pathParams.org}/projects/${props.pathParams.project}/default-notification-template-set/${props.pathParams.identifier}`;
19
+ method = 'GET';
20
+ }
21
+ else if (isOrgPathParams(props.pathParams)) {
22
+ url = `/v1/orgs/${props.pathParams.org}/default-notification-template-set/${props.pathParams.identifier}`;
23
+ method = 'GET';
24
+ }
25
+ return fetcher(Object.assign({ url,
26
+ method }, props));
27
+ }
28
+ export function useGetDefaultNotificationTemplateSetRefQuery(props, options) {
29
+ return useQuery(['getDefaultNotificationTemplateSetRef'], ({ signal }) => getDefaultNotificationTemplateSetRef(Object.assign(Object.assign({}, props), { signal })), options);
30
+ }
@@ -0,0 +1,74 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { DefaultNotificationTemplateSetListResponseResponse } from '../responses/DefaultNotificationTemplateSetListResponseResponse';
3
+ import type { GetPathParamsType, ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface ListDefaultNotificationTemplateSetRefAccountPathParams {
6
+ }
7
+ export interface ListDefaultNotificationTemplateSetRefAccountQueryParams {
8
+ /**
9
+ * @default 0
10
+ */
11
+ page?: number;
12
+ /**
13
+ * @default 30
14
+ */
15
+ limit?: number;
16
+ sort?: 'created' | 'identifier' | 'name' | 'updated';
17
+ order?: 'ASC' | 'DESC';
18
+ search_term?: string;
19
+ notification_entity?: string;
20
+ notification_channel_type?: string;
21
+ notification_event?: string;
22
+ }
23
+ export type ListDefaultNotificationTemplateSetRefAccountOKResponse = DefaultNotificationTemplateSetListResponseResponse;
24
+ export type ListDefaultNotificationTemplateSetRefAccountErrorResponse = unknown;
25
+ export interface ListDefaultNotificationTemplateSetRefOrgPathParams {
26
+ org: string;
27
+ }
28
+ export interface ListDefaultNotificationTemplateSetRefOrgQueryParams {
29
+ /**
30
+ * @default 0
31
+ */
32
+ page?: number;
33
+ /**
34
+ * @default 30
35
+ */
36
+ limit?: number;
37
+ sort?: 'created' | 'identifier' | 'name' | 'updated';
38
+ order?: 'ASC' | 'DESC';
39
+ search_term?: string;
40
+ notification_entity?: string;
41
+ notification_channel_type?: string;
42
+ notification_event?: string;
43
+ }
44
+ export type ListDefaultNotificationTemplateSetRefOrgOKResponse = DefaultNotificationTemplateSetListResponseResponse;
45
+ export type ListDefaultNotificationTemplateSetRefOrgErrorResponse = unknown;
46
+ export interface ListDefaultNotificationTemplateSetRefProjectPathParams {
47
+ org: string;
48
+ project: string;
49
+ }
50
+ export interface ListDefaultNotificationTemplateSetRefProjectQueryParams {
51
+ /**
52
+ * @default 0
53
+ */
54
+ page?: number;
55
+ /**
56
+ * @default 30
57
+ */
58
+ limit?: number;
59
+ sort?: 'created' | 'identifier' | 'name' | 'updated';
60
+ order?: 'ASC' | 'DESC';
61
+ search_term?: string;
62
+ notification_entity?: string;
63
+ notification_channel_type?: string;
64
+ notification_event?: string;
65
+ }
66
+ export type ListDefaultNotificationTemplateSetRefProjectOKResponse = DefaultNotificationTemplateSetListResponseResponse;
67
+ export type ListDefaultNotificationTemplateSetRefProjectErrorResponse = unknown;
68
+ export type ListDefaultNotificationTemplateSetRefOKResponse<T> = T extends ListDefaultNotificationTemplateSetRefProjectPathParams ? ResponseWithPagination<ListDefaultNotificationTemplateSetRefProjectOKResponse> : T extends ListDefaultNotificationTemplateSetRefOrgPathParams ? ResponseWithPagination<ListDefaultNotificationTemplateSetRefOrgOKResponse> : ResponseWithPagination<ListDefaultNotificationTemplateSetRefAccountOKResponse>;
69
+ export type ListDefaultNotificationTemplateSetRefErrorResponse<T> = T extends ListDefaultNotificationTemplateSetRefProjectPathParams ? ListDefaultNotificationTemplateSetRefProjectErrorResponse : T extends ListDefaultNotificationTemplateSetRefOrgPathParams ? ListDefaultNotificationTemplateSetRefOrgErrorResponse : ListDefaultNotificationTemplateSetRefAccountErrorResponse;
70
+ export interface ListDefaultNotificationTemplateSetRefProps extends Omit<FetcherOptions<unknown, unknown>, 'url'> {
71
+ pathParams: ListDefaultNotificationTemplateSetRefAccountPathParams | ListDefaultNotificationTemplateSetRefOrgPathParams | ListDefaultNotificationTemplateSetRefProjectPathParams;
72
+ }
73
+ export declare function listDefaultNotificationTemplateSetRef<T extends ListDefaultNotificationTemplateSetRefProps = ListDefaultNotificationTemplateSetRefProps>(props: T): Promise<ListDefaultNotificationTemplateSetRefOKResponse<GetPathParamsType<T>>>;
74
+ export declare function useListDefaultNotificationTemplateSetRefQuery<T extends ListDefaultNotificationTemplateSetRefProps = ListDefaultNotificationTemplateSetRefProps>(props: T, options?: Omit<UseQueryOptions<ListDefaultNotificationTemplateSetRefOKResponse<GetPathParamsType<T>>, ListDefaultNotificationTemplateSetRefErrorResponse<GetPathParamsType<T>>>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListDefaultNotificationTemplateSetRefOKResponse<GetPathParamsType<T>>, ListDefaultNotificationTemplateSetRefErrorResponse<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 listDefaultNotificationTemplateSetRef(props) {
15
+ let url = `/v1/default-notification-template-set`;
16
+ let method = 'GET';
17
+ if (isProjectPathParams(props.pathParams)) {
18
+ url = `/v1/orgs/${props.pathParams.org}/projects/${props.pathParams.project}/default-notification-template-set`;
19
+ method = 'GET';
20
+ }
21
+ else if (isOrgPathParams(props.pathParams)) {
22
+ url = `/v1/orgs/${props.pathParams.org}/default-notification-template-set`;
23
+ method = 'GET';
24
+ }
25
+ return fetcher(Object.assign({ url,
26
+ method }, props));
27
+ }
28
+ export function useListDefaultNotificationTemplateSetRefQuery(props, options) {
29
+ return useQuery(['listDefaultNotificationTemplateSetRef', props.queryParams], ({ signal }) => listDefaultNotificationTemplateSetRef(Object.assign(Object.assign({}, props), { signal })), options);
30
+ }
@@ -0,0 +1,42 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { DefaultNotificationTemplateSetResponseResponse } from '../responses/DefaultNotificationTemplateSetResponseResponse';
3
+ import type { DefaultNotificationTemplateSetRequestRequestBody } from '../requestBodies/DefaultNotificationTemplateSetRequestRequestBody';
4
+ import type { GetPathParamsType, ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface UpdateDefaultNotificationTemplateSetRefAccountPathParams {
7
+ identifier: string;
8
+ }
9
+ export interface UpdateDefaultNotificationTemplateSetRefAccountHeaderParams {
10
+ 'Harness-Account'?: string;
11
+ }
12
+ export type UpdateDefaultNotificationTemplateSetRefAccountRequestBody = DefaultNotificationTemplateSetRequestRequestBody;
13
+ export type UpdateDefaultNotificationTemplateSetRefAccountOKResponse = DefaultNotificationTemplateSetResponseResponse;
14
+ export type UpdateDefaultNotificationTemplateSetRefAccountErrorResponse = unknown;
15
+ export interface UpdateDefaultNotificationTemplateSetRefOrgPathParams {
16
+ identifier: string;
17
+ org: string;
18
+ }
19
+ export interface UpdateDefaultNotificationTemplateSetRefOrgHeaderParams {
20
+ 'Harness-Account'?: string;
21
+ }
22
+ export type UpdateDefaultNotificationTemplateSetRefOrgRequestBody = DefaultNotificationTemplateSetRequestRequestBody;
23
+ export type UpdateDefaultNotificationTemplateSetRefOrgOKResponse = DefaultNotificationTemplateSetResponseResponse;
24
+ export type UpdateDefaultNotificationTemplateSetRefOrgErrorResponse = unknown;
25
+ export interface UpdateDefaultNotificationTemplateSetRefProjectPathParams {
26
+ identifier: string;
27
+ org: string;
28
+ project: string;
29
+ }
30
+ export interface UpdateDefaultNotificationTemplateSetRefProjectHeaderParams {
31
+ 'Harness-Account'?: string;
32
+ }
33
+ export type UpdateDefaultNotificationTemplateSetRefProjectRequestBody = DefaultNotificationTemplateSetRequestRequestBody;
34
+ export type UpdateDefaultNotificationTemplateSetRefProjectOKResponse = DefaultNotificationTemplateSetResponseResponse;
35
+ export type UpdateDefaultNotificationTemplateSetRefProjectErrorResponse = unknown;
36
+ export type UpdateDefaultNotificationTemplateSetRefOKResponse<T> = T extends UpdateDefaultNotificationTemplateSetRefProjectPathParams ? ResponseWithPagination<UpdateDefaultNotificationTemplateSetRefProjectOKResponse> : T extends UpdateDefaultNotificationTemplateSetRefOrgPathParams ? ResponseWithPagination<UpdateDefaultNotificationTemplateSetRefOrgOKResponse> : ResponseWithPagination<UpdateDefaultNotificationTemplateSetRefAccountOKResponse>;
37
+ export type UpdateDefaultNotificationTemplateSetRefErrorResponse<T> = T extends UpdateDefaultNotificationTemplateSetRefProjectPathParams ? UpdateDefaultNotificationTemplateSetRefProjectErrorResponse : T extends UpdateDefaultNotificationTemplateSetRefOrgPathParams ? UpdateDefaultNotificationTemplateSetRefOrgErrorResponse : UpdateDefaultNotificationTemplateSetRefAccountErrorResponse;
38
+ export interface UpdateDefaultNotificationTemplateSetRefProps extends Omit<FetcherOptions<unknown, unknown>, 'url'> {
39
+ pathParams: UpdateDefaultNotificationTemplateSetRefAccountPathParams | UpdateDefaultNotificationTemplateSetRefOrgPathParams | UpdateDefaultNotificationTemplateSetRefProjectPathParams;
40
+ }
41
+ export declare function updateDefaultNotificationTemplateSetRef<T extends UpdateDefaultNotificationTemplateSetRefProps = UpdateDefaultNotificationTemplateSetRefProps>(props: T): Promise<UpdateDefaultNotificationTemplateSetRefOKResponse<GetPathParamsType<T>>>;
42
+ export declare function useUpdateDefaultNotificationTemplateSetRefMutation(options?: Omit<UseMutationOptions<UpdateDefaultNotificationTemplateSetRefOKResponse<unknown>, UpdateDefaultNotificationTemplateSetRefErrorResponse<unknown>, UpdateDefaultNotificationTemplateSetRefProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ResponseWithPagination<DefaultNotificationTemplateSetResponseResponse>, unknown, UpdateDefaultNotificationTemplateSetRefProps, unknown>;
@@ -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 { useMutation } 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 updateDefaultNotificationTemplateSetRef(props) {
15
+ let url = `/v1/default-notification-template-set/${props.pathParams.identifier}`;
16
+ let method = 'PUT';
17
+ if (isProjectPathParams(props.pathParams)) {
18
+ url = `/v1/orgs/${props.pathParams.org}/projects/${props.pathParams.project}/default-notification-template-set/${props.pathParams.identifier}`;
19
+ method = 'PUT';
20
+ }
21
+ else if (isOrgPathParams(props.pathParams)) {
22
+ url = `/v1/orgs/${props.pathParams.org}/default-notification-template-set/${props.pathParams.identifier}`;
23
+ method = 'PUT';
24
+ }
25
+ return fetcher(Object.assign({ url,
26
+ method }, props));
27
+ }
28
+ export function useUpdateDefaultNotificationTemplateSetRefMutation(options) {
29
+ return useMutation((mutateProps) => updateDefaultNotificationTemplateSetRef(mutateProps), options);
30
+ }
@@ -1,14 +1,20 @@
1
1
  export type { GetPathParamsType, ResponseWithPagination } from './helpers';
2
2
  export type { CreateAttachmentErrorResponse, CreateAttachmentOkResponse, CreateAttachmentProps, CreateAttachmentRequestBody, } from './hooks/useCreateAttachmentMutation';
3
3
  export { createAttachment, useCreateAttachmentMutation } from './hooks/useCreateAttachmentMutation';
4
+ export type { CreateDefaultNotificationTemplateSetRefAccountErrorResponse, CreateDefaultNotificationTemplateSetRefAccountOKResponse, CreateDefaultNotificationTemplateSetRefAccountRequestBody, CreateDefaultNotificationTemplateSetRefOrgErrorResponse, CreateDefaultNotificationTemplateSetRefOrgOKResponse, CreateDefaultNotificationTemplateSetRefOrgPathParams, CreateDefaultNotificationTemplateSetRefOrgRequestBody, CreateDefaultNotificationTemplateSetRefProjectErrorResponse, CreateDefaultNotificationTemplateSetRefProjectOKResponse, CreateDefaultNotificationTemplateSetRefProjectPathParams, CreateDefaultNotificationTemplateSetRefProjectRequestBody, CreateDefaultNotificationTemplateSetRefProps, } from './hooks/useCreateDefaultNotificationTemplateSetRefMutation';
5
+ export { createDefaultNotificationTemplateSetRef, useCreateDefaultNotificationTemplateSetRefMutation, } from './hooks/useCreateDefaultNotificationTemplateSetRefMutation';
4
6
  export type { CreateNotificationChannelRefAccountErrorResponse, CreateNotificationChannelRefAccountOKResponse, CreateNotificationChannelRefAccountRequestBody, CreateNotificationChannelRefOrgErrorResponse, CreateNotificationChannelRefOrgOKResponse, CreateNotificationChannelRefOrgPathParams, CreateNotificationChannelRefOrgRequestBody, CreateNotificationChannelRefProjectErrorResponse, CreateNotificationChannelRefProjectOKResponse, CreateNotificationChannelRefProjectPathParams, CreateNotificationChannelRefProjectRequestBody, CreateNotificationChannelRefProps, } from './hooks/useCreateNotificationChannelRefMutation';
5
7
  export { createNotificationChannelRef, useCreateNotificationChannelRefMutation, } from './hooks/useCreateNotificationChannelRefMutation';
6
8
  export type { CreateNotificationRuleRefAccountErrorResponse, CreateNotificationRuleRefAccountOKResponse, CreateNotificationRuleRefAccountRequestBody, CreateNotificationRuleRefOrgErrorResponse, CreateNotificationRuleRefOrgOKResponse, CreateNotificationRuleRefOrgPathParams, CreateNotificationRuleRefOrgRequestBody, CreateNotificationRuleRefProjectErrorResponse, CreateNotificationRuleRefProjectOKResponse, CreateNotificationRuleRefProjectPathParams, CreateNotificationRuleRefProjectRequestBody, CreateNotificationRuleRefProps, } from './hooks/useCreateNotificationRuleRefMutation';
7
9
  export { createNotificationRuleRef, useCreateNotificationRuleRefMutation, } from './hooks/useCreateNotificationRuleRefMutation';
10
+ export type { DeleteDefaultNotificationTemplateSetRefAccountErrorResponse, DeleteDefaultNotificationTemplateSetRefAccountOKResponse, DeleteDefaultNotificationTemplateSetRefAccountPathParams, DeleteDefaultNotificationTemplateSetRefOrgErrorResponse, DeleteDefaultNotificationTemplateSetRefOrgOKResponse, DeleteDefaultNotificationTemplateSetRefOrgPathParams, DeleteDefaultNotificationTemplateSetRefProjectErrorResponse, DeleteDefaultNotificationTemplateSetRefProjectOKResponse, DeleteDefaultNotificationTemplateSetRefProjectPathParams, DeleteDefaultNotificationTemplateSetRefProps, } from './hooks/useDeleteDefaultNotificationTemplateSetRefMutation';
11
+ export { deleteDefaultNotificationTemplateSetRef, useDeleteDefaultNotificationTemplateSetRefMutation, } from './hooks/useDeleteDefaultNotificationTemplateSetRefMutation';
8
12
  export type { DeleteNotificationChannelRefAccountErrorResponse, DeleteNotificationChannelRefAccountOKResponse, DeleteNotificationChannelRefAccountPathParams, DeleteNotificationChannelRefOrgErrorResponse, DeleteNotificationChannelRefOrgOKResponse, DeleteNotificationChannelRefOrgPathParams, DeleteNotificationChannelRefProjectErrorResponse, DeleteNotificationChannelRefProjectOKResponse, DeleteNotificationChannelRefProjectPathParams, DeleteNotificationChannelRefProps, } from './hooks/useDeleteNotificationChannelRefMutation';
9
13
  export { deleteNotificationChannelRef, useDeleteNotificationChannelRefMutation, } from './hooks/useDeleteNotificationChannelRefMutation';
10
14
  export type { DeleteNotificationRuleRefAccountErrorResponse, DeleteNotificationRuleRefAccountOKResponse, DeleteNotificationRuleRefAccountPathParams, DeleteNotificationRuleRefOrgErrorResponse, DeleteNotificationRuleRefOrgOKResponse, DeleteNotificationRuleRefOrgPathParams, DeleteNotificationRuleRefProjectErrorResponse, DeleteNotificationRuleRefProjectOKResponse, DeleteNotificationRuleRefProjectPathParams, DeleteNotificationRuleRefProps, } from './hooks/useDeleteNotificationRuleRefMutation';
11
15
  export { deleteNotificationRuleRef, useDeleteNotificationRuleRefMutation, } from './hooks/useDeleteNotificationRuleRefMutation';
16
+ export type { GetDefaultNotificationTemplateSetRefAccountErrorResponse, GetDefaultNotificationTemplateSetRefAccountOKResponse, GetDefaultNotificationTemplateSetRefAccountPathParams, GetDefaultNotificationTemplateSetRefOrgErrorResponse, GetDefaultNotificationTemplateSetRefOrgOKResponse, GetDefaultNotificationTemplateSetRefOrgPathParams, GetDefaultNotificationTemplateSetRefProjectErrorResponse, GetDefaultNotificationTemplateSetRefProjectOKResponse, GetDefaultNotificationTemplateSetRefProjectPathParams, GetDefaultNotificationTemplateSetRefProps, } from './hooks/useGetDefaultNotificationTemplateSetRefQuery';
17
+ export { getDefaultNotificationTemplateSetRef, useGetDefaultNotificationTemplateSetRefQuery, } from './hooks/useGetDefaultNotificationTemplateSetRefQuery';
12
18
  export type { GetNotificationChannelAccountErrorResponse, GetNotificationChannelAccountOkResponse, GetNotificationChannelAccountProps, GetNotificationChannelAccountQueryPathParams, } from './hooks/useGetNotificationChannelAccountQuery';
13
19
  export { getNotificationChannelAccount, useGetNotificationChannelAccountQuery, } from './hooks/useGetNotificationChannelAccountQuery';
14
20
  export type { GetNotificationChannelOrgErrorResponse, GetNotificationChannelOrgOkResponse, GetNotificationChannelOrgProps, GetNotificationChannelOrgQueryPathParams, } from './hooks/useGetNotificationChannelOrgQuery';
@@ -21,6 +27,8 @@ export type { GetNotificationRuleOrgErrorResponse, GetNotificationRuleOrgOkRespo
21
27
  export { getNotificationRuleOrg, useGetNotificationRuleOrgQuery, } from './hooks/useGetNotificationRuleOrgQuery';
22
28
  export type { GetNotificationRuleErrorResponse, GetNotificationRuleOkResponse, GetNotificationRuleProps, GetNotificationRuleQueryPathParams, } from './hooks/useGetNotificationRuleQuery';
23
29
  export { getNotificationRule, useGetNotificationRuleQuery, } from './hooks/useGetNotificationRuleQuery';
30
+ export type { ListDefaultNotificationTemplateSetRefAccountErrorResponse, ListDefaultNotificationTemplateSetRefAccountOKResponse, ListDefaultNotificationTemplateSetRefAccountQueryParams, ListDefaultNotificationTemplateSetRefOrgErrorResponse, ListDefaultNotificationTemplateSetRefOrgOKResponse, ListDefaultNotificationTemplateSetRefOrgPathParams, ListDefaultNotificationTemplateSetRefOrgQueryParams, ListDefaultNotificationTemplateSetRefProjectErrorResponse, ListDefaultNotificationTemplateSetRefProjectOKResponse, ListDefaultNotificationTemplateSetRefProjectPathParams, ListDefaultNotificationTemplateSetRefProjectQueryParams, ListDefaultNotificationTemplateSetRefProps, } from './hooks/useListDefaultNotificationTemplateSetRefQuery';
31
+ export { listDefaultNotificationTemplateSetRef, useListDefaultNotificationTemplateSetRefQuery, } from './hooks/useListDefaultNotificationTemplateSetRefQuery';
24
32
  export type { ListNotificationChannelsRefAccountErrorResponse, ListNotificationChannelsRefAccountOKResponse, ListNotificationChannelsRefAccountQueryParams, ListNotificationChannelsRefOrgErrorResponse, ListNotificationChannelsRefOrgOKResponse, ListNotificationChannelsRefOrgPathParams, ListNotificationChannelsRefOrgQueryParams, ListNotificationChannelsRefProjectErrorResponse, ListNotificationChannelsRefProjectOKResponse, ListNotificationChannelsRefProjectPathParams, ListNotificationChannelsRefProjectQueryParams, ListNotificationChannelsRefProps, } from './hooks/useListNotificationChannelsRefQuery';
25
33
  export { listNotificationChannelsRef, useListNotificationChannelsRefQuery, } from './hooks/useListNotificationChannelsRefQuery';
26
34
  export type { ListNotificationRulesRefAccountErrorResponse, ListNotificationRulesRefAccountOKResponse, ListNotificationRulesRefAccountQueryParams, ListNotificationRulesRefOrgErrorResponse, ListNotificationRulesRefOrgOKResponse, ListNotificationRulesRefOrgPathParams, ListNotificationRulesRefOrgQueryParams, ListNotificationRulesRefProjectErrorResponse, ListNotificationRulesRefProjectOKResponse, ListNotificationRulesRefProjectPathParams, ListNotificationRulesRefProjectQueryParams, ListNotificationRulesRefProps, } from './hooks/useListNotificationRulesRefQuery';
@@ -29,6 +37,8 @@ export type { NotificationResourceListErrorResponse, NotificationResourceListOkR
29
37
  export { notificationResourceList, useNotificationResourceListQuery, } from './hooks/useNotificationResourceListQuery';
30
38
  export type { SimulateNotificationsErrorResponse, SimulateNotificationsOkResponse, SimulateNotificationsProps, SimulateNotificationsRequestBody, } from './hooks/useSimulateNotificationsMutation';
31
39
  export { simulateNotifications, useSimulateNotificationsMutation, } from './hooks/useSimulateNotificationsMutation';
40
+ export type { UpdateDefaultNotificationTemplateSetRefAccountErrorResponse, UpdateDefaultNotificationTemplateSetRefAccountOKResponse, UpdateDefaultNotificationTemplateSetRefAccountPathParams, UpdateDefaultNotificationTemplateSetRefAccountRequestBody, UpdateDefaultNotificationTemplateSetRefOrgErrorResponse, UpdateDefaultNotificationTemplateSetRefOrgOKResponse, UpdateDefaultNotificationTemplateSetRefOrgPathParams, UpdateDefaultNotificationTemplateSetRefOrgRequestBody, UpdateDefaultNotificationTemplateSetRefProjectErrorResponse, UpdateDefaultNotificationTemplateSetRefProjectOKResponse, UpdateDefaultNotificationTemplateSetRefProjectPathParams, UpdateDefaultNotificationTemplateSetRefProjectRequestBody, UpdateDefaultNotificationTemplateSetRefProps, } from './hooks/useUpdateDefaultNotificationTemplateSetRefMutation';
41
+ export { updateDefaultNotificationTemplateSetRef, useUpdateDefaultNotificationTemplateSetRefMutation, } from './hooks/useUpdateDefaultNotificationTemplateSetRefMutation';
32
42
  export type { UpdateNotificationChannelRefAccountErrorResponse, UpdateNotificationChannelRefAccountOKResponse, UpdateNotificationChannelRefAccountPathParams, UpdateNotificationChannelRefAccountRequestBody, UpdateNotificationChannelRefOrgErrorResponse, UpdateNotificationChannelRefOrgOKResponse, UpdateNotificationChannelRefOrgPathParams, UpdateNotificationChannelRefOrgRequestBody, UpdateNotificationChannelRefProjectErrorResponse, UpdateNotificationChannelRefProjectOKResponse, UpdateNotificationChannelRefProjectPathParams, UpdateNotificationChannelRefProjectRequestBody, UpdateNotificationChannelRefProps, } from './hooks/useUpdateNotificationChannelRefMutation';
33
43
  export { updateNotificationChannelRef, useUpdateNotificationChannelRefMutation, } from './hooks/useUpdateNotificationChannelRefMutation';
34
44
  export type { UpdateNotificationRuleRefAccountErrorResponse, UpdateNotificationRuleRefAccountOKResponse, UpdateNotificationRuleRefAccountPathParams, UpdateNotificationRuleRefAccountRequestBody, UpdateNotificationRuleRefOrgErrorResponse, UpdateNotificationRuleRefOrgOKResponse, UpdateNotificationRuleRefOrgPathParams, UpdateNotificationRuleRefOrgRequestBody, UpdateNotificationRuleRefProjectErrorResponse, UpdateNotificationRuleRefProjectOKResponse, UpdateNotificationRuleRefProjectPathParams, UpdateNotificationRuleRefProjectRequestBody, UpdateNotificationRuleRefProps, } from './hooks/useUpdateNotificationRuleRefMutation';
@@ -37,9 +47,12 @@ export type { ValidateNotificationChannelRefAccountErrorResponse, ValidateNotifi
37
47
  export { useValidateNotificationChannelRefMutation, validateNotificationChannelRef, } from './hooks/useValidateNotificationChannelRefMutation';
38
48
  export type { ValidateNotificationRuleRefAccountErrorResponse, ValidateNotificationRuleRefAccountOKResponse, ValidateNotificationRuleRefAccountPathParams, ValidateNotificationRuleRefOrgErrorResponse, ValidateNotificationRuleRefOrgOKResponse, ValidateNotificationRuleRefOrgPathParams, ValidateNotificationRuleRefProjectErrorResponse, ValidateNotificationRuleRefProjectOKResponse, ValidateNotificationRuleRefProjectPathParams, ValidateNotificationRuleRefProps, } from './hooks/useValidateNotificationRuleRefMutation';
39
49
  export { useValidateNotificationRuleRefMutation, validateNotificationRuleRef, } from './hooks/useValidateNotificationRuleRefMutation';
50
+ export type { DefaultNotificationTemplateSetRequestRequestBody } from './requestBodies/DefaultNotificationTemplateSetRequestRequestBody';
40
51
  export type { NotificationChannelRequestRequestBody } from './requestBodies/NotificationChannelRequestRequestBody';
41
52
  export type { NotificationRuleRequestRequestBody } from './requestBodies/NotificationRuleRequestRequestBody';
42
53
  export type { SaveAttachmentRequestRequestBody } from './requestBodies/SaveAttachmentRequestRequestBody';
54
+ export type { DefaultNotificationTemplateSetListResponseResponse } from './responses/DefaultNotificationTemplateSetListResponseResponse';
55
+ export type { DefaultNotificationTemplateSetResponseResponse } from './responses/DefaultNotificationTemplateSetResponseResponse';
43
56
  export type { NotificationChannelListResponseResponse } from './responses/NotificationChannelListResponseResponse';
44
57
  export type { NotificationChannelResponseResponse } from './responses/NotificationChannelResponseResponse';
45
58
  export type { NotificationResourceListResponse } from './responses/NotificationResourceListResponse';
@@ -52,10 +65,14 @@ export type { ChannelDto } from './schemas/ChannelDto';
52
65
  export type { ChannelType } from './schemas/ChannelType';
53
66
  export type { ChaosExperimentEventNotificationParamsDto } from './schemas/ChaosExperimentEventNotificationParamsDto';
54
67
  export type { CustomNotificationTemplateDto } from './schemas/CustomNotificationTemplateDto';
68
+ export type { DefaultNotificationTemplateSetDto } from './schemas/DefaultNotificationTemplateSetDto';
69
+ export type { DefaultNotificationTemplateSetResponse } from './schemas/DefaultNotificationTemplateSetResponse';
55
70
  export type { DelegateEventNotificationParamsDto } from './schemas/DelegateEventNotificationParamsDto';
71
+ export type { EventTemplateConfigurationDto } from './schemas/EventTemplateConfigurationDto';
56
72
  export type { FrequencyDto } from './schemas/FrequencyDto';
57
73
  export type { NotificationChannelDto } from './schemas/NotificationChannelDto';
58
74
  export type { NotificationConditionDto } from './schemas/NotificationConditionDto';
75
+ export type { NotificationEntity } from './schemas/NotificationEntity';
59
76
  export type { NotificationEventConfigDto } from './schemas/NotificationEventConfigDto';
60
77
  export type { NotificationEventParamsDto } from './schemas/NotificationEventParamsDto';
61
78
  export type { NotificationResourceDto } from './schemas/NotificationResourceDto';
@@ -66,6 +83,7 @@ export type { PipelineEventNotificationParamsDto } from './schemas/PipelineEvent
66
83
  export type { ResourceTypeEnum } from './schemas/ResourceTypeEnum';
67
84
  export type { SloEventNotificationParamsDto } from './schemas/SloEventNotificationParamsDto';
68
85
  export type { Status } from './schemas/Status';
86
+ export type { StoExperimentEventNotificationParamsDto } from './schemas/StoExperimentEventNotificationParamsDto';
69
87
  export type { UserGroupDto } from './schemas/UserGroupDto';
70
88
  export type { ValidateIdentifierDto } from './schemas/ValidateIdentifierDto';
71
89
  export type { WebHookHeaders } from './schemas/WebHookHeaders';
@@ -1,18 +1,23 @@
1
1
  export { createAttachment, useCreateAttachmentMutation } from './hooks/useCreateAttachmentMutation';
2
+ export { createDefaultNotificationTemplateSetRef, useCreateDefaultNotificationTemplateSetRefMutation, } from './hooks/useCreateDefaultNotificationTemplateSetRefMutation';
2
3
  export { createNotificationChannelRef, useCreateNotificationChannelRefMutation, } from './hooks/useCreateNotificationChannelRefMutation';
3
4
  export { createNotificationRuleRef, useCreateNotificationRuleRefMutation, } from './hooks/useCreateNotificationRuleRefMutation';
5
+ export { deleteDefaultNotificationTemplateSetRef, useDeleteDefaultNotificationTemplateSetRefMutation, } from './hooks/useDeleteDefaultNotificationTemplateSetRefMutation';
4
6
  export { deleteNotificationChannelRef, useDeleteNotificationChannelRefMutation, } from './hooks/useDeleteNotificationChannelRefMutation';
5
7
  export { deleteNotificationRuleRef, useDeleteNotificationRuleRefMutation, } from './hooks/useDeleteNotificationRuleRefMutation';
8
+ export { getDefaultNotificationTemplateSetRef, useGetDefaultNotificationTemplateSetRefQuery, } from './hooks/useGetDefaultNotificationTemplateSetRefQuery';
6
9
  export { getNotificationChannelAccount, useGetNotificationChannelAccountQuery, } from './hooks/useGetNotificationChannelAccountQuery';
7
10
  export { getNotificationChannelOrg, useGetNotificationChannelOrgQuery, } from './hooks/useGetNotificationChannelOrgQuery';
8
11
  export { getNotificationChannel, useGetNotificationChannelQuery, } from './hooks/useGetNotificationChannelQuery';
9
12
  export { getNotificationRuleAccount, useGetNotificationRuleAccountQuery, } from './hooks/useGetNotificationRuleAccountQuery';
10
13
  export { getNotificationRuleOrg, useGetNotificationRuleOrgQuery, } from './hooks/useGetNotificationRuleOrgQuery';
11
14
  export { getNotificationRule, useGetNotificationRuleQuery, } from './hooks/useGetNotificationRuleQuery';
15
+ export { listDefaultNotificationTemplateSetRef, useListDefaultNotificationTemplateSetRefQuery, } from './hooks/useListDefaultNotificationTemplateSetRefQuery';
12
16
  export { listNotificationChannelsRef, useListNotificationChannelsRefQuery, } from './hooks/useListNotificationChannelsRefQuery';
13
17
  export { listNotificationRulesRef, useListNotificationRulesRefQuery, } from './hooks/useListNotificationRulesRefQuery';
14
18
  export { notificationResourceList, useNotificationResourceListQuery, } from './hooks/useNotificationResourceListQuery';
15
19
  export { simulateNotifications, useSimulateNotificationsMutation, } from './hooks/useSimulateNotificationsMutation';
20
+ export { updateDefaultNotificationTemplateSetRef, useUpdateDefaultNotificationTemplateSetRefMutation, } from './hooks/useUpdateDefaultNotificationTemplateSetRefMutation';
16
21
  export { updateNotificationChannelRef, useUpdateNotificationChannelRefMutation, } from './hooks/useUpdateNotificationChannelRefMutation';
17
22
  export { updateNotificationRuleRef, useUpdateNotificationRuleRefMutation, } from './hooks/useUpdateNotificationRuleRefMutation';
18
23
  export { useValidateNotificationChannelRefMutation, validateNotificationChannelRef, } from './hooks/useValidateNotificationChannelRefMutation';
@@ -0,0 +1,2 @@
1
+ import type { DefaultNotificationTemplateSetDto } from '../schemas/DefaultNotificationTemplateSetDto';
2
+ export type DefaultNotificationTemplateSetRequestRequestBody = DefaultNotificationTemplateSetDto;
@@ -0,0 +1,2 @@
1
+ import type { DefaultNotificationTemplateSetResponse } from '../schemas/DefaultNotificationTemplateSetResponse';
2
+ export type DefaultNotificationTemplateSetListResponseResponse = DefaultNotificationTemplateSetResponse[];
@@ -0,0 +1,3 @@
1
+ export interface DefaultNotificationTemplateSetResponseResponse {
2
+ id?: string;
3
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,24 @@
1
+ import type { EventTemplateConfigurationDto } from '../schemas/EventTemplateConfigurationDto';
2
+ import type { ChannelType } from '../schemas/ChannelType';
3
+ import type { NotificationEntity } from '../schemas/NotificationEntity';
4
+ /**
5
+ * DefaultNotificationTemplateSetDTO
6
+ */
7
+ export interface DefaultNotificationTemplateSetDto {
8
+ /**
9
+ * Description for Default Notification Template Set
10
+ */
11
+ description?: string;
12
+ event_template_configuration_set: EventTemplateConfigurationDto[];
13
+ /**
14
+ * Identifier of Default Notification Template Set
15
+ */
16
+ identifier: string;
17
+ /**
18
+ * Name of Default Notification Template Set
19
+ *
20
+ */
21
+ name: string;
22
+ notification_channel_type: ChannelType;
23
+ notification_entity: NotificationEntity;
24
+ }
@@ -0,0 +1,15 @@
1
+ import type { DefaultNotificationTemplateSetDto } from '../schemas/DefaultNotificationTemplateSetDto';
2
+ /**
3
+ * Response DTO for DefaultNotificationTemplateSet
4
+ */
5
+ export interface DefaultNotificationTemplateSetResponse {
6
+ /**
7
+ * @format int64
8
+ */
9
+ created?: number;
10
+ default_notification_template_set: DefaultNotificationTemplateSetDto;
11
+ /**
12
+ * @format int64
13
+ */
14
+ updated?: number;
15
+ }
@@ -0,0 +1,11 @@
1
+ import type { CustomNotificationTemplateDto } from '../schemas/CustomNotificationTemplateDto';
2
+ /**
3
+ * Event and Template Configuration
4
+ */
5
+ export interface EventTemplateConfigurationDto {
6
+ /**
7
+ * List of notification events
8
+ */
9
+ notification_events: string[];
10
+ template: CustomNotificationTemplateDto;
11
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Notification Entity
3
+ */
4
+ export type NotificationEntity = 'PIPELINE';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -1 +1 @@
1
- export type ResourceTypeEnum = 'CHAOS_EXPERIMENT' | 'DELEGATE' | 'PIPELINE' | 'SERVICE_LEVEL_OBJECTIVE';
1
+ export type ResourceTypeEnum = 'CHAOS_EXPERIMENT' | 'DELEGATE' | 'PIPELINE' | 'SERVICE_LEVEL_OBJECTIVE' | 'STO_EXEMPTION';
@@ -0,0 +1,4 @@
1
+ import type { NotificationEventParamsDto } from '../schemas/NotificationEventParamsDto';
2
+ export interface StoExperimentEventNotificationParamsDto extends NotificationEventParamsDto {
3
+ [key: string]: any;
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-notification-service-client",
3
- "version": "0.13.0",
3
+ "version": "0.13.2-beta.0",
4
4
  "description": "Harness React Notification service client - Notification APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",