38 lines
1017 B
JavaScript
Raw Normal View History

'use strict';
2022-08-26 10:33:18 +02:00
const DAY_IN_MS = 24 * 60 * 60 * 1000;
module.exports = {
2021-06-28 12:34:29 +02:00
CONTENT_TYPE_SECTION: 'contentTypes',
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',
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,
},
TRANSFER_TOKEN_TYPE: {
PUSH: 'push',
PULL: 'pull',
},
TRANSFER_TOKEN_LIFESPANS: {
UNLIMITED: null,
DAYS_7: 7 * DAY_IN_MS,
DAYS_30: 30 * DAY_IN_MS,
DAYS_90: 90 * DAY_IN_MS,
},
};