manicanldes-backend/src/identity/permissions.ts

65 lines
1.4 KiB
TypeScript

export const PERMISSIONS = [
'b2b.custom.read',
'b2b.custom.request',
'b2b.custom.review',
'pricing.manage',
'operations.read',
'notifications.retry',
'coupons.manage',
'orders.read',
'orders.manage',
'users.read',
'users.create',
'users.approve',
'users.roles.assign',
'roles.read',
'roles.manage',
'audit.read',
'catalog.read',
'catalog.manage',
'catalog.publish',
'inventory.read',
'inventory.manage',
'inventory.adjust',
'inventory.reserve',
'inventory.commit',
'procurement.read',
'procurement.manage',
'supplier_payment.manage',
'supplier_document.read',
'supplier_document.manage',
'supplier_document.validate',
'bom.read',
'bom.manage',
'packaging.read',
'packaging.manage',
'packaging.record',
'cost.read',
'cost.manage',
'production.read',
'production.manage',
'production.material.record',
'b2b.read',
'b2b.manage',
'b2b.verify',
'b2b.price.read',
'b2b.price.manage',
'b2b.quote.read',
'b2b.quote.manage',
'b2b.credit.read',
'b2b.credit.propose',
'b2b.credit.review',
'b2b.sample.read',
'b2b.sample.request',
'b2b.sample.review',
'b2b.sample.dispatch',
'b2b.artwork.read',
'b2b.artwork.manage',
'b2b.artwork.review',
'b2b.order.read',
'b2b.order.manage',
'b2b.payment.read',
'b2b.payment.manage',
] as const;
export type Permission = (typeof PERMISSIONS)[number];