@trii/types 2.10.628 → 2.10.631
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.
- package/dist/Contacts/contacts.d.ts +22 -1
- package/dist/Contacts/contacts.js +11 -1
- package/dist/Users/UserProfile.d.ts +25 -32
- package/dist/Users/UserProfile.js +3 -94
- package/package.json +1 -1
|
@@ -104,9 +104,13 @@ export interface IContactField {
|
|
|
104
104
|
id: string;
|
|
105
105
|
name: string;
|
|
106
106
|
nameKey: string;
|
|
107
|
+
description: string | '';
|
|
108
|
+
placeholder: string | '';
|
|
107
109
|
type: ContactField_type;
|
|
108
110
|
typeNumberDecimalsCount: number | 0;
|
|
109
111
|
typeOptions: string[];
|
|
112
|
+
typeOptionsMultiple: boolean;
|
|
113
|
+
listItemSchema?: IContactFieldListItemSchema[];
|
|
110
114
|
order: number;
|
|
111
115
|
requiredField: boolean;
|
|
112
116
|
forContact: boolean;
|
|
@@ -114,6 +118,7 @@ export interface IContactField {
|
|
|
114
118
|
isDefault: boolean;
|
|
115
119
|
isSearchKey: boolean;
|
|
116
120
|
isImportKey: boolean;
|
|
121
|
+
isMultiSelect: boolean;
|
|
117
122
|
readOnly: boolean;
|
|
118
123
|
hide: boolean;
|
|
119
124
|
useMask: boolean;
|
|
@@ -124,6 +129,20 @@ export interface IContactField {
|
|
|
124
129
|
deleted: boolean;
|
|
125
130
|
deletedAt?: string | null;
|
|
126
131
|
}
|
|
132
|
+
export interface IContactFieldListItemSchema {
|
|
133
|
+
key: string;
|
|
134
|
+
label: string;
|
|
135
|
+
type: ContactField_Item_Type;
|
|
136
|
+
required: boolean;
|
|
137
|
+
options?: string[];
|
|
138
|
+
}
|
|
139
|
+
export declare enum ContactField_Item_Type {
|
|
140
|
+
TEXT = 0,
|
|
141
|
+
OPTIONS = 4,
|
|
142
|
+
DATE = 6,
|
|
143
|
+
NUMBER_INTEGER = 21,
|
|
144
|
+
NUMBER_CURRENCY = 23
|
|
145
|
+
}
|
|
127
146
|
export declare enum ContactField_type {
|
|
128
147
|
TEXT = 0,
|
|
129
148
|
LONGTEXT = 1,
|
|
@@ -137,7 +156,9 @@ export declare enum ContactField_type {
|
|
|
137
156
|
NUMBER_INTEGER = 21,
|
|
138
157
|
NUMBER_DECIMAL = 22,
|
|
139
158
|
NUMBER_CURRENCY = 23,
|
|
140
|
-
NUMBER_ACCOUNTING = 24
|
|
159
|
+
NUMBER_ACCOUNTING = 24,
|
|
160
|
+
LIST_SINGLE = 31,
|
|
161
|
+
LIST_OBJECT = 32
|
|
141
162
|
}
|
|
142
163
|
export interface IContactAddress {
|
|
143
164
|
id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GoogleAccountInfo = exports.GooglePeopleIntegration = exports.IntegrationButton_format = exports.IntegrationButton_method = exports.ContactField_type = exports.ContactOrigin = void 0;
|
|
3
|
+
exports.GoogleAccountInfo = exports.GooglePeopleIntegration = exports.IntegrationButton_format = exports.IntegrationButton_method = exports.ContactField_type = exports.ContactField_Item_Type = exports.ContactOrigin = void 0;
|
|
4
4
|
var ContactOrigin;
|
|
5
5
|
(function (ContactOrigin) {
|
|
6
6
|
ContactOrigin[ContactOrigin["MANUAL"] = 0] = "MANUAL";
|
|
@@ -9,6 +9,14 @@ var ContactOrigin;
|
|
|
9
9
|
ContactOrigin[ContactOrigin["TICKET"] = 3] = "TICKET";
|
|
10
10
|
ContactOrigin[ContactOrigin["FORM"] = 4] = "FORM";
|
|
11
11
|
})(ContactOrigin || (exports.ContactOrigin = ContactOrigin = {}));
|
|
12
|
+
var ContactField_Item_Type;
|
|
13
|
+
(function (ContactField_Item_Type) {
|
|
14
|
+
ContactField_Item_Type[ContactField_Item_Type["TEXT"] = 0] = "TEXT";
|
|
15
|
+
ContactField_Item_Type[ContactField_Item_Type["OPTIONS"] = 4] = "OPTIONS";
|
|
16
|
+
ContactField_Item_Type[ContactField_Item_Type["DATE"] = 6] = "DATE";
|
|
17
|
+
ContactField_Item_Type[ContactField_Item_Type["NUMBER_INTEGER"] = 21] = "NUMBER_INTEGER";
|
|
18
|
+
ContactField_Item_Type[ContactField_Item_Type["NUMBER_CURRENCY"] = 23] = "NUMBER_CURRENCY";
|
|
19
|
+
})(ContactField_Item_Type || (exports.ContactField_Item_Type = ContactField_Item_Type = {}));
|
|
12
20
|
var ContactField_type;
|
|
13
21
|
(function (ContactField_type) {
|
|
14
22
|
ContactField_type[ContactField_type["TEXT"] = 0] = "TEXT";
|
|
@@ -24,6 +32,8 @@ var ContactField_type;
|
|
|
24
32
|
ContactField_type[ContactField_type["NUMBER_DECIMAL"] = 22] = "NUMBER_DECIMAL";
|
|
25
33
|
ContactField_type[ContactField_type["NUMBER_CURRENCY"] = 23] = "NUMBER_CURRENCY";
|
|
26
34
|
ContactField_type[ContactField_type["NUMBER_ACCOUNTING"] = 24] = "NUMBER_ACCOUNTING";
|
|
35
|
+
ContactField_type[ContactField_type["LIST_SINGLE"] = 31] = "LIST_SINGLE";
|
|
36
|
+
ContactField_type[ContactField_type["LIST_OBJECT"] = 32] = "LIST_OBJECT";
|
|
27
37
|
})(ContactField_type || (exports.ContactField_type = ContactField_type = {}));
|
|
28
38
|
var IntegrationButton_method;
|
|
29
39
|
(function (IntegrationButton_method) {
|
|
@@ -1,41 +1,40 @@
|
|
|
1
|
-
|
|
1
|
+
export interface UserProfile_Chat {
|
|
2
2
|
enabled: boolean;
|
|
3
3
|
editConfig: boolean;
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
export interface UserProfile_Calls {
|
|
6
6
|
enabled: boolean;
|
|
7
7
|
dashboard: boolean;
|
|
8
8
|
editConfig: boolean;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
export interface UserProfile_Calendar {
|
|
11
11
|
enabled: boolean;
|
|
12
12
|
editConfig: boolean;
|
|
13
13
|
}
|
|
14
|
-
|
|
14
|
+
export interface UserProfile_Crm {
|
|
15
15
|
enabled: boolean;
|
|
16
16
|
editConfig: boolean;
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
export interface UserProfile_Datasync {
|
|
19
19
|
enabled: boolean;
|
|
20
20
|
editConfig: boolean;
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
export interface UserProfile_Signature {
|
|
23
23
|
enabled: boolean;
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
export interface UserProfile_Agent {
|
|
26
26
|
inactivityCheck: boolean;
|
|
27
27
|
inactivityTime: Number;
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
export interface UserProfile_Contacts {
|
|
30
30
|
enabled: boolean;
|
|
31
31
|
import: boolean;
|
|
32
32
|
export: boolean;
|
|
33
33
|
delete: boolean;
|
|
34
34
|
join: boolean;
|
|
35
35
|
editConfig: boolean;
|
|
36
|
-
constructor(permisos: any);
|
|
37
36
|
}
|
|
38
|
-
|
|
37
|
+
export interface UserProfile_Conversations {
|
|
39
38
|
enabled: boolean;
|
|
40
39
|
dashboard: boolean;
|
|
41
40
|
otherInboxes: boolean;
|
|
@@ -48,57 +47,51 @@ declare class UserProfile_Conversations {
|
|
|
48
47
|
cannedResponses_adminCat: boolean;
|
|
49
48
|
cannedResponses_create: boolean;
|
|
50
49
|
editConfig: boolean;
|
|
51
|
-
constructor(permisos: any);
|
|
52
50
|
}
|
|
53
|
-
|
|
51
|
+
export interface UserProfile_Tickets {
|
|
54
52
|
enabled: boolean;
|
|
55
53
|
ticket_create: boolean;
|
|
56
54
|
ticket_edit: boolean;
|
|
57
55
|
ticket_delete: boolean;
|
|
58
56
|
ticket_update: boolean;
|
|
59
|
-
constructor(permisos: any);
|
|
60
57
|
}
|
|
61
|
-
|
|
58
|
+
export interface UserProfile_Marketing {
|
|
62
59
|
enabled: boolean;
|
|
63
|
-
constructor(permisos: any);
|
|
64
60
|
}
|
|
65
|
-
|
|
61
|
+
export interface UserProfile_Docs {
|
|
66
62
|
enabled: boolean;
|
|
67
|
-
constructor(permisos: any);
|
|
68
63
|
}
|
|
69
|
-
|
|
64
|
+
export interface UserProfile_Service {
|
|
70
65
|
enabled: boolean;
|
|
71
|
-
constructor(permisos: any);
|
|
72
66
|
}
|
|
73
|
-
|
|
67
|
+
export interface UserProfile_DebtCollection {
|
|
68
|
+
enabled: boolean;
|
|
69
|
+
}
|
|
70
|
+
export interface UserProfile {
|
|
74
71
|
id: string;
|
|
75
72
|
name: string;
|
|
76
73
|
description: string;
|
|
77
74
|
isDefault: boolean;
|
|
78
|
-
chat: UserProfile_Chat;
|
|
79
75
|
conversations: UserProfile_Conversations;
|
|
76
|
+
chat: UserProfile_Chat;
|
|
80
77
|
calls: UserProfile_Calls;
|
|
81
|
-
debtCollection: UserProfile_DebtCollection;
|
|
82
78
|
marketing: UserProfile_Marketing;
|
|
83
|
-
service: UserProfile_Service;
|
|
84
|
-
tickets: UserProfile_Tickets;
|
|
85
79
|
contacts: UserProfile_Contacts;
|
|
86
80
|
calendar: UserProfile_Calendar;
|
|
87
|
-
crm: UserProfile_Crm;
|
|
88
|
-
datasync: UserProfile_Datasync;
|
|
89
81
|
signature: UserProfile_Signature;
|
|
82
|
+
docs: UserProfile_Docs;
|
|
90
83
|
agent: UserProfile_Agent;
|
|
84
|
+
debtCollection: UserProfile_DebtCollection;
|
|
85
|
+
crm: UserProfile_Crm;
|
|
86
|
+
datasync: UserProfile_Datasync;
|
|
87
|
+
service: UserProfile_Service;
|
|
88
|
+
tickets: UserProfile_Tickets;
|
|
91
89
|
}
|
|
92
|
-
|
|
90
|
+
export interface UserRole {
|
|
93
91
|
id: string;
|
|
94
92
|
isDefault: boolean;
|
|
95
93
|
title: string;
|
|
96
94
|
description: string;
|
|
97
95
|
sharedData: boolean;
|
|
98
96
|
parent: UserRole;
|
|
99
|
-
constructor(profileJson: any);
|
|
100
|
-
}
|
|
101
|
-
declare class RolView extends UserRole {
|
|
102
|
-
children: Array<RolView>;
|
|
103
97
|
}
|
|
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,96 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
exports.UserProfile_Chat = UserProfile_Chat;
|
|
7
|
-
class UserProfile_Calls {
|
|
8
|
-
}
|
|
9
|
-
exports.UserProfile_Calls = UserProfile_Calls;
|
|
10
|
-
class UserProfile_Calendar {
|
|
11
|
-
}
|
|
12
|
-
exports.UserProfile_Calendar = UserProfile_Calendar;
|
|
13
|
-
class UserProfile_Crm {
|
|
14
|
-
}
|
|
15
|
-
exports.UserProfile_Crm = UserProfile_Crm;
|
|
16
|
-
class UserProfile_Datasync {
|
|
17
|
-
}
|
|
18
|
-
exports.UserProfile_Datasync = UserProfile_Datasync;
|
|
19
|
-
class UserProfile_Signature {
|
|
20
|
-
}
|
|
21
|
-
exports.UserProfile_Signature = UserProfile_Signature;
|
|
22
|
-
class UserProfile_Agent {
|
|
23
|
-
}
|
|
24
|
-
exports.UserProfile_Agent = UserProfile_Agent;
|
|
25
|
-
class UserProfile_Contacts {
|
|
26
|
-
constructor(permisos) {
|
|
27
|
-
this.enabled = permisos.enabled ? permisos.enabled : false;
|
|
28
|
-
this.import = permisos.import ? permisos.import : false;
|
|
29
|
-
this.export = permisos.export ? permisos.export : false;
|
|
30
|
-
this.delete = permisos.delete ? permisos.delete : false;
|
|
31
|
-
this.join = permisos.join ? permisos.join : false;
|
|
32
|
-
this.editConfig = permisos.editConfig ? permisos.editConfig : false;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
exports.UserProfile_Contacts = UserProfile_Contacts;
|
|
36
|
-
class UserProfile_Conversations {
|
|
37
|
-
constructor(permisos) {
|
|
38
|
-
this.enabled = permisos.enabled ? permisos.enabled : false;
|
|
39
|
-
this.dashboard = permisos.dashboard ? permisos.dashboard : false;
|
|
40
|
-
this.otherInboxes = permisos.otherInboxes ? permisos.otherInboxes : false;
|
|
41
|
-
this.otherInboxes_users = permisos.otherInboxes_users ? permisos.otherInboxes_users : false;
|
|
42
|
-
this.otherInboxes_groups = permisos.otherInboxes_groups ? permisos.otherInboxes_groups : false;
|
|
43
|
-
this.enterIncognitoMode = permisos.enterIncognitoMode ? permisos.enterIncognitoMode : false;
|
|
44
|
-
this.endFromInbox = permisos.endFromInbox ? permisos.endFromInbox : false;
|
|
45
|
-
this.editMsgNote = permisos.editMsgNote ? permisos.editMsgNote : false;
|
|
46
|
-
this.cannedResponses_adminCat = permisos.cannedResponses_adminCat ? permisos.cannedResponses_adminCat : false;
|
|
47
|
-
this.cannedResponses_create = permisos.cannedResponses_create ? permisos.cannedResponses_create : false;
|
|
48
|
-
this.editConfig = permisos.editConfig ? permisos.editConfig : false;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
exports.UserProfile_Conversations = UserProfile_Conversations;
|
|
52
|
-
class UserProfile_Tickets {
|
|
53
|
-
constructor(permisos) {
|
|
54
|
-
this.enabled = permisos.enabled ? permisos.enabled : false;
|
|
55
|
-
this.ticket_create = permisos.ticket_create ? permisos.ticket_create : false;
|
|
56
|
-
this.ticket_edit = permisos.ticket_edit ? permisos.ticket_edit : false;
|
|
57
|
-
this.ticket_delete = permisos.ticket_delete ? permisos.ticket_delete : false;
|
|
58
|
-
this.ticket_update = permisos.ticket_update ? permisos.ticket_update : false;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
exports.UserProfile_Tickets = UserProfile_Tickets;
|
|
62
|
-
class UserProfile_Marketing {
|
|
63
|
-
constructor(permisos) {
|
|
64
|
-
this.enabled = permisos.enabled ? permisos.enabled : false;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
exports.UserProfile_Marketing = UserProfile_Marketing;
|
|
68
|
-
class UserProfile_Service {
|
|
69
|
-
constructor(permisos) {
|
|
70
|
-
this.enabled = permisos.enabled ? permisos.enabled : false;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
exports.UserProfile_Service = UserProfile_Service;
|
|
74
|
-
class UserProfile_DebtCollection {
|
|
75
|
-
constructor(permisos) {
|
|
76
|
-
this.enabled = permisos.enabled ? permisos.enabled : false;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
exports.UserProfile_DebtCollection = UserProfile_DebtCollection;
|
|
80
|
-
class UserProfile {
|
|
81
|
-
}
|
|
82
|
-
exports.UserProfile = UserProfile;
|
|
83
|
-
class UserRole {
|
|
84
|
-
constructor(profileJson) {
|
|
85
|
-
this.id = profileJson.id ? profileJson.id : '';
|
|
86
|
-
this.isDefault = profileJson.isDefault ? profileJson.isDefault : false;
|
|
87
|
-
this.title = profileJson.title ? profileJson.title : '';
|
|
88
|
-
this.description = profileJson.description ? profileJson.description : '';
|
|
89
|
-
this.sharedData = profileJson.sharedData ? profileJson.sharedData : false;
|
|
90
|
-
this.parent = new UserRole(profileJson.parent);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
exports.UserRole = UserRole;
|
|
94
|
-
class RolView extends UserRole {
|
|
95
|
-
}
|
|
96
|
-
exports.RolView = RolView;
|
|
3
|
+
// class RolView extends UserRole{
|
|
4
|
+
// children: Array<RolView>;
|
|
5
|
+
// }
|