@molochko-dev/data 1.4.20 → 1.4.21

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.
@@ -120,7 +120,7 @@ exports.USER_PERMISSIONS = [
120
120
  ]
121
121
  },
122
122
  {
123
- name: "tags",
123
+ name: "animal-tag",
124
124
  frontend: {
125
125
  active: true,
126
126
  path: "/main/tags"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molochko-dev/data",
3
- "version": "1.4.20",
3
+ "version": "1.4.21",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "typings/index.d.ts",
package/perms.json ADDED
@@ -0,0 +1,293 @@
1
+ {
2
+ "data":[
3
+ {
4
+ "name": "org",
5
+ "backend": [
6
+ {
7
+ "paths": [
8
+ "/api/org"
9
+ ],
10
+ "active": true,
11
+ "method": "POST",
12
+ "permission": "create"
13
+ },
14
+ {
15
+ "paths": [
16
+ "/api/org/list",
17
+ "/api/org/:id"
18
+ ],
19
+ "active": true,
20
+ "method": "GET",
21
+ "permission": "view"
22
+ },
23
+ {
24
+ "paths": [
25
+ "/api/org/:id"
26
+ ],
27
+ "active": true,
28
+ "method": "PUT",
29
+ "permission": "update"
30
+ },
31
+ {
32
+ "paths": [
33
+ "/api/org/:id"
34
+ ],
35
+ "active": true,
36
+ "method": "DELETE",
37
+ "permission": "delete"
38
+ }
39
+ ],
40
+ "frontend": {
41
+ "path": "/main/company",
42
+ "active": false
43
+ }
44
+ },
45
+ {
46
+ "name": "employees",
47
+ "backend": [
48
+ {
49
+ "paths": [
50
+ "/api/users/list"
51
+ ],
52
+ "active": true,
53
+ "method": "GET",
54
+ "permission": "view"
55
+ },
56
+ {
57
+ "paths": [
58
+ "/api/users/by-admin"
59
+ ],
60
+ "active": true,
61
+ "method": "POST",
62
+ "permission": "create"
63
+ },
64
+ {
65
+ "paths": [
66
+ "/api/users/by-admin/:id"
67
+ ],
68
+ "active": true,
69
+ "method": "PUT",
70
+ "permission": "update"
71
+ },
72
+ {
73
+ "paths": [
74
+ "/api/users/by-admin/:id"
75
+ ],
76
+ "active": true,
77
+ "method": "DELETE",
78
+ "permission": "delete"
79
+ },
80
+ {
81
+ "paths": [
82
+ "/api/users/remove"
83
+ ],
84
+ "active": true,
85
+ "method": "PUT",
86
+ "permission": "deleteAll"
87
+ }
88
+ ],
89
+ "frontend": {
90
+ "path": "/main/employees"
91
+ }
92
+ },
93
+ {
94
+ "name": "seed-bank",
95
+ "backend": [
96
+ {
97
+ "paths": [
98
+ "/api/seed-bank/list"
99
+ ],
100
+ "active": true,
101
+ "method": "GET",
102
+ "permission": "view"
103
+ },
104
+ {
105
+ "paths": [
106
+ "/api/seed-bank/:naab"
107
+ ],
108
+ "active": true,
109
+ "method": "GET",
110
+ "permission": "view"
111
+ },
112
+ {
113
+ "paths": [
114
+ "/api/seed-bank"
115
+ ],
116
+ "active": true,
117
+ "method": "POST",
118
+ "permission": "create"
119
+ },
120
+ {
121
+ "paths": [
122
+ "/api/seed-bank/:id"
123
+ ],
124
+ "active": true,
125
+ "method": "PUT",
126
+ "permission": "update"
127
+ },
128
+ {
129
+ "paths": [
130
+ "/api/seed-bank/:id"
131
+ ],
132
+ "active": true,
133
+ "method": "DELETE",
134
+ "permission": "delete"
135
+ }
136
+ ],
137
+ "frontend": {
138
+ "path": "/main/seed-bank"
139
+ }
140
+ },
141
+ {
142
+ "name": "tags",
143
+ "backend": [
144
+ {
145
+ "paths": [
146
+ "/api/animal-tag"
147
+ ],
148
+ "active": true,
149
+ "method": "POST",
150
+ "permission": "create"
151
+ },
152
+ {
153
+ "paths": [
154
+ "/api/animal-tag/:id"
155
+ ],
156
+ "active": true,
157
+ "method": "PUT",
158
+ "permission": "update"
159
+ },
160
+ {
161
+ "paths": [
162
+ "/api/animal-tag/:id"
163
+ ],
164
+ "active": true,
165
+ "method": "DELETE",
166
+ "permission": "delete"
167
+ },
168
+ {
169
+ "paths": [
170
+ "/api/animal-tag/list"
171
+ ],
172
+ "active": true,
173
+ "method": "GET",
174
+ "permission": "view"
175
+ }
176
+ ],
177
+ "frontend": {
178
+ "path": "/main/tags"
179
+ }
180
+ },
181
+ {
182
+ "name": "animal",
183
+ "backend": [
184
+ {
185
+ "paths": [
186
+ "/api/animal"
187
+ ],
188
+ "active": true,
189
+ "method": "POST",
190
+ "permission": "create"
191
+ },
192
+ {
193
+ "paths": [
194
+ "/api/animal/:id"
195
+ ],
196
+ "active": true,
197
+ "method": "PUT",
198
+ "permission": "update"
199
+ },
200
+ {
201
+ "paths": [
202
+ "/api/animal/:id"
203
+ ],
204
+ "active": true,
205
+ "method": "DELETE",
206
+ "permission": "delete"
207
+ },
208
+ {
209
+ "paths": [
210
+ "/api/animal/list"
211
+ ],
212
+ "active": false,
213
+ "method": "GET",
214
+ "permission": "view"
215
+ },
216
+ {
217
+ "paths": [
218
+ "/api/animal/to-tag"
219
+ ],
220
+ "active": true,
221
+ "method": "PUT",
222
+ "permission": "attach"
223
+ },
224
+ {
225
+ "paths": [
226
+ "/api/animal/from-tag/:animalId"
227
+ ],
228
+ "active": true,
229
+ "method": "DELETE",
230
+ "permission": "detach"
231
+ },
232
+ {
233
+ "paths": [
234
+ "/api/animals/remove"
235
+ ],
236
+ "active": true,
237
+ "method": "PUT",
238
+ "permission": "deleteAll"
239
+ }
240
+ ],
241
+ "frontend": {
242
+ "path": "/main/animals"
243
+ }
244
+ },
245
+ {
246
+ "name": "eventForAnimals",
247
+ "backend": [
248
+ {
249
+ "paths": [
250
+ "/api/event"
251
+ ],
252
+ "active": true,
253
+ "method": "POST",
254
+ "permission": "create"
255
+ },
256
+ {
257
+ "paths": [
258
+ "/api/event/remove"
259
+ ],
260
+ "active": true,
261
+ "method": "PUT",
262
+ "permission": "deleteAll"
263
+ }
264
+ ],
265
+ "frontend": {
266
+ "path": "/main/animals"
267
+ }
268
+ },
269
+ {
270
+ "name": "event",
271
+ "backend": [
272
+ {
273
+ "paths": [
274
+ "/api/event/list"
275
+ ],
276
+ "active": true,
277
+ "method": "GET",
278
+ "permission": "view"
279
+ },
280
+ {
281
+ "paths": [
282
+ "/api/event/:id"
283
+ ],
284
+ "active": true,
285
+ "method": "GET",
286
+ "permission": "view"
287
+ }
288
+ ],
289
+ "frontend": {
290
+ "path": "/main/events-history"
291
+ }
292
+ }
293
+ ]}
@@ -119,7 +119,7 @@ export const USER_PERMISSIONS: IRolePermissionItem[] = [
119
119
  ]
120
120
  },
121
121
  {
122
- name: "tags",
122
+ name: "animal-tag",
123
123
  frontend: {
124
124
  active: true,
125
125
  path: "/main/tags"