not-node 6.5.34 → 6.5.35

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "not-node",
3
- "version": "6.5.34",
3
+ "version": "6.5.35",
4
4
  "description": "node complimentary part for client side notFramework.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,5 +1,6 @@
1
1
  const ACTION_SIGNATURES = require("../auth/const").ACTION_SIGNATURES;
2
2
  const notManifestRouteResultFilter = require("../manifest/result.filter");
3
+ const { ACTION_DATA_TYPES } = require("../manifest/const.js");
3
4
 
4
5
  const extraActionsBuilder = (
5
6
  MODULE_NAME,
@@ -51,7 +52,7 @@ module.exports = (
51
52
  create: {
52
53
  method: "PUT",
53
54
  actionSignature: ACTION_SIGNATURES.CREATE,
54
- data: ["data"],
55
+ data: [ACTION_DATA_TYPES.DATA],
55
56
  rules: [
56
57
  {
57
58
  root: true,
@@ -63,7 +64,7 @@ module.exports = (
63
64
  actionSignature: ACTION_SIGNATURES.UPDATE,
64
65
  //добавка к url'у, вид такой :record[название поля без кавычек]
65
66
  postFix: POST_FIX_RECORD_ID,
66
- data: ["data"],
67
+ data: [ACTION_DATA_TYPES.DATA],
67
68
  //должен быть авторизован или нет
68
69
  formData: true,
69
70
  //должен быть суперпользователем или нет
@@ -76,7 +77,11 @@ module.exports = (
76
77
  list: {
77
78
  method: "GET",
78
79
  actionSignature: ACTION_SIGNATURES.READ,
79
- data: ["pager", "sorter", "filter"],
80
+ data: [
81
+ ACTION_DATA_TYPES.PAGER,
82
+ ACTION_DATA_TYPES.SORTER,
83
+ ACTION_DATA_TYPES.FILTER,
84
+ ],
80
85
  rules: [
81
86
  {
82
87
  root: true,
@@ -87,7 +92,13 @@ module.exports = (
87
92
  method: "GET",
88
93
  actionSignature: ACTION_SIGNATURES.READ,
89
94
  postFix: POST_FIX_ACTION_NAME,
90
- data: ["pager", "sorter", "filter", "searcher", "return"],
95
+ data: [
96
+ ACTION_DATA_TYPES.PAGER,
97
+ ACTION_DATA_TYPES.SORTER,
98
+ ACTION_DATA_TYPES.FILTER,
99
+ ACTION_DATA_TYPES.SEARCH,
100
+ ACTION_DATA_TYPES.RETURN,
101
+ ],
91
102
  rules: [
92
103
  {
93
104
  root: true,