@apptimate/core-lib 4.4.0 → 4.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apptimate/core-lib",
3
- "version": "4.4.0",
3
+ "version": "4.6.0",
4
4
  "main": "src/index.ts",
5
5
  "types": "src/index.ts",
6
6
  "publishConfig": {
@@ -233,12 +233,10 @@ export const MENU_ITEM_REGISTRY: RegistryItem[] = [
233
233
  { key: 'construction__pos', label: 'Purchase Orders', path: '/construction/procurement/pos', module: 'Construction', defaultGroup: 'Procurement', permission: null },
234
234
  { key: 'construction__grns', label: 'Goods Receipt', path: '/construction/procurement/grns', module: 'Construction', defaultGroup: 'Procurement', permission: null },
235
235
 
236
- { key: 'construction__site_ledger', label: 'Site Ledger', path: '/construction/site-inventory/ledger', module: 'Construction', defaultGroup: 'Site Inventory', permission: null },
237
- { key: 'construction__site_issues', label: 'Site Issues', path: '/construction/site-inventory/issues', module: 'Construction', defaultGroup: 'Site Inventory', permission: null },
238
- { key: 'construction__wastage_returns', label: 'Wastage & Returns', path: '/construction/site-inventory/wastage-returns', module: 'Construction', defaultGroup: 'Site Inventory', permission: null },
236
+ { key: 'construction__site_ledger', label: 'Project Ledger', path: '/construction/site-inventory/ledger', module: 'Construction', defaultGroup: 'Project Inventory', permission: null },
237
+ { key: 'construction__site_issues', label: 'Project Issues', path: '/construction/site-inventory/issues', module: 'Construction', defaultGroup: 'Project Inventory', permission: null },
238
+ { key: 'construction__wastage_returns', label: 'Wastage & Returns', path: '/construction/site-inventory/wastage-returns', module: 'Construction', defaultGroup: 'Project Inventory', permission: null },
239
239
 
240
- { key: 'construction__boq', label: 'BOQ Master', path: '/construction/boq', module: 'Construction', defaultGroup: 'Bill of Quantities', permission: null },
241
- { key: 'construction__boq_revisions', label: 'BOQ Revisions', path: '/construction/boq/revisions', module: 'Construction', defaultGroup: 'Bill of Quantities', permission: null },
242
240
  { key: 'construction__variations', label: 'Subcontractor Variations', path: '/construction/variations', module: 'Construction', defaultGroup: 'Subcontractor Variations', permission: null },
243
241
 
244
242
  { key: 'construction__workforce', label: 'Workforce Master', path: '/construction/workforce', module: 'Construction', defaultGroup: 'Workforce', permission: null },
@@ -251,7 +249,6 @@ export const MENU_ITEM_REGISTRY: RegistryItem[] = [
251
249
  { key: 'construction__fuel_logs', label: 'Fuel Logs', path: '/construction/equipment/fuel-logs', module: 'Construction', defaultGroup: 'Equipment & Plant', permission: null },
252
250
  { key: 'construction__maintenance', label: 'Maintenance', path: '/construction/equipment/maintenance', module: 'Construction', defaultGroup: 'Equipment & Plant', permission: null },
253
251
 
254
- { key: 'construction__schedule_tasks', label: 'Schedule Tasks', path: '/construction/scheduling/tasks', module: 'Construction', defaultGroup: 'Scheduling', permission: null },
255
252
  { key: 'construction__schedule_calendar', label: 'Resource Calendar', path: '/construction/scheduling/calendar', module: 'Construction', defaultGroup: 'Scheduling', permission: null },
256
253
 
257
254
  { key: 'construction__main_contract', label: 'Main Contract', path: '/construction/contracts/main-contract', module: 'Construction', defaultGroup: 'Contracts', permission: null },
@@ -279,8 +276,12 @@ export const MENU_ITEM_REGISTRY: RegistryItem[] = [
279
276
 
280
277
  // ── CRM Module ──
281
278
  { key: 'crm__dashboard', label: 'Overview', path: '/crm', module: 'CRM', defaultGroup: 'Overview', permission: null },
282
- { key: 'crm__customers', label: 'Customers', path: '/crm/customers', module: 'CRM', defaultGroup: 'Core', permission: null },
283
- { key: 'crm__leads', label: 'Leads', path: '/crm/leads', module: 'CRM', defaultGroup: 'Sales', permission: null },
279
+ { key: 'crm__spaces', label: 'Spaces', path: '/crm/spaces', module: 'CRM', defaultGroup: 'Sales', permission: 'crm_space.view' },
280
+ { key: 'crm__leads', label: 'Leads', path: '/crm/leads', module: 'CRM', defaultGroup: 'Sales', permission: 'crm_lead.view' },
281
+ { key: 'crm__sales', label: 'Confirmed Sales', path: '/crm/sales', module: 'CRM', defaultGroup: 'Sales', permission: 'crm_sale.view' },
282
+ { key: 'crm__tasks', label: 'Tasks', path: '/crm/tasks', module: 'CRM', defaultGroup: 'Operations', permission: 'crm_task.view' },
283
+ { key: 'crm__payments', label: 'Expected Payments', path: '/crm/payments', module: 'CRM', defaultGroup: 'Operations', permission: 'crm_expected_payment.view' },
284
+ { key: 'crm__settings_custom_fields', label: 'Custom Fields', path: '/crm/settings/custom-fields', module: 'CRM', defaultGroup: 'Settings', permission: 'crm_custom_field.view' },
284
285
  ];
285
286
 
286
287
  /**
@@ -502,8 +503,6 @@ export const MENU_PRESETS: MenuPreset[] = [
502
503
  'construction__site_ledger',
503
504
  'construction__site_issues',
504
505
  'construction__wastage_returns',
505
- 'construction__boq',
506
- 'construction__boq_revisions',
507
506
  'construction__variations',
508
507
  'construction__workforce',
509
508
  'construction__shifts',
@@ -513,7 +512,6 @@ export const MENU_PRESETS: MenuPreset[] = [
513
512
  'construction__equipment_allocation',
514
513
  'construction__fuel_logs',
515
514
  'construction__maintenance',
516
- 'construction__schedule_tasks',
517
515
  'construction__schedule_calendar',
518
516
  'construction__main_contract',
519
517
  'construction__subcontractors',
@@ -542,7 +540,12 @@ export const MENU_PRESETS: MenuPreset[] = [
542
540
  secondaryItems: [
543
541
  'crm__dashboard',
544
542
  'crm__customers',
543
+ 'crm__spaces',
545
544
  'crm__leads',
545
+ 'crm__sales',
546
+ 'crm__tasks',
547
+ 'crm__payments',
548
+ 'crm__settings_custom_fields',
546
549
  ],
547
550
  }
548
551
  ],