zocrmsdkmiblu 0.2.5 → 0.2.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.
- package/README.md +19 -19
- package/lib/js/OAuth.js +67 -66
- package/lib/js/REST_API/Records.js +82 -87
- package/lib/js/REST_API/actions.js +30 -30
- package/lib/js/REST_API/attachments.js +43 -43
- package/lib/js/REST_API/functions.js +22 -22
- package/lib/js/REST_API/org.js +17 -17
- package/lib/js/REST_API/settings.js +45 -45
- package/lib/js/REST_API/users.js +18 -18
- package/lib/js/ZCRMRestClient.js +348 -340
- package/lib/js/config.js +11 -0
- package/lib/js/crmapi.js +32 -32
- package/lib/js/mysql/mysql_util.js +161 -161
- package/lib/js/util.js +267 -326
- package/package.json +28 -28
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
var util = require('../util');
|
|
2
|
-
|
|
3
|
-
var settings = function settings()
|
|
4
|
-
{
|
|
5
|
-
|
|
6
|
-
return {
|
|
7
|
-
getFields : function (input)
|
|
8
|
-
{
|
|
9
|
-
return util.promiseResponse(util.constructRequestDetails(input, "settings/fields/{id}", HTTP_METHODS.GET, true));//No I18N
|
|
10
|
-
},
|
|
11
|
-
getLayouts : function (input)
|
|
12
|
-
{
|
|
13
|
-
return util.promiseResponse(util.constructRequestDetails(input, "settings/layouts/{id}", HTTP_METHODS.GET, true));//No I18N
|
|
14
|
-
},
|
|
15
|
-
getCustomViews : function (input)
|
|
16
|
-
{
|
|
17
|
-
return util.promiseResponse(util.constructRequestDetails(input, "settings/custom_views/{id}", HTTP_METHODS.GET, true));//No I18N
|
|
18
|
-
},
|
|
19
|
-
updateCustomViews : function (input)
|
|
20
|
-
{
|
|
21
|
-
return util.promiseResponse(util.constructRequestDetails(input, "settings/custom_views/{id}", HTTP_METHODS.PUT, true));//No I18N
|
|
22
|
-
},
|
|
23
|
-
getModules : function (input)
|
|
24
|
-
{
|
|
25
|
-
return util.promiseResponse(util.constructRequestDetails(input, "settings/modules" + ((input && input.module) ? "/" + input.module : ""), HTTP_METHODS.GET, false));//No I18N
|
|
26
|
-
},
|
|
27
|
-
getRoles : function (input)
|
|
28
|
-
{
|
|
29
|
-
return util.promiseResponse(util.constructRequestDetails(input, "settings/roles/{id}", HTTP_METHODS.GET, true));//No I18N
|
|
30
|
-
},
|
|
31
|
-
getProfiles : function (input)
|
|
32
|
-
{
|
|
33
|
-
return util.promiseResponse(util.constructRequestDetails(input, "settings/profiles/{id}", HTTP_METHODS.GET, true));//No I18N
|
|
34
|
-
},
|
|
35
|
-
getRelatedLists : function (input)
|
|
36
|
-
{
|
|
37
|
-
return util.promiseResponse(util.constructRequestDetails(input, "settings/related_lists/{id}", HTTP_METHODS.GET, true));//No I18N
|
|
38
|
-
},
|
|
39
|
-
getInventoryTemplates : function (input)
|
|
40
|
-
{
|
|
41
|
-
return util.promiseResponse(util.constructRequestDetails(input, "settings/inventory_templates/{id}", HTTP_METHODS.GET, false));//No I18N
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
1
|
+
var util = require('../util');
|
|
2
|
+
|
|
3
|
+
var settings = function settings()
|
|
4
|
+
{
|
|
5
|
+
|
|
6
|
+
return {
|
|
7
|
+
getFields : function (input)
|
|
8
|
+
{
|
|
9
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/fields/{id}", HTTP_METHODS.GET, true));//No I18N
|
|
10
|
+
},
|
|
11
|
+
getLayouts : function (input)
|
|
12
|
+
{
|
|
13
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/layouts/{id}", HTTP_METHODS.GET, true));//No I18N
|
|
14
|
+
},
|
|
15
|
+
getCustomViews : function (input)
|
|
16
|
+
{
|
|
17
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/custom_views/{id}", HTTP_METHODS.GET, true));//No I18N
|
|
18
|
+
},
|
|
19
|
+
updateCustomViews : function (input)
|
|
20
|
+
{
|
|
21
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/custom_views/{id}", HTTP_METHODS.PUT, true));//No I18N
|
|
22
|
+
},
|
|
23
|
+
getModules : function (input)
|
|
24
|
+
{
|
|
25
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/modules" + ((input && input.module) ? "/" + input.module : ""), HTTP_METHODS.GET, false));//No I18N
|
|
26
|
+
},
|
|
27
|
+
getRoles : function (input)
|
|
28
|
+
{
|
|
29
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/roles/{id}", HTTP_METHODS.GET, true));//No I18N
|
|
30
|
+
},
|
|
31
|
+
getProfiles : function (input)
|
|
32
|
+
{
|
|
33
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/profiles/{id}", HTTP_METHODS.GET, true));//No I18N
|
|
34
|
+
},
|
|
35
|
+
getRelatedLists : function (input)
|
|
36
|
+
{
|
|
37
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/related_lists/{id}", HTTP_METHODS.GET, true));//No I18N
|
|
38
|
+
},
|
|
39
|
+
getInventoryTemplates : function (input)
|
|
40
|
+
{
|
|
41
|
+
return util.promiseResponse(util.constructRequestDetails(input, "settings/inventory_templates/{id}", HTTP_METHODS.GET, false));//No I18N
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
46
|
module.exports = settings;
|
package/lib/js/REST_API/users.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
var util = require('../util');
|
|
2
|
-
|
|
3
|
-
var users = function users()
|
|
4
|
-
{
|
|
5
|
-
|
|
6
|
-
return {
|
|
7
|
-
get : function (input)
|
|
8
|
-
{
|
|
9
|
-
return util.promiseResponse(util.constructRequestDetails(input, "users/{id}", HTTP_METHODS.GET, true));//No I18N
|
|
10
|
-
},
|
|
11
|
-
getUsersType : function (input)
|
|
12
|
-
{
|
|
13
|
-
return util.promiseResponse(util.constructRequestDetails(input, "users", HTTP_METHODS.GET, true));//No I18N
|
|
14
|
-
},
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
var util = require('../util');
|
|
2
|
+
|
|
3
|
+
var users = function users()
|
|
4
|
+
{
|
|
5
|
+
|
|
6
|
+
return {
|
|
7
|
+
get : function (input)
|
|
8
|
+
{
|
|
9
|
+
return util.promiseResponse(util.constructRequestDetails(input, "users/{id}", HTTP_METHODS.GET, true));//No I18N
|
|
10
|
+
},
|
|
11
|
+
getUsersType : function (input)
|
|
12
|
+
{
|
|
13
|
+
return util.promiseResponse(util.constructRequestDetails(input, "users", HTTP_METHODS.GET, true));//No I18N
|
|
14
|
+
},
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
19
|
module.exports = users;
|