Skip to content

Commit 50c0c57

Browse files
committed
types(notifications): update typeDefs
1 parent 5b0cd5e commit 50c0c57

2 files changed

Lines changed: 32 additions & 2 deletions

File tree

src/typeDefs/projectNotifications.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ export default gql`
1111
ONLY_NEW
1212
1313
"""
14-
Receive all events
14+
Receive all events that reached threshold in period
1515
"""
16-
ALL
16+
SEEN_MORE
1717
}
1818
1919
"""
@@ -49,5 +49,15 @@ export default gql`
4949
Notification channels to recieve events
5050
"""
5151
channels: NotificationsChannels
52+
53+
"""
54+
Threshold to receive notification
55+
"""
56+
threshold: Int
57+
58+
"""
59+
Period to receive notification
60+
"""
61+
thresholdPeriod: Int
5262
}
5363
`;

src/typeDefs/projectNotificationsMutations.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@ export default gql`
3434
Notification channels to recieve events
3535
"""
3636
channels: NotificationsChannelsInput!
37+
38+
"""
39+
Threshold to receive notification
40+
"""
41+
threshold: Int
42+
43+
"""
44+
Period to receive notification
45+
"""
46+
thresholdPeriod: Int
3747
}
3848
3949
"""
@@ -74,6 +84,16 @@ export default gql`
7484
Notification channels to recieve events
7585
"""
7686
channels: NotificationsChannelsInput!
87+
88+
"""
89+
Threshold to receive notification
90+
"""
91+
threshold: Int
92+
93+
"""
94+
Period to receive notification
95+
"""
96+
thresholdPeriod: Int
7797
}
7898
7999
"""

0 commit comments

Comments
 (0)