@veltdev/types-dev 4.5.0-beta.49 → 4.5.0-beta.50

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.
@@ -230,7 +230,7 @@ export declare class NotificationTabConfig {
230
230
  all?: NotificationTabConfigItem;
231
231
  people?: NotificationTabConfigItem;
232
232
  }
233
- export declare class NotificationConfig {
233
+ export declare class NotificationInitialSettingsConfig {
234
234
  name?: string;
235
235
  id: string;
236
236
  default?: string;
@@ -241,3 +241,11 @@ export declare class NotificationConfigValue {
241
241
  name?: string;
242
242
  id: NotificationSettingsItemType;
243
243
  }
244
+ export declare class NotificationSettingsConfig {
245
+ [key: string]: NotificationSettingsItemType;
246
+ }
247
+ export interface NotificationsDocConfig {
248
+ inbox: 'ALL' | 'NONE' | 'MINE';
249
+ email: 'ALL' | 'NONE' | 'MINE';
250
+ [key: string]: string;
251
+ }
@@ -1,6 +1,7 @@
1
1
  // @ts-nocheck
2
2
 
3
- import { Notification, NotificationTabConfig } from "../data/notification.model";
3
+ import { Notification, NotificationTabConfig, NotificationSettingsConfig } from "../data/notification.model";
4
+ import { NotificationInitialSettingsConfig } from "../../utils/enums";
4
5
 
5
6
  export declare class NotificationElement {
6
7
  /**
@@ -61,27 +62,32 @@ export declare class NotificationElement {
61
62
  /**
62
63
  * To set settings
63
64
  */
64
- setSettings: (config: { [key: string]: NotificationSettingsItemType }) => void;
65
+ setSettings: (config: NotificationSettingsConfig) => void;
65
66
 
66
67
  /**
67
68
  * To get settings
68
69
  */
69
- getSettings: () => { [key: string]: NotificationSettingsItemType };
70
+ getSettings: () => NotificationSettingsConfig;
70
71
 
71
72
  /**
72
73
  * To mute all notifications
73
74
  */
74
- muteAllNotifications: (muteAll: boolean) => void;
75
+ muteAllNotifications: () => void;
75
76
 
76
77
  /**
77
78
  * To enable settings
78
79
  */
79
- enableSettings: (enable: boolean) => void;
80
+ enableSettings: () => void;
81
+
82
+ /**
83
+ * To disable settings
84
+ */
85
+ disableSettings: () => void;
80
86
 
81
87
  /**
82
88
  * To set settings initial config
83
89
  */
84
- setSettingsInitialConfig: (settings: NotificationConfig[]) => void;
90
+ setSettingsInitialConfig: (settings: NotificationInitialSettingsConfig[]) => void;
85
91
 
86
92
  constructor();
87
93
 
@@ -160,6 +166,11 @@ export declare class NotificationElement {
160
166
  */
161
167
  private _enableSettings;
162
168
 
169
+ /**
170
+ * To disable settings
171
+ */
172
+ private _disableSettings;
173
+
163
174
  /**
164
175
  * To set settings initial config
165
176
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/types-dev",
3
- "version": "4.5.0-beta.49",
3
+ "version": "4.5.0-beta.50",
4
4
  "description": "Velt is an SDK to add collaborative features to your product within minutes. Example: Comments like Figma, Frame.io, Google docs or sheets, Recording like Loom, Huddles like Slack and much more.",
5
5
  "homepage": "https://velt.dev",
6
6
  "keywords": [