/**
 * mSupply Mobile
 * Sustainable Solutions (NZ) Ltd. 2016
 */

/**
 * Constants related to Navigation within the app.
 */

export const ROUTES = {
  ROOT: 'root',

  MENU: 'menu',

  REALM_EXPLORER: 'realmExplorer',

  CUSTOMER_REQUISITION: 'customerRequisition',
  CUSTOMER_REQUISITIONS: 'customerRequisitions',

  SUPPLIER_REQUISITION: 'supplierRequisition',
  SUPPLIER_REQUISITION_WITH_PROGRAM: 'supplierRequisitionWithProgram',
  SUPPLIER_REQUISITIONS: 'supplierRequisitions',

  CUSTOMER_INVOICE: 'customerInvoice',
  CUSTOMER_INVOICES: 'customerInvoices',

  SUPPLIER_INVOICE: 'supplierInvoice',
  SUPPLIER_INVOICES: 'supplierInvoices',

  STOCK: 'stock',
  STOCK_WITH_CREDITS: 'stockWithCredits',

  STOCKTAKES: 'stocktakes',
  STOCKTAKE_MANAGER: 'stocktakeManager',
  STOCKTAKE_EDITOR: 'stocktakeEditor',
  STOCKTAKE_EDITOR_WITH_REASONS: 'stocktakeEditorWithReasons',

  DISPENSARY: 'dispensary',
  PRESCRIPTIONS: 'prescriptions',
  PRESCRIPTION: 'prescription',

  CASH_REGISTER: 'cashRegister',

  SETTINGS: 'settings',
  DASHBOARD: 'dashboard',
};

/**
 * mSupply Mobile
 * Sustainable Solutions (NZ) Ltd. 2016
 */

/**
 * Constants related to Navigation within the app.
 */

export const ROUTES = {
  MENU: 'menu',

  REALM_EXPLORER: 'realmExplorer',

  CUSTOMER_REQUISITION: 'customerRequisition',
  CUSTOMER_REQUISITIONS: 'customerRequisitions',

  SUPPLIER_REQUISITION: 'supplierRequisition',
  SUPPLIER_REQUISITION_WITH_PROGRAM: 'supplierRequisitionWithProgram',
  SUPPLIER_REQUISITIONS: 'supplierRequisitions',

  CUSTOMER_INVOICE: 'customerInvoice',
  CUSTOMER_INVOICES: 'customerInvoices',

  SUPPLIER_INVOICE: 'supplierInvoice',
  SUPPLIER_INVOICES: 'supplierInvoices',

  STOCK: 'stock',
  STOCK_WITH_CREDITS: 'stockWithCredits',

  STOCKTAKES: 'stocktakes',
  STOCKTAKE_MANAGER: 'stocktakeManager',
  STOCKTAKE_EDITOR: 'stocktakeEditor',
  STOCKTAKE_EDITOR_WITH_REASONS: 'stocktakeEditorWithReasons',

  DISPENSARY: 'dispensary',
  PRESCRIPTIONS: 'prescriptions',
  PRESCRIPTION: 'prescription',

  CASH_REGISTER: 'cashRegister',

  SETTINGS: 'settings',
  DASHBOARD: 'dashboard',
};

export const FINALISABLE_PAGES = [
  ROUTES.SUPPLIER_INVOICE,
  ROUTES.CUSTOMER_INVOICE,
  ROUTES.CUSTOMER_REQUISITION,
  ROUTES.SUPPLIER_REQUISITION,
  ROUTES.STOCKTAKE_EDITOR,
];

Add FINALISABLE_PAGES constant