@litusarchieve18/agricore-utils 1.0.18 → 1.0.20
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/README.md +5 -1
- package/dist/{chunk-HF6OEJ4G.mjs → chunk-XD36URZU.mjs} +63 -4
- package/dist/{constants-D70qwu34.d.mts → constants-C_Pwif6Q.d.mts} +12 -0
- package/dist/{constants-D70qwu34.d.ts → constants-C_Pwif6Q.d.ts} +12 -0
- package/dist/constants.d.mts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +63 -4
- package/dist/constants.mjs +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +63 -4
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -183,7 +183,11 @@ Run the publish command:
|
|
|
183
183
|
Bash
|
|
184
184
|
npm publish --access public
|
|
185
185
|
📝 Version History
|
|
186
|
-
V1.0.
|
|
186
|
+
V1.0.20 — add inventory access reconcile
|
|
187
|
+
|
|
188
|
+
V1.0.19 — refactor inventory access in RESOURCE_PATHS
|
|
189
|
+
|
|
190
|
+
V1.0.18 — refactor menu structure
|
|
187
191
|
|
|
188
192
|
V1.0.17 — refactor type and enum
|
|
189
193
|
|
|
@@ -345,15 +345,31 @@ var RESOURCE_PATHS = {
|
|
|
345
345
|
// ── Operations ────────────────────────────────────────────────────────────
|
|
346
346
|
farmManagement: "operations.farmManagement",
|
|
347
347
|
packhouse: "operations.packhouse",
|
|
348
|
+
// ── Inventory ────────────────────────────────────────────────────────────
|
|
349
|
+
// === Consumables ===
|
|
348
350
|
inventoryConsumableProduct: "inventory.consumable.product",
|
|
349
351
|
inventoryConsumableStock: "inventory.consumable.stock",
|
|
352
|
+
inventoryConsumableStockEditThreshold: "inventory.consumable.stock.editThreshold",
|
|
353
|
+
inventoryConsumableStockReconcile: "inventory.consumable.stock.reconcile",
|
|
350
354
|
inventoryConsumableStockMovement: "inventory.consumable.stockMovement",
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
355
|
+
inventoryConsumableStockMovementTransfer: "inventory.consumable.stockMovement.transfer",
|
|
356
|
+
inventoryConsumableStockMovementPurchase: "inventory.consumable.stockMovement.purchase",
|
|
357
|
+
// === Chemicals ===
|
|
358
|
+
inventoryChemicalProduct: "inventory.chemical.product",
|
|
359
|
+
inventoryChemicalStock: "inventory.chemical.stock",
|
|
360
|
+
inventoryChemicalStockEditThreshold: "inventory.chemical.stock.editThreshold",
|
|
361
|
+
inventoryChemicalStockReconcile: "inventory.chemical.stock.reconcile",
|
|
362
|
+
inventoryChemicalStockMovement: "inventory.chemical.stockMovement",
|
|
363
|
+
inventoryChemicalStockMovementTransfer: "inventory.chemical.stockMovement.transfer",
|
|
364
|
+
inventoryChemicalStockMovementPurchase: "inventory.chemical.stockMovement.purchase",
|
|
365
|
+
// === Maintenance Parts ===
|
|
354
366
|
inventoryMaintenancePartProduct: "inventory.maintenancePart.product",
|
|
355
367
|
inventoryMaintenancePartStock: "inventory.maintenancePart.stock",
|
|
368
|
+
inventoryMaintenancePartStockEditThreshold: "inventory.maintenancePart.stock.editThreshold",
|
|
369
|
+
inventoryMaintenancePartStockReconcile: "inventory.maintenancePart.stock.reconcile",
|
|
356
370
|
inventoryMaintenancePartStockMovement: "inventory.maintenancePart.stockMovement",
|
|
371
|
+
inventoryMaintenancePartStockMovementTransfer: "inventory.maintenancePart.stockMovement.transfer",
|
|
372
|
+
inventoryMaintenancePartStockMovementPurchase: "inventory.maintenancePart.stockMovement.purchase",
|
|
357
373
|
accommodation: "operations.accommodation",
|
|
358
374
|
// ── Equipment & Fleet ──────────────────────────────────────────────────────
|
|
359
375
|
equipPreStart: "equipment.preStart",
|
|
@@ -467,16 +483,59 @@ var RESOURCE_REQUIREMENTS = {
|
|
|
467
483
|
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR],
|
|
468
484
|
requiredPrivileges: [UserPrivilege.ADMIN, UserPrivilege.AUDIT_COMPLIANCE, UserPrivilege.FINANCE, UserPrivilege.HR]
|
|
469
485
|
},
|
|
486
|
+
// CONSUMABLES PERMISSIONS
|
|
470
487
|
[RESOURCE_PATHS.inventoryConsumableProduct]: {
|
|
471
488
|
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
|
|
472
489
|
},
|
|
473
490
|
[RESOURCE_PATHS.inventoryConsumableStock]: { allowedRoles: EVERYONE },
|
|
474
|
-
[RESOURCE_PATHS.
|
|
491
|
+
[RESOURCE_PATHS.inventoryConsumableStockEditThreshold]: {
|
|
492
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER]
|
|
493
|
+
},
|
|
494
|
+
[RESOURCE_PATHS.inventoryConsumableStockReconcile]: {
|
|
495
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
|
|
496
|
+
},
|
|
497
|
+
[RESOURCE_PATHS.inventoryConsumableStockMovement]: { allowedRoles: EVERYONE },
|
|
498
|
+
[RESOURCE_PATHS.inventoryConsumableStockMovementTransfer]: {
|
|
499
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
|
|
500
|
+
},
|
|
501
|
+
[RESOURCE_PATHS.inventoryConsumableStockMovementPurchase]: {
|
|
502
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER]
|
|
503
|
+
},
|
|
504
|
+
// CHEMICALS PERMISSIONS
|
|
475
505
|
[RESOURCE_PATHS.inventoryChemicalProduct]: {
|
|
476
506
|
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
|
|
477
507
|
},
|
|
478
508
|
[RESOURCE_PATHS.inventoryChemicalStock]: { allowedRoles: EVERYONE },
|
|
509
|
+
[RESOURCE_PATHS.inventoryChemicalStockEditThreshold]: {
|
|
510
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER]
|
|
511
|
+
},
|
|
512
|
+
[RESOURCE_PATHS.inventoryChemicalStockReconcile]: {
|
|
513
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
|
|
514
|
+
},
|
|
479
515
|
[RESOURCE_PATHS.inventoryChemicalStockMovement]: { allowedRoles: EVERYONE },
|
|
516
|
+
[RESOURCE_PATHS.inventoryChemicalStockMovementTransfer]: {
|
|
517
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
|
|
518
|
+
},
|
|
519
|
+
[RESOURCE_PATHS.inventoryChemicalStockMovementPurchase]: {
|
|
520
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER]
|
|
521
|
+
},
|
|
522
|
+
[RESOURCE_PATHS.inventoryMaintenancePartProduct]: {
|
|
523
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
|
|
524
|
+
},
|
|
525
|
+
[RESOURCE_PATHS.inventoryMaintenancePartStock]: { allowedRoles: EVERYONE },
|
|
526
|
+
[RESOURCE_PATHS.inventoryMaintenancePartStockEditThreshold]: {
|
|
527
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER]
|
|
528
|
+
},
|
|
529
|
+
[RESOURCE_PATHS.inventoryMaintenancePartStockReconcile]: {
|
|
530
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
|
|
531
|
+
},
|
|
532
|
+
[RESOURCE_PATHS.inventoryMaintenancePartStockMovement]: { allowedRoles: EVERYONE },
|
|
533
|
+
[RESOURCE_PATHS.inventoryMaintenancePartStockMovementPurchase]: {
|
|
534
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER]
|
|
535
|
+
},
|
|
536
|
+
[RESOURCE_PATHS.inventoryMaintenancePartStockMovementPurchase]: {
|
|
537
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER]
|
|
538
|
+
},
|
|
480
539
|
// ── Admin Settings ─────────────────────────────────────────────────────────
|
|
481
540
|
[RESOURCE_PATHS.adminUserRoster]: {
|
|
482
541
|
allowedRoles: [UserRole.OWNER],
|
|
@@ -432,13 +432,25 @@ declare const RESOURCE_PATHS: {
|
|
|
432
432
|
packhouse: string;
|
|
433
433
|
inventoryConsumableProduct: string;
|
|
434
434
|
inventoryConsumableStock: string;
|
|
435
|
+
inventoryConsumableStockEditThreshold: string;
|
|
436
|
+
inventoryConsumableStockReconcile: string;
|
|
435
437
|
inventoryConsumableStockMovement: string;
|
|
438
|
+
inventoryConsumableStockMovementTransfer: string;
|
|
439
|
+
inventoryConsumableStockMovementPurchase: string;
|
|
436
440
|
inventoryChemicalProduct: string;
|
|
437
441
|
inventoryChemicalStock: string;
|
|
442
|
+
inventoryChemicalStockEditThreshold: string;
|
|
443
|
+
inventoryChemicalStockReconcile: string;
|
|
438
444
|
inventoryChemicalStockMovement: string;
|
|
445
|
+
inventoryChemicalStockMovementTransfer: string;
|
|
446
|
+
inventoryChemicalStockMovementPurchase: string;
|
|
439
447
|
inventoryMaintenancePartProduct: string;
|
|
440
448
|
inventoryMaintenancePartStock: string;
|
|
449
|
+
inventoryMaintenancePartStockEditThreshold: string;
|
|
450
|
+
inventoryMaintenancePartStockReconcile: string;
|
|
441
451
|
inventoryMaintenancePartStockMovement: string;
|
|
452
|
+
inventoryMaintenancePartStockMovementTransfer: string;
|
|
453
|
+
inventoryMaintenancePartStockMovementPurchase: string;
|
|
442
454
|
accommodation: string;
|
|
443
455
|
equipPreStart: string;
|
|
444
456
|
equipMaintenance: string;
|
|
@@ -432,13 +432,25 @@ declare const RESOURCE_PATHS: {
|
|
|
432
432
|
packhouse: string;
|
|
433
433
|
inventoryConsumableProduct: string;
|
|
434
434
|
inventoryConsumableStock: string;
|
|
435
|
+
inventoryConsumableStockEditThreshold: string;
|
|
436
|
+
inventoryConsumableStockReconcile: string;
|
|
435
437
|
inventoryConsumableStockMovement: string;
|
|
438
|
+
inventoryConsumableStockMovementTransfer: string;
|
|
439
|
+
inventoryConsumableStockMovementPurchase: string;
|
|
436
440
|
inventoryChemicalProduct: string;
|
|
437
441
|
inventoryChemicalStock: string;
|
|
442
|
+
inventoryChemicalStockEditThreshold: string;
|
|
443
|
+
inventoryChemicalStockReconcile: string;
|
|
438
444
|
inventoryChemicalStockMovement: string;
|
|
445
|
+
inventoryChemicalStockMovementTransfer: string;
|
|
446
|
+
inventoryChemicalStockMovementPurchase: string;
|
|
439
447
|
inventoryMaintenancePartProduct: string;
|
|
440
448
|
inventoryMaintenancePartStock: string;
|
|
449
|
+
inventoryMaintenancePartStockEditThreshold: string;
|
|
450
|
+
inventoryMaintenancePartStockReconcile: string;
|
|
441
451
|
inventoryMaintenancePartStockMovement: string;
|
|
452
|
+
inventoryMaintenancePartStockMovementTransfer: string;
|
|
453
|
+
inventoryMaintenancePartStockMovementPurchase: string;
|
|
442
454
|
accommodation: string;
|
|
443
455
|
equipPreStart: string;
|
|
444
456
|
equipMaintenance: string;
|
package/dist/constants.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as ACCESS_RANK, a as ACT, b as AccessLevel, e as ApprovalStatus, f as ApprovalType, g as AuditStatus, h as AuditType, B as BarcodeNamespace, l as BarcodeType, C as CAR_SUPPORTED_EVIDENCE_MIME_TYPES, o as CAR_SUPPORTED_SIGNATURE_MIME_TYPES, p as CAT, q as CATEGORY_TABS, r as CORRECTIVE_ACTION_GENERATION_SOURCES, s as CORRECTIVE_ACTION_STATUSES, x as CatalogSyncStatus, G as CropCycleStatus, H as DOCUMENT_DISPLAY_INFO, I as DOCUMENT_MENU_MAP, J as DocumentCategory, K as DocumentType, L as ERROR_DICTIONARY, M as EVERYONE, N as EmitterType, O as EnabledModule, P as FORM_REGISTRY, Q as FacilityType, T as HarvestMethod, V as LinkedStatus, W as MOD, X as MODULE_LABELS, Y as MicroclimateZone, Z as MimeType, _ as ModCode, $ as NettingType, a1 as NotificationMode, a2 as OrderStatus, a4 as PhysicalState, a5 as PlantingMethod, a6 as ProductType, a8 as ProductUnit, aa as RESOURCE_MODULE_MAP, ab as RESOURCE_PATHS, ac as RESOURCE_REQUIREMENTS, ad as ROLE_SECTIONS_BY_KEY, ae as RelationshipType, ah as ResourceRequirement, ai as RowOrientation, aj as SENTINEL_UUID, ak as SIGNATURE_MODES, ao as SoilTexture, ap as StockPolicyTier, ar as StoragePhases, at as TASK_TYPE_REGISTRY, au as TEMPLATE_SCOPE_LEVELS, aw as TargetEntityType, ax as TaskStatus, ay as TaskType, aB as TransactionType, aC as TrellisType, aD as UserPrivilege, aE as UserRole, aG as VigorRating, aH as WaterSource } from './constants-
|
|
1
|
+
export { A as ACCESS_RANK, a as ACT, b as AccessLevel, e as ApprovalStatus, f as ApprovalType, g as AuditStatus, h as AuditType, B as BarcodeNamespace, l as BarcodeType, C as CAR_SUPPORTED_EVIDENCE_MIME_TYPES, o as CAR_SUPPORTED_SIGNATURE_MIME_TYPES, p as CAT, q as CATEGORY_TABS, r as CORRECTIVE_ACTION_GENERATION_SOURCES, s as CORRECTIVE_ACTION_STATUSES, x as CatalogSyncStatus, G as CropCycleStatus, H as DOCUMENT_DISPLAY_INFO, I as DOCUMENT_MENU_MAP, J as DocumentCategory, K as DocumentType, L as ERROR_DICTIONARY, M as EVERYONE, N as EmitterType, O as EnabledModule, P as FORM_REGISTRY, Q as FacilityType, T as HarvestMethod, V as LinkedStatus, W as MOD, X as MODULE_LABELS, Y as MicroclimateZone, Z as MimeType, _ as ModCode, $ as NettingType, a1 as NotificationMode, a2 as OrderStatus, a4 as PhysicalState, a5 as PlantingMethod, a6 as ProductType, a8 as ProductUnit, aa as RESOURCE_MODULE_MAP, ab as RESOURCE_PATHS, ac as RESOURCE_REQUIREMENTS, ad as ROLE_SECTIONS_BY_KEY, ae as RelationshipType, ah as ResourceRequirement, ai as RowOrientation, aj as SENTINEL_UUID, ak as SIGNATURE_MODES, ao as SoilTexture, ap as StockPolicyTier, ar as StoragePhases, at as TASK_TYPE_REGISTRY, au as TEMPLATE_SCOPE_LEVELS, aw as TargetEntityType, ax as TaskStatus, ay as TaskType, aB as TransactionType, aC as TrellisType, aD as UserPrivilege, aE as UserRole, aG as VigorRating, aH as WaterSource } from './constants-C_Pwif6Q.mjs';
|
package/dist/constants.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as ACCESS_RANK, a as ACT, b as AccessLevel, e as ApprovalStatus, f as ApprovalType, g as AuditStatus, h as AuditType, B as BarcodeNamespace, l as BarcodeType, C as CAR_SUPPORTED_EVIDENCE_MIME_TYPES, o as CAR_SUPPORTED_SIGNATURE_MIME_TYPES, p as CAT, q as CATEGORY_TABS, r as CORRECTIVE_ACTION_GENERATION_SOURCES, s as CORRECTIVE_ACTION_STATUSES, x as CatalogSyncStatus, G as CropCycleStatus, H as DOCUMENT_DISPLAY_INFO, I as DOCUMENT_MENU_MAP, J as DocumentCategory, K as DocumentType, L as ERROR_DICTIONARY, M as EVERYONE, N as EmitterType, O as EnabledModule, P as FORM_REGISTRY, Q as FacilityType, T as HarvestMethod, V as LinkedStatus, W as MOD, X as MODULE_LABELS, Y as MicroclimateZone, Z as MimeType, _ as ModCode, $ as NettingType, a1 as NotificationMode, a2 as OrderStatus, a4 as PhysicalState, a5 as PlantingMethod, a6 as ProductType, a8 as ProductUnit, aa as RESOURCE_MODULE_MAP, ab as RESOURCE_PATHS, ac as RESOURCE_REQUIREMENTS, ad as ROLE_SECTIONS_BY_KEY, ae as RelationshipType, ah as ResourceRequirement, ai as RowOrientation, aj as SENTINEL_UUID, ak as SIGNATURE_MODES, ao as SoilTexture, ap as StockPolicyTier, ar as StoragePhases, at as TASK_TYPE_REGISTRY, au as TEMPLATE_SCOPE_LEVELS, aw as TargetEntityType, ax as TaskStatus, ay as TaskType, aB as TransactionType, aC as TrellisType, aD as UserPrivilege, aE as UserRole, aG as VigorRating, aH as WaterSource } from './constants-
|
|
1
|
+
export { A as ACCESS_RANK, a as ACT, b as AccessLevel, e as ApprovalStatus, f as ApprovalType, g as AuditStatus, h as AuditType, B as BarcodeNamespace, l as BarcodeType, C as CAR_SUPPORTED_EVIDENCE_MIME_TYPES, o as CAR_SUPPORTED_SIGNATURE_MIME_TYPES, p as CAT, q as CATEGORY_TABS, r as CORRECTIVE_ACTION_GENERATION_SOURCES, s as CORRECTIVE_ACTION_STATUSES, x as CatalogSyncStatus, G as CropCycleStatus, H as DOCUMENT_DISPLAY_INFO, I as DOCUMENT_MENU_MAP, J as DocumentCategory, K as DocumentType, L as ERROR_DICTIONARY, M as EVERYONE, N as EmitterType, O as EnabledModule, P as FORM_REGISTRY, Q as FacilityType, T as HarvestMethod, V as LinkedStatus, W as MOD, X as MODULE_LABELS, Y as MicroclimateZone, Z as MimeType, _ as ModCode, $ as NettingType, a1 as NotificationMode, a2 as OrderStatus, a4 as PhysicalState, a5 as PlantingMethod, a6 as ProductType, a8 as ProductUnit, aa as RESOURCE_MODULE_MAP, ab as RESOURCE_PATHS, ac as RESOURCE_REQUIREMENTS, ad as ROLE_SECTIONS_BY_KEY, ae as RelationshipType, ah as ResourceRequirement, ai as RowOrientation, aj as SENTINEL_UUID, ak as SIGNATURE_MODES, ao as SoilTexture, ap as StockPolicyTier, ar as StoragePhases, at as TASK_TYPE_REGISTRY, au as TEMPLATE_SCOPE_LEVELS, aw as TargetEntityType, ax as TaskStatus, ay as TaskType, aB as TransactionType, aC as TrellisType, aD as UserPrivilege, aE as UserRole, aG as VigorRating, aH as WaterSource } from './constants-C_Pwif6Q.js';
|
package/dist/constants.js
CHANGED
|
@@ -430,15 +430,31 @@ var RESOURCE_PATHS = {
|
|
|
430
430
|
// ── Operations ────────────────────────────────────────────────────────────
|
|
431
431
|
farmManagement: "operations.farmManagement",
|
|
432
432
|
packhouse: "operations.packhouse",
|
|
433
|
+
// ── Inventory ────────────────────────────────────────────────────────────
|
|
434
|
+
// === Consumables ===
|
|
433
435
|
inventoryConsumableProduct: "inventory.consumable.product",
|
|
434
436
|
inventoryConsumableStock: "inventory.consumable.stock",
|
|
437
|
+
inventoryConsumableStockEditThreshold: "inventory.consumable.stock.editThreshold",
|
|
438
|
+
inventoryConsumableStockReconcile: "inventory.consumable.stock.reconcile",
|
|
435
439
|
inventoryConsumableStockMovement: "inventory.consumable.stockMovement",
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
440
|
+
inventoryConsumableStockMovementTransfer: "inventory.consumable.stockMovement.transfer",
|
|
441
|
+
inventoryConsumableStockMovementPurchase: "inventory.consumable.stockMovement.purchase",
|
|
442
|
+
// === Chemicals ===
|
|
443
|
+
inventoryChemicalProduct: "inventory.chemical.product",
|
|
444
|
+
inventoryChemicalStock: "inventory.chemical.stock",
|
|
445
|
+
inventoryChemicalStockEditThreshold: "inventory.chemical.stock.editThreshold",
|
|
446
|
+
inventoryChemicalStockReconcile: "inventory.chemical.stock.reconcile",
|
|
447
|
+
inventoryChemicalStockMovement: "inventory.chemical.stockMovement",
|
|
448
|
+
inventoryChemicalStockMovementTransfer: "inventory.chemical.stockMovement.transfer",
|
|
449
|
+
inventoryChemicalStockMovementPurchase: "inventory.chemical.stockMovement.purchase",
|
|
450
|
+
// === Maintenance Parts ===
|
|
439
451
|
inventoryMaintenancePartProduct: "inventory.maintenancePart.product",
|
|
440
452
|
inventoryMaintenancePartStock: "inventory.maintenancePart.stock",
|
|
453
|
+
inventoryMaintenancePartStockEditThreshold: "inventory.maintenancePart.stock.editThreshold",
|
|
454
|
+
inventoryMaintenancePartStockReconcile: "inventory.maintenancePart.stock.reconcile",
|
|
441
455
|
inventoryMaintenancePartStockMovement: "inventory.maintenancePart.stockMovement",
|
|
456
|
+
inventoryMaintenancePartStockMovementTransfer: "inventory.maintenancePart.stockMovement.transfer",
|
|
457
|
+
inventoryMaintenancePartStockMovementPurchase: "inventory.maintenancePart.stockMovement.purchase",
|
|
442
458
|
accommodation: "operations.accommodation",
|
|
443
459
|
// ── Equipment & Fleet ──────────────────────────────────────────────────────
|
|
444
460
|
equipPreStart: "equipment.preStart",
|
|
@@ -552,16 +568,59 @@ var RESOURCE_REQUIREMENTS = {
|
|
|
552
568
|
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR],
|
|
553
569
|
requiredPrivileges: [UserPrivilege.ADMIN, UserPrivilege.AUDIT_COMPLIANCE, UserPrivilege.FINANCE, UserPrivilege.HR]
|
|
554
570
|
},
|
|
571
|
+
// CONSUMABLES PERMISSIONS
|
|
555
572
|
[RESOURCE_PATHS.inventoryConsumableProduct]: {
|
|
556
573
|
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
|
|
557
574
|
},
|
|
558
575
|
[RESOURCE_PATHS.inventoryConsumableStock]: { allowedRoles: EVERYONE },
|
|
559
|
-
[RESOURCE_PATHS.
|
|
576
|
+
[RESOURCE_PATHS.inventoryConsumableStockEditThreshold]: {
|
|
577
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER]
|
|
578
|
+
},
|
|
579
|
+
[RESOURCE_PATHS.inventoryConsumableStockReconcile]: {
|
|
580
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
|
|
581
|
+
},
|
|
582
|
+
[RESOURCE_PATHS.inventoryConsumableStockMovement]: { allowedRoles: EVERYONE },
|
|
583
|
+
[RESOURCE_PATHS.inventoryConsumableStockMovementTransfer]: {
|
|
584
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
|
|
585
|
+
},
|
|
586
|
+
[RESOURCE_PATHS.inventoryConsumableStockMovementPurchase]: {
|
|
587
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER]
|
|
588
|
+
},
|
|
589
|
+
// CHEMICALS PERMISSIONS
|
|
560
590
|
[RESOURCE_PATHS.inventoryChemicalProduct]: {
|
|
561
591
|
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
|
|
562
592
|
},
|
|
563
593
|
[RESOURCE_PATHS.inventoryChemicalStock]: { allowedRoles: EVERYONE },
|
|
594
|
+
[RESOURCE_PATHS.inventoryChemicalStockEditThreshold]: {
|
|
595
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER]
|
|
596
|
+
},
|
|
597
|
+
[RESOURCE_PATHS.inventoryChemicalStockReconcile]: {
|
|
598
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
|
|
599
|
+
},
|
|
564
600
|
[RESOURCE_PATHS.inventoryChemicalStockMovement]: { allowedRoles: EVERYONE },
|
|
601
|
+
[RESOURCE_PATHS.inventoryChemicalStockMovementTransfer]: {
|
|
602
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
|
|
603
|
+
},
|
|
604
|
+
[RESOURCE_PATHS.inventoryChemicalStockMovementPurchase]: {
|
|
605
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER]
|
|
606
|
+
},
|
|
607
|
+
[RESOURCE_PATHS.inventoryMaintenancePartProduct]: {
|
|
608
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
|
|
609
|
+
},
|
|
610
|
+
[RESOURCE_PATHS.inventoryMaintenancePartStock]: { allowedRoles: EVERYONE },
|
|
611
|
+
[RESOURCE_PATHS.inventoryMaintenancePartStockEditThreshold]: {
|
|
612
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER]
|
|
613
|
+
},
|
|
614
|
+
[RESOURCE_PATHS.inventoryMaintenancePartStockReconcile]: {
|
|
615
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
|
|
616
|
+
},
|
|
617
|
+
[RESOURCE_PATHS.inventoryMaintenancePartStockMovement]: { allowedRoles: EVERYONE },
|
|
618
|
+
[RESOURCE_PATHS.inventoryMaintenancePartStockMovementPurchase]: {
|
|
619
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER]
|
|
620
|
+
},
|
|
621
|
+
[RESOURCE_PATHS.inventoryMaintenancePartStockMovementPurchase]: {
|
|
622
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER]
|
|
623
|
+
},
|
|
565
624
|
// ── Admin Settings ─────────────────────────────────────────────────────────
|
|
566
625
|
[RESOURCE_PATHS.adminUserRoster]: {
|
|
567
626
|
allowedRoles: [UserRole.OWNER],
|
package/dist/constants.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as AgriCoreSession, aF as UserRoleType, ah as ResourceRequirement, c as AccessLevelType, j as AvailableScope, U as InfrastructureFields, S as FormMeta, av as TabConfig, af as ResolvedError } from './constants-
|
|
2
|
-
export { A as ACCESS_RANK, a as ACT, b as AccessLevel, e as ApprovalStatus, f as ApprovalType, g as AuditStatus, h as AuditType, i as AuthScopeFields, B as BarcodeNamespace, k as BarcodeNamespaceType, l as BarcodeType, m as BarcodeTypeType, n as Base44Id, C as CAR_SUPPORTED_EVIDENCE_MIME_TYPES, o as CAR_SUPPORTED_SIGNATURE_MIME_TYPES, p as CAT, q as CATEGORY_TABS, r as CORRECTIVE_ACTION_GENERATION_SOURCES, s as CORRECTIVE_ACTION_STATUSES, t as CanonicalId, u as CarSupportedEvidenceMimeType, v as CarSupportedSignatureMimeType, w as CarTemplateFileMetadata, x as CatalogSyncStatus, y as CatalogSyncStatusType, z as CompanyConfig, D as CorrectiveActionCompileTaskMetadata, E as CorrectiveActionGenerationSource, F as CorrectiveActionStatus, G as CropCycleStatus, H as DOCUMENT_DISPLAY_INFO, I as DOCUMENT_MENU_MAP, J as DocumentCategory, K as DocumentType, L as ERROR_DICTIONARY, M as EVERYONE, N as EmitterType, O as EnabledModule, P as FORM_REGISTRY, Q as FacilityType, R as FileUploadTaskType, T as HarvestMethod, V as LinkedStatus, W as MOD, X as MODULE_LABELS, Y as MicroclimateZone, Z as MimeType, _ as ModCode, $ as NettingType, a0 as NormalizedSignatureValue, a1 as NotificationMode, a2 as OrderStatus, a3 as PermissionLevel, a4 as PhysicalState, a5 as PlantingMethod, a6 as ProductType, a7 as ProductTypeType, a8 as ProductUnit, a9 as ProductUnitType, aa as RESOURCE_MODULE_MAP, ab as RESOURCE_PATHS, ac as RESOURCE_REQUIREMENTS, ad as ROLE_SECTIONS_BY_KEY, ae as RelationshipType, ag as ResourceOverrides, ai as RowOrientation, aj as SENTINEL_UUID, ak as SIGNATURE_MODES, al as ScopeType, am as SignatureInput, an as SignatureMode, ao as SoilTexture, ap as StockPolicyTier, aq as StockPolicyTierType, ar as StoragePhases, as as StorageType, at as TASK_TYPE_REGISTRY, au as TEMPLATE_SCOPE_LEVELS, aw as TargetEntityType, ax as TaskStatus, ay as TaskType, az as TaskTypeConfig, aA as TemplateScopeLevel, aB as TransactionType, aC as TrellisType, aD as UserPrivilege, aE as UserRole, aG as VigorRating, aH as WaterSource } from './constants-
|
|
1
|
+
import { d as AgriCoreSession, aF as UserRoleType, ah as ResourceRequirement, c as AccessLevelType, j as AvailableScope, U as InfrastructureFields, S as FormMeta, av as TabConfig, af as ResolvedError } from './constants-C_Pwif6Q.mjs';
|
|
2
|
+
export { A as ACCESS_RANK, a as ACT, b as AccessLevel, e as ApprovalStatus, f as ApprovalType, g as AuditStatus, h as AuditType, i as AuthScopeFields, B as BarcodeNamespace, k as BarcodeNamespaceType, l as BarcodeType, m as BarcodeTypeType, n as Base44Id, C as CAR_SUPPORTED_EVIDENCE_MIME_TYPES, o as CAR_SUPPORTED_SIGNATURE_MIME_TYPES, p as CAT, q as CATEGORY_TABS, r as CORRECTIVE_ACTION_GENERATION_SOURCES, s as CORRECTIVE_ACTION_STATUSES, t as CanonicalId, u as CarSupportedEvidenceMimeType, v as CarSupportedSignatureMimeType, w as CarTemplateFileMetadata, x as CatalogSyncStatus, y as CatalogSyncStatusType, z as CompanyConfig, D as CorrectiveActionCompileTaskMetadata, E as CorrectiveActionGenerationSource, F as CorrectiveActionStatus, G as CropCycleStatus, H as DOCUMENT_DISPLAY_INFO, I as DOCUMENT_MENU_MAP, J as DocumentCategory, K as DocumentType, L as ERROR_DICTIONARY, M as EVERYONE, N as EmitterType, O as EnabledModule, P as FORM_REGISTRY, Q as FacilityType, R as FileUploadTaskType, T as HarvestMethod, V as LinkedStatus, W as MOD, X as MODULE_LABELS, Y as MicroclimateZone, Z as MimeType, _ as ModCode, $ as NettingType, a0 as NormalizedSignatureValue, a1 as NotificationMode, a2 as OrderStatus, a3 as PermissionLevel, a4 as PhysicalState, a5 as PlantingMethod, a6 as ProductType, a7 as ProductTypeType, a8 as ProductUnit, a9 as ProductUnitType, aa as RESOURCE_MODULE_MAP, ab as RESOURCE_PATHS, ac as RESOURCE_REQUIREMENTS, ad as ROLE_SECTIONS_BY_KEY, ae as RelationshipType, ag as ResourceOverrides, ai as RowOrientation, aj as SENTINEL_UUID, ak as SIGNATURE_MODES, al as ScopeType, am as SignatureInput, an as SignatureMode, ao as SoilTexture, ap as StockPolicyTier, aq as StockPolicyTierType, ar as StoragePhases, as as StorageType, at as TASK_TYPE_REGISTRY, au as TEMPLATE_SCOPE_LEVELS, aw as TargetEntityType, ax as TaskStatus, ay as TaskType, az as TaskTypeConfig, aA as TemplateScopeLevel, aB as TransactionType, aC as TrellisType, aD as UserPrivilege, aE as UserRole, aG as VigorRating, aH as WaterSource } from './constants-C_Pwif6Q.mjs';
|
|
3
3
|
|
|
4
4
|
declare const AgriLogger: {
|
|
5
5
|
log(level: "INFO" | "WARN" | "ERROR", message: string, meta: any): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as AgriCoreSession, aF as UserRoleType, ah as ResourceRequirement, c as AccessLevelType, j as AvailableScope, U as InfrastructureFields, S as FormMeta, av as TabConfig, af as ResolvedError } from './constants-
|
|
2
|
-
export { A as ACCESS_RANK, a as ACT, b as AccessLevel, e as ApprovalStatus, f as ApprovalType, g as AuditStatus, h as AuditType, i as AuthScopeFields, B as BarcodeNamespace, k as BarcodeNamespaceType, l as BarcodeType, m as BarcodeTypeType, n as Base44Id, C as CAR_SUPPORTED_EVIDENCE_MIME_TYPES, o as CAR_SUPPORTED_SIGNATURE_MIME_TYPES, p as CAT, q as CATEGORY_TABS, r as CORRECTIVE_ACTION_GENERATION_SOURCES, s as CORRECTIVE_ACTION_STATUSES, t as CanonicalId, u as CarSupportedEvidenceMimeType, v as CarSupportedSignatureMimeType, w as CarTemplateFileMetadata, x as CatalogSyncStatus, y as CatalogSyncStatusType, z as CompanyConfig, D as CorrectiveActionCompileTaskMetadata, E as CorrectiveActionGenerationSource, F as CorrectiveActionStatus, G as CropCycleStatus, H as DOCUMENT_DISPLAY_INFO, I as DOCUMENT_MENU_MAP, J as DocumentCategory, K as DocumentType, L as ERROR_DICTIONARY, M as EVERYONE, N as EmitterType, O as EnabledModule, P as FORM_REGISTRY, Q as FacilityType, R as FileUploadTaskType, T as HarvestMethod, V as LinkedStatus, W as MOD, X as MODULE_LABELS, Y as MicroclimateZone, Z as MimeType, _ as ModCode, $ as NettingType, a0 as NormalizedSignatureValue, a1 as NotificationMode, a2 as OrderStatus, a3 as PermissionLevel, a4 as PhysicalState, a5 as PlantingMethod, a6 as ProductType, a7 as ProductTypeType, a8 as ProductUnit, a9 as ProductUnitType, aa as RESOURCE_MODULE_MAP, ab as RESOURCE_PATHS, ac as RESOURCE_REQUIREMENTS, ad as ROLE_SECTIONS_BY_KEY, ae as RelationshipType, ag as ResourceOverrides, ai as RowOrientation, aj as SENTINEL_UUID, ak as SIGNATURE_MODES, al as ScopeType, am as SignatureInput, an as SignatureMode, ao as SoilTexture, ap as StockPolicyTier, aq as StockPolicyTierType, ar as StoragePhases, as as StorageType, at as TASK_TYPE_REGISTRY, au as TEMPLATE_SCOPE_LEVELS, aw as TargetEntityType, ax as TaskStatus, ay as TaskType, az as TaskTypeConfig, aA as TemplateScopeLevel, aB as TransactionType, aC as TrellisType, aD as UserPrivilege, aE as UserRole, aG as VigorRating, aH as WaterSource } from './constants-
|
|
1
|
+
import { d as AgriCoreSession, aF as UserRoleType, ah as ResourceRequirement, c as AccessLevelType, j as AvailableScope, U as InfrastructureFields, S as FormMeta, av as TabConfig, af as ResolvedError } from './constants-C_Pwif6Q.js';
|
|
2
|
+
export { A as ACCESS_RANK, a as ACT, b as AccessLevel, e as ApprovalStatus, f as ApprovalType, g as AuditStatus, h as AuditType, i as AuthScopeFields, B as BarcodeNamespace, k as BarcodeNamespaceType, l as BarcodeType, m as BarcodeTypeType, n as Base44Id, C as CAR_SUPPORTED_EVIDENCE_MIME_TYPES, o as CAR_SUPPORTED_SIGNATURE_MIME_TYPES, p as CAT, q as CATEGORY_TABS, r as CORRECTIVE_ACTION_GENERATION_SOURCES, s as CORRECTIVE_ACTION_STATUSES, t as CanonicalId, u as CarSupportedEvidenceMimeType, v as CarSupportedSignatureMimeType, w as CarTemplateFileMetadata, x as CatalogSyncStatus, y as CatalogSyncStatusType, z as CompanyConfig, D as CorrectiveActionCompileTaskMetadata, E as CorrectiveActionGenerationSource, F as CorrectiveActionStatus, G as CropCycleStatus, H as DOCUMENT_DISPLAY_INFO, I as DOCUMENT_MENU_MAP, J as DocumentCategory, K as DocumentType, L as ERROR_DICTIONARY, M as EVERYONE, N as EmitterType, O as EnabledModule, P as FORM_REGISTRY, Q as FacilityType, R as FileUploadTaskType, T as HarvestMethod, V as LinkedStatus, W as MOD, X as MODULE_LABELS, Y as MicroclimateZone, Z as MimeType, _ as ModCode, $ as NettingType, a0 as NormalizedSignatureValue, a1 as NotificationMode, a2 as OrderStatus, a3 as PermissionLevel, a4 as PhysicalState, a5 as PlantingMethod, a6 as ProductType, a7 as ProductTypeType, a8 as ProductUnit, a9 as ProductUnitType, aa as RESOURCE_MODULE_MAP, ab as RESOURCE_PATHS, ac as RESOURCE_REQUIREMENTS, ad as ROLE_SECTIONS_BY_KEY, ae as RelationshipType, ag as ResourceOverrides, ai as RowOrientation, aj as SENTINEL_UUID, ak as SIGNATURE_MODES, al as ScopeType, am as SignatureInput, an as SignatureMode, ao as SoilTexture, ap as StockPolicyTier, aq as StockPolicyTierType, ar as StoragePhases, as as StorageType, at as TASK_TYPE_REGISTRY, au as TEMPLATE_SCOPE_LEVELS, aw as TargetEntityType, ax as TaskStatus, ay as TaskType, az as TaskTypeConfig, aA as TemplateScopeLevel, aB as TransactionType, aC as TrellisType, aD as UserPrivilege, aE as UserRole, aG as VigorRating, aH as WaterSource } from './constants-C_Pwif6Q.js';
|
|
3
3
|
|
|
4
4
|
declare const AgriLogger: {
|
|
5
5
|
log(level: "INFO" | "WARN" | "ERROR", message: string, meta: any): void;
|
package/dist/index.js
CHANGED
|
@@ -651,15 +651,31 @@ var RESOURCE_PATHS = {
|
|
|
651
651
|
// ── Operations ────────────────────────────────────────────────────────────
|
|
652
652
|
farmManagement: "operations.farmManagement",
|
|
653
653
|
packhouse: "operations.packhouse",
|
|
654
|
+
// ── Inventory ────────────────────────────────────────────────────────────
|
|
655
|
+
// === Consumables ===
|
|
654
656
|
inventoryConsumableProduct: "inventory.consumable.product",
|
|
655
657
|
inventoryConsumableStock: "inventory.consumable.stock",
|
|
658
|
+
inventoryConsumableStockEditThreshold: "inventory.consumable.stock.editThreshold",
|
|
659
|
+
inventoryConsumableStockReconcile: "inventory.consumable.stock.reconcile",
|
|
656
660
|
inventoryConsumableStockMovement: "inventory.consumable.stockMovement",
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
661
|
+
inventoryConsumableStockMovementTransfer: "inventory.consumable.stockMovement.transfer",
|
|
662
|
+
inventoryConsumableStockMovementPurchase: "inventory.consumable.stockMovement.purchase",
|
|
663
|
+
// === Chemicals ===
|
|
664
|
+
inventoryChemicalProduct: "inventory.chemical.product",
|
|
665
|
+
inventoryChemicalStock: "inventory.chemical.stock",
|
|
666
|
+
inventoryChemicalStockEditThreshold: "inventory.chemical.stock.editThreshold",
|
|
667
|
+
inventoryChemicalStockReconcile: "inventory.chemical.stock.reconcile",
|
|
668
|
+
inventoryChemicalStockMovement: "inventory.chemical.stockMovement",
|
|
669
|
+
inventoryChemicalStockMovementTransfer: "inventory.chemical.stockMovement.transfer",
|
|
670
|
+
inventoryChemicalStockMovementPurchase: "inventory.chemical.stockMovement.purchase",
|
|
671
|
+
// === Maintenance Parts ===
|
|
660
672
|
inventoryMaintenancePartProduct: "inventory.maintenancePart.product",
|
|
661
673
|
inventoryMaintenancePartStock: "inventory.maintenancePart.stock",
|
|
674
|
+
inventoryMaintenancePartStockEditThreshold: "inventory.maintenancePart.stock.editThreshold",
|
|
675
|
+
inventoryMaintenancePartStockReconcile: "inventory.maintenancePart.stock.reconcile",
|
|
662
676
|
inventoryMaintenancePartStockMovement: "inventory.maintenancePart.stockMovement",
|
|
677
|
+
inventoryMaintenancePartStockMovementTransfer: "inventory.maintenancePart.stockMovement.transfer",
|
|
678
|
+
inventoryMaintenancePartStockMovementPurchase: "inventory.maintenancePart.stockMovement.purchase",
|
|
663
679
|
accommodation: "operations.accommodation",
|
|
664
680
|
// ── Equipment & Fleet ──────────────────────────────────────────────────────
|
|
665
681
|
equipPreStart: "equipment.preStart",
|
|
@@ -773,16 +789,59 @@ var RESOURCE_REQUIREMENTS = {
|
|
|
773
789
|
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR],
|
|
774
790
|
requiredPrivileges: [UserPrivilege.ADMIN, UserPrivilege.AUDIT_COMPLIANCE, UserPrivilege.FINANCE, UserPrivilege.HR]
|
|
775
791
|
},
|
|
792
|
+
// CONSUMABLES PERMISSIONS
|
|
776
793
|
[RESOURCE_PATHS.inventoryConsumableProduct]: {
|
|
777
794
|
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
|
|
778
795
|
},
|
|
779
796
|
[RESOURCE_PATHS.inventoryConsumableStock]: { allowedRoles: EVERYONE },
|
|
780
|
-
[RESOURCE_PATHS.
|
|
797
|
+
[RESOURCE_PATHS.inventoryConsumableStockEditThreshold]: {
|
|
798
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER]
|
|
799
|
+
},
|
|
800
|
+
[RESOURCE_PATHS.inventoryConsumableStockReconcile]: {
|
|
801
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
|
|
802
|
+
},
|
|
803
|
+
[RESOURCE_PATHS.inventoryConsumableStockMovement]: { allowedRoles: EVERYONE },
|
|
804
|
+
[RESOURCE_PATHS.inventoryConsumableStockMovementTransfer]: {
|
|
805
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
|
|
806
|
+
},
|
|
807
|
+
[RESOURCE_PATHS.inventoryConsumableStockMovementPurchase]: {
|
|
808
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER]
|
|
809
|
+
},
|
|
810
|
+
// CHEMICALS PERMISSIONS
|
|
781
811
|
[RESOURCE_PATHS.inventoryChemicalProduct]: {
|
|
782
812
|
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
|
|
783
813
|
},
|
|
784
814
|
[RESOURCE_PATHS.inventoryChemicalStock]: { allowedRoles: EVERYONE },
|
|
815
|
+
[RESOURCE_PATHS.inventoryChemicalStockEditThreshold]: {
|
|
816
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER]
|
|
817
|
+
},
|
|
818
|
+
[RESOURCE_PATHS.inventoryChemicalStockReconcile]: {
|
|
819
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
|
|
820
|
+
},
|
|
785
821
|
[RESOURCE_PATHS.inventoryChemicalStockMovement]: { allowedRoles: EVERYONE },
|
|
822
|
+
[RESOURCE_PATHS.inventoryChemicalStockMovementTransfer]: {
|
|
823
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
|
|
824
|
+
},
|
|
825
|
+
[RESOURCE_PATHS.inventoryChemicalStockMovementPurchase]: {
|
|
826
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER]
|
|
827
|
+
},
|
|
828
|
+
[RESOURCE_PATHS.inventoryMaintenancePartProduct]: {
|
|
829
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
|
|
830
|
+
},
|
|
831
|
+
[RESOURCE_PATHS.inventoryMaintenancePartStock]: { allowedRoles: EVERYONE },
|
|
832
|
+
[RESOURCE_PATHS.inventoryMaintenancePartStockEditThreshold]: {
|
|
833
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER]
|
|
834
|
+
},
|
|
835
|
+
[RESOURCE_PATHS.inventoryMaintenancePartStockReconcile]: {
|
|
836
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
|
|
837
|
+
},
|
|
838
|
+
[RESOURCE_PATHS.inventoryMaintenancePartStockMovement]: { allowedRoles: EVERYONE },
|
|
839
|
+
[RESOURCE_PATHS.inventoryMaintenancePartStockMovementPurchase]: {
|
|
840
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER]
|
|
841
|
+
},
|
|
842
|
+
[RESOURCE_PATHS.inventoryMaintenancePartStockMovementPurchase]: {
|
|
843
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER]
|
|
844
|
+
},
|
|
786
845
|
// ── Admin Settings ─────────────────────────────────────────────────────────
|
|
787
846
|
[RESOURCE_PATHS.adminUserRoster]: {
|
|
788
847
|
allowedRoles: [UserRole.OWNER],
|
package/dist/index.mjs
CHANGED