@litusarchieve18/agricore-utils 1.0.17 → 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 +3 -1
- package/dist/{chunk-4WNJP4C3.mjs → chunk-HF6OEJ4G.mjs} +28 -0
- package/dist/{constants-C-6NWp7i.d.mts → constants-D70qwu34.d.mts} +9 -0
- package/dist/{constants-C-6NWp7i.d.ts → constants-D70qwu34.d.ts} +9 -0
- package/dist/constants.d.mts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +28 -0
- package/dist/constants.mjs +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +28 -0
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -183,7 +183,9 @@ Run the publish command:
|
|
|
183
183
|
Bash
|
|
184
184
|
npm publish --access public
|
|
185
185
|
📝 Version History
|
|
186
|
-
V1.0.
|
|
186
|
+
V1.0.18 - refactor menu structure
|
|
187
|
+
|
|
188
|
+
V1.0.17 — refactor type and enum
|
|
187
189
|
|
|
188
190
|
V1.0.16 — BarcodeType, BarcodeNamespace, ProductType, ProductUnit, CatalogSyncStatus, StorageTier
|
|
189
191
|
|
|
@@ -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],
|
|
@@ -430,6 +430,15 @@ declare const RESOURCE_PATHS: {
|
|
|
430
430
|
adminCompanySettings: string;
|
|
431
431
|
farmManagement: string;
|
|
432
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;
|
|
433
442
|
accommodation: string;
|
|
434
443
|
equipPreStart: string;
|
|
435
444
|
equipMaintenance: string;
|
|
@@ -430,6 +430,15 @@ declare const RESOURCE_PATHS: {
|
|
|
430
430
|
adminCompanySettings: string;
|
|
431
431
|
farmManagement: string;
|
|
432
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;
|
|
433
442
|
accommodation: string;
|
|
434
443
|
equipPreStart: string;
|
|
435
444
|
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-D70qwu34.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-D70qwu34.js';
|
package/dist/constants.js
CHANGED
|
@@ -430,6 +430,15 @@ var RESOURCE_PATHS = {
|
|
|
430
430
|
// ── Operations ────────────────────────────────────────────────────────────
|
|
431
431
|
farmManagement: "operations.farmManagement",
|
|
432
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",
|
|
433
442
|
accommodation: "operations.accommodation",
|
|
434
443
|
// ── Equipment & Fleet ──────────────────────────────────────────────────────
|
|
435
444
|
equipPreStart: "equipment.preStart",
|
|
@@ -464,6 +473,15 @@ var RESOURCE_MODULE_MAP = {
|
|
|
464
473
|
[RESOURCE_PATHS.team]: ALL_OPERATIONS,
|
|
465
474
|
[RESOURCE_PATHS.records]: ALL_OPERATIONS,
|
|
466
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,
|
|
467
485
|
// ── Records & Reports ──────────────────────────────────────────────────────
|
|
468
486
|
[RESOURCE_PATHS.documentHub]: ALL_OPERATIONS,
|
|
469
487
|
[RESOURCE_PATHS.documentHubTemplates]: ALL_OPERATIONS,
|
|
@@ -534,6 +552,16 @@ var RESOURCE_REQUIREMENTS = {
|
|
|
534
552
|
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR],
|
|
535
553
|
requiredPrivileges: [UserPrivilege.ADMIN, UserPrivilege.AUDIT_COMPLIANCE, UserPrivilege.FINANCE, UserPrivilege.HR]
|
|
536
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 },
|
|
537
565
|
// ── Admin Settings ─────────────────────────────────────────────────────────
|
|
538
566
|
[RESOURCE_PATHS.adminUserRoster]: {
|
|
539
567
|
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-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, 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-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
|
@@ -651,6 +651,15 @@ var RESOURCE_PATHS = {
|
|
|
651
651
|
// ── Operations ────────────────────────────────────────────────────────────
|
|
652
652
|
farmManagement: "operations.farmManagement",
|
|
653
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",
|
|
654
663
|
accommodation: "operations.accommodation",
|
|
655
664
|
// ── Equipment & Fleet ──────────────────────────────────────────────────────
|
|
656
665
|
equipPreStart: "equipment.preStart",
|
|
@@ -685,6 +694,15 @@ var RESOURCE_MODULE_MAP = {
|
|
|
685
694
|
[RESOURCE_PATHS.team]: ALL_OPERATIONS,
|
|
686
695
|
[RESOURCE_PATHS.records]: ALL_OPERATIONS,
|
|
687
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,
|
|
688
706
|
// ── Records & Reports ──────────────────────────────────────────────────────
|
|
689
707
|
[RESOURCE_PATHS.documentHub]: ALL_OPERATIONS,
|
|
690
708
|
[RESOURCE_PATHS.documentHubTemplates]: ALL_OPERATIONS,
|
|
@@ -755,6 +773,16 @@ var RESOURCE_REQUIREMENTS = {
|
|
|
755
773
|
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR],
|
|
756
774
|
requiredPrivileges: [UserPrivilege.ADMIN, UserPrivilege.AUDIT_COMPLIANCE, UserPrivilege.FINANCE, UserPrivilege.HR]
|
|
757
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 },
|
|
758
786
|
// ── Admin Settings ─────────────────────────────────────────────────────────
|
|
759
787
|
[RESOURCE_PATHS.adminUserRoster]: {
|
|
760
788
|
allowedRoles: [UserRole.OWNER],
|
package/dist/index.mjs
CHANGED