corefwnode 3.0.2 → 3.0.3
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/.eslintrc.js +40 -40
- package/build.js +266 -266
- package/index.js +240 -240
- package/lib/CfwObject.js +1629 -1626
- package/lib/Decorator.js +322 -322
- package/lib/ErrorCodes.js +111 -111
- package/lib/ErrorControl.js +50 -50
- package/lib/GeneralHandling.js +638 -638
- package/lib/Language.js +139 -139
- package/lib/MySql.js +141 -142
- package/lib/Observer.js +75 -75
- package/lib/Validator.js +536 -536
- package/lib/Wiki.js +409 -409
- package/lib/errors/CoreError.js +11 -11
- package/lib/errors/SQLError.js +125 -125
- package/objects/AclGroups.js +69 -69
- package/objects/AclObjects.js +46 -46
- package/objects/AclPrivilages.js +202 -202
- package/objects/EmailTemplates.js +108 -108
- package/objects/Session.js +317 -317
- package/objects/SiteProps.js +55 -55
- package/objects/TransLang.js +39 -39
- package/objects/Translator.js +345 -345
- package/objects/UserCompanies.js +46 -46
- package/objects/Users.js +409 -409
- package/objects/UsersData.js +85 -85
- package/objects/Wiki.js +425 -425
- package/objects/WikiCategory.js +40 -40
- package/objects/WikiTemplates.js +92 -92
- package/objects/index.js +47 -47
- package/package.json +31 -32
package/objects/UsersData.js
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
const CfwObject = require('../lib/CfwObject.js');
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* user_data object
|
|
5
|
-
*
|
|
6
|
-
* @version $Id$
|
|
7
|
-
* @copyright 2008
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
module.exports = class UsersData extends CfwObject
|
|
11
|
-
{
|
|
12
|
-
constructor(session)
|
|
13
|
-
{
|
|
14
|
-
const proxy = super(session);
|
|
15
|
-
|
|
16
|
-
return proxy;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// eslint-disable-next-line class-methods-use-this
|
|
20
|
-
tableConf()
|
|
21
|
-
{
|
|
22
|
-
return {
|
|
23
|
-
tableName: 'users_data',
|
|
24
|
-
id: {
|
|
25
|
-
userId: {
|
|
26
|
-
fieldType: 'int',
|
|
27
|
-
maxlength: 20,
|
|
28
|
-
req: 1,
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
ownerField: 'userId',
|
|
32
|
-
fields: {
|
|
33
|
-
name: {
|
|
34
|
-
fieldType: 'text',
|
|
35
|
-
maxlength: 255,
|
|
36
|
-
minlength: 2,
|
|
37
|
-
req: 1,
|
|
38
|
-
},
|
|
39
|
-
surname: {
|
|
40
|
-
fieldType: 'text',
|
|
41
|
-
maxlength: 255,
|
|
42
|
-
minlength: 2,
|
|
43
|
-
req: 1,
|
|
44
|
-
},
|
|
45
|
-
address: {
|
|
46
|
-
fieldType: 'text',
|
|
47
|
-
maxlength: 255,
|
|
48
|
-
req: 0,
|
|
49
|
-
null: true,
|
|
50
|
-
},
|
|
51
|
-
city: {
|
|
52
|
-
fieldType: 'text',
|
|
53
|
-
maxlength: 255,
|
|
54
|
-
req: 0,
|
|
55
|
-
null: true,
|
|
56
|
-
},
|
|
57
|
-
postalCode: {
|
|
58
|
-
fieldType: 'int',
|
|
59
|
-
maxlength: 10,
|
|
60
|
-
req: 0,
|
|
61
|
-
null: true,
|
|
62
|
-
},
|
|
63
|
-
country: {
|
|
64
|
-
fieldType: 'text',
|
|
65
|
-
maxlength: 255,
|
|
66
|
-
req: 0,
|
|
67
|
-
null: true,
|
|
68
|
-
},
|
|
69
|
-
phone: {
|
|
70
|
-
fieldType: 'int',
|
|
71
|
-
maxlength: 20,
|
|
72
|
-
req: 0,
|
|
73
|
-
null: true,
|
|
74
|
-
},
|
|
75
|
-
oibNum: {
|
|
76
|
-
fieldType: 'oib',
|
|
77
|
-
maxlength: 255,
|
|
78
|
-
req: 0,
|
|
79
|
-
null: true,
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
onduplicate: ['name', 'surname', 'address', 'city', 'postalCode', 'country', 'phone', 'oibNum'],
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
};
|
|
1
|
+
const CfwObject = require('../lib/CfwObject.js');
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* user_data object
|
|
5
|
+
*
|
|
6
|
+
* @version $Id$
|
|
7
|
+
* @copyright 2008
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
module.exports = class UsersData extends CfwObject
|
|
11
|
+
{
|
|
12
|
+
constructor(session)
|
|
13
|
+
{
|
|
14
|
+
const proxy = super(session);
|
|
15
|
+
|
|
16
|
+
return proxy;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// eslint-disable-next-line class-methods-use-this
|
|
20
|
+
tableConf()
|
|
21
|
+
{
|
|
22
|
+
return {
|
|
23
|
+
tableName: 'users_data',
|
|
24
|
+
id: {
|
|
25
|
+
userId: {
|
|
26
|
+
fieldType: 'int',
|
|
27
|
+
maxlength: 20,
|
|
28
|
+
req: 1,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
ownerField: 'userId',
|
|
32
|
+
fields: {
|
|
33
|
+
name: {
|
|
34
|
+
fieldType: 'text',
|
|
35
|
+
maxlength: 255,
|
|
36
|
+
minlength: 2,
|
|
37
|
+
req: 1,
|
|
38
|
+
},
|
|
39
|
+
surname: {
|
|
40
|
+
fieldType: 'text',
|
|
41
|
+
maxlength: 255,
|
|
42
|
+
minlength: 2,
|
|
43
|
+
req: 1,
|
|
44
|
+
},
|
|
45
|
+
address: {
|
|
46
|
+
fieldType: 'text',
|
|
47
|
+
maxlength: 255,
|
|
48
|
+
req: 0,
|
|
49
|
+
null: true,
|
|
50
|
+
},
|
|
51
|
+
city: {
|
|
52
|
+
fieldType: 'text',
|
|
53
|
+
maxlength: 255,
|
|
54
|
+
req: 0,
|
|
55
|
+
null: true,
|
|
56
|
+
},
|
|
57
|
+
postalCode: {
|
|
58
|
+
fieldType: 'int',
|
|
59
|
+
maxlength: 10,
|
|
60
|
+
req: 0,
|
|
61
|
+
null: true,
|
|
62
|
+
},
|
|
63
|
+
country: {
|
|
64
|
+
fieldType: 'text',
|
|
65
|
+
maxlength: 255,
|
|
66
|
+
req: 0,
|
|
67
|
+
null: true,
|
|
68
|
+
},
|
|
69
|
+
phone: {
|
|
70
|
+
fieldType: 'int',
|
|
71
|
+
maxlength: 20,
|
|
72
|
+
req: 0,
|
|
73
|
+
null: true,
|
|
74
|
+
},
|
|
75
|
+
oibNum: {
|
|
76
|
+
fieldType: 'oib',
|
|
77
|
+
maxlength: 255,
|
|
78
|
+
req: 0,
|
|
79
|
+
null: true,
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
onduplicate: ['name', 'surname', 'address', 'city', 'postalCode', 'country', 'phone', 'oibNum'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
};
|