@veltdev/types-dev 4.5.0-beta.46 → 4.5.0-beta.48

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.
@@ -11,6 +11,10 @@ export declare class DocumentPaths {
11
11
  * Presence path.
12
12
  */
13
13
  presence?: string;
14
+ /**
15
+ * User config path.
16
+ */
17
+ userConfig?: string;
14
18
  docs?: string;
15
19
  /**
16
20
  * Cursor path.
@@ -1,4 +1,4 @@
1
- import { AreaStatus, ArrowStatus, CommentStatus, HuddleActionTypes, NotificationSource, TagStatus, UserActionTypes } from "../../utils/enums";
1
+ import { AreaStatus, ArrowStatus, CommentStatus, HuddleActionTypes, NotificationSettingsItemType, NotificationSource, TagStatus, UserActionTypes } from "../../utils/enums";
2
2
  import { DocumentMetadata } from "./document-metadata.model";
3
3
  import { DocumentUser } from "./document-user.data.model";
4
4
  import { Location } from "./location.model";
@@ -230,3 +230,14 @@ export declare class NotificationTabConfig {
230
230
  all?: NotificationTabConfigItem;
231
231
  people?: NotificationTabConfigItem;
232
232
  }
233
+ export declare class NotificationConfig {
234
+ name?: string;
235
+ id: string;
236
+ default?: string;
237
+ enable?: boolean;
238
+ values?: NotificationConfigValue[];
239
+ }
240
+ export declare class NotificationConfigValue {
241
+ name?: string;
242
+ id: NotificationSettingsItemType;
243
+ }
@@ -215,6 +215,7 @@ declare class RecorderDataAsset {
215
215
  */
216
216
  fileFormat?: RecorderFileFormat;
217
217
  thumbnailUrl?: string;
218
+ transcription: RecorderDataTranscription;
218
219
  }
219
220
  export declare class RecorderData {
220
221
  recorderId: string;
@@ -1140,6 +1140,17 @@ export declare class CommentElement {
1140
1140
  * To disable draft mode
1141
1141
  */
1142
1142
  public disableDraftMode: () => void;
1143
+
1144
+ /**
1145
+ * To enable filter comments on dom
1146
+ */
1147
+ public enableFilterCommentsOnDom: () => void;
1148
+
1149
+ /**
1150
+ * To disable filter comments on dom
1151
+ */
1152
+ public disableFilterCommentsOnDom: () => void;
1153
+
1143
1154
  constructor();
1144
1155
  /**
1145
1156
  * Subscribe to comments on the current document.
@@ -2260,4 +2271,14 @@ export declare class CommentElement {
2260
2271
  * To disable draft mode
2261
2272
  */
2262
2273
  private _disableDraftMode;
2274
+
2275
+ /**
2276
+ * To enable filter comments on dom
2277
+ */
2278
+ private _enableFilterCommentsOnDom;
2279
+
2280
+ /**
2281
+ * To disable filter comments on dom
2282
+ */
2283
+ private _disableFilterCommentsOnDom;
2263
2284
  }
@@ -58,6 +58,31 @@ export declare class NotificationElement {
58
58
  */
59
59
  markNotificationAsReadById: (notificationId: string) => void;
60
60
 
61
+ /**
62
+ * To set settings
63
+ */
64
+ setSettings: (config: { [key: string]: NotificationSettingsItemType }) => void;
65
+
66
+ /**
67
+ * To get settings
68
+ */
69
+ getSettings: () => { [key: string]: NotificationSettingsItemType };
70
+
71
+ /**
72
+ * To mute all notifications
73
+ */
74
+ muteAllNotifications: (muteAll: boolean) => void;
75
+
76
+ /**
77
+ * To enable settings
78
+ */
79
+ enableSettings: (enable: boolean) => void;
80
+
81
+ /**
82
+ * To set settings initial config
83
+ */
84
+ setSettingsInitialConfig: (settings: NotificationConfig[]) => void;
85
+
61
86
  constructor();
62
87
 
63
88
  /**
@@ -114,4 +139,29 @@ export declare class NotificationElement {
114
139
  * To mark notification as read by id
115
140
  */
116
141
  private _markNotificationAsReadById;
142
+
143
+ /**
144
+ * To set settings
145
+ */
146
+ private _setSettings;
147
+
148
+ /**
149
+ * To get settings
150
+ */
151
+ private _getSettings;
152
+
153
+ /**
154
+ * To mute all notifications
155
+ */
156
+ private _muteAllNotifications;
157
+
158
+ /**
159
+ * To enable settings
160
+ */
161
+ private _enableSettings;
162
+
163
+ /**
164
+ * To set settings initial config
165
+ */
166
+ private _setSettingsInitialConfig;
117
167
  }
@@ -12,6 +12,7 @@ export declare class Constants {
12
12
  static FIREBASE_PARTIAL_PATH_ORGANIZATIONS: string;
13
13
  static FIREBASE_PARTIAL_PATH_FOLDERS: string;
14
14
  static FIREBASE_PARTIAL_PATH_DOCS: string;
15
+ static FIREBASE_PARTIAL_PATH_DOCUMENT_CONFIGURATIONS: string;
15
16
  static FIREBASE_PARTIAL_PATH_PRESENCE: string;
16
17
  static FIREBASE_PARTIAL_PATH_ORGANIZATION_USERS: string;
17
18
  static FIREBASE_PARTIAL_PATH_FOLDER_USERS: string;
@@ -83,11 +83,15 @@ export declare const PresenceEventTypes: {
83
83
  readonly MULTIPLE_USERS_ONLINE: "multipleUsersOnline";
84
84
  readonly USER_STATE_CHANGE: "userStateChange";
85
85
  };
86
+ export declare const NotificationEventTypes: {
87
+ readonly SETTINGS_UPDATED: "settingsUpdated";
88
+ };
86
89
  export type CommentEventType = typeof CommentEventTypes[keyof typeof CommentEventTypes];
87
90
  export type RecorderEventType = typeof RecorderEventTypes[keyof typeof RecorderEventTypes];
88
91
  export type CoreEventType = typeof CoreEventTypes[keyof typeof CoreEventTypes];
89
92
  export type LiveStateSyncEventType = typeof LiveStateSyncEventTypes[keyof typeof LiveStateSyncEventTypes];
90
93
  export type PresenceEventType = typeof PresenceEventTypes[keyof typeof PresenceEventTypes];
94
+ export type NotificationEventType = typeof NotificationEventTypes[keyof typeof NotificationEventTypes];
91
95
  export declare enum TagStatus {
92
96
  ADDED = "added",
93
97
  UPDATED = "updated",
@@ -265,3 +269,11 @@ export declare enum CommentSidebarSystemFiltersOperator {
265
269
  AND = "and",
266
270
  OR = "or"
267
271
  }
272
+ /**
273
+ * Type for notification settings accordion types
274
+ */
275
+ export type NotificationSettingsAccordionType = 'inbox' | 'email' | string;
276
+ /**
277
+ * Type for notification settings item options
278
+ */
279
+ export type NotificationSettingsItemType = 'ALL' | 'MINE' | 'NONE' | string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/types-dev",
3
- "version": "4.5.0-beta.46",
3
+ "version": "4.5.0-beta.48",
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": [