@apptimate/core-lib 5.1.0 → 5.3.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 +1 -1
- package/src/constants/menus.ts +21 -4
- package/src/utils/httpClient.ts +1 -1
package/package.json
CHANGED
package/src/constants/menus.ts
CHANGED
|
@@ -111,6 +111,7 @@ export const MENU_ITEM_REGISTRY: RegistryItem[] = [
|
|
|
111
111
|
{ key: 'sales__orders', label: 'Sales Orders', path: '/sales/orders', module: 'Sales', defaultGroup: 'Orders', permission: null },
|
|
112
112
|
{ key: 'sales__goods_issue_notes', label: 'Goods Issue Notes', path: '/sales/delivery-notes', module: 'Sales', defaultGroup: 'Fulfillment', permission: null },
|
|
113
113
|
{ key: 'sales__returns', label: 'Sales Returns', path: '/sales/returns', module: 'Sales', defaultGroup: 'Post-Sales', permission: null },
|
|
114
|
+
{ key: 'sales__invoices', label: 'Sales Invoices', path: '/sales/invoices', module: 'Sales', defaultGroup: 'Post-Sales', permission: null },
|
|
114
115
|
{ key: 'sales__credit_notes', label: 'Credit Notes', path: '/sales/credit-notes', module: 'Sales', defaultGroup: 'Post-Sales', permission: null },
|
|
115
116
|
{ key: 'sales__pos', label: 'POS Terminal', path: '/sales/pos', module: 'Sales', defaultGroup: 'POS', permission: null },
|
|
116
117
|
{ key: 'sales__pos_sessions', label: 'Terminal Sessions', path: '/sales/pos/sessions', module: 'Sales', defaultGroup: 'POS', permission: null },
|
|
@@ -168,7 +169,6 @@ export const MENU_ITEM_REGISTRY: RegistryItem[] = [
|
|
|
168
169
|
{ key: 'jewelry__party_transactions', label: 'Party Transactions', path: '/jewelry/party-transactions', module: 'Jewelry', defaultGroup: 'Karigar', permission: 'jewelry.karigar_transactions.view' },
|
|
169
170
|
{ key: 'jewelry__karigar_orders', label: 'Karigar Orders', path: '/jewelry/karigar-orders', module: 'Jewelry', defaultGroup: 'Karigar', permission: 'jewelry.karigar_orders.view' },
|
|
170
171
|
|
|
171
|
-
{ key: 'jewelry__karigar_making_charges', label: 'Making Charges', path: '/jewelry/karigar-making-charges', module: 'Jewelry', defaultGroup: 'Karigar', permission: 'jewelry.karigar_making_charges.view' },
|
|
172
172
|
{ key: 'jewelry__party_metal_balances', label: 'Party Metal Balances', path: '/jewelry/party-metal-balances', module: 'Jewelry', defaultGroup: 'Karigar', permission: 'jewelry.party_metal_balances.view' },
|
|
173
173
|
{ key: 'jewelry__metal_settlements', label: 'Metal Settlements', path: '/jewelry/metal-settlements', module: 'Jewelry', defaultGroup: 'Karigar', permission: 'metal_settlement.view' },
|
|
174
174
|
{ key: 'jewelry__settings', label: 'Settings', path: '/jewelry/settings', module: 'Jewelry', defaultGroup: 'Configuration', permission: 'jewelry.settings.view' },
|
|
@@ -243,15 +243,23 @@ export const MENU_ITEM_REGISTRY: RegistryItem[] = [
|
|
|
243
243
|
{ key: 'construction__projects', label: 'Projects', path: '/construction/projects', module: 'Construction', defaultGroup: 'Core Setup & Planning', permission: null },
|
|
244
244
|
{ key: 'construction__rate_cards', label: 'Rate Cards', path: '/construction/rate-cards', module: 'Construction', defaultGroup: 'Core Setup & Planning', permission: null },
|
|
245
245
|
{ key: 'construction__schedule_calendar', label: 'Resource Calendar', path: '/construction/scheduling/calendar', module: 'Construction', defaultGroup: 'Core Setup & Planning', permission: null },
|
|
246
|
+
{ key: 'construction__hierarchy', label: 'Hierarchy', path: '/construction/hierarchy', module: 'Construction', defaultGroup: 'Core Setup & Planning', permission: null },
|
|
247
|
+
{ key: 'construction__team', label: 'Team', path: '/construction/team', module: 'Construction', defaultGroup: 'Core Setup & Planning', permission: null },
|
|
248
|
+
{ key: 'construction__budget', label: 'Budget', path: '/construction/budget', module: 'Construction', defaultGroup: 'Core Setup & Planning', permission: null },
|
|
246
249
|
|
|
247
250
|
{ key: 'construction__main_contract', label: 'Main Contract', path: '/construction/contracts/main-contract', module: 'Construction', defaultGroup: 'Contracts & Billing', permission: null },
|
|
248
251
|
{ key: 'construction__subcontractors', label: 'Subcontractors', path: '/construction/contracts/subcontractors', module: 'Construction', defaultGroup: 'Contracts & Billing', permission: null },
|
|
249
|
-
{ key: 'construction__ipcs', label: 'Progress Billing', path: '/construction/contracts/
|
|
252
|
+
{ key: 'construction__ipcs', label: 'Progress Billing', path: '/construction/contracts/progress-billing', module: 'Construction', defaultGroup: 'Contracts & Billing', permission: null },
|
|
250
253
|
{ key: 'construction__variations', label: 'Subcontractor Variations', path: '/construction/variations', module: 'Construction', defaultGroup: 'Contracts & Billing', permission: null },
|
|
254
|
+
{ key: 'construction__boq', label: 'Bill of Quantities (BOQ)', path: '/construction/boq', module: 'Construction', defaultGroup: 'Commercials & BOQ', permission: null },
|
|
255
|
+
{ key: 'construction__boq_revisions', label: 'BOQ Revisions', path: '/construction/boq/revisions', module: 'Construction', defaultGroup: 'Commercials & BOQ', permission: null },
|
|
256
|
+
{ key: 'construction__assemblies', label: 'Assemblies', path: '/construction/assemblies', module: 'Construction', defaultGroup: 'Commercials & BOQ', permission: null },
|
|
257
|
+
{ key: 'construction__assembly_groups', label: 'Assembly Groups', path: '/construction/assembly-groups', module: 'Construction', defaultGroup: 'Commercials & BOQ', permission: null },
|
|
251
258
|
|
|
252
259
|
|
|
253
260
|
|
|
254
261
|
{ key: 'construction__workforce', label: 'Workforce Master', path: '/construction/workforce', module: 'Construction', defaultGroup: 'Workforce', permission: null },
|
|
262
|
+
{ key: 'construction__workforce_allocation', label: 'Workforce Allocation', path: '/construction/workforce/allocation', module: 'Construction', defaultGroup: 'Workforce', permission: null },
|
|
255
263
|
{ key: 'construction__shifts', label: 'Shift Master', path: '/construction/shifts', module: 'Construction', defaultGroup: 'Workforce', permission: null },
|
|
256
264
|
{ key: 'construction__attendance', label: 'Attendance & Timesheets', path: '/construction/attendance', module: 'Construction', defaultGroup: 'Workforce', permission: null },
|
|
257
265
|
|
|
@@ -264,6 +272,7 @@ export const MENU_ITEM_REGISTRY: RegistryItem[] = [
|
|
|
264
272
|
{ key: 'construction__dsr', label: 'Daily Site Reports', path: '/construction/site-execution/dsr', module: 'Construction', defaultGroup: 'Site Execution', permission: null },
|
|
265
273
|
{ key: 'construction__progress', label: 'Progress Measurement', path: '/construction/site-execution/progress', module: 'Construction', defaultGroup: 'Site Execution', permission: null },
|
|
266
274
|
{ key: 'construction__subcontractor_progress', label: 'Subcontractor Progress', path: '/construction/site-execution/subcontractor-progress', module: 'Construction', defaultGroup: 'Site Execution', permission: null },
|
|
275
|
+
{ key: 'construction__change_orders', label: 'Change Orders', path: '/construction/change-orders', module: 'Construction', defaultGroup: 'Site Execution', permission: null },
|
|
267
276
|
|
|
268
277
|
{ key: 'construction__quality_ir', label: 'Inspection Requests', path: '/construction/quality/ir', module: 'Construction', defaultGroup: 'Quality & Safety', permission: null },
|
|
269
278
|
{ key: 'construction__quality_ncr', label: 'Non-Conformance Reports', path: '/construction/quality/ncr', module: 'Construction', defaultGroup: 'Quality & Safety', permission: null },
|
|
@@ -391,7 +400,7 @@ export const MENU_PRESETS: MenuPreset[] = [
|
|
|
391
400
|
secondaryItems: [
|
|
392
401
|
'sales__price_lists',
|
|
393
402
|
'sales__quotations', 'sales__orders', 'sales__goods_issue_notes',
|
|
394
|
-
'sales__returns', 'sales__credit_notes',
|
|
403
|
+
'sales__invoices', 'sales__returns', 'sales__credit_notes',
|
|
395
404
|
'sales__pos', 'sales__pos_sessions',
|
|
396
405
|
'sales__settings'
|
|
397
406
|
],
|
|
@@ -431,7 +440,6 @@ export const MENU_PRESETS: MenuPreset[] = [
|
|
|
431
440
|
'jewelry__party_transactions',
|
|
432
441
|
'jewelry__karigar_orders',
|
|
433
442
|
|
|
434
|
-
'jewelry__karigar_making_charges',
|
|
435
443
|
'jewelry__party_metal_balances',
|
|
436
444
|
'jewelry__metal_settlements',
|
|
437
445
|
'jewelry__reports',
|
|
@@ -503,6 +511,9 @@ export const MENU_PRESETS: MenuPreset[] = [
|
|
|
503
511
|
'construction__dashboard',
|
|
504
512
|
'construction__projects',
|
|
505
513
|
'construction__rate_cards',
|
|
514
|
+
'construction__hierarchy',
|
|
515
|
+
'construction__team',
|
|
516
|
+
'construction__budget',
|
|
506
517
|
'construction__mtrs',
|
|
507
518
|
'construction__prs',
|
|
508
519
|
'construction__pos',
|
|
@@ -511,7 +522,12 @@ export const MENU_PRESETS: MenuPreset[] = [
|
|
|
511
522
|
'construction__site_issues',
|
|
512
523
|
'construction__wastage_returns',
|
|
513
524
|
'construction__variations',
|
|
525
|
+
'construction__boq',
|
|
526
|
+
'construction__boq_revisions',
|
|
527
|
+
'construction__assemblies',
|
|
528
|
+
'construction__assembly_groups',
|
|
514
529
|
'construction__workforce',
|
|
530
|
+
'construction__workforce_allocation',
|
|
515
531
|
'construction__shifts',
|
|
516
532
|
'construction__attendance',
|
|
517
533
|
'construction__equipment_types',
|
|
@@ -526,6 +542,7 @@ export const MENU_PRESETS: MenuPreset[] = [
|
|
|
526
542
|
'construction__dsr',
|
|
527
543
|
'construction__progress',
|
|
528
544
|
'construction__subcontractor_progress',
|
|
545
|
+
'construction__change_orders',
|
|
529
546
|
'construction__drawings',
|
|
530
547
|
'construction__transmittals',
|
|
531
548
|
'construction__rfis',
|
package/src/utils/httpClient.ts
CHANGED
|
@@ -51,7 +51,7 @@ export interface ClientResponse<T = any> {
|
|
|
51
51
|
responseData: IApiResponse<T>;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
function buildBrowserProxyUrl(rawUrl: string): string {
|
|
54
|
+
export function buildBrowserProxyUrl(rawUrl: string): string {
|
|
55
55
|
if (typeof window === 'undefined') {
|
|
56
56
|
return rawUrl;
|
|
57
57
|
}
|