forked from folio-org/mod-inventory-storage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ModuleDescriptor.json
277 lines (277 loc) · 10.3 KB
/
ModuleDescriptor.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
{
"id": "inventory-storage",
"name": "Inventory Storage Module",
"provides": [
{
"id": "item-storage",
"version": "2.1",
"handlers": [
{
"methods": ["GET"],
"pathPattern": "/item-storage/items",
"permissionsRequired": ["inventory-storage.items.collection.get"]
}, {
"methods": ["GET"],
"pathPattern": "/item-storage/items/{id}",
"permissionsRequired": ["inventory-storage.items.item.get"]
}, {
"methods": ["POST"],
"pathPattern": "/item-storage/items",
"permissionsRequired": ["inventory-storage.items.item.post"]
}, {
"methods": ["PUT"],
"pathPattern": "/item-storage/items/{id}",
"permissionsRequired": ["inventory-storage.items.item.put"]
}, {
"methods": ["DELETE"],
"pathPattern": "/item-storage/items/{id}",
"permissionsRequired": ["inventory-storage.items.item.delete"]
}, {
"methods": ["DELETE"],
"pathPattern": "/item-storage/items",
"permissionsRequired": ["inventory-storage.items.collection.delete"]
}
]
},
{
"id": "instance-storage",
"version": "1.0",
"handlers": [
{
"methods": ["GET"],
"pathPattern": "/instance-storage/instances",
"permissionsRequired": ["inventory-storage.instances.collection.get"]
}, {
"methods": ["GET"],
"pathPattern": "/instance-storage/instances/{id}",
"permissionsRequired": ["inventory-storage.instances.item.get"]
}, {
"methods": ["POST"],
"pathPattern": "/instance-storage/instances",
"permissionsRequired": ["inventory-storage.instances.item.post"]
}, {
"methods": ["PUT"],
"pathPattern": "/instance-storage/instances/{id}",
"permissionsRequired": ["inventory-storage.instances.item.put"]
}, {
"methods": ["DELETE"],
"pathPattern": "/instance-storage/instances/{id}",
"permissionsRequired": ["inventory-storage.instances.item.delete"]
}, {
"methods": ["DELETE"],
"pathPattern": "/instance-storage/instances",
"permissionsRequired": ["inventory-storage.instances.collection.delete"]
}
]
},
{
"id": "loan-types",
"version": "1.0",
"handlers": [
{
"methods": ["GET"],
"pathPattern": "/loan-types",
"permissionsRequired": ["inventory-storage.loan-types.collection.get"]
}, {
"methods": ["GET"],
"pathPattern": "/loan-types/{id}",
"permissionsRequired": ["inventory-storage.loan-types.item.get"]
}, {
"methods": ["POST"],
"pathPattern": "/loan-types",
"permissionsRequired": ["inventory-storage.loan-types.item.post"]
}, {
"methods": ["PUT"],
"pathPattern": "/loan-types/{id}",
"permissionsRequired": ["inventory-storage.loan-types.item.put"]
}, {
"methods": ["DELETE"],
"pathPattern": "/loan-types/{id}",
"permissionsRequired": ["inventory-storage.loan-types.item.delete"]
}
]
},
{
"id": "material-types",
"version": "1.3",
"handlers": [
{
"methods": ["GET"],
"pathPattern": "/material-types",
"permissionsRequired": ["inventory-storage.material-types.collection.get"]
}, {
"methods": ["GET"],
"pathPattern": "/material-types/{id}",
"permissionsRequired": ["inventory-storage.material-types.item.get"]
}, {
"methods": ["POST"],
"pathPattern": "/material-types",
"permissionsRequired": ["inventory-storage.material-types.item.post"]
}, {
"methods": ["PUT"],
"pathPattern": "/material-types/{id}",
"permissionsRequired": ["inventory-storage.material-types.item.put"]
}, {
"methods": ["DELETE"],
"pathPattern": "/material-types/{id}",
"permissionsRequired": ["inventory-storage.material-types.item.delete"]
}
]
},
{
"id" : "_tenant",
"version" : "1.0",
"interfaceType": "system",
"handlers": [
{
"methods": ["POST"],
"pathPattern": "/_/tenant"
}, {
"methods": ["DELETE"],
"pathPattern": "/_/tenant"
}
]
}
],
"permissionSets": [
{
"permissionName": "inventory-storage.items.collection.get",
"displayName": "inventory storage - get item collection",
"description": "get item collection from storage"
},
{
"permissionName": "inventory-storage.items.collection.delete",
"displayName": "inventory storage - delete entire item collection",
"description": "delete entire item collection from storage"
},
{
"permissionName": "inventory-storage.items.item.get",
"displayName": "inventory storage - get individual item",
"description": "get individual item from storage"
},
{
"permissionName": "inventory-storage.items.item.post",
"displayName": "inventory storage - create individual item",
"description": "create individual item in storage"
},
{
"permissionName": "inventory-storage.items.item.put",
"displayName": "inventory storage - modify item",
"description": "modify item in storage"
},
{
"permissionName": "inventory-storage.items.item.delete",
"displayName": "inventory storage - delete individual item",
"description": "delete individual item from storage"
},
{
"permissionName": "inventory-storage.instances.collection.get",
"displayName": "inventory storage - get instance collection",
"description": "get instance collection from storage"
},
{
"permissionName": "inventory-storage.instances.collection.delete",
"displayName": "inventory storage - delete entire instance collection",
"description": "delete entire instance collection from storage"
},
{
"permissionName": "inventory-storage.instances.item.get",
"displayName": "inventory storage - get individual instance",
"description": "get individual instance from storage"
},
{
"permissionName": "inventory-storage.instances.item.post",
"displayName": "inventory storage - create individual instance",
"description": "create individual instance in storage"
},
{
"permissionName": "inventory-storage.instances.item.put",
"displayName": "inventory storage - modify instance",
"description": "modify instance in storage"
},
{
"permissionName": "inventory-storage.instances.item.delete",
"displayName": "inventory storage - delete individual instance",
"description": "delete individual instance from storage"
},
{
"permissionName": "inventory-storage.loan-types.collection.get",
"displayName": "inventory storage - get loan-type collection",
"description": "get loan-type collection from storage"
},
{
"permissionName": "inventory-storage.loan-types.item.get",
"displayName": "inventory storage - get individual loan-type",
"description": "get individual loan-type from storage"
},
{
"permissionName": "inventory-storage.loan-types.item.post",
"displayName": "inventory storage - create individual loan-type",
"description": "create individual loan-type in storage"
},
{
"permissionName": "inventory-storage.loan-types.item.put",
"displayName": "inventory storage - modify loan-type",
"description": "modify loan-type in storage"
},
{
"permissionName": "inventory-storage.loan-types.item.delete",
"displayName": "inventory storage - delete individual loan-type",
"description": "delete individual loan-type from storage"
},
{
"permissionName": "inventory-storage.material-types.collection.get",
"displayName": "inventory storage - get material-type collection",
"description": "get material-type collection from storage"
},
{
"permissionName": "inventory-storage.material-types.item.get",
"displayName": "inventory storage - get individual material-type",
"description": "get individual material-type from storage"
},
{
"permissionName": "inventory-storage.material-types.item.post",
"displayName": "inventory storage - create individual material-type",
"description": "create individual material-type in storage"
},
{
"permissionName": "inventory-storage.material-types.item.put",
"displayName": "inventory storage - modify material-type",
"description": "modify material-type in storage"
},
{
"permissionName": "inventory-storage.material-types.item.delete",
"displayName": "inventory storage - delete individual material-type",
"description": "delete individual material-type from storage"
},
{
"permissionName": "inventory-storage.all",
"displayName": "inventory storage module - all permissions",
"description": "Entire set of permissions needed to use the inventory storage module",
"subPermissions": [
"inventory-storage.items.collection.get",
"inventory-storage.items.item.get",
"inventory-storage.items.item.post",
"inventory-storage.items.item.put",
"inventory-storage.items.item.delete",
"inventory-storage.items.collection.delete",
"inventory-storage.instances.collection.get",
"inventory-storage.instances.item.get",
"inventory-storage.instances.item.post",
"inventory-storage.instances.item.put",
"inventory-storage.instances.item.delete",
"inventory-storage.instances.collection.delete",
"inventory-storage.loan-types.collection.get",
"inventory-storage.loan-types.item.get",
"inventory-storage.loan-types.item.post",
"inventory-storage.loan-types.item.put",
"inventory-storage.loan-types.item.delete",
"inventory-storage.material-types.collection.get",
"inventory-storage.material-types.item.get",
"inventory-storage.material-types.item.post",
"inventory-storage.material-types.item.put",
"inventory-storage.material-types.item.delete"
]
}
]
}