2020-10-27 11:27:17 +01:00
|
|
|
'use strict';
|
|
|
|
|
2022-08-26 10:33:18 +02:00
|
|
|
const DAY_IN_MS = 24 * 60 * 60 * 1000;
|
|
|
|
|
2020-06-18 11:40:50 +02:00
|
|
|
module.exports = {
|
2021-06-28 12:34:29 +02:00
|
|
|
CONTENT_TYPE_SECTION: 'contentTypes',
|
2020-06-18 11:40:50 +02:00
|
|
|
SUPER_ADMIN_CODE: 'strapi-super-admin',
|
|
|
|
EDITOR_CODE: 'strapi-editor',
|
|
|
|
AUTHOR_CODE: 'strapi-author',
|
2021-08-06 18:09:49 +02:00
|
|
|
READ_ACTION: 'plugin::content-manager.explorer.read',
|
|
|
|
CREATE_ACTION: 'plugin::content-manager.explorer.create',
|
|
|
|
UPDATE_ACTION: 'plugin::content-manager.explorer.update',
|
|
|
|
DELETE_ACTION: 'plugin::content-manager.explorer.delete',
|
|
|
|
PUBLISH_ACTION: 'plugin::content-manager.explorer.publish',
|
2021-08-31 15:48:14 +02:00
|
|
|
API_TOKEN_TYPE: {
|
|
|
|
READ_ONLY: 'read-only',
|
|
|
|
FULL_ACCESS: 'full-access',
|
2022-08-05 12:01:36 +02:00
|
|
|
CUSTOM: 'custom',
|
2021-08-31 15:48:14 +02:00
|
|
|
},
|
2022-08-26 10:33:18 +02:00
|
|
|
// The front-end only displays these values
|
|
|
|
API_TOKEN_LIFESPANS: {
|
|
|
|
UNLIMITED: null,
|
|
|
|
DAYS_7: 7 * DAY_IN_MS,
|
|
|
|
DAYS_30: 30 * DAY_IN_MS,
|
|
|
|
DAYS_90: 90 * DAY_IN_MS,
|
|
|
|
},
|
2020-06-18 11:40:50 +02:00
|
|
|
};
|