@trii/types 2.10.578 → 2.10.579

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.
@@ -2,17 +2,41 @@ export interface ISignature {
2
2
  id: string;
3
3
  spaceId: string;
4
4
  userId: string;
5
- name: string;
6
- htmlContent: string;
7
- personalInfo?: IPersonalInfo;
8
- profilePhoto?: IImageAsset;
9
- socialLinks?: ISocialLink[];
10
- style?: ISignatureStyle;
5
+ name?: string;
6
+ htmlContent: string | '';
7
+ editorConfig: ISignatureEditorConfig;
11
8
  createdAt: Date;
12
9
  updatedAt: Date;
13
10
  createdBy?: string;
14
11
  updatedBy?: string;
15
12
  }
13
+ export interface ISignatureEditorConfig {
14
+ contact: ISignatureContact;
15
+ socials: Record<string, string>;
16
+ activeSocials: string[];
17
+ socialOrder: string[];
18
+ style: ISignatureEditorStyle;
19
+ }
20
+ export interface ISignatureContact {
21
+ fullName: string;
22
+ role: string;
23
+ company: string;
24
+ email: string;
25
+ phone: string;
26
+ website: string;
27
+ image: string;
28
+ }
29
+ export interface ISignatureEditorStyle {
30
+ primaryColor: string;
31
+ accentColor: string;
32
+ fontFamily: string;
33
+ fontSize: 'small' | 'medium' | 'large';
34
+ avatarVisible: boolean;
35
+ avatarSize: number;
36
+ avatarShape: 'square' | 'circle';
37
+ templateLayout: 'classic' | 'divider' | 'compact';
38
+ socialPosition: 'top' | 'bottom';
39
+ }
16
40
  export interface IPersonalInfo {
17
41
  fullName: string;
18
42
  jobTitle: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.578",
3
+ "version": "2.10.579",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",