@trii/types 2.10.316 → 2.10.317

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.
@@ -1,3 +1,32 @@
1
+ declare class UserProfile_Chat {
2
+ enabled: boolean;
3
+ editConfig: boolean;
4
+ }
5
+ declare class UserProfile_Calls {
6
+ enabled: boolean;
7
+ dashboard: boolean;
8
+ editConfig: boolean;
9
+ }
10
+ declare class UserProfile_Calendar {
11
+ enabled: boolean;
12
+ editConfig: boolean;
13
+ }
14
+ declare class UserProfile_Crm {
15
+ enabled: boolean;
16
+ editConfig: boolean;
17
+ }
18
+ declare class UserProfile_Datasync {
19
+ enabled: boolean;
20
+ editConfig: boolean;
21
+ }
22
+ declare class UserProfile_Signature {
23
+ enabled: boolean;
24
+ editConfig: boolean;
25
+ }
26
+ declare class UserProfile_Agent {
27
+ inactivityCheck: boolean;
28
+ inactivityTime: Number;
29
+ }
1
30
  declare class UserProfile_Contacts {
2
31
  enabled: boolean;
3
32
  import: boolean;
@@ -37,7 +66,7 @@ declare class UserProfile_Service {
37
66
  enabled: boolean;
38
67
  constructor(permisos: any);
39
68
  }
40
- declare class UserProfile_Collections {
69
+ declare class UserProfile_DebtCollection {
41
70
  enabled: boolean;
42
71
  constructor(permisos: any);
43
72
  }
@@ -46,13 +75,19 @@ declare class UserProfile {
46
75
  name: string;
47
76
  description: string;
48
77
  isDefault: boolean;
49
- contacts: UserProfile_Contacts;
78
+ chat: UserProfile_Chat;
50
79
  conversations: UserProfile_Conversations;
80
+ calls: UserProfile_Calls;
81
+ debtCollection: UserProfile_DebtCollection;
51
82
  marketing: UserProfile_Marketing;
52
- tickets: UserProfile_Tickets;
53
83
  service: UserProfile_Service;
54
- collections: UserProfile_Collections;
55
- constructor(profileJson: any);
84
+ tickets: UserProfile_Tickets;
85
+ contacts: UserProfile_Contacts;
86
+ calendar: UserProfile_Calendar;
87
+ crm: UserProfile_Crm;
88
+ datasync: UserProfile_Datasync;
89
+ signature: UserProfile_Signature;
90
+ agent: UserProfile_Agent;
56
91
  }
57
92
  declare class UserRole {
58
93
  id: string;
@@ -66,4 +101,4 @@ declare class UserRole {
66
101
  declare class RolView extends UserRole {
67
102
  children: Array<RolView>;
68
103
  }
69
- export { UserProfile, UserRole, RolView, UserProfile_Contacts, UserProfile_Collections, UserProfile_Conversations, UserProfile_Marketing, UserProfile_Service, UserProfile_Tickets };
104
+ export { UserProfile, UserRole, RolView, UserProfile_Chat, UserProfile_Conversations, UserProfile_Calls, UserProfile_DebtCollection, UserProfile_Marketing, UserProfile_Service, UserProfile_Tickets, UserProfile_Contacts, UserProfile_Calendar, UserProfile_Crm, UserProfile_Datasync, UserProfile_Signature, UserProfile_Agent };
@@ -1,3 +1,17 @@
1
+ class UserProfile_Chat {
2
+ }
3
+ class UserProfile_Calls {
4
+ }
5
+ class UserProfile_Calendar {
6
+ }
7
+ class UserProfile_Crm {
8
+ }
9
+ class UserProfile_Datasync {
10
+ }
11
+ class UserProfile_Signature {
12
+ }
13
+ class UserProfile_Agent {
14
+ }
1
15
  class UserProfile_Contacts {
2
16
  constructor(permisos) {
3
17
  this.enabled = permisos.enabled ? permisos.enabled : false;
@@ -42,24 +56,12 @@ class UserProfile_Service {
42
56
  this.enabled = permisos.enabled ? permisos.enabled : false;
43
57
  }
44
58
  }
45
- class UserProfile_Collections {
59
+ class UserProfile_DebtCollection {
46
60
  constructor(permisos) {
47
61
  this.enabled = permisos.enabled ? permisos.enabled : false;
48
62
  }
49
63
  }
50
64
  class UserProfile {
51
- constructor(profileJson) {
52
- this.id = profileJson.id ? profileJson.id : '';
53
- this.name = profileJson.name ? profileJson.name : '';
54
- this.description = profileJson.description ? profileJson.description : '';
55
- this.isDefault = profileJson.isDefault ? profileJson.isDefault : false;
56
- this.contacts = new UserProfile_Contacts(profileJson.contacts);
57
- this.conversations = new UserProfile_Conversations(profileJson.conversations);
58
- this.marketing = new UserProfile_Marketing(profileJson.marketing);
59
- this.tickets = new UserProfile_Tickets(profileJson.tickets);
60
- this.service = new UserProfile_Service(profileJson.service);
61
- this.collections = new UserProfile_Collections(profileJson.collections);
62
- }
63
65
  }
64
66
  class UserRole {
65
67
  constructor(profileJson) {
@@ -73,4 +75,4 @@ class UserRole {
73
75
  }
74
76
  class RolView extends UserRole {
75
77
  }
76
- export { UserProfile, UserRole, RolView, UserProfile_Contacts, UserProfile_Collections, UserProfile_Conversations, UserProfile_Marketing, UserProfile_Service, UserProfile_Tickets };
78
+ export { UserProfile, UserRole, RolView, UserProfile_Chat, UserProfile_Conversations, UserProfile_Calls, UserProfile_DebtCollection, UserProfile_Marketing, UserProfile_Service, UserProfile_Tickets, UserProfile_Contacts, UserProfile_Calendar, UserProfile_Crm, UserProfile_Datasync, UserProfile_Signature, UserProfile_Agent };
@@ -64,5 +64,4 @@ export declare class UserTrii {
64
64
  socialInstagramID: string;
65
65
  socialLinkedinID: string;
66
66
  socialTwitterID: string;
67
- constructor(userJson: any);
68
67
  }
@@ -1,5 +1,3 @@
1
- import UserType from './UserType';
2
- import { UserProfile } from './UserProfile';
3
1
  export class UserInfo {
4
2
  }
5
3
  export var UserStatus;
@@ -10,38 +8,4 @@ export var UserStatus;
10
8
  UserStatus[UserStatus["BUSY"] = 3] = "BUSY";
11
9
  })(UserStatus || (UserStatus = {}));
12
10
  export class UserTrii {
13
- constructor(userJson) {
14
- this.uid = userJson.uid ? userJson.uid : '';
15
- this.email = userJson.email ? userJson.email : '';
16
- this.username = userJson.username ? userJson.username : '';
17
- this.userType = userJson.userType ? userJson.userType : UserType.NULL;
18
- this.verifiedAccount = userJson.verifiedAccount ? userJson.verifiedAccount : false;
19
- this.firstname = userJson.firstname ? userJson.firstname : '';
20
- this.lastname = userJson.lastname ? userJson.lastname : '';
21
- this.display_name = userJson.display_name ? userJson.display_name : '';
22
- this.imageUrl = userJson.imageUrl ? userJson.imageUrl : '';
23
- this.birthDate = userJson.birthDate ? userJson.birthDate : undefined;
24
- this.phone = userJson.phone ? userJson.phone : '';
25
- this.role = userJson.role ? userJson.role : '';
26
- this.roleID = userJson.roleID ? userJson.roleID : '';
27
- this.profile = new UserProfile(userJson.profile);
28
- this.profileID = userJson.profileID ? userJson.profileID : '';
29
- this.street = userJson.street ? userJson.street : '';
30
- this.city = userJson.city ? userJson.city : '';
31
- this.state = userJson.state ? userJson.state : '';
32
- this.zipcode = userJson.zipcode ? userJson.zipcode : '';
33
- this.country = userJson.country ? userJson.country : '';
34
- this.regCon_timeZone = userJson.regCon_timeZone ? userJson.regCon_timeZone : '';
35
- this.regCon_language = userJson.regCon_language ? userJson.regCon_language : '';
36
- this.regCon_dateFormat = userJson.regCon_dateFormat ? userJson.regCon_dateFormat : '';
37
- this.regCon_timeFormat = userJson.regCon_timeFormat ? userJson.regCon_timeFormat : '';
38
- this.regCon_numberFormat = userJson.regCon_numberFormat ? userJson.regCon_numberFormat : '';
39
- this.regCon_country = userJson.regCon_country ? userJson.regCon_country : '';
40
- this.nameFormat = userJson.nameFormat ? userJson.nameFormat : '';
41
- this.theme = userJson.theme ? userJson.theme : '';
42
- this.socialFacebookID = userJson.socialFacebookID ? userJson.socialFacebookID : '';
43
- this.socialInstagramID = userJson.socialInstagramID ? userJson.socialInstagramID : '';
44
- this.socialLinkedinID = userJson.socialLinkedinID ? userJson.socialLinkedinID : '';
45
- this.socialTwitterID = userJson.socialTwitterID ? userJson.socialTwitterID : '';
46
- }
47
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.316",
3
+ "version": "2.10.317",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",