@apptimate/core-lib 2.0.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": "2.0.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',
@@ -571,6 +590,65 @@ export const APP_MENUS: MainMenuItem[] = [
571
590
  },
572
591
  ],
573
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
+ },
574
652
  {
575
653
  id: "jewelry",
576
654
  label: "Jewelry",
@@ -637,6 +715,7 @@ export const APP_MENUS: MainMenuItem[] = [
637
715
  { id: "karigar_scrap_returns", label: "Karigar Dust Returns", path: "/jewelry/karigar-scrap-returns" },
638
716
  { id: "karigar_making_charges", label: "Making Charges", path: "/jewelry/karigar-making-charges" },
639
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" },
640
719
  ],
641
720
  },
642
721
  {
@@ -704,14 +783,17 @@ export const APP_MENUS: MainMenuItem[] = [
704
783
  label: "Operations",
705
784
  items: [
706
785
  { id: "money_exchange_pos", label: "Point of Sale", path: "/money-exchange/pos" },
786
+ { id: "money_exchange_transactions", label: "Transactions", path: "/money-exchange/transactions" },
707
787
  ],
708
788
  },
709
789
  {
710
790
  id: "money_exchange_inventory",
711
791
  label: "Inventory & Stock",
712
792
  items: [
713
- { id: "money_exchange_till", label: "Till & Inventory", path: "/money-exchange/till" },
714
- { 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" },
715
797
  ],
716
798
  },
717
799
  {