@litusarchieve18/agricore-utils 1.0.16 → 1.0.17

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,8 @@ Run the publish command:
183
183
  Bash
184
184
  npm publish --access public
185
185
  📝 Version History
186
+ V1.0.17 — refactor
187
+
186
188
  V1.0.16 — BarcodeType, BarcodeNamespace, ProductType, ProductUnit, CatalogSyncStatus, StorageTier
187
189
 
188
190
  V1.0.15 — add some standardized enum and types for CAR
@@ -792,7 +792,7 @@ var CatalogSyncStatus = {
792
792
  MATCHED: "matched",
793
793
  REJECTED: "rejected"
794
794
  };
795
- var StorageTier = {
795
+ var StoragePhases = {
796
796
  RECEIVING: "receiving",
797
797
  BULK_STORAGE: "bulk_storage",
798
798
  PICK_FACE: "pick_face",
@@ -800,6 +800,12 @@ var StorageTier = {
800
800
  QUARANTINE: "quarantine",
801
801
  RETURNS: "returns"
802
802
  };
803
+ var StockPolicyTier = {
804
+ FLAT: 0,
805
+ BY_FACILITY: 1,
806
+ BY_STORAGE_PHASE: 2,
807
+ BY_LOCATION: 3
808
+ };
803
809
 
804
810
  export {
805
811
  MOD,
@@ -862,5 +868,6 @@ export {
862
868
  ProductType,
863
869
  ProductUnit,
864
870
  CatalogSyncStatus,
865
- StorageTier
871
+ StoragePhases,
872
+ StockPolicyTier
866
873
  };
@@ -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";
@@ -591,7 +592,7 @@ declare const CatalogSyncStatus: {
591
592
  readonly MATCHED: "matched";
592
593
  readonly REJECTED: "rejected";
593
594
  };
594
- declare const StorageTier: {
595
+ declare const StoragePhases: {
595
596
  readonly RECEIVING: "receiving";
596
597
  readonly BULK_STORAGE: "bulk_storage";
597
598
  readonly PICK_FACE: "pick_face";
@@ -599,5 +600,11 @@ declare const StorageTier: {
599
600
  readonly QUARANTINE: "quarantine";
600
601
  readonly RETURNS: "returns";
601
602
  };
603
+ declare const StockPolicyTier: {
604
+ readonly FLAT: 0;
605
+ readonly BY_FACILITY: 1;
606
+ readonly BY_STORAGE_PHASE: 2;
607
+ readonly BY_LOCATION: 3;
608
+ };
602
609
 
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 };
610
+ 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";
@@ -591,7 +592,7 @@ declare const CatalogSyncStatus: {
591
592
  readonly MATCHED: "matched";
592
593
  readonly REJECTED: "rejected";
593
594
  };
594
- declare const StorageTier: {
595
+ declare const StoragePhases: {
595
596
  readonly RECEIVING: "receiving";
596
597
  readonly BULK_STORAGE: "bulk_storage";
597
598
  readonly PICK_FACE: "pick_face";
@@ -599,5 +600,11 @@ declare const StorageTier: {
599
600
  readonly QUARANTINE: "quarantine";
600
601
  readonly RETURNS: "returns";
601
602
  };
603
+ declare const StockPolicyTier: {
604
+ readonly FLAT: 0;
605
+ readonly BY_FACILITY: 1;
606
+ readonly BY_STORAGE_PHASE: 2;
607
+ readonly BY_LOCATION: 3;
608
+ };
602
609
 
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 };
610
+ 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-C-6NWp7i.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-C-6NWp7i.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,
@@ -876,7 +877,7 @@ var CatalogSyncStatus = {
876
877
  MATCHED: "matched",
877
878
  REJECTED: "rejected"
878
879
  };
879
- var StorageTier = {
880
+ var StoragePhases = {
880
881
  RECEIVING: "receiving",
881
882
  BULK_STORAGE: "bulk_storage",
882
883
  PICK_FACE: "pick_face",
@@ -884,6 +885,12 @@ var StorageTier = {
884
885
  QUARANTINE: "quarantine",
885
886
  RETURNS: "returns"
886
887
  };
888
+ var StockPolicyTier = {
889
+ FLAT: 0,
890
+ BY_FACILITY: 1,
891
+ BY_STORAGE_PHASE: 2,
892
+ BY_LOCATION: 3
893
+ };
887
894
  // Annotate the CommonJS export names for ESM import in node:
888
895
  0 && (module.exports = {
889
896
  ACCESS_RANK,
@@ -935,7 +942,8 @@ var StorageTier = {
935
942
  SENTINEL_UUID,
936
943
  SIGNATURE_MODES,
937
944
  SoilTexture,
938
- StorageTier,
945
+ StockPolicyTier,
946
+ StoragePhases,
939
947
  TASK_TYPE_REGISTRY,
940
948
  TEMPLATE_SCOPE_LEVELS,
941
949
  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-4WNJP4C3.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-C-6NWp7i.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-6NWp7i.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-C-6NWp7i.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-6NWp7i.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,
@@ -1097,7 +1098,7 @@ var CatalogSyncStatus = {
1097
1098
  MATCHED: "matched",
1098
1099
  REJECTED: "rejected"
1099
1100
  };
1100
- var StorageTier = {
1101
+ var StoragePhases = {
1101
1102
  RECEIVING: "receiving",
1102
1103
  BULK_STORAGE: "bulk_storage",
1103
1104
  PICK_FACE: "pick_face",
@@ -1105,6 +1106,12 @@ var StorageTier = {
1105
1106
  QUARANTINE: "quarantine",
1106
1107
  RETURNS: "returns"
1107
1108
  };
1109
+ var StockPolicyTier = {
1110
+ FLAT: 0,
1111
+ BY_FACILITY: 1,
1112
+ BY_STORAGE_PHASE: 2,
1113
+ BY_LOCATION: 3
1114
+ };
1108
1115
 
1109
1116
  // src/index.ts
1110
1117
  var AppError = class extends Error {
@@ -1478,7 +1485,8 @@ function calculateFileMetadataMatch(criteria, fileMetadata, auditContext) {
1478
1485
  SENTINEL_UUID,
1479
1486
  SIGNATURE_MODES,
1480
1487
  SoilTexture,
1481
- StorageTier,
1488
+ StockPolicyTier,
1489
+ StoragePhases,
1482
1490
  TASK_TYPE_REGISTRY,
1483
1491
  TEMPLATE_SCOPE_LEVELS,
1484
1492
  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-4WNJP4C3.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.17",
4
4
  "description": "Canonical Backend Utility Library for AgriCore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",