@veltdev/sdk-dev 1.0.382 → 1.0.384

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.
@@ -15,6 +15,7 @@ import { RecorderElement } from "../models/element/recorder-element.model";
15
15
  import { RewriterElement } from "../models/element/rewriter-element.model";
16
16
  import { SelectionElement } from "../models/element/selection-element.model";
17
17
  import { ViewsElement } from "../models/element/views-element.model";
18
+ import { NotificationElement } from "../models/element/notification-element.model";
18
19
  import { TagElement } from "../models/element/tag-element.model";
19
20
  import { FeatureType } from "../utils/enums";
20
21
  export declare class Snippyly {
@@ -115,6 +116,10 @@ export declare class Snippyly {
115
116
  * Get the Views Object.
116
117
  */
117
118
  getViewsElement: () => ViewsElement;
119
+ /**
120
+ * Get the Notification Object.
121
+ */
122
+ getNotificationElement: () => NotificationElement;
118
123
  /**
119
124
  * To signout a user
120
125
  */
@@ -90,13 +90,40 @@ export declare class Notification {
90
90
  };
91
91
  }
92
92
  export declare class NotificationData {
93
+ /**
94
+ * Notification ID
95
+ */
93
96
  id: string;
97
+ /**
98
+ * Raw notification object
99
+ */
94
100
  raw?: Notification;
101
+ /**
102
+ * Processed notification object
103
+ */
95
104
  processed?: Notification;
105
+ /**
106
+ * Notification is read or not for the user
107
+ */
96
108
  isUnread?: boolean;
109
+ /**
110
+ * Action user of the notification
111
+ */
97
112
  actionUser?: User;
113
+ /**
114
+ * Timestamp of the notification
115
+ */
98
116
  timestamp?: number;
117
+ /**
118
+ * Notification headline message
119
+ */
99
120
  displayHeadlineMessage?: string;
121
+ /**
122
+ * Notification body message
123
+ */
100
124
  displayBodyMessage?: string;
125
+ /**
126
+ * Is notification for you
127
+ */
101
128
  forYou?: boolean;
102
129
  }
@@ -0,0 +1,34 @@
1
+ // @ts-nocheck
2
+
3
+ export declare class NotificationElement {
4
+ /**
5
+ * To open notification history
6
+ */
7
+ openNotificationHistory: () => void;
8
+
9
+ /**
10
+ * To close notification history
11
+ */
12
+ closeNotificationHistory: () => void;
13
+
14
+ /**
15
+ * To toggle notification history
16
+ */
17
+ toggleNotificationHistory: () => void;
18
+ constructor();
19
+
20
+ /**
21
+ * To open notification history
22
+ */
23
+ private _openNotificationHistory;
24
+
25
+ /**
26
+ * To close notification history
27
+ */
28
+ private _closeNotificationHistory;
29
+
30
+ /**
31
+ * To toggle notification history
32
+ */
33
+ private _toggleNotificationHistory;
34
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk-dev",
3
- "version": "1.0.382",
3
+ "version": "1.0.384",
4
4
  "description": "",
5
5
  "main": "velt.js",
6
6
  "scripts": {