# All files / js/lib modules.ts

0% Statements 0/3
100% Branches 0/0
100% Functions 0/0
0% Lines 0/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    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

     export const modules = [
        { key: 'customers', label: 'Customers' },
        { key: 'contacts', label: 'Contacts' },
        { key: 'products', label: 'Products & Services' },
        { key: 'suppliers', label: 'Suppliers' },
        { key: 'stock-movements', label: 'Stock Movements' },
        { key: 'purchase-orders', label: 'Purchase Orders' },
        { key: 'jobcards', label: 'Jobcards' },
        { key: 'quotes', label: 'Quotes' },
        { key: 'invoices', label: 'Invoices' },
        { key: 'credit-notes', label: 'Credit Notes' },
        { key: 'reports', label: 'Reports' },
        { key: 'timesheet', label: 'Timesheet' },
    ] as const;

    /** Client Zone staff moderation: listed separately on the group permissions screen. */
    export const clientZoneAdminModules = [
        { key: 'registered-users', label: 'Registered users (Client Zone)' },
        { key: 'customer-update-requests', label: 'Information update requests' },
    ] as const;

    export const allModulesForGroupPermissions = [...modules, ...clientZoneAdminModules] as const;

    export type ModuleKey = (typeof modules)[number]['key'];
    export type ClientZoneAdminModuleKey = (typeof clientZoneAdminModules)[number]['key'];