@veltdev/types 1.0.4 → 1.0.6
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.
|
@@ -3,7 +3,7 @@ import { Observable } from "rxjs";
|
|
|
3
3
|
import { Config } from "../models/data/config.data.model";
|
|
4
4
|
import { DocumentUser } from "../models/data/document-user.data.model";
|
|
5
5
|
import { Location } from "../models/data/location.model";
|
|
6
|
-
import { User } from "../models/data/user.data.model";
|
|
6
|
+
import { User, UserOptions } from "../models/data/user.data.model";
|
|
7
7
|
import { CommentElement } from "../models/element/comment-element.model";
|
|
8
8
|
import { ContactElement } from "../models/element/contact-element.model";
|
|
9
9
|
import { CursorElement } from "../models/element/cursor-element.model";
|
|
@@ -16,7 +16,7 @@ import { FeatureType } from "../utils/enums";
|
|
|
16
16
|
export declare class Snippyly {
|
|
17
17
|
constructor();
|
|
18
18
|
initConfig: (apiKey: string, config?: Config) => void;
|
|
19
|
-
identify: (user: User) => Promise<unknown>;
|
|
19
|
+
identify: (user: User, userOptions?: UserOptions) => Promise<unknown>;
|
|
20
20
|
/**
|
|
21
21
|
* Tell us who the currently logged in user is.
|
|
22
22
|
*
|
|
@@ -138,4 +138,9 @@ export declare class Snippyly {
|
|
|
138
138
|
* To remove snippyly specific content from provided html content.
|
|
139
139
|
*/
|
|
140
140
|
removeSnippylyContent: (htmlContent: string) => string;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* To remove velt specific content from provided html content.
|
|
144
|
+
*/
|
|
145
|
+
removeVeltContent: (htmlContent: string) => string;
|
|
141
146
|
}
|
|
@@ -58,3 +58,10 @@ export declare class User {
|
|
|
58
58
|
*/
|
|
59
59
|
isAnonymous?: boolean;
|
|
60
60
|
}
|
|
61
|
+
export declare class UserOptions {
|
|
62
|
+
/**
|
|
63
|
+
* If you want to replace the contacts of the user with the contacts you are sending.
|
|
64
|
+
* This is replace personal and group contacts of the user.
|
|
65
|
+
*/
|
|
66
|
+
replaceContacts?: boolean;
|
|
67
|
+
}
|