@apptimate/core-lib 5.7.0 → 5.9.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.7.0",
3
+ "version": "5.9.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
  }
@@ -252,7 +252,7 @@ export const MENU_ITEM_REGISTRY: RegistryItem[] = [
252
252
  { key: 'construction__team', label: 'Team', path: '/construction/team', module: 'Construction', defaultGroup: 'Project Planning', permission: null },
253
253
  { key: 'construction__budget', label: 'Budget', path: '/construction/budget', module: 'Construction', defaultGroup: 'Project Planning', permission: null },
254
254
 
255
- { key: 'construction__main_contract', label: 'Main Contract', path: '/construction/contracts/main-contract', module: 'Construction', defaultGroup: 'Contracts & Billing', permission: null },
255
+ { key: 'construction__main_contract', label: 'Client', path: '/construction/contracts/main-contract', module: 'Construction', defaultGroup: 'Contracts & Billing', permission: null },
256
256
  { key: 'construction__subcontractors', label: 'Subcontractors', path: '/construction/contracts/subcontractors', module: 'Construction', defaultGroup: 'Contracts & Billing', permission: null },
257
257
  { key: 'construction__ipcs', label: 'Progress Billing', path: '/construction/contracts/progress-billing', module: 'Construction', defaultGroup: 'Contracts & Billing', permission: null },
258
258
  { key: 'construction__variations', label: 'Subcontractor Variations', path: '/construction/variations', module: 'Construction', defaultGroup: 'Contracts & Billing', permission: null },
@@ -291,6 +291,7 @@ export const MENU_ITEM_REGISTRY: RegistryItem[] = [
291
291
  { key: 'construction__rfis', label: 'RFIs', path: '/construction/document-control/rfis', module: 'Construction', defaultGroup: 'Document Control', permission: null },
292
292
 
293
293
  { key: 'construction__test_types', label: 'Test Types', path: '/construction/settings/test-types', module: 'Construction', defaultGroup: 'Configuration', permission: null },
294
+ { key: 'construction__material_types', label: 'Material Types', path: '/construction/settings/material-types', module: 'Construction', defaultGroup: 'Configuration', permission: 'construction_material_type.view' },
294
295
  { key: 'construction__project_categories', label: 'Project Categories', path: '/construction/settings/project-categories', module: 'Construction', defaultGroup: 'Configuration', permission: 'project_category.view' },
295
296
  { key: 'construction__settings', label: 'Settings', path: '/construction/settings', module: 'Construction', defaultGroup: 'Configuration', permission: null },
296
297
 
@@ -518,59 +519,23 @@ export const MENU_PRESETS: MenuPreset[] = [
518
519
  'construction__dashboard',
519
520
  // 2. Project Planning
520
521
  'construction__projects',
521
- 'construction__schedule_calendar',
522
- 'construction__hierarchy',
523
- 'construction__budget',
524
- 'construction__team',
522
+ // 4. Contracts & Billing
523
+ 'construction__main_contract',
524
+ 'construction__subcontractors',
525
525
  // 3. Estimation & BOQ
526
- 'construction__boq',
527
- 'construction__boq_revisions',
528
526
  'construction__rate_cards',
529
527
  'construction__assemblies',
530
528
  'construction__assembly_groups',
531
- // 4. Contracts & Billing
532
- 'construction__main_contract',
533
- 'construction__subcontractors',
534
- 'construction__ipcs',
535
- 'construction__variations',
536
529
  // 5. Workforce Management
537
530
  'construction__workforce',
538
- 'construction__workforce_allocation',
539
531
  'construction__shifts',
540
- 'construction__attendance',
541
532
  // 6. Plant & Equipment
542
533
  'construction__equipment_types',
543
534
  '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
535
  // 10. Configuration
572
536
  'construction__project_categories',
573
537
  'construction__test_types',
538
+ 'construction__material_types',
574
539
  'construction__settings',
575
540
  ],
576
541
  },