@apptimate/core-lib 1.9.0 → 2.1.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": "1.9.0",
3
+ "version": "2.1.0",
4
4
  "main": "src/index.ts",
5
5
  "types": "src/index.ts",
6
6
  "publishConfig": {
@@ -144,13 +144,16 @@ export const MENU_ITEM_REGISTRY: RegistryItem[] = [
144
144
  { key: 'jewelry__karigar_scrap_returns', label: 'Karigar Dust Returns', path: '/jewelry/karigar-scrap-returns', module: 'Jewelry', defaultGroup: 'Karigar' },
145
145
  { key: 'jewelry__karigar_making_charges', label: 'Making Charges', path: '/jewelry/karigar-making-charges', module: 'Jewelry', defaultGroup: 'Karigar' },
146
146
  { key: 'jewelry__party_metal_balances', label: 'Party Metal Balances', path: '/jewelry/party-metal-balances', module: 'Jewelry', defaultGroup: 'Karigar' },
147
+ { key: 'jewelry__metal_settlements', label: 'Metal Settlements', path: '/jewelry/metal-settlements', module: 'Jewelry', defaultGroup: 'Karigar' },
147
148
  { key: 'jewelry__settings', label: 'Settings', path: '/jewelry/settings', module: 'Jewelry', defaultGroup: 'Configuration' },
148
149
  { key: 'jewelry__reports', label: 'Reports & Dashboards', path: '/reports/jewelry', module: 'Jewelry', defaultGroup: 'Analytics' },
149
150
 
150
151
  // ── HR Module ──
151
152
  { key: 'hr__employees', label: 'Employees', path: '/hr/employees', module: 'HR', defaultGroup: 'Core' },
152
- { key: 'hr__directory', label: 'Directory', path: '/hr/directory', module: 'HR', defaultGroup: 'Core' },
153
- { key: 'hr__org_chart', label: 'Org Chart', path: '/hr/org-chart', module: 'HR', defaultGroup: 'Core' },
153
+
154
+
155
+ { key: 'hr__employee_calendar', label: 'Employee Calendar', path: '/hr/employee-calendar', module: 'HR', defaultGroup: 'Time' },
156
+ { key: 'hr__my_calendar', label: 'My Calendar', path: '/hr/my-calendar', module: 'HR', defaultGroup: 'Time' },
154
157
 
155
158
  { key: 'hr__attendance', label: 'Attendance', path: '/hr/attendance', module: 'HR', defaultGroup: 'Time' },
156
159
  { key: 'hr__regularisation', label: 'Regularisation', path: '/hr/regularisation', module: 'HR', defaultGroup: 'Time' },
@@ -162,12 +165,24 @@ export const MENU_ITEM_REGISTRY: RegistryItem[] = [
162
165
  { key: 'hr__holidays', label: 'Holidays', path: '/hr/holidays', module: 'HR', defaultGroup: 'Time' },
163
166
  { key: 'hr__leave', label: 'Leave Management', path: '/hr/leave', module: 'HR', defaultGroup: 'Time' },
164
167
  { key: 'hr__designations', label: 'Designations', path: '/hr/designations', module: 'HR', defaultGroup: 'Admin' },
168
+ { key: 'hr__teams', label: 'Teams', path: '/hr/teams', module: 'HR', defaultGroup: 'Core' },
169
+ { key: 'hr__skills', label: 'Skills', path: '/hr/skills', module: 'HR', defaultGroup: 'Masters' },
170
+ { key: 'hr__qualifications', label: 'Qualifications', path: '/hr/qualifications', module: 'HR', defaultGroup: 'Masters' },
171
+ { key: 'hr__holiday_types', label: 'Holiday Types', path: '/hr/holiday-types', module: 'HR', defaultGroup: 'Masters' },
172
+ { key: 'hr__break_types', label: 'Break Types', path: '/hr/break-types', module: 'HR', defaultGroup: 'Masters' },
173
+ { key: 'hr__option_sets', label: 'Option Sets', path: '/hr/option-sets', module: 'HR', defaultGroup: 'Masters' },
174
+ { key: 'hr__ot', label: 'Overtime', path: '/hr/ot', module: 'HR', defaultGroup: 'Payroll' },
175
+ { key: 'hr__ot_policies', label: 'OT Policies', path: '/hr/ot-policies', module: 'HR', defaultGroup: 'Payroll' },
176
+ { key: 'hr__ot_rate_templates', label: 'OT Rate Templates', path: '/hr/ot-rate-templates', module: 'HR', defaultGroup: 'Payroll' },
165
177
  // ── Money Exchange Module ──
166
178
  { key: 'money_exchange__dashboard', label: 'Dashboard', path: '/money-exchange', module: 'Money Exchange', defaultGroup: 'Overview' },
167
179
  { key: 'money_exchange__rates', label: 'Rates Management', path: '/money-exchange/rates', module: 'Money Exchange', defaultGroup: 'Overview' },
168
180
  { key: 'money_exchange__pos', label: 'Point of Sale', path: '/money-exchange/pos', module: 'Money Exchange', defaultGroup: 'Operations' },
169
- { key: 'money_exchange__till', label: 'Till & Inventory', path: '/money-exchange/till', module: 'Money Exchange', defaultGroup: 'Inventory & Stock' },
170
- { key: 'money_exchange__transfers', label: 'Internal Transfers', path: '/money-exchange/transfers', module: 'Money Exchange', defaultGroup: 'Inventory & Stock' },
181
+ { key: 'money_exchange__transactions', label: 'Transactions', path: '/money-exchange/transactions', module: 'Money Exchange', defaultGroup: 'Operations' },
182
+ { key: 'money_exchange__till', label: 'Till', path: '/money-exchange/till', module: 'Money Exchange', defaultGroup: 'Inventory & Stock' },
183
+ { key: 'money_exchange__branch_stock', label: 'Vault', path: '/money-exchange/branch-stock', module: 'Money Exchange', defaultGroup: 'Inventory & Stock' },
184
+ { key: 'money_exchange__opening_stock', label: 'Opening Stock', path: '/money-exchange/opening-stock', module: 'Money Exchange', defaultGroup: 'Inventory & Stock' },
185
+ { key: 'money_exchange__internal_transfers', label: 'Internal Transfers', path: '/money-exchange/internal-transfers', module: 'Money Exchange', defaultGroup: 'Inventory & Stock' },
171
186
  { key: 'money_exchange__wholesale', label: 'Wholesale Operations', path: '/money-exchange/wholesale', module: 'Money Exchange', defaultGroup: 'Wholesale' },
172
187
  { key: 'money_exchange__suppliers', label: 'Supplier Registry', path: '/money-exchange/suppliers', module: 'Money Exchange', defaultGroup: 'Wholesale' },
173
188
  { key: 'money_exchange__remittance_agents', label: 'Agent Registry', path: '/money-exchange/agents', module: 'Money Exchange', defaultGroup: 'Remittances' },
@@ -317,6 +332,7 @@ export const MENU_PRESETS: MenuPreset[] = [
317
332
  'jewelry__karigar_scrap_returns',
318
333
  'jewelry__karigar_making_charges',
319
334
  'jewelry__party_metal_balances',
335
+ 'jewelry__metal_settlements',
320
336
  'jewelry__reports',
321
337
  'jewelry__settings',
322
338
  ],
@@ -326,7 +342,7 @@ export const MENU_PRESETS: MenuPreset[] = [
326
342
  label: 'HR',
327
343
  iconName: 'Users',
328
344
  secondaryItems: [
329
- 'hr__employees', 'hr__directory', 'hr__org_chart', 'hr__attendance', 'hr__regularisation', 'hr__shifts', 'hr__shift_templates', 'hr__rosters', 'hr__shift_exchanges', 'hr__shift_allowances', 'hr__leave_types', 'hr__holidays', 'hr__leave', 'hr__designations'
345
+ 'hr__employees', 'hr__teams', 'hr__employee_calendar', 'hr__my_calendar', 'hr__attendance', 'hr__regularisation', 'hr__shifts', 'hr__shift_templates', 'hr__rosters', 'hr__shift_exchanges', 'hr__shift_allowances', 'hr__leave_types', 'hr__holidays', 'hr__leave', 'hr__designations', 'hr__skills', 'hr__qualifications', 'hr__holiday_types', 'hr__break_types', 'hr__option_sets', 'hr__ot', 'hr__ot_policies', 'hr__ot_rate_templates'
330
346
  ]
331
347
  },
332
348
  {
@@ -337,8 +353,11 @@ export const MENU_PRESETS: MenuPreset[] = [
337
353
  'money_exchange__dashboard',
338
354
  'money_exchange__rates',
339
355
  'money_exchange__pos',
356
+ 'money_exchange__transactions',
340
357
  'money_exchange__till',
341
- 'money_exchange__transfers',
358
+ 'money_exchange__branch_stock',
359
+ 'money_exchange__opening_stock',
360
+ 'money_exchange__internal_transfers',
342
361
  'money_exchange__wholesale',
343
362
  'money_exchange__suppliers',
344
363
  'money_exchange__remittance_agents',
@@ -387,6 +406,7 @@ export const APP_MENUS: MainMenuItem[] = [
387
406
  items: [
388
407
  { id: "warehouses", label: "Warehouses", path: "/warehouses" },
389
408
  { id: "terminals", label: "Terminals", path: "/terminals" },
409
+ { id: "currencies", label: "Currencies", path: "/currencies" },
390
410
  ],
391
411
  },
392
412
  {
@@ -402,9 +422,9 @@ export const APP_MENUS: MainMenuItem[] = [
402
422
  },
403
423
  {
404
424
  id: "core_settings",
405
- label: "Settings",
425
+ label: "Configuration",
406
426
  items: [
407
- { id: "currencies", label: "Currencies", path: "/currencies" },
427
+ { id: "currencies_settings", label: "Settings", path: "/settings" },
408
428
  ],
409
429
  },
410
430
  ],
@@ -570,6 +590,65 @@ export const APP_MENUS: MainMenuItem[] = [
570
590
  },
571
591
  ],
572
592
  },
593
+ {
594
+ id: "hr",
595
+ label: "HR",
596
+ iconName: "Users",
597
+ groups: [
598
+ {
599
+ id: "hr_core",
600
+ label: "Core",
601
+ items: [
602
+ { id: "employees", label: "Employees", path: "/hr/employees" },
603
+ { id: "teams", label: "Teams", path: "/hr/teams" },
604
+ ],
605
+ },
606
+ {
607
+ id: "hr_time",
608
+ label: "Time",
609
+ items: [
610
+ { id: "employee_calendar", label: "Employee Calendar", path: "/hr/employee-calendar" },
611
+ { id: "my_calendar", label: "My Calendar", path: "/hr/my-calendar" },
612
+ { id: "attendance", label: "Attendance", path: "/hr/attendance" },
613
+ { id: "regularisation", label: "Regularisation", path: "/hr/regularisation" },
614
+ { id: "shift_templates", label: "Shift Templates", path: "/hr/shift-templates" },
615
+ { id: "rosters", label: "Roster Builder", path: "/hr/rosters" },
616
+ { id: "shift_exchanges", label: "Shift Exchanges", path: "/hr/shift-exchanges" },
617
+ { id: "shift_allowances", label: "Shift Allowances", path: "/hr/shift-allowances" },
618
+ { id: "leave_types", label: "Leave Types", path: "/hr/leave-types" },
619
+ { id: "holidays", label: "Holidays", path: "/hr/holidays" },
620
+ { id: "leave", label: "Leave Management", path: "/hr/leave" },
621
+ ],
622
+ },
623
+ {
624
+ id: "hr_admin",
625
+ label: "Admin",
626
+ items: [
627
+ { id: "designations", label: "Designations", path: "/hr/designations" },
628
+ ],
629
+ },
630
+ {
631
+ id: "hr_payroll",
632
+ label: "Payroll",
633
+ items: [
634
+ { id: "ot", label: "Overtime", path: "/hr/ot" },
635
+ { id: "ot_policies", label: "OT Policies", path: "/hr/ot-policies" },
636
+ { id: "ot_rate_templates", label: "OT Rate Templates", path: "/hr/ot-rate-templates" },
637
+ ],
638
+ },
639
+ {
640
+ id: "hr_masters",
641
+ label: "Masters",
642
+ items: [
643
+ { id: "skills", label: "Skills", path: "/hr/skills" },
644
+ { id: "qualifications", label: "Qualifications", path: "/hr/qualifications" },
645
+ { id: "holiday_types", label: "Holiday Types", path: "/hr/holiday-types" },
646
+ { id: "break_types", label: "Break Types", path: "/hr/break-types" },
647
+ { id: "option_sets", label: "Option Sets", path: "/hr/option-sets" },
648
+ ],
649
+ },
650
+ ],
651
+ },
573
652
  {
574
653
  id: "jewelry",
575
654
  label: "Jewelry",
@@ -636,6 +715,7 @@ export const APP_MENUS: MainMenuItem[] = [
636
715
  { id: "karigar_scrap_returns", label: "Karigar Dust Returns", path: "/jewelry/karigar-scrap-returns" },
637
716
  { id: "karigar_making_charges", label: "Making Charges", path: "/jewelry/karigar-making-charges" },
638
717
  { id: "party_metal_balances", label: "Party Metal Balances", path: "/jewelry/party-metal-balances" },
718
+ { id: "metal_settlements", label: "Metal Settlements", path: "/jewelry/metal-settlements" },
639
719
  ],
640
720
  },
641
721
  {
@@ -703,14 +783,17 @@ export const APP_MENUS: MainMenuItem[] = [
703
783
  label: "Operations",
704
784
  items: [
705
785
  { id: "money_exchange_pos", label: "Point of Sale", path: "/money-exchange/pos" },
786
+ { id: "money_exchange_transactions", label: "Transactions", path: "/money-exchange/transactions" },
706
787
  ],
707
788
  },
708
789
  {
709
790
  id: "money_exchange_inventory",
710
791
  label: "Inventory & Stock",
711
792
  items: [
712
- { id: "money_exchange_till", label: "Till & Inventory", path: "/money-exchange/till" },
713
- { id: "money_exchange_transfers", label: "Internal Transfers", path: "/money-exchange/transfers" },
793
+ { id: "money_exchange_till", label: "Till", path: "/money-exchange/till" },
794
+ { id: "money_exchange_branch_stock", label: "Vault", path: "/money-exchange/branch-stock" },
795
+ { id: "money_exchange_opening_stock", label: "Opening Stock", path: "/money-exchange/opening-stock" },
796
+ { id: "money_exchange_internal_transfers", label: "Internal Transfers", path: "/money-exchange/internal-transfers" },
714
797
  ],
715
798
  },
716
799
  {