@litusarchieve18/agricore-utils 1.0.16 → 1.0.18

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 CHANGED
@@ -183,6 +183,10 @@ Run the publish command:
183
183
  Bash
184
184
  npm publish --access public
185
185
  📝 Version History
186
+ V1.0.18 - refactor menu structure
187
+
188
+ V1.0.17 — refactor type and enum
189
+
186
190
  V1.0.16 — BarcodeType, BarcodeNamespace, ProductType, ProductUnit, CatalogSyncStatus, StorageTier
187
191
 
188
192
  V1.0.15 — add some standardized enum and types for CAR
@@ -345,6 +345,15 @@ var RESOURCE_PATHS = {
345
345
  // ── Operations ────────────────────────────────────────────────────────────
346
346
  farmManagement: "operations.farmManagement",
347
347
  packhouse: "operations.packhouse",
348
+ inventoryConsumableProduct: "inventory.consumable.product",
349
+ inventoryConsumableStock: "inventory.consumable.stock",
350
+ inventoryConsumableStockMovement: "inventory.consumable.stockMovement",
351
+ inventoryChemicalProduct: "inventory.consumable.product",
352
+ inventoryChemicalStock: "inventory.consumable.stock",
353
+ inventoryChemicalStockMovement: "inventory.consumable.stockMovement",
354
+ inventoryMaintenancePartProduct: "inventory.maintenancePart.product",
355
+ inventoryMaintenancePartStock: "inventory.maintenancePart.stock",
356
+ inventoryMaintenancePartStockMovement: "inventory.maintenancePart.stockMovement",
348
357
  accommodation: "operations.accommodation",
349
358
  // ── Equipment & Fleet ──────────────────────────────────────────────────────
350
359
  equipPreStart: "equipment.preStart",
@@ -379,6 +388,15 @@ var RESOURCE_MODULE_MAP = {
379
388
  [RESOURCE_PATHS.team]: ALL_OPERATIONS,
380
389
  [RESOURCE_PATHS.records]: ALL_OPERATIONS,
381
390
  [RESOURCE_PATHS.adminSettings]: ALL_OPERATIONS,
391
+ // ── Inventory ──────────────────────────────────────────────────────
392
+ [RESOURCE_PATHS.inventoryConsumableProduct]: ALL_OPERATIONS,
393
+ [RESOURCE_PATHS.inventoryConsumableStock]: ALL_OPERATIONS,
394
+ [RESOURCE_PATHS.inventoryConsumableStockMovement]: ALL_OPERATIONS,
395
+ [RESOURCE_PATHS.inventoryChemicalProduct]: ALL_OPERATIONS,
396
+ [RESOURCE_PATHS.inventoryChemicalStock]: ALL_OPERATIONS,
397
+ [RESOURCE_PATHS.inventoryMaintenancePartProduct]: ALL_OPERATIONS,
398
+ [RESOURCE_PATHS.inventoryMaintenancePartStock]: ALL_OPERATIONS,
399
+ [RESOURCE_PATHS.inventoryMaintenancePartStockMovement]: ALL_OPERATIONS,
382
400
  // ── Records & Reports ──────────────────────────────────────────────────────
383
401
  [RESOURCE_PATHS.documentHub]: ALL_OPERATIONS,
384
402
  [RESOURCE_PATHS.documentHubTemplates]: ALL_OPERATIONS,
@@ -449,6 +467,16 @@ var RESOURCE_REQUIREMENTS = {
449
467
  allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR],
450
468
  requiredPrivileges: [UserPrivilege.ADMIN, UserPrivilege.AUDIT_COMPLIANCE, UserPrivilege.FINANCE, UserPrivilege.HR]
451
469
  },
470
+ [RESOURCE_PATHS.inventoryConsumableProduct]: {
471
+ allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
472
+ },
473
+ [RESOURCE_PATHS.inventoryConsumableStock]: { allowedRoles: EVERYONE },
474
+ [RESOURCE_PATHS.inventoryChemicalStockMovement]: { allowedRoles: EVERYONE },
475
+ [RESOURCE_PATHS.inventoryChemicalProduct]: {
476
+ allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
477
+ },
478
+ [RESOURCE_PATHS.inventoryChemicalStock]: { allowedRoles: EVERYONE },
479
+ [RESOURCE_PATHS.inventoryChemicalStockMovement]: { allowedRoles: EVERYONE },
452
480
  // ── Admin Settings ─────────────────────────────────────────────────────────
453
481
  [RESOURCE_PATHS.adminUserRoster]: {
454
482
  allowedRoles: [UserRole.OWNER],
@@ -792,7 +820,7 @@ var CatalogSyncStatus = {
792
820
  MATCHED: "matched",
793
821
  REJECTED: "rejected"
794
822
  };
795
- var StorageTier = {
823
+ var StoragePhases = {
796
824
  RECEIVING: "receiving",
797
825
  BULK_STORAGE: "bulk_storage",
798
826
  PICK_FACE: "pick_face",
@@ -800,6 +828,12 @@ var StorageTier = {
800
828
  QUARANTINE: "quarantine",
801
829
  RETURNS: "returns"
802
830
  };
831
+ var StockPolicyTier = {
832
+ FLAT: 0,
833
+ BY_FACILITY: 1,
834
+ BY_STORAGE_PHASE: 2,
835
+ BY_LOCATION: 3
836
+ };
803
837
 
804
838
  export {
805
839
  MOD,
@@ -862,5 +896,6 @@ export {
862
896
  ProductType,
863
897
  ProductUnit,
864
898
  CatalogSyncStatus,
865
- StorageTier
899
+ StoragePhases,
900
+ StockPolicyTier
866
901
  };
@@ -159,7 +159,8 @@ type BarcodeNamespaceType = typeof BarcodeNamespace[keyof typeof BarcodeNamespac
159
159
  type ProductTypeType = typeof ProductType[keyof typeof ProductType];
160
160
  type ProductUnitType = typeof ProductUnit[keyof typeof ProductUnit];
161
161
  type CatalogSyncStatusType = typeof CatalogSyncStatus[keyof typeof CatalogSyncStatus];
162
- type StorageTierType = typeof StorageTier[keyof typeof StorageTier];
162
+ type StorageType = typeof StoragePhases[keyof typeof StoragePhases];
163
+ type StockPolicyTierType = typeof StockPolicyTier[keyof typeof StockPolicyTier];
163
164
 
164
165
  declare const MOD: {
165
166
  readonly OPERATIONS: "OPR";
@@ -429,6 +430,15 @@ declare const RESOURCE_PATHS: {
429
430
  adminCompanySettings: string;
430
431
  farmManagement: string;
431
432
  packhouse: string;
433
+ inventoryConsumableProduct: string;
434
+ inventoryConsumableStock: string;
435
+ inventoryConsumableStockMovement: string;
436
+ inventoryChemicalProduct: string;
437
+ inventoryChemicalStock: string;
438
+ inventoryChemicalStockMovement: string;
439
+ inventoryMaintenancePartProduct: string;
440
+ inventoryMaintenancePartStock: string;
441
+ inventoryMaintenancePartStockMovement: string;
432
442
  accommodation: string;
433
443
  equipPreStart: string;
434
444
  equipMaintenance: string;
@@ -591,7 +601,7 @@ declare const CatalogSyncStatus: {
591
601
  readonly MATCHED: "matched";
592
602
  readonly REJECTED: "rejected";
593
603
  };
594
- declare const StorageTier: {
604
+ declare const StoragePhases: {
595
605
  readonly RECEIVING: "receiving";
596
606
  readonly BULK_STORAGE: "bulk_storage";
597
607
  readonly PICK_FACE: "pick_face";
@@ -599,5 +609,11 @@ declare const StorageTier: {
599
609
  readonly QUARANTINE: "quarantine";
600
610
  readonly RETURNS: "returns";
601
611
  };
612
+ declare const StockPolicyTier: {
613
+ readonly FLAT: 0;
614
+ readonly BY_FACILITY: 1;
615
+ readonly BY_STORAGE_PHASE: 2;
616
+ readonly BY_LOCATION: 3;
617
+ };
602
618
 
603
- export { NettingType as $, ACCESS_RANK as A, BarcodeNamespace as B, CAR_SUPPORTED_EVIDENCE_MIME_TYPES as C, type CorrectiveActionCompileTaskMetadata as D, type CorrectiveActionGenerationSource as E, type CorrectiveActionStatus as F, CropCycleStatus as G, DOCUMENT_DISPLAY_INFO as H, DOCUMENT_MENU_MAP as I, DocumentCategory as J, DocumentType as K, ERROR_DICTIONARY as L, EVERYONE as M, EmitterType as N, EnabledModule as O, FORM_REGISTRY as P, FacilityType as Q, type FileUploadTaskType as R, type FormMeta as S, HarvestMethod as T, type InfrastructureFields as U, LinkedStatus as V, MOD as W, MODULE_LABELS as X, MicroclimateZone as Y, MimeType as Z, type ModCode as _, ACT as a, type NormalizedSignatureValue as a0, NotificationMode as a1, OrderStatus as a2, type PermissionLevel as a3, PhysicalState as a4, PlantingMethod as a5, ProductType as a6, type ProductTypeType as a7, ProductUnit as a8, type ProductUnitType as a9, TrellisType as aA, UserPrivilege as aB, UserRole as aC, type UserRoleType as aD, VigorRating as aE, WaterSource as aF, RESOURCE_MODULE_MAP as aa, RESOURCE_PATHS as ab, RESOURCE_REQUIREMENTS as ac, ROLE_SECTIONS_BY_KEY as ad, RelationshipType as ae, type ResolvedError as af, type ResourceOverrides as ag, type ResourceRequirement as ah, RowOrientation as ai, SENTINEL_UUID as aj, SIGNATURE_MODES as ak, type ScopeType as al, type SignatureInput as am, type SignatureMode as an, SoilTexture as ao, StorageTier as ap, type StorageTierType as aq, TASK_TYPE_REGISTRY as ar, TEMPLATE_SCOPE_LEVELS as as, type TabConfig as at, TargetEntityType as au, TaskStatus as av, TaskType as aw, type TaskTypeConfig as ax, type TemplateScopeLevel as ay, TransactionType as az, AccessLevel as b, type AccessLevelType as c, type AgriCoreSession as d, ApprovalStatus as e, ApprovalType as f, AuditStatus as g, AuditType as h, type AuthScopeFields as i, type AvailableScope as j, type BarcodeNamespaceType as k, BarcodeType as l, type BarcodeTypeType as m, type Base44Id as n, CAR_SUPPORTED_SIGNATURE_MIME_TYPES as o, CAT as p, CATEGORY_TABS as q, CORRECTIVE_ACTION_GENERATION_SOURCES as r, CORRECTIVE_ACTION_STATUSES as s, type CanonicalId as t, type CarSupportedEvidenceMimeType as u, type CarSupportedSignatureMimeType as v, type CarTemplateFileMetadata as w, CatalogSyncStatus as x, type CatalogSyncStatusType as y, type CompanyConfig as z };
619
+ export { NettingType as $, ACCESS_RANK as A, BarcodeNamespace as B, CAR_SUPPORTED_EVIDENCE_MIME_TYPES as C, type CorrectiveActionCompileTaskMetadata as D, type CorrectiveActionGenerationSource as E, type CorrectiveActionStatus as F, CropCycleStatus as G, DOCUMENT_DISPLAY_INFO as H, DOCUMENT_MENU_MAP as I, DocumentCategory as J, DocumentType as K, ERROR_DICTIONARY as L, EVERYONE as M, EmitterType as N, EnabledModule as O, FORM_REGISTRY as P, FacilityType as Q, type FileUploadTaskType as R, type FormMeta as S, HarvestMethod as T, type InfrastructureFields as U, LinkedStatus as V, MOD as W, MODULE_LABELS as X, MicroclimateZone as Y, MimeType as Z, type ModCode as _, ACT as a, type NormalizedSignatureValue as a0, NotificationMode as a1, OrderStatus as a2, type PermissionLevel as a3, PhysicalState as a4, PlantingMethod as a5, ProductType as a6, type ProductTypeType as a7, ProductUnit as a8, type ProductUnitType as a9, type TemplateScopeLevel as aA, TransactionType as aB, TrellisType as aC, UserPrivilege as aD, UserRole as aE, type UserRoleType as aF, VigorRating as aG, WaterSource as aH, RESOURCE_MODULE_MAP as aa, RESOURCE_PATHS as ab, RESOURCE_REQUIREMENTS as ac, ROLE_SECTIONS_BY_KEY as ad, RelationshipType as ae, type ResolvedError as af, type ResourceOverrides as ag, type ResourceRequirement as ah, RowOrientation as ai, SENTINEL_UUID as aj, SIGNATURE_MODES as ak, type ScopeType as al, type SignatureInput as am, type SignatureMode as an, SoilTexture as ao, StockPolicyTier as ap, type StockPolicyTierType as aq, StoragePhases as ar, type StorageType as as, TASK_TYPE_REGISTRY as at, TEMPLATE_SCOPE_LEVELS as au, type TabConfig as av, TargetEntityType as aw, TaskStatus as ax, TaskType as ay, type TaskTypeConfig as az, AccessLevel as b, type AccessLevelType as c, type AgriCoreSession as d, ApprovalStatus as e, ApprovalType as f, AuditStatus as g, AuditType as h, type AuthScopeFields as i, type AvailableScope as j, type BarcodeNamespaceType as k, BarcodeType as l, type BarcodeTypeType as m, type Base44Id as n, CAR_SUPPORTED_SIGNATURE_MIME_TYPES as o, CAT as p, CATEGORY_TABS as q, CORRECTIVE_ACTION_GENERATION_SOURCES as r, CORRECTIVE_ACTION_STATUSES as s, type CanonicalId as t, type CarSupportedEvidenceMimeType as u, type CarSupportedSignatureMimeType as v, type CarTemplateFileMetadata as w, CatalogSyncStatus as x, type CatalogSyncStatusType as y, type CompanyConfig as z };
@@ -159,7 +159,8 @@ type BarcodeNamespaceType = typeof BarcodeNamespace[keyof typeof BarcodeNamespac
159
159
  type ProductTypeType = typeof ProductType[keyof typeof ProductType];
160
160
  type ProductUnitType = typeof ProductUnit[keyof typeof ProductUnit];
161
161
  type CatalogSyncStatusType = typeof CatalogSyncStatus[keyof typeof CatalogSyncStatus];
162
- type StorageTierType = typeof StorageTier[keyof typeof StorageTier];
162
+ type StorageType = typeof StoragePhases[keyof typeof StoragePhases];
163
+ type StockPolicyTierType = typeof StockPolicyTier[keyof typeof StockPolicyTier];
163
164
 
164
165
  declare const MOD: {
165
166
  readonly OPERATIONS: "OPR";
@@ -429,6 +430,15 @@ declare const RESOURCE_PATHS: {
429
430
  adminCompanySettings: string;
430
431
  farmManagement: string;
431
432
  packhouse: string;
433
+ inventoryConsumableProduct: string;
434
+ inventoryConsumableStock: string;
435
+ inventoryConsumableStockMovement: string;
436
+ inventoryChemicalProduct: string;
437
+ inventoryChemicalStock: string;
438
+ inventoryChemicalStockMovement: string;
439
+ inventoryMaintenancePartProduct: string;
440
+ inventoryMaintenancePartStock: string;
441
+ inventoryMaintenancePartStockMovement: string;
432
442
  accommodation: string;
433
443
  equipPreStart: string;
434
444
  equipMaintenance: string;
@@ -591,7 +601,7 @@ declare const CatalogSyncStatus: {
591
601
  readonly MATCHED: "matched";
592
602
  readonly REJECTED: "rejected";
593
603
  };
594
- declare const StorageTier: {
604
+ declare const StoragePhases: {
595
605
  readonly RECEIVING: "receiving";
596
606
  readonly BULK_STORAGE: "bulk_storage";
597
607
  readonly PICK_FACE: "pick_face";
@@ -599,5 +609,11 @@ declare const StorageTier: {
599
609
  readonly QUARANTINE: "quarantine";
600
610
  readonly RETURNS: "returns";
601
611
  };
612
+ declare const StockPolicyTier: {
613
+ readonly FLAT: 0;
614
+ readonly BY_FACILITY: 1;
615
+ readonly BY_STORAGE_PHASE: 2;
616
+ readonly BY_LOCATION: 3;
617
+ };
602
618
 
603
- export { NettingType as $, ACCESS_RANK as A, BarcodeNamespace as B, CAR_SUPPORTED_EVIDENCE_MIME_TYPES as C, type CorrectiveActionCompileTaskMetadata as D, type CorrectiveActionGenerationSource as E, type CorrectiveActionStatus as F, CropCycleStatus as G, DOCUMENT_DISPLAY_INFO as H, DOCUMENT_MENU_MAP as I, DocumentCategory as J, DocumentType as K, ERROR_DICTIONARY as L, EVERYONE as M, EmitterType as N, EnabledModule as O, FORM_REGISTRY as P, FacilityType as Q, type FileUploadTaskType as R, type FormMeta as S, HarvestMethod as T, type InfrastructureFields as U, LinkedStatus as V, MOD as W, MODULE_LABELS as X, MicroclimateZone as Y, MimeType as Z, type ModCode as _, ACT as a, type NormalizedSignatureValue as a0, NotificationMode as a1, OrderStatus as a2, type PermissionLevel as a3, PhysicalState as a4, PlantingMethod as a5, ProductType as a6, type ProductTypeType as a7, ProductUnit as a8, type ProductUnitType as a9, TrellisType as aA, UserPrivilege as aB, UserRole as aC, type UserRoleType as aD, VigorRating as aE, WaterSource as aF, RESOURCE_MODULE_MAP as aa, RESOURCE_PATHS as ab, RESOURCE_REQUIREMENTS as ac, ROLE_SECTIONS_BY_KEY as ad, RelationshipType as ae, type ResolvedError as af, type ResourceOverrides as ag, type ResourceRequirement as ah, RowOrientation as ai, SENTINEL_UUID as aj, SIGNATURE_MODES as ak, type ScopeType as al, type SignatureInput as am, type SignatureMode as an, SoilTexture as ao, StorageTier as ap, type StorageTierType as aq, TASK_TYPE_REGISTRY as ar, TEMPLATE_SCOPE_LEVELS as as, type TabConfig as at, TargetEntityType as au, TaskStatus as av, TaskType as aw, type TaskTypeConfig as ax, type TemplateScopeLevel as ay, TransactionType as az, AccessLevel as b, type AccessLevelType as c, type AgriCoreSession as d, ApprovalStatus as e, ApprovalType as f, AuditStatus as g, AuditType as h, type AuthScopeFields as i, type AvailableScope as j, type BarcodeNamespaceType as k, BarcodeType as l, type BarcodeTypeType as m, type Base44Id as n, CAR_SUPPORTED_SIGNATURE_MIME_TYPES as o, CAT as p, CATEGORY_TABS as q, CORRECTIVE_ACTION_GENERATION_SOURCES as r, CORRECTIVE_ACTION_STATUSES as s, type CanonicalId as t, type CarSupportedEvidenceMimeType as u, type CarSupportedSignatureMimeType as v, type CarTemplateFileMetadata as w, CatalogSyncStatus as x, type CatalogSyncStatusType as y, type CompanyConfig as z };
619
+ export { NettingType as $, ACCESS_RANK as A, BarcodeNamespace as B, CAR_SUPPORTED_EVIDENCE_MIME_TYPES as C, type CorrectiveActionCompileTaskMetadata as D, type CorrectiveActionGenerationSource as E, type CorrectiveActionStatus as F, CropCycleStatus as G, DOCUMENT_DISPLAY_INFO as H, DOCUMENT_MENU_MAP as I, DocumentCategory as J, DocumentType as K, ERROR_DICTIONARY as L, EVERYONE as M, EmitterType as N, EnabledModule as O, FORM_REGISTRY as P, FacilityType as Q, type FileUploadTaskType as R, type FormMeta as S, HarvestMethod as T, type InfrastructureFields as U, LinkedStatus as V, MOD as W, MODULE_LABELS as X, MicroclimateZone as Y, MimeType as Z, type ModCode as _, ACT as a, type NormalizedSignatureValue as a0, NotificationMode as a1, OrderStatus as a2, type PermissionLevel as a3, PhysicalState as a4, PlantingMethod as a5, ProductType as a6, type ProductTypeType as a7, ProductUnit as a8, type ProductUnitType as a9, type TemplateScopeLevel as aA, TransactionType as aB, TrellisType as aC, UserPrivilege as aD, UserRole as aE, type UserRoleType as aF, VigorRating as aG, WaterSource as aH, RESOURCE_MODULE_MAP as aa, RESOURCE_PATHS as ab, RESOURCE_REQUIREMENTS as ac, ROLE_SECTIONS_BY_KEY as ad, RelationshipType as ae, type ResolvedError as af, type ResourceOverrides as ag, type ResourceRequirement as ah, RowOrientation as ai, SENTINEL_UUID as aj, SIGNATURE_MODES as ak, type ScopeType as al, type SignatureInput as am, type SignatureMode as an, SoilTexture as ao, StockPolicyTier as ap, type StockPolicyTierType as aq, StoragePhases as ar, type StorageType as as, TASK_TYPE_REGISTRY as at, TEMPLATE_SCOPE_LEVELS as au, type TabConfig as av, TargetEntityType as aw, TaskStatus as ax, TaskType as ay, type TaskTypeConfig as az, AccessLevel as b, type AccessLevelType as c, type AgriCoreSession as d, ApprovalStatus as e, ApprovalType as f, AuditStatus as g, AuditType as h, type AuthScopeFields as i, type AvailableScope as j, type BarcodeNamespaceType as k, BarcodeType as l, type BarcodeTypeType as m, type Base44Id as n, CAR_SUPPORTED_SIGNATURE_MIME_TYPES as o, CAT as p, CATEGORY_TABS as q, CORRECTIVE_ACTION_GENERATION_SOURCES as r, CORRECTIVE_ACTION_STATUSES as s, type CanonicalId as t, type CarSupportedEvidenceMimeType as u, type CarSupportedSignatureMimeType as v, type CarTemplateFileMetadata as w, CatalogSyncStatus as x, type CatalogSyncStatusType as y, type CompanyConfig as z };
@@ -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 StorageTier, ar as TASK_TYPE_REGISTRY, as as TEMPLATE_SCOPE_LEVELS, au as TargetEntityType, av as TaskStatus, aw as TaskType, az as TransactionType, aA as TrellisType, aB as UserPrivilege, aC as UserRole, aE as VigorRating, aF as WaterSource } from './constants-DRlh_p--.mjs';
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-D70qwu34.mjs';
@@ -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 StorageTier, ar as TASK_TYPE_REGISTRY, as as TEMPLATE_SCOPE_LEVELS, au as TargetEntityType, av as TaskStatus, aw as TaskType, az as TransactionType, aA as TrellisType, aB as UserPrivilege, aC as UserRole, aE as VigorRating, aF as WaterSource } from './constants-DRlh_p--.js';
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-D70qwu34.js';
package/dist/constants.js CHANGED
@@ -69,7 +69,8 @@ __export(constants_exports, {
69
69
  SENTINEL_UUID: () => SENTINEL_UUID,
70
70
  SIGNATURE_MODES: () => SIGNATURE_MODES,
71
71
  SoilTexture: () => SoilTexture,
72
- StorageTier: () => StorageTier,
72
+ StockPolicyTier: () => StockPolicyTier,
73
+ StoragePhases: () => StoragePhases,
73
74
  TASK_TYPE_REGISTRY: () => TASK_TYPE_REGISTRY,
74
75
  TEMPLATE_SCOPE_LEVELS: () => TEMPLATE_SCOPE_LEVELS,
75
76
  TargetEntityType: () => TargetEntityType,
@@ -429,6 +430,15 @@ var RESOURCE_PATHS = {
429
430
  // ── Operations ────────────────────────────────────────────────────────────
430
431
  farmManagement: "operations.farmManagement",
431
432
  packhouse: "operations.packhouse",
433
+ inventoryConsumableProduct: "inventory.consumable.product",
434
+ inventoryConsumableStock: "inventory.consumable.stock",
435
+ inventoryConsumableStockMovement: "inventory.consumable.stockMovement",
436
+ inventoryChemicalProduct: "inventory.consumable.product",
437
+ inventoryChemicalStock: "inventory.consumable.stock",
438
+ inventoryChemicalStockMovement: "inventory.consumable.stockMovement",
439
+ inventoryMaintenancePartProduct: "inventory.maintenancePart.product",
440
+ inventoryMaintenancePartStock: "inventory.maintenancePart.stock",
441
+ inventoryMaintenancePartStockMovement: "inventory.maintenancePart.stockMovement",
432
442
  accommodation: "operations.accommodation",
433
443
  // ── Equipment & Fleet ──────────────────────────────────────────────────────
434
444
  equipPreStart: "equipment.preStart",
@@ -463,6 +473,15 @@ var RESOURCE_MODULE_MAP = {
463
473
  [RESOURCE_PATHS.team]: ALL_OPERATIONS,
464
474
  [RESOURCE_PATHS.records]: ALL_OPERATIONS,
465
475
  [RESOURCE_PATHS.adminSettings]: ALL_OPERATIONS,
476
+ // ── Inventory ──────────────────────────────────────────────────────
477
+ [RESOURCE_PATHS.inventoryConsumableProduct]: ALL_OPERATIONS,
478
+ [RESOURCE_PATHS.inventoryConsumableStock]: ALL_OPERATIONS,
479
+ [RESOURCE_PATHS.inventoryConsumableStockMovement]: ALL_OPERATIONS,
480
+ [RESOURCE_PATHS.inventoryChemicalProduct]: ALL_OPERATIONS,
481
+ [RESOURCE_PATHS.inventoryChemicalStock]: ALL_OPERATIONS,
482
+ [RESOURCE_PATHS.inventoryMaintenancePartProduct]: ALL_OPERATIONS,
483
+ [RESOURCE_PATHS.inventoryMaintenancePartStock]: ALL_OPERATIONS,
484
+ [RESOURCE_PATHS.inventoryMaintenancePartStockMovement]: ALL_OPERATIONS,
466
485
  // ── Records & Reports ──────────────────────────────────────────────────────
467
486
  [RESOURCE_PATHS.documentHub]: ALL_OPERATIONS,
468
487
  [RESOURCE_PATHS.documentHubTemplates]: ALL_OPERATIONS,
@@ -533,6 +552,16 @@ var RESOURCE_REQUIREMENTS = {
533
552
  allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR],
534
553
  requiredPrivileges: [UserPrivilege.ADMIN, UserPrivilege.AUDIT_COMPLIANCE, UserPrivilege.FINANCE, UserPrivilege.HR]
535
554
  },
555
+ [RESOURCE_PATHS.inventoryConsumableProduct]: {
556
+ allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
557
+ },
558
+ [RESOURCE_PATHS.inventoryConsumableStock]: { allowedRoles: EVERYONE },
559
+ [RESOURCE_PATHS.inventoryChemicalStockMovement]: { allowedRoles: EVERYONE },
560
+ [RESOURCE_PATHS.inventoryChemicalProduct]: {
561
+ allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
562
+ },
563
+ [RESOURCE_PATHS.inventoryChemicalStock]: { allowedRoles: EVERYONE },
564
+ [RESOURCE_PATHS.inventoryChemicalStockMovement]: { allowedRoles: EVERYONE },
536
565
  // ── Admin Settings ─────────────────────────────────────────────────────────
537
566
  [RESOURCE_PATHS.adminUserRoster]: {
538
567
  allowedRoles: [UserRole.OWNER],
@@ -876,7 +905,7 @@ var CatalogSyncStatus = {
876
905
  MATCHED: "matched",
877
906
  REJECTED: "rejected"
878
907
  };
879
- var StorageTier = {
908
+ var StoragePhases = {
880
909
  RECEIVING: "receiving",
881
910
  BULK_STORAGE: "bulk_storage",
882
911
  PICK_FACE: "pick_face",
@@ -884,6 +913,12 @@ var StorageTier = {
884
913
  QUARANTINE: "quarantine",
885
914
  RETURNS: "returns"
886
915
  };
916
+ var StockPolicyTier = {
917
+ FLAT: 0,
918
+ BY_FACILITY: 1,
919
+ BY_STORAGE_PHASE: 2,
920
+ BY_LOCATION: 3
921
+ };
887
922
  // Annotate the CommonJS export names for ESM import in node:
888
923
  0 && (module.exports = {
889
924
  ACCESS_RANK,
@@ -935,7 +970,8 @@ var StorageTier = {
935
970
  SENTINEL_UUID,
936
971
  SIGNATURE_MODES,
937
972
  SoilTexture,
938
- StorageTier,
973
+ StockPolicyTier,
974
+ StoragePhases,
939
975
  TASK_TYPE_REGISTRY,
940
976
  TEMPLATE_SCOPE_LEVELS,
941
977
  TargetEntityType,
@@ -48,7 +48,8 @@ import {
48
48
  SENTINEL_UUID,
49
49
  SIGNATURE_MODES,
50
50
  SoilTexture,
51
- StorageTier,
51
+ StockPolicyTier,
52
+ StoragePhases,
52
53
  TASK_TYPE_REGISTRY,
53
54
  TEMPLATE_SCOPE_LEVELS,
54
55
  TargetEntityType,
@@ -60,7 +61,7 @@ import {
60
61
  UserRole,
61
62
  VigorRating,
62
63
  WaterSource
63
- } from "./chunk-YE7Q7OFU.mjs";
64
+ } from "./chunk-HF6OEJ4G.mjs";
64
65
  export {
65
66
  ACCESS_RANK,
66
67
  ACT,
@@ -111,7 +112,8 @@ export {
111
112
  SENTINEL_UUID,
112
113
  SIGNATURE_MODES,
113
114
  SoilTexture,
114
- StorageTier,
115
+ StockPolicyTier,
116
+ StoragePhases,
115
117
  TASK_TYPE_REGISTRY,
116
118
  TEMPLATE_SCOPE_LEVELS,
117
119
  TargetEntityType,
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { d as AgriCoreSession, aD as UserRoleType, ah as ResourceRequirement, c as AccessLevelType, j as AvailableScope, U as InfrastructureFields, S as FormMeta, at as TabConfig, af as ResolvedError } from './constants-DRlh_p--.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 StorageTier, aq as StorageTierType, ar as TASK_TYPE_REGISTRY, as as TEMPLATE_SCOPE_LEVELS, au as TargetEntityType, av as TaskStatus, aw as TaskType, ax as TaskTypeConfig, ay as TemplateScopeLevel, az as TransactionType, aA as TrellisType, aB as UserPrivilege, aC as UserRole, aE as VigorRating, aF as WaterSource } from './constants-DRlh_p--.mjs';
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-D70qwu34.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-D70qwu34.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, aD as UserRoleType, ah as ResourceRequirement, c as AccessLevelType, j as AvailableScope, U as InfrastructureFields, S as FormMeta, at as TabConfig, af as ResolvedError } from './constants-DRlh_p--.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 StorageTier, aq as StorageTierType, ar as TASK_TYPE_REGISTRY, as as TEMPLATE_SCOPE_LEVELS, au as TargetEntityType, av as TaskStatus, aw as TaskType, ax as TaskTypeConfig, ay as TemplateScopeLevel, az as TransactionType, aA as TrellisType, aB as UserPrivilege, aC as UserRole, aE as VigorRating, aF as WaterSource } from './constants-DRlh_p--.js';
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-D70qwu34.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-D70qwu34.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
@@ -73,7 +73,8 @@ __export(index_exports, {
73
73
  SENTINEL_UUID: () => SENTINEL_UUID,
74
74
  SIGNATURE_MODES: () => SIGNATURE_MODES,
75
75
  SoilTexture: () => SoilTexture,
76
- StorageTier: () => StorageTier,
76
+ StockPolicyTier: () => StockPolicyTier,
77
+ StoragePhases: () => StoragePhases,
77
78
  TASK_TYPE_REGISTRY: () => TASK_TYPE_REGISTRY,
78
79
  TEMPLATE_SCOPE_LEVELS: () => TEMPLATE_SCOPE_LEVELS,
79
80
  TargetEntityType: () => TargetEntityType,
@@ -650,6 +651,15 @@ var RESOURCE_PATHS = {
650
651
  // ── Operations ────────────────────────────────────────────────────────────
651
652
  farmManagement: "operations.farmManagement",
652
653
  packhouse: "operations.packhouse",
654
+ inventoryConsumableProduct: "inventory.consumable.product",
655
+ inventoryConsumableStock: "inventory.consumable.stock",
656
+ inventoryConsumableStockMovement: "inventory.consumable.stockMovement",
657
+ inventoryChemicalProduct: "inventory.consumable.product",
658
+ inventoryChemicalStock: "inventory.consumable.stock",
659
+ inventoryChemicalStockMovement: "inventory.consumable.stockMovement",
660
+ inventoryMaintenancePartProduct: "inventory.maintenancePart.product",
661
+ inventoryMaintenancePartStock: "inventory.maintenancePart.stock",
662
+ inventoryMaintenancePartStockMovement: "inventory.maintenancePart.stockMovement",
653
663
  accommodation: "operations.accommodation",
654
664
  // ── Equipment & Fleet ──────────────────────────────────────────────────────
655
665
  equipPreStart: "equipment.preStart",
@@ -684,6 +694,15 @@ var RESOURCE_MODULE_MAP = {
684
694
  [RESOURCE_PATHS.team]: ALL_OPERATIONS,
685
695
  [RESOURCE_PATHS.records]: ALL_OPERATIONS,
686
696
  [RESOURCE_PATHS.adminSettings]: ALL_OPERATIONS,
697
+ // ── Inventory ──────────────────────────────────────────────────────
698
+ [RESOURCE_PATHS.inventoryConsumableProduct]: ALL_OPERATIONS,
699
+ [RESOURCE_PATHS.inventoryConsumableStock]: ALL_OPERATIONS,
700
+ [RESOURCE_PATHS.inventoryConsumableStockMovement]: ALL_OPERATIONS,
701
+ [RESOURCE_PATHS.inventoryChemicalProduct]: ALL_OPERATIONS,
702
+ [RESOURCE_PATHS.inventoryChemicalStock]: ALL_OPERATIONS,
703
+ [RESOURCE_PATHS.inventoryMaintenancePartProduct]: ALL_OPERATIONS,
704
+ [RESOURCE_PATHS.inventoryMaintenancePartStock]: ALL_OPERATIONS,
705
+ [RESOURCE_PATHS.inventoryMaintenancePartStockMovement]: ALL_OPERATIONS,
687
706
  // ── Records & Reports ──────────────────────────────────────────────────────
688
707
  [RESOURCE_PATHS.documentHub]: ALL_OPERATIONS,
689
708
  [RESOURCE_PATHS.documentHubTemplates]: ALL_OPERATIONS,
@@ -754,6 +773,16 @@ var RESOURCE_REQUIREMENTS = {
754
773
  allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR],
755
774
  requiredPrivileges: [UserPrivilege.ADMIN, UserPrivilege.AUDIT_COMPLIANCE, UserPrivilege.FINANCE, UserPrivilege.HR]
756
775
  },
776
+ [RESOURCE_PATHS.inventoryConsumableProduct]: {
777
+ allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
778
+ },
779
+ [RESOURCE_PATHS.inventoryConsumableStock]: { allowedRoles: EVERYONE },
780
+ [RESOURCE_PATHS.inventoryChemicalStockMovement]: { allowedRoles: EVERYONE },
781
+ [RESOURCE_PATHS.inventoryChemicalProduct]: {
782
+ allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
783
+ },
784
+ [RESOURCE_PATHS.inventoryChemicalStock]: { allowedRoles: EVERYONE },
785
+ [RESOURCE_PATHS.inventoryChemicalStockMovement]: { allowedRoles: EVERYONE },
757
786
  // ── Admin Settings ─────────────────────────────────────────────────────────
758
787
  [RESOURCE_PATHS.adminUserRoster]: {
759
788
  allowedRoles: [UserRole.OWNER],
@@ -1097,7 +1126,7 @@ var CatalogSyncStatus = {
1097
1126
  MATCHED: "matched",
1098
1127
  REJECTED: "rejected"
1099
1128
  };
1100
- var StorageTier = {
1129
+ var StoragePhases = {
1101
1130
  RECEIVING: "receiving",
1102
1131
  BULK_STORAGE: "bulk_storage",
1103
1132
  PICK_FACE: "pick_face",
@@ -1105,6 +1134,12 @@ var StorageTier = {
1105
1134
  QUARANTINE: "quarantine",
1106
1135
  RETURNS: "returns"
1107
1136
  };
1137
+ var StockPolicyTier = {
1138
+ FLAT: 0,
1139
+ BY_FACILITY: 1,
1140
+ BY_STORAGE_PHASE: 2,
1141
+ BY_LOCATION: 3
1142
+ };
1108
1143
 
1109
1144
  // src/index.ts
1110
1145
  var AppError = class extends Error {
@@ -1478,7 +1513,8 @@ function calculateFileMetadataMatch(criteria, fileMetadata, auditContext) {
1478
1513
  SENTINEL_UUID,
1479
1514
  SIGNATURE_MODES,
1480
1515
  SoilTexture,
1481
- StorageTier,
1516
+ StockPolicyTier,
1517
+ StoragePhases,
1482
1518
  TASK_TYPE_REGISTRY,
1483
1519
  TEMPLATE_SCOPE_LEVELS,
1484
1520
  TargetEntityType,
package/dist/index.mjs CHANGED
@@ -48,7 +48,8 @@ import {
48
48
  SENTINEL_UUID,
49
49
  SIGNATURE_MODES,
50
50
  SoilTexture,
51
- StorageTier,
51
+ StockPolicyTier,
52
+ StoragePhases,
52
53
  TASK_TYPE_REGISTRY,
53
54
  TEMPLATE_SCOPE_LEVELS,
54
55
  TargetEntityType,
@@ -60,7 +61,7 @@ import {
60
61
  UserRole,
61
62
  VigorRating,
62
63
  WaterSource
63
- } from "./chunk-YE7Q7OFU.mjs";
64
+ } from "./chunk-HF6OEJ4G.mjs";
64
65
 
65
66
  // src/index.ts
66
67
  import { jwtVerify } from "jose";
@@ -622,7 +623,8 @@ export {
622
623
  SENTINEL_UUID,
623
624
  SIGNATURE_MODES,
624
625
  SoilTexture,
625
- StorageTier,
626
+ StockPolicyTier,
627
+ StoragePhases,
626
628
  TASK_TYPE_REGISTRY,
627
629
  TEMPLATE_SCOPE_LEVELS,
628
630
  TargetEntityType,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@litusarchieve18/agricore-utils",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "description": "Canonical Backend Utility Library for AgriCore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",