@veltdev/types-dev 4.7.1-beta.15 → 4.7.1-beta.2

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.
@@ -305,6 +305,11 @@ export declare class Snippyly {
305
305
  */
306
306
  getUserPermissions: (request?: GetUserPermissionsRequest) => Promise<GetUserPermissionsResponse>;
307
307
 
308
+ /**
309
+ * To get current user permissions.
310
+ */
311
+ getCurrentUserPermissions: () => Observable<GetUserPermissionsResponse | null>;
312
+
308
313
  /**
309
314
  * To check if plan is expired or not.
310
315
  */
@@ -43,9 +43,3 @@ export declare class AutocompleteGroup {
43
43
  export declare class AutocompleteChipData extends AutocompleteItem {
44
44
  type: 'contact' | 'custom';
45
45
  }
46
- export declare class AutoCompleteScrollConfig {
47
- itemSize?: number;
48
- minBufferPx?: number;
49
- maxBufferPx?: number;
50
- templateCacheSize?: number;
51
- }
@@ -6,8 +6,6 @@ export interface CustomFilter {
6
6
  }
7
7
  export interface CustomPriority extends CustomFilter {
8
8
  lightColor?: string;
9
- svg?: string;
10
- iconUrl?: string;
11
9
  }
12
10
  export interface CustomStatus extends CustomFilter {
13
11
  type: StatusType;
@@ -1,7 +1,3 @@
1
- export interface ResolverEndpointConfig {
2
- url: string;
3
- headers?: Record<string, string>;
4
- }
5
1
  export interface ResolverConfig {
6
2
  resolveTimeout?: number;
7
3
  saveRetryConfig?: RetryConfig;
@@ -9,9 +5,6 @@ export interface ResolverConfig {
9
5
  getRetryConfig?: RetryConfig;
10
6
  resolveUsersConfig?: ResolveUsersConfig;
11
7
  fieldsToRemove?: string[];
12
- getConfig?: ResolverEndpointConfig;
13
- saveConfig?: ResolverEndpointConfig;
14
- deleteConfig?: ResolverEndpointConfig;
15
8
  }
16
9
  export interface ResolveUsersConfig {
17
10
  organization?: boolean;
@@ -5,10 +5,6 @@ export interface UserDataProvider {
5
5
  config?: ResolverConfig;
6
6
  resolveTimeout?: number;
7
7
  }
8
- export interface GetUserResolverRequest {
9
- organizationId: string;
10
- userIds: string[];
11
- }
12
8
  export interface GetUserPermissionsRequest {
13
9
  organizationId?: string;
14
10
  folderIds?: string[];
@@ -1269,6 +1269,16 @@ export declare class CommentElement {
1269
1269
  */
1270
1270
  public disableScreenshot: () => void;
1271
1271
 
1272
+ /**
1273
+ * To enable paginated contact list
1274
+ */
1275
+ public enablePaginatedContactList: () => void;
1276
+
1277
+ /**
1278
+ * To disable paginated contact list
1279
+ */
1280
+ public disablePaginatedContactList: () => void;
1281
+
1272
1282
  constructor();
1273
1283
  /**
1274
1284
  * Subscribe to comments on the current document.
@@ -2516,4 +2526,14 @@ export declare class CommentElement {
2516
2526
  * To disable screenshot
2517
2527
  */
2518
2528
  private _disableScreenshot;
2529
+
2530
+ /**
2531
+ * To enable paginated contact list
2532
+ */
2533
+ private _enablePaginatedContactList;
2534
+
2535
+ /**
2536
+ * To disable paginated contact list
2537
+ */
2538
+ private _disablePaginatedContactList;
2519
2539
  }
@@ -1,5 +1,6 @@
1
1
  // @ts-nocheck
2
2
  import { CrdtGetDataQuery, CrdtGetVersionQuery, CrdtOnDataChangeQuery, CrdtOnPresenceChangeQuery, CrdtOnRegisteredUserChangeQuery, CrdtOnStateChangeQuery, CrdtRegisterSyncUserQuery, CrdtSetPresenceQuery, CrdtSaveVersionQuery, CrdtUpdateDataQuery, CrdtUpdateStateQuery } from "../data/crdt.data.model";
3
+ import { CrdtEventTypesMap } from "../data/crdt-events.data.model";
3
4
 
4
5
  export declare class CrdtElement {
5
6
  /**
@@ -79,6 +80,29 @@ export declare class CrdtElement {
79
80
  */
80
81
  getVersion: (getVersionQuery: CrdtGetVersionQuery) => Promise<any>;
81
82
 
83
+ /**
84
+ * Enable webhook
85
+ */
86
+ enableWebhook: () => void;
87
+
88
+ /**
89
+ * Disable webhook
90
+ */
91
+ disableWebhook: () => void;
92
+
93
+ /**
94
+ * Set webhook debounce time
95
+ * @param time debounce time in milliseconds
96
+ */
97
+ setWebhookDebounceTime: (time: number) => void;
98
+
99
+ /**
100
+ * Subscribe to crdt actions
101
+ * @param action Action to subscribe to
102
+ * @returns Observable of the action
103
+ */
104
+ on: <T extends keyof CrdtEventTypesMap>(action: T) => Observable<CrdtEventTypesMap[T]>;
105
+
82
106
  constructor();
83
107
 
84
108
  /**
@@ -163,4 +187,27 @@ export declare class CrdtElement {
163
187
  * @param id Document ID
164
188
  */
165
189
  private _getVersions;
190
+
191
+ /**
192
+ * Enable webhook
193
+ */
194
+ private _enableWebhook;
195
+
196
+ /**
197
+ * Disable webhook
198
+ */
199
+ private _disableWebhook;
200
+
201
+ /**
202
+ * Set webhook debounce time
203
+ * @param time debounce time in milliseconds
204
+ */
205
+ private _setWebhookDebounceTime;
206
+
207
+ /**
208
+ * Subscribe to crdt actions
209
+ * @param action Action to subscribe to
210
+ * @returns Observable of the action
211
+ */
212
+ private _on;
166
213
  }
@@ -56,6 +56,12 @@ export declare class SelectionElement {
56
56
  */
57
57
  getLiveSelectionData: () => Observable<LiveSelectionData | null>;
58
58
 
59
+ /**
60
+ * To set inactivity time (Default value is 5 minutes)
61
+ * @param time inactivity time in milliseconds
62
+ */
63
+ setInactivityTime: (time: number) => void;
64
+
59
65
  constructor();
60
66
 
61
67
  /**
@@ -112,4 +118,10 @@ export declare class SelectionElement {
112
118
  * To get live selection data
113
119
  */
114
120
  private _getLiveSelectionData;
121
+
122
+ /**
123
+ * To set inactivity time (Default value is 5 minutes)
124
+ * @param time inactivity time in milliseconds
125
+ */
126
+ private _setInactivityTime;
115
127
  }
@@ -244,6 +244,16 @@ export declare class Constants {
244
244
  VELT_WIREFRAME: string;
245
245
  VELT_AUTOCOMPLETE: string;
246
246
  VELT_AUTOCOMPLETE_CHIP: string;
247
+ VELT_COMMENT_DIALOG_HEADER: string;
248
+ VELT_COMMENT_DIALOG_BODY: string;
249
+ VELT_COMMENT_DIALOG_FOOTER: string;
250
+ VELT_COMMENT_DIALOG_PRIORITY: string;
251
+ VELT_COMMENT_DIALOG_STATUS: string;
252
+ VELT_COMMENT_DIALOG_COPY_LINK: string;
253
+ VELT_COMMENT_DIALOG_RESOLVE_BUTTON: string;
254
+ VELT_COMMENT_DIALOG_OPTIONS: string;
255
+ VELT_COMMENT_DIALOG_BODY_THREAD_CARD: string;
256
+ VELT_COMMENT_DIALOG_PRIVATE_BANNER: string;
247
257
  VELT_COMMENT_COMPOSER: string;
248
258
  VELT_SKELETON_LOADER: string;
249
259
  VELT_SHADOW_DOM_INTERNAL: string;
@@ -300,7 +300,3 @@ export type NotificationSettingsAccordionType = 'inbox' | 'email' | string;
300
300
  * Type for notification settings item options
301
301
  */
302
302
  export type NotificationSettingsItemType = 'ALL' | 'MINE' | 'NONE' | string;
303
- /**
304
- * Type for notification settings layout
305
- */
306
- export type NotificationSettingsLayout = 'accordion' | 'dropdown';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/types-dev",
3
- "version": "4.7.1-beta.15",
3
+ "version": "4.7.1-beta.2",
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": [