@harnessio/react-notification-service-client 0.3.0 → 0.5.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.
@@ -36,6 +36,8 @@ export type { NotificationRuleResponseResponse } from './responses/NotificationR
36
36
  export type { ChannelDto } from './schemas/ChannelDto';
37
37
  export type { ChannelType } from './schemas/ChannelType';
38
38
  export type { NotificationChannelDto } from './schemas/NotificationChannelDto';
39
+ export type { NotificationConditionDto } from './schemas/NotificationConditionDto';
40
+ export type { NotificationEventConfigDto } from './schemas/NotificationEventConfigDto';
39
41
  export type { NotificationRuleDto } from './schemas/NotificationRuleDto';
40
42
  export type { Status } from './schemas/Status';
41
- export type { UserGroup } from './schemas/UserGroup';
43
+ export type { UserGroupDto } from './schemas/UserGroupDto';
@@ -1,8 +1,9 @@
1
+ import type { UserGroupDto } from '../schemas/UserGroupDto';
1
2
  export interface ChannelDto {
2
3
  email_ids?: string[];
3
4
  ms_team_keys?: string[];
4
5
  pager_duty_integration_keys?: string[];
5
6
  slack_webhook_urls?: string[];
6
- user_groups?: string[];
7
+ user_groups?: UserGroupDto[];
7
8
  webhook_urls?: string[];
8
9
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -1,5 +1,4 @@
1
1
  /**
2
2
  * Notification Channel Type
3
3
  */
4
- export interface ChannelType {
5
- }
4
+ export type ChannelType = 'EMAIL' | 'MSTEAMS' | 'PAGERDUTY' | 'SLACK' | 'WEBHOOK';
@@ -7,11 +7,15 @@ import type { Status } from '../schemas/Status';
7
7
  export interface NotificationChannelDto {
8
8
  account?: string;
9
9
  channel?: ChannelDto;
10
+ /**
11
+ * @format int64
12
+ */
10
13
  created?: number;
11
- created_by?: {
12
- [key: string]: any;
13
- };
14
14
  identifier?: string;
15
+ /**
16
+ * @format int64
17
+ */
18
+ last_modified?: number;
15
19
  name?: string;
16
20
  notification_channel_type?: ChannelType;
17
21
  org?: string;
@@ -0,0 +1,5 @@
1
+ import type { NotificationEventConfigDto } from '../schemas/NotificationEventConfigDto';
2
+ export interface NotificationConditionDto {
3
+ condition_name?: string;
4
+ notification_event_configs?: NotificationEventConfigDto[];
5
+ }
@@ -0,0 +1,7 @@
1
+ export interface NotificationEventConfigDto {
2
+ notification_entity?: string;
3
+ notification_event?: string;
4
+ notification_event_data?: {
5
+ [key: string]: any;
6
+ };
7
+ }
@@ -1,28 +1,22 @@
1
- import type { NotificationChannelDto } from '../schemas/NotificationChannelDto';
1
+ import type { NotificationConditionDto } from '../schemas/NotificationConditionDto';
2
2
  import type { Status } from '../schemas/Status';
3
3
  /**
4
4
  * Notification Rule DTO
5
5
  */
6
6
  export interface NotificationRuleDto {
7
7
  account?: string;
8
+ /**
9
+ * @format int64
10
+ */
8
11
  created?: number;
9
- created_by?: {
10
- [key: string]: any;
11
- };
12
12
  identifier?: string;
13
+ /**
14
+ * @format int64
15
+ */
16
+ last_modified?: number;
13
17
  name?: string;
14
- notification_conditions?: Array<{
15
- condition_name?: string;
16
- notification_event_configs?: Array<{
17
- notification_channels?: NotificationChannelDto[];
18
- notification_entity?: string;
19
- notification_event?: string;
20
- notification_event_data?: {
21
- [key: string]: any;
22
- };
23
- }>;
24
- }>;
25
- notification_entity?: string;
18
+ notification_channel_refs?: string[];
19
+ notification_conditions?: NotificationConditionDto[];
26
20
  org?: string;
27
21
  project?: string;
28
22
  status?: Status;
@@ -1,5 +1,4 @@
1
1
  /**
2
2
  * Notification Rule Status
3
3
  */
4
- export interface Status {
5
- }
4
+ export type Status = 'DISABLED' | 'ENABLED';
@@ -0,0 +1,5 @@
1
+ export interface UserGroupDto {
2
+ identifier?: string;
3
+ org?: string;
4
+ project?: string;
5
+ }
@@ -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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-notification-service-client",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "Harness React Notification service client - Notification APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,5 +0,0 @@
1
- export interface UserGroup {
2
- identifier?: string;
3
- org_identifier?: string;
4
- project_identifier?: string;
5
- }