@apptimate/core-lib 5.8.0 → 6.0.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": "5.8.0",
3
+ "version": "6.0.0",
4
4
  "main": "src/index.ts",
5
5
  "types": "src/index.ts",
6
6
  "publishConfig": {
@@ -13,7 +13,8 @@ export async function bulkPunchAttendance(data: { punches: any[] }): Promise<IAp
13
13
  return response.responseData as IApiResponse;
14
14
  }
15
15
 
16
- export async function getWorkforceAttendanceLookup(): Promise<IApiResponse> {
17
- const response = await sendRequest({ url: `${process.env.NEXT_PUBLIC_API_URL}/api/construction/workforce/attendance-lookup`, method: "GET" });
16
+ export async function getWorkforceAttendanceLookup(params?: { project_id?: number; date?: string }): Promise<IApiResponse> {
17
+ const query = params ? `?${new URLSearchParams(params as any).toString()}` : "";
18
+ const response = await sendRequest({ url: `${process.env.NEXT_PUBLIC_API_URL}/api/construction/workforce/attendance-lookup${query}`, method: "GET" });
18
19
  return response.responseData as IApiResponse;
19
20
  }
@@ -106,6 +106,7 @@ export const MENU_ITEM_REGISTRY: RegistryItem[] = [
106
106
  { key: 'inventory__adjustments', label: 'Adjustments', path: '/inventory/adjustments', module: 'Inventory', defaultGroup: 'Operations', permission: null },
107
107
  { key: 'inventory__transfers', label: 'Transfers', path: '/inventory/transfers', module: 'Inventory', defaultGroup: 'Operations', permission: null },
108
108
  { key: 'inventory__serials', label: 'Serial Numbers', path: '/inventory/serials', module: 'Inventory', defaultGroup: 'Stock', permission: null },
109
+ { key: 'inventory__settings', label: 'Settings', path: '/inventory/settings', module: 'Inventory', defaultGroup: 'Settings', permission: 'inventory_setting.view' },
109
110
 
110
111
  // ── Sales Module ──
111
112
  { key: 'sales__price_lists', label: 'Price Lists', path: '/sales/price-lists', module: 'Sales', defaultGroup: 'Master Data', permission: null },
@@ -252,7 +253,7 @@ export const MENU_ITEM_REGISTRY: RegistryItem[] = [
252
253
  { key: 'construction__team', label: 'Team', path: '/construction/team', module: 'Construction', defaultGroup: 'Project Planning', permission: null },
253
254
  { key: 'construction__budget', label: 'Budget', path: '/construction/budget', module: 'Construction', defaultGroup: 'Project Planning', permission: null },
254
255
 
255
- { key: 'construction__main_contract', label: 'Main Contract', path: '/construction/contracts/main-contract', module: 'Construction', defaultGroup: 'Contracts & Billing', permission: null },
256
+ { key: 'construction__main_contract', label: 'Client', path: '/construction/contracts/main-contract', module: 'Construction', defaultGroup: 'Contracts & Billing', permission: null },
256
257
  { key: 'construction__subcontractors', label: 'Subcontractors', path: '/construction/contracts/subcontractors', module: 'Construction', defaultGroup: 'Contracts & Billing', permission: null },
257
258
  { key: 'construction__ipcs', label: 'Progress Billing', path: '/construction/contracts/progress-billing', module: 'Construction', defaultGroup: 'Contracts & Billing', permission: null },
258
259
  { key: 'construction__variations', label: 'Subcontractor Variations', path: '/construction/variations', module: 'Construction', defaultGroup: 'Contracts & Billing', permission: null },
@@ -291,6 +292,7 @@ export const MENU_ITEM_REGISTRY: RegistryItem[] = [
291
292
  { key: 'construction__rfis', label: 'RFIs', path: '/construction/document-control/rfis', module: 'Construction', defaultGroup: 'Document Control', permission: null },
292
293
 
293
294
  { key: 'construction__test_types', label: 'Test Types', path: '/construction/settings/test-types', module: 'Construction', defaultGroup: 'Configuration', permission: null },
295
+ { key: 'construction__material_types', label: 'Material Types', path: '/construction/settings/material-types', module: 'Construction', defaultGroup: 'Configuration', permission: 'construction_material_type.view' },
294
296
  { key: 'construction__project_categories', label: 'Project Categories', path: '/construction/settings/project-categories', module: 'Construction', defaultGroup: 'Configuration', permission: 'project_category.view' },
295
297
  { key: 'construction__settings', label: 'Settings', path: '/construction/settings', module: 'Construction', defaultGroup: 'Configuration', permission: null },
296
298
 
@@ -397,6 +399,7 @@ export const MENU_PRESETS: MenuPreset[] = [
397
399
  'inventory__items', 'inventory__categories', 'inventory__brands', 'inventory__uom',
398
400
  'inventory__stock', 'inventory__ledger',
399
401
  'inventory__opening_stock', 'inventory__adjustments', 'inventory__transfers', 'inventory__serials',
402
+ 'inventory__settings'
400
403
  ],
401
404
  },
402
405
  {
@@ -518,59 +521,23 @@ export const MENU_PRESETS: MenuPreset[] = [
518
521
  'construction__dashboard',
519
522
  // 2. Project Planning
520
523
  'construction__projects',
521
- 'construction__schedule_calendar',
522
- 'construction__hierarchy',
523
- 'construction__budget',
524
- 'construction__team',
524
+ // 4. Contracts & Billing
525
+ 'construction__main_contract',
526
+ 'construction__subcontractors',
525
527
  // 3. Estimation & BOQ
526
- 'construction__boq',
527
- 'construction__boq_revisions',
528
528
  'construction__rate_cards',
529
529
  'construction__assemblies',
530
530
  'construction__assembly_groups',
531
- // 4. Contracts & Billing
532
- 'construction__main_contract',
533
- 'construction__subcontractors',
534
- 'construction__ipcs',
535
- 'construction__variations',
536
531
  // 5. Workforce Management
537
532
  'construction__workforce',
538
- 'construction__workforce_allocation',
539
533
  'construction__shifts',
540
- 'construction__attendance',
541
534
  // 6. Plant & Equipment
542
535
  'construction__equipment_types',
543
536
  'construction__equipment',
544
- 'construction__equipment_allocation',
545
- 'construction__fuel_logs',
546
- 'construction__maintenance',
547
- // 7. Site Execution
548
- 'construction__site_engineer',
549
- 'construction__dsr',
550
- 'construction__progress',
551
- 'construction__subcontractor_progress',
552
- 'construction__change_orders',
553
- 'construction__mtrs',
554
- 'construction__prs',
555
- 'construction__pos',
556
- 'construction__grns',
557
- 'construction__site_ledger',
558
- 'construction__site_issues',
559
- 'construction__wastage_returns',
560
- // 8. Document Control
561
- 'construction__drawings',
562
- 'construction__rfis',
563
- 'construction__transmittals',
564
- // 9. Quality & Safety
565
- 'construction__quality_ir',
566
- 'construction__quality_ncr',
567
- 'construction__punch_list',
568
- 'construction__material_testing',
569
- 'construction__safety_incidents',
570
- 'construction__ptw',
571
537
  // 10. Configuration
572
538
  'construction__project_categories',
573
539
  'construction__test_types',
540
+ 'construction__material_types',
574
541
  'construction__settings',
575
542
  ],
576
543
  },