@harnessio/react-notification-service-client 0.13.2-beta.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/notification-service/src/services/hooks/useCreateDefaultNotificationTemplateSetRefMutation.d.ts +1 -1
- package/dist/notification-service/src/services/hooks/useListDefaultNotificationTemplateSetRefQuery.d.ts +24 -12
- package/dist/notification-service/src/services/hooks/useUpdateDefaultNotificationTemplateSetRefMutation.d.ts +1 -1
- package/dist/notification-service/src/services/index.d.ts +1 -0
- package/dist/notification-service/src/services/responses/DefaultNotificationTemplateSetResponseResponse.d.ts +2 -3
- package/dist/notification-service/src/services/responses/DefaultNotificationTemplateSetResponseResponse.js +0 -3
- package/dist/notification-service/src/services/schemas/DefaultNotificationTemplateSetDto.d.ts +6 -0
- package/dist/notification-service/src/services/schemas/DefaultNotificationTemplateSetResponse.d.ts +2 -2
- package/dist/notification-service/src/services/schemas/DefaultNotificationTemplateSetResponseDto.d.ts +32 -0
- package/dist/notification-service/src/services/schemas/DefaultNotificationTemplateSetResponseDto.js +1 -0
- package/dist/notification-service/src/services/schemas/NotificationChannelDto.d.ts +4 -0
- package/dist/notification-service/src/services/schemas/NotificationRuleDto.d.ts +4 -0
- package/package.json +1 -1
|
@@ -36,4 +36,4 @@ export interface CreateDefaultNotificationTemplateSetRefProps extends Omit<Fetch
|
|
|
36
36
|
pathParams: CreateDefaultNotificationTemplateSetRefAccountPathParams | CreateDefaultNotificationTemplateSetRefOrgPathParams | CreateDefaultNotificationTemplateSetRefProjectPathParams;
|
|
37
37
|
}
|
|
38
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<
|
|
39
|
+
export declare function useCreateDefaultNotificationTemplateSetRefMutation(options?: Omit<UseMutationOptions<CreateDefaultNotificationTemplateSetRefOKResponse<unknown>, CreateDefaultNotificationTemplateSetRefErrorResponse<unknown>, CreateDefaultNotificationTemplateSetRefProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ResponseWithPagination<import("..").DefaultNotificationTemplateSetResponse>, unknown, CreateDefaultNotificationTemplateSetRefProps, unknown>;
|
|
@@ -5,6 +5,11 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
|
5
5
|
export interface ListDefaultNotificationTemplateSetRefAccountPathParams {
|
|
6
6
|
}
|
|
7
7
|
export interface ListDefaultNotificationTemplateSetRefAccountQueryParams {
|
|
8
|
+
search_term?: string;
|
|
9
|
+
identifiers?: string[];
|
|
10
|
+
notification_channel_types?: string[];
|
|
11
|
+
notification_events?: string[];
|
|
12
|
+
notification_entities?: string[];
|
|
8
13
|
/**
|
|
9
14
|
* @default 0
|
|
10
15
|
*/
|
|
@@ -15,10 +20,9 @@ export interface ListDefaultNotificationTemplateSetRefAccountQueryParams {
|
|
|
15
20
|
limit?: number;
|
|
16
21
|
sort?: 'created' | 'identifier' | 'name' | 'updated';
|
|
17
22
|
order?: 'ASC' | 'DESC';
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
notification_event?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface ListDefaultNotificationTemplateSetRefAccountHeaderParams {
|
|
25
|
+
'Harness-Account'?: string;
|
|
22
26
|
}
|
|
23
27
|
export type ListDefaultNotificationTemplateSetRefAccountOKResponse = DefaultNotificationTemplateSetListResponseResponse;
|
|
24
28
|
export type ListDefaultNotificationTemplateSetRefAccountErrorResponse = unknown;
|
|
@@ -26,6 +30,11 @@ export interface ListDefaultNotificationTemplateSetRefOrgPathParams {
|
|
|
26
30
|
org: string;
|
|
27
31
|
}
|
|
28
32
|
export interface ListDefaultNotificationTemplateSetRefOrgQueryParams {
|
|
33
|
+
search_term?: string;
|
|
34
|
+
identifiers?: string[];
|
|
35
|
+
notification_channel_types?: string[];
|
|
36
|
+
notification_events?: string[];
|
|
37
|
+
notification_entities?: string[];
|
|
29
38
|
/**
|
|
30
39
|
* @default 0
|
|
31
40
|
*/
|
|
@@ -36,10 +45,9 @@ export interface ListDefaultNotificationTemplateSetRefOrgQueryParams {
|
|
|
36
45
|
limit?: number;
|
|
37
46
|
sort?: 'created' | 'identifier' | 'name' | 'updated';
|
|
38
47
|
order?: 'ASC' | 'DESC';
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
notification_event?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface ListDefaultNotificationTemplateSetRefOrgHeaderParams {
|
|
50
|
+
'Harness-Account'?: string;
|
|
43
51
|
}
|
|
44
52
|
export type ListDefaultNotificationTemplateSetRefOrgOKResponse = DefaultNotificationTemplateSetListResponseResponse;
|
|
45
53
|
export type ListDefaultNotificationTemplateSetRefOrgErrorResponse = unknown;
|
|
@@ -48,6 +56,11 @@ export interface ListDefaultNotificationTemplateSetRefProjectPathParams {
|
|
|
48
56
|
project: string;
|
|
49
57
|
}
|
|
50
58
|
export interface ListDefaultNotificationTemplateSetRefProjectQueryParams {
|
|
59
|
+
search_term?: string;
|
|
60
|
+
identifiers?: string[];
|
|
61
|
+
notification_channel_types?: string[];
|
|
62
|
+
notification_events?: string[];
|
|
63
|
+
notification_entities?: string[];
|
|
51
64
|
/**
|
|
52
65
|
* @default 0
|
|
53
66
|
*/
|
|
@@ -58,10 +71,9 @@ export interface ListDefaultNotificationTemplateSetRefProjectQueryParams {
|
|
|
58
71
|
limit?: number;
|
|
59
72
|
sort?: 'created' | 'identifier' | 'name' | 'updated';
|
|
60
73
|
order?: 'ASC' | 'DESC';
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
notification_event?: string;
|
|
74
|
+
}
|
|
75
|
+
export interface ListDefaultNotificationTemplateSetRefProjectHeaderParams {
|
|
76
|
+
'Harness-Account'?: string;
|
|
65
77
|
}
|
|
66
78
|
export type ListDefaultNotificationTemplateSetRefProjectOKResponse = DefaultNotificationTemplateSetListResponseResponse;
|
|
67
79
|
export type ListDefaultNotificationTemplateSetRefProjectErrorResponse = unknown;
|
|
@@ -39,4 +39,4 @@ export interface UpdateDefaultNotificationTemplateSetRefProps extends Omit<Fetch
|
|
|
39
39
|
pathParams: UpdateDefaultNotificationTemplateSetRefAccountPathParams | UpdateDefaultNotificationTemplateSetRefOrgPathParams | UpdateDefaultNotificationTemplateSetRefProjectPathParams;
|
|
40
40
|
}
|
|
41
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<
|
|
42
|
+
export declare function useUpdateDefaultNotificationTemplateSetRefMutation(options?: Omit<UseMutationOptions<UpdateDefaultNotificationTemplateSetRefOKResponse<unknown>, UpdateDefaultNotificationTemplateSetRefErrorResponse<unknown>, UpdateDefaultNotificationTemplateSetRefProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ResponseWithPagination<import("..").DefaultNotificationTemplateSetResponse>, unknown, UpdateDefaultNotificationTemplateSetRefProps, unknown>;
|
|
@@ -67,6 +67,7 @@ export type { ChaosExperimentEventNotificationParamsDto } from './schemas/ChaosE
|
|
|
67
67
|
export type { CustomNotificationTemplateDto } from './schemas/CustomNotificationTemplateDto';
|
|
68
68
|
export type { DefaultNotificationTemplateSetDto } from './schemas/DefaultNotificationTemplateSetDto';
|
|
69
69
|
export type { DefaultNotificationTemplateSetResponse } from './schemas/DefaultNotificationTemplateSetResponse';
|
|
70
|
+
export type { DefaultNotificationTemplateSetResponseDto } from './schemas/DefaultNotificationTemplateSetResponseDto';
|
|
70
71
|
export type { DelegateEventNotificationParamsDto } from './schemas/DelegateEventNotificationParamsDto';
|
|
71
72
|
export type { EventTemplateConfigurationDto } from './schemas/EventTemplateConfigurationDto';
|
|
72
73
|
export type { FrequencyDto } from './schemas/FrequencyDto';
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
import type { DefaultNotificationTemplateSetResponse } from '../schemas/DefaultNotificationTemplateSetResponse';
|
|
2
|
+
export type DefaultNotificationTemplateSetResponseResponse = DefaultNotificationTemplateSetResponse;
|
package/dist/notification-service/src/services/schemas/DefaultNotificationTemplateSetResponse.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DefaultNotificationTemplateSetResponseDto } from '../schemas/DefaultNotificationTemplateSetResponseDto';
|
|
2
2
|
/**
|
|
3
3
|
* Response DTO for DefaultNotificationTemplateSet
|
|
4
4
|
*/
|
|
@@ -7,7 +7,7 @@ export interface DefaultNotificationTemplateSetResponse {
|
|
|
7
7
|
* @format int64
|
|
8
8
|
*/
|
|
9
9
|
created?: number;
|
|
10
|
-
default_notification_template_set:
|
|
10
|
+
default_notification_template_set: DefaultNotificationTemplateSetResponseDto;
|
|
11
11
|
/**
|
|
12
12
|
* @format int64
|
|
13
13
|
*/
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { EventTemplateConfigurationDto } from '../schemas/EventTemplateConfigurationDto';
|
|
2
|
+
import type { ChannelType } from '../schemas/ChannelType';
|
|
3
|
+
import type { NotificationEntity } from '../schemas/NotificationEntity';
|
|
4
|
+
/**
|
|
5
|
+
* DefaultNotificationTemplateSetResponseDTO
|
|
6
|
+
*/
|
|
7
|
+
export interface DefaultNotificationTemplateSetResponseDto {
|
|
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
|
+
org_identifier?: string;
|
|
25
|
+
project_identifier?: string;
|
|
26
|
+
/**
|
|
27
|
+
* tags
|
|
28
|
+
*/
|
|
29
|
+
tags?: {
|
|
30
|
+
[key: string]: string;
|
|
31
|
+
};
|
|
32
|
+
}
|
package/dist/notification-service/src/services/schemas/DefaultNotificationTemplateSetResponseDto.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -5,6 +5,10 @@ import type { Status } from '../schemas/Status';
|
|
|
5
5
|
* Notification Channel DTO
|
|
6
6
|
*/
|
|
7
7
|
export interface NotificationChannelDto {
|
|
8
|
+
/**
|
|
9
|
+
* Deprecated. This field will be removed in a future release.
|
|
10
|
+
* @deprecated
|
|
11
|
+
*/
|
|
8
12
|
account?: string;
|
|
9
13
|
channel: ChannelDto;
|
|
10
14
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnessio/react-notification-service-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Harness React Notification service client - Notification APIs integrated with react hooks",
|
|
5
5
|
"author": "Harness Inc",
|
|
6
6
|
"license": "MIT",
|