-
Notifications
You must be signed in to change notification settings - Fork 9
/
package.json
348 lines (348 loc) · 12.1 KB
/
package.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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
{
"name": "@folio/agreements",
"version": "11.2.0",
"description": "ERM agreement functionality for Stripes",
"main": "src/index.js",
"publishConfig": {
"registry": "https://repository.folio.org/repository/npm-folio/"
},
"license": "Apache-2.0",
"scripts": {
"start": "stripes serve",
"build": "stripes build --output ./output",
"test": "yarn run test:jest",
"test:jest": "jest --ci --coverage --maxWorkers=50%",
"lint": "eslint src test",
"build-mod-descriptor": "stripes mod descriptor --full --strict | jq '.[]' > module-descriptor.json ",
"formatjs-compile": "formatjs compile-folder --ast --format simple ./translations/ui-agreements ./translations/ui-agreements/compiled"
},
"devDependencies": {
"@babel/core": "^7.18.6",
"@babel/eslint-parser": "^7.15.0",
"@folio/eslint-config-stripes": "^7.1.0",
"@folio/jest-config-stripes": "^2.0.0",
"@folio/stripes": "^9.2.0",
"@folio/stripes-acq-components": "^6.0.0",
"@folio/stripes-cli": "^3.2.0",
"@folio/stripes-erm-components": "^9.2.0",
"@folio/stripes-erm-testing": "^3.0.0",
"@formatjs/cli": "^6.1.3",
"classnames": ">=2.2.6",
"core-js": "^3.6.1",
"eslint": "^7.32.0",
"graphql": "^16.0.0",
"prop-types-extra": ">=1.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-intl": "^6.4.4",
"react-query": "^3.6.0",
"react-router": "^5.2.0",
"react-router-dom": "^5.2.0",
"redux": "^4.0.0",
"redux-observable": "^1.2.0",
"regenerator-runtime": "^0.13.3",
"rxjs": "^6.6.3"
},
"dependencies": {
"@k-int/stripes-kint-components": "^5.8.3",
"@rehooks/local-storage": "^2.4.4",
"compose-function": "^3.0.3",
"final-form": "^4.18.4",
"final-form-arrays": "^3.0.1",
"final-form-set-field-data": "^1.0.2",
"lodash": "^4.17.11",
"prop-types": "^15.6.0",
"query-string": "^7.1.1",
"react-final-form": "^6.3.0",
"react-final-form-arrays": "^3.1.0",
"react-router-prop-types": "^1.0.4",
"zustand": "^4.1.5"
},
"peerDependencies": {
"@folio/stripes": "^9.2.0",
"@folio/stripes-acq-components": "^6.0.0",
"@folio/stripes-erm-components": "^9.2.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-intl": "^6.4.4",
"react-router-dom": "^5.2.0"
},
"stripes": {
"actsAs": [
"app",
"handler",
"settings"
],
"handlerName": "eventHandler",
"displayName": "ui-agreements.meta.title",
"route": "/erm",
"home": "/erm/agreements",
"queryResource": "query",
"okapiInterfaces": {
"configuration": "2.0 3.0 4.0 5.0",
"erm": "7.0",
"licenses": "6.0"
},
"optionalOkapiInterfaces": {
"order-lines": "2.0 3.0",
"organizations-storage.interfaces": "2.0",
"users": "13.0 14.0 15.0 16.0"
},
"stripesDeps": [
"@folio/stripes-erm-components"
],
"permissionSets": [
{
"permissionName": "module.agreements.enabled",
"displayName": "UI: ui-agreements module is enabled",
"subPermissions": [
"configuration.entries.collection.get",
"tags.collection.get",
"erm.refdata.view",
"note.types.collection.get"
]
},
{
"permissionName": "ui-agreements.resources.view",
"displayName": "Agreements: Search & view e-resources",
"description": "Grants all permissions included in 'Agreements: Search & view agreements' plus the ability to search and view e-resources (packages and titles in those packages) in the internal KB.",
"visible": true,
"subPermissions": [
"module.agreements.enabled",
"erm.packages.view",
"erm.titles.view",
"erm.resources.view",
"erm.pci.view",
"ui-agreements.agreements.view"
]
},
{
"permissionName": "ui-agreements.platforms.view",
"displayName": "Agreements: Search & view platforms",
"description": "Grants all permissions included in 'Agreements: Search & view e-resources' plus the ability to search and view platforms in the internal KB",
"visible": true,
"subPermissions": [
"module.agreements.enabled",
"erm.platforms.view",
"ui-agreements.resources.view"
]
},
{
"permissionName": "ui-agreements.platforms.edit",
"displayName": "Agreements: Edit platforms",
"description": "Grants all permissions included in 'Platforms: Search & view platforms' plus the ability to edit platform properties",
"visible": true,
"subPermissions": [
"erm.platforms.edit",
"ui-agreements.platforms.view"
]
},
{
"permissionName": "ui-agreements.resources.edit",
"displayName": "Agreements: Edit e-resources",
"description": "Grants all permissions included in 'Agreements: Search & view e-resources' plus the ability to edit the e-resources",
"visible": true,
"subPermissions": [
"erm.pci.edit",
"erm.pti.edit",
"erm.titles.edit",
"ui-agreements.resources.view"
]
},
{
"permissionName": "ui-agreements.agreements.view",
"displayName": "Agreements: Search & view agreements",
"description": "A user with this permission can search and view existing agreements. This includes the permission to see and access the Agreement app in the Folio interface",
"visible": true,
"subPermissions": [
"module.agreements.enabled",
"erm.agreements.view",
"erm.contacts.view",
"erm.custprops.view",
"erm.files.view",
"erm.orgs.view",
"licenses.custprops.view"
]
},
{
"permissionName": "ui-agreements.agreements.file.download",
"displayName": "Agreements: File download",
"description": "A user with this permission is able to download and view the content of Agreement document files",
"visible": true,
"subPermissions": [
"erm.files.item.download",
"erm.files.view"
]
},
{
"permissionName": "ui-agreements.agreements.edit",
"displayName": "Agreements: Edit agreements",
"description": "Grants all permissions included in 'Agreements: Search & view agreements' plus the ability to edit agreements, including the ability to add and edit agreement lines, documents and view, add and edit tags on an agreement",
"visible": true,
"subPermissions": [
"ui-agreements.agreements.view",
"erm.agreements.edit",
"erm.entitlements.edit",
"erm.files.edit",
"tags.item.post"
]
},
{
"permissionName": "ui-agreements.agreements.delete",
"displayName": "Agreements: Delete agreements",
"description": "Grants all permissions included in 'Agreements: Search & view agreements' plus the ability to delete agreements. This does not include the ability to edit agreements, only to delete them",
"visible": true,
"subPermissions": [
"ui-agreements.agreements.view",
"erm.agreements.item.delete"
]
},
{
"permissionName": "settings.agreements.enabled",
"displayName": "Settings (Agreements): ui-agreements settings are enabled",
"subPermissions": [
"module.agreements.enabled",
"settings.enabled",
"configuration.entries.collection.get"
]
},
{
"permissionName": "settings.configuration.manage",
"displayName": "Settings (Agreements): Can view and edit settings",
"subPermissions": [
"configuration.entries.item.put",
"configuration.entries.item.post"
]
},
{
"permissionName": "ui-agreements.generalSettings.view",
"displayName": "Settings (Agreements): Can view general settings",
"description": "Grants permission to view the general Agreements settings",
"visible": true,
"subPermissions": [
"settings.agreements.enabled"
]
},
{
"permissionName": "ui-agreements.generalSettings.manage",
"displayName": "Settings (Agreements): Can view and edit general settings",
"description": "Grants permission to view and edit the general Agreements settings",
"visible": true,
"subPermissions": [
"ui-agreements.generalSettings.view",
"settings.configuration.manage"
]
},
{
"permissionName": "ui-agreements.picklists.view",
"displayName": "Settings (Agreements): View pick lists and values",
"description": "Grants all permissions included in 'Settings (Agreements): Can view general settings' plus the ability to view pick lists and pick list values",
"visible": true,
"subPermissions": [
"settings.agreements.enabled",
"erm.refdata.view"
]
},
{
"permissionName": "ui-agreements.picklists.manage",
"displayName": "Settings (Agreements): Manage pick lists and values",
"description": "Grants all permissions included in 'Settings (Agreements): Can view and edit general settings' plus the ability to manage pick lists and pick list values",
"visible": true,
"subPermissions": [
"ui-agreements.picklists.view",
"settings.configuration.manage",
"erm.refdata.manage"
]
},
{
"permissionName": "ui-agreements.supplementaryProperties.view",
"displayName": "Settings (Agreements): Can view agreement supplementary properties",
"description": "Grants all permissions included in 'Settings (Agreements): Can view general settings' plus the ability to view the available supplementary properties",
"visible": true,
"subPermissions": [
"settings.agreements.enabled",
"erm.custprops.view"
]
},
{
"permissionName": "ui-agreements.supplementaryProperties.manage",
"displayName": "Settings (Agreements): Manage agreement supplementary properties",
"description": "Grants all permissions included in 'Settings (Agreements): Can view and edit general settings' plus the ability to manage the available supplementary properties",
"visible": true,
"subPermissions": [
"ui-agreements.supplementaryProperties.view",
"settings.configuration.manage",
"erm.custprops.manage"
]
},
{
"permissionName": "ui-agreements.appSettings.view",
"displayName": "Settings (Agreements): Can view app settings",
"description": "Grants permission to view the Agreements application settings",
"visible": true,
"subPermissions": [
"settings.agreements.enabled",
"erm.settings.read"
]
},
{
"permissionName": "ui-agreements.appSettings.manage",
"displayName": "Settings (Agreements): Can view and edit app settings",
"description": "Grants permission to view and edit the Agreements application settings",
"visible": true,
"subPermissions": [
"ui-agreements.appSettings.view",
"settings.configuration.manage",
"erm.settings.manage"
]
}
],
"icons": [
{
"name": "app",
"alt": "ERM agreement functionality for Stripes",
"title": "Agreements"
},
{
"name": "agreementLine",
"alt": " ",
"title": "Agreement line"
},
{
"name": "closedAgreement",
"alt": " ",
"title": "Closed agreement"
},
{
"name": "eresource",
"alt": " ",
"title": "eresource"
},
{
"name": "package",
"alt": " ",
"title": "Package"
},
{
"name": "pci",
"alt": " ",
"title": "PCI"
},
{
"name": "title",
"alt": " ",
"title": "Title"
},
{
"name": "platform",
"alt": " ",
"title": "platform"
},
{
"name": "printTitle",
"alt": " ",
"title": "Print title"
}
]
}
}