@litusarchieve18/agricore-utils 1.0.14 → 1.0.16

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.16 — BarcodeType, BarcodeNamespace, ProductType, ProductUnit, CatalogSyncStatus, StorageTier
187
+
188
+ V1.0.15 — add some standardized enum and types for CAR
189
+
186
190
  V1.0.14 — add DOCUMENT_DISPLAY_INFO do manage the grouping and a little description for UI
187
191
 
188
192
  V1.0.13 — add DocumentMenuMap and refactoring library code to export enum
@@ -140,7 +140,10 @@ var TaskType = {
140
140
  KML_PARSE: "KML_PARSE",
141
141
  INVOICE_OCR: "INVOICE_OCR",
142
142
  AUDIT_UPLOAD: "AUDIT_UPLOAD",
143
- REPORT_GEN: "REPORT_GEN"
143
+ REPORT_GEN: "REPORT_GEN",
144
+ PDF_STAMPING: "PDF_STAMPING",
145
+ CAR_TEMPLATE_UPLOAD: "CAR_TEMPLATE_UPLOAD",
146
+ CORRECTIVE_ACTION_COMPILE: "CORRECTIVE_ACTION_COMPILE"
144
147
  };
145
148
  var TaskStatus = {
146
149
  PENDING: "PENDING",
@@ -722,6 +725,81 @@ var DOCUMENT_MENU_MAP = {
722
725
  ["AUDIT_REPORT" /* AUDIT_REPORT */]: [RESOURCE_PATHS.safetyAuditing, RESOURCE_PATHS.dashboard],
723
726
  ["SENSITIVE_IDENTITY" /* SENSITIVE_IDENTITY */]: [RESOURCE_PATHS.adminUserRoster]
724
727
  };
728
+ var SIGNATURE_MODES = {
729
+ TYPED_NAME: "typed_name",
730
+ DRAWN_IMAGE: "drawn_image",
731
+ UPLOADED_IMAGE: "uploaded_image"
732
+ };
733
+ var CORRECTIVE_ACTION_STATUSES = {
734
+ DRAFT: "draft",
735
+ GENERATED: "generated",
736
+ REVIEWED: "reviewed",
737
+ CLOSED: "closed",
738
+ FAILED: "failed"
739
+ };
740
+ var TEMPLATE_SCOPE_LEVELS = {
741
+ FACILITY: "facility",
742
+ LEGAL_ENTITY: "legalEntity",
743
+ COMPANY: "company"
744
+ };
745
+ var CORRECTIVE_ACTION_GENERATION_SOURCES = {
746
+ CREATE: "CREATE",
747
+ RECREATE: "RECREATE"
748
+ };
749
+ var CAR_SUPPORTED_EVIDENCE_MIME_TYPES = [
750
+ "application/pdf",
751
+ "image/png",
752
+ "image/jpeg"
753
+ ];
754
+ var CAR_SUPPORTED_SIGNATURE_MIME_TYPES = [
755
+ "image/png",
756
+ "image/jpeg"
757
+ ];
758
+ var BarcodeType = {
759
+ GTIN_8: "GTIN-8",
760
+ GTIN_12: "GTIN-12",
761
+ GTIN_13: "GTIN-13",
762
+ GTIN_14: "GTIN-14",
763
+ CODE_128: "CODE-128",
764
+ QR: "QR",
765
+ OTHER: "other"
766
+ };
767
+ var BarcodeNamespace = {
768
+ GLOBAL_STANDARD: "global_standard",
769
+ INTERNAL_COMPANY: "internal_company"
770
+ };
771
+ var ProductType = {
772
+ CARTON: "carton",
773
+ TRAY: "tray",
774
+ LINER: "liner",
775
+ LABEL: "label",
776
+ TAPE: "tape",
777
+ STRAPPING: "strapping",
778
+ PALLET: "pallet",
779
+ STRETCH_WRAP: "stretch_wrap",
780
+ OTHER: "other"
781
+ };
782
+ var ProductUnit = {
783
+ UNITS: "units",
784
+ BOXES: "boxes",
785
+ ROLLS: "rolls",
786
+ PALLETS: "pallets",
787
+ KG: "kg"
788
+ };
789
+ var CatalogSyncStatus = {
790
+ UNVERIFIED: "unverified",
791
+ PENDING_REVIEW: "pending_review",
792
+ MATCHED: "matched",
793
+ REJECTED: "rejected"
794
+ };
795
+ var StorageTier = {
796
+ RECEIVING: "receiving",
797
+ BULK_STORAGE: "bulk_storage",
798
+ PICK_FACE: "pick_face",
799
+ PRODUCTION_LINE: "production_line",
800
+ QUARANTINE: "quarantine",
801
+ RETURNS: "returns"
802
+ };
725
803
 
726
804
  export {
727
805
  MOD,
@@ -772,5 +850,17 @@ export {
772
850
  DocumentCategory,
773
851
  DOCUMENT_DISPLAY_INFO,
774
852
  CATEGORY_TABS,
775
- DOCUMENT_MENU_MAP
853
+ DOCUMENT_MENU_MAP,
854
+ SIGNATURE_MODES,
855
+ CORRECTIVE_ACTION_STATUSES,
856
+ TEMPLATE_SCOPE_LEVELS,
857
+ CORRECTIVE_ACTION_GENERATION_SOURCES,
858
+ CAR_SUPPORTED_EVIDENCE_MIME_TYPES,
859
+ CAR_SUPPORTED_SIGNATURE_MIME_TYPES,
860
+ BarcodeType,
861
+ BarcodeNamespace,
862
+ ProductType,
863
+ ProductUnit,
864
+ CatalogSyncStatus,
865
+ StorageTier
776
866
  };
@@ -10,6 +10,8 @@ interface AvailableScope {
10
10
  interface CompanyConfig {
11
11
  isMultiEntity: boolean;
12
12
  }
13
+ type UserRoleType = typeof UserRole[keyof typeof UserRole];
14
+ type AccessLevelType = keyof typeof AccessLevel;
13
15
  /**
14
16
  * Deep map of scope IDs to resource paths and their permission levels.
15
17
  * Example: { "uuid-123": { "farm.records": "WRITE" } }
@@ -76,6 +78,88 @@ interface InfrastructureFields {
76
78
  facilityId: string | null;
77
79
  authScopeId: string;
78
80
  }
81
+ /**
82
+ * Base44 ID alias for readability only.
83
+ * Still just string at runtime.
84
+ */
85
+ type Base44Id = string;
86
+ /**
87
+ * Canonical UUID alias for readability only.
88
+ */
89
+ type CanonicalId = string;
90
+ /**
91
+ * Derived union types from constants.
92
+ */
93
+ type SignatureMode = typeof SIGNATURE_MODES[keyof typeof SIGNATURE_MODES];
94
+ type CorrectiveActionStatus = typeof CORRECTIVE_ACTION_STATUSES[keyof typeof CORRECTIVE_ACTION_STATUSES];
95
+ type FileUploadTaskType = typeof TaskType[keyof typeof TaskType];
96
+ type TemplateScopeLevel = typeof TEMPLATE_SCOPE_LEVELS[keyof typeof TEMPLATE_SCOPE_LEVELS];
97
+ type CorrectiveActionGenerationSource = typeof CORRECTIVE_ACTION_GENERATION_SOURCES[keyof typeof CORRECTIVE_ACTION_GENERATION_SOURCES];
98
+ type CarSupportedEvidenceMimeType = typeof CAR_SUPPORTED_EVIDENCE_MIME_TYPES[number];
99
+ type CarSupportedSignatureMimeType = typeof CAR_SUPPORTED_SIGNATURE_MIME_TYPES[number];
100
+ /**
101
+ * Shared signature payload used by create/preview CAR requests.
102
+ * typed_name stores text only.
103
+ * drawn_image / uploaded_image store a FileAsset Base44 ID.
104
+ */
105
+ type SignatureInput = {
106
+ mode: typeof SIGNATURE_MODES.TYPED_NAME;
107
+ typedName: string;
108
+ fileAssetId?: null;
109
+ } | {
110
+ mode: typeof SIGNATURE_MODES.DRAWN_IMAGE | typeof SIGNATURE_MODES.UPLOADED_IMAGE;
111
+ typedName?: null;
112
+ fileAssetId: Base44Id;
113
+ };
114
+ /**
115
+ * Optional normalized signature value that can also be reused inside entities later.
116
+ * Useful if you want one stable shape for mapped/flattened signature data.
117
+ */
118
+ type NormalizedSignatureValue = {
119
+ mode: SignatureMode;
120
+ typedName?: string | null;
121
+ fileAssetId?: Base44Id | null;
122
+ };
123
+ /**
124
+ * Metadata stored inside FileUploadTask for CAR compilation.
125
+ * Keep this lean: execution references only, not full form content.
126
+ */
127
+ type CorrectiveActionCompileTaskMetadata = {
128
+ correctiveActionId: Base44Id;
129
+ companyAuditDetailResponseId: Base44Id;
130
+ companyAuditHeaderId: Base44Id;
131
+ templateAssetId: Base44Id;
132
+ resolvedTemplateScopeLevel: TemplateScopeLevel;
133
+ operationalSettingsId: Base44Id;
134
+ supportingEvidenceFileIds: Base44Id[];
135
+ appendSupportingEvidenceInOrder: true;
136
+ linkCompiledPdfToResponseEvidence: true;
137
+ linkOriginalSupportingEvidenceToResponseEvidence: true;
138
+ generationSource: CorrectiveActionGenerationSource;
139
+ previousCorrectiveActionId: Base44Id | null;
140
+ };
141
+ /**
142
+ * FileAsset.metadata shape for CAR templates.
143
+ * Stored on the uploaded template PDF asset.
144
+ */
145
+ type CarTemplateFileMetadata = {
146
+ templateType: 'CAR';
147
+ stampingZone: {
148
+ xPct: number;
149
+ yPct: number;
150
+ wPct: number;
151
+ hPct: number;
152
+ };
153
+ pageNumber: number;
154
+ applyToAllPages: boolean;
155
+ promotedAt?: string;
156
+ };
157
+ type BarcodeTypeType = typeof BarcodeType[keyof typeof BarcodeType];
158
+ type BarcodeNamespaceType = typeof BarcodeNamespace[keyof typeof BarcodeNamespace];
159
+ type ProductTypeType = typeof ProductType[keyof typeof ProductType];
160
+ type ProductUnitType = typeof ProductUnit[keyof typeof ProductUnit];
161
+ type CatalogSyncStatusType = typeof CatalogSyncStatus[keyof typeof CatalogSyncStatus];
162
+ type StorageTierType = typeof StorageTier[keyof typeof StorageTier];
79
163
 
80
164
  declare const MOD: {
81
165
  readonly OPERATIONS: "OPR";
@@ -119,7 +203,6 @@ declare const UserRole: {
119
203
  readonly LEADING_HAND: "leadingHand";
120
204
  readonly WORKER: "worker";
121
205
  };
122
- type UserRoleType = typeof UserRole[keyof typeof UserRole];
123
206
  declare const UserPrivilege: {
124
207
  readonly FINANCE: "finance";
125
208
  readonly HR: "hr";
@@ -132,7 +215,6 @@ declare const AccessLevel: {
132
215
  readonly READ: "READ";
133
216
  readonly WRITE: "WRITE";
134
217
  };
135
- type AccessLevelType = keyof typeof AccessLevel;
136
218
  declare const EnabledModule: {
137
219
  readonly FARM_MANAGEMENT: "farm_management";
138
220
  readonly PACKHOUSE: "packhouse";
@@ -185,11 +267,18 @@ declare const NotificationMode: {
185
267
  readonly EXTERNAL_EMAIL: "external_email";
186
268
  readonly NONE: "none";
187
269
  };
270
+ /**
271
+ * FileUploadTask type for CAR compilation worker.
272
+ * Reused between service layer and async worker.
273
+ */
188
274
  declare const TaskType: {
189
275
  readonly KML_PARSE: "KML_PARSE";
190
276
  readonly INVOICE_OCR: "INVOICE_OCR";
191
277
  readonly AUDIT_UPLOAD: "AUDIT_UPLOAD";
192
278
  readonly REPORT_GEN: "REPORT_GEN";
279
+ readonly PDF_STAMPING: "PDF_STAMPING";
280
+ readonly CAR_TEMPLATE_UPLOAD: "CAR_TEMPLATE_UPLOAD";
281
+ readonly CORRECTIVE_ACTION_COMPILE: "CORRECTIVE_ACTION_COMPILE";
193
282
  };
194
283
  declare const TaskStatus: {
195
284
  readonly PENDING: "PENDING";
@@ -413,5 +502,102 @@ declare const DOCUMENT_DISPLAY_INFO: Record<DocumentType, {
413
502
  }>;
414
503
  declare const CATEGORY_TABS: string[];
415
504
  declare const DOCUMENT_MENU_MAP: Record<DocumentType, string[]>;
505
+ /**
506
+ * Signature modes supported by CAR and similar official document flows.
507
+ * Use this for both frontend UI selectors and backend validation.
508
+ */
509
+ declare const SIGNATURE_MODES: {
510
+ readonly TYPED_NAME: "typed_name";
511
+ readonly DRAWN_IMAGE: "drawn_image";
512
+ readonly UPLOADED_IMAGE: "uploaded_image";
513
+ };
514
+ /**
515
+ * Corrective Action lifecycle states.
516
+ * draft = record created, generation not finalized yet
517
+ * generated = compiled PDF created and linked successfully
518
+ * reviewed = optional later review completed
519
+ * closed = final business closure
520
+ * failed = generation failed
521
+ */
522
+ declare const CORRECTIVE_ACTION_STATUSES: {
523
+ readonly DRAFT: "draft";
524
+ readonly GENERATED: "generated";
525
+ readonly REVIEWED: "reviewed";
526
+ readonly CLOSED: "closed";
527
+ readonly FAILED: "failed";
528
+ };
529
+ /**
530
+ * Scope level used when resolving templates from OperationalSettings.
531
+ * Resolution precedence is facility -> legalEntity -> company.
532
+ */
533
+ declare const TEMPLATE_SCOPE_LEVELS: {
534
+ readonly FACILITY: "facility";
535
+ readonly LEGAL_ENTITY: "legalEntity";
536
+ readonly COMPANY: "company";
537
+ };
538
+ /**
539
+ * Generation source for CAR creation.
540
+ * CREATE = fresh new CAR
541
+ * RECREATE = new CAR created from a failed prior CAR
542
+ */
543
+ declare const CORRECTIVE_ACTION_GENERATION_SOURCES: {
544
+ readonly CREATE: "CREATE";
545
+ readonly RECREATE: "RECREATE";
546
+ };
547
+ /**
548
+ * Allowed supporting evidence mime types for CAR.
549
+ * Used by frontend upload filter and backend validation.
550
+ */
551
+ declare const CAR_SUPPORTED_EVIDENCE_MIME_TYPES: readonly ["application/pdf", "image/png", "image/jpeg"];
552
+ /**
553
+ * Allowed mime types for signature file uploads.
554
+ * Drawn signatures usually become PNG; uploaded signatures should stay image-only.
555
+ */
556
+ declare const CAR_SUPPORTED_SIGNATURE_MIME_TYPES: readonly ["image/png", "image/jpeg"];
557
+ declare const BarcodeType: {
558
+ readonly GTIN_8: "GTIN-8";
559
+ readonly GTIN_12: "GTIN-12";
560
+ readonly GTIN_13: "GTIN-13";
561
+ readonly GTIN_14: "GTIN-14";
562
+ readonly CODE_128: "CODE-128";
563
+ readonly QR: "QR";
564
+ readonly OTHER: "other";
565
+ };
566
+ declare const BarcodeNamespace: {
567
+ readonly GLOBAL_STANDARD: "global_standard";
568
+ readonly INTERNAL_COMPANY: "internal_company";
569
+ };
570
+ declare const ProductType: {
571
+ readonly CARTON: "carton";
572
+ readonly TRAY: "tray";
573
+ readonly LINER: "liner";
574
+ readonly LABEL: "label";
575
+ readonly TAPE: "tape";
576
+ readonly STRAPPING: "strapping";
577
+ readonly PALLET: "pallet";
578
+ readonly STRETCH_WRAP: "stretch_wrap";
579
+ readonly OTHER: "other";
580
+ };
581
+ declare const ProductUnit: {
582
+ readonly UNITS: "units";
583
+ readonly BOXES: "boxes";
584
+ readonly ROLLS: "rolls";
585
+ readonly PALLETS: "pallets";
586
+ readonly KG: "kg";
587
+ };
588
+ declare const CatalogSyncStatus: {
589
+ readonly UNVERIFIED: "unverified";
590
+ readonly PENDING_REVIEW: "pending_review";
591
+ readonly MATCHED: "matched";
592
+ readonly REJECTED: "rejected";
593
+ };
594
+ declare const StorageTier: {
595
+ readonly RECEIVING: "receiving";
596
+ readonly BULK_STORAGE: "bulk_storage";
597
+ readonly PICK_FACE: "pick_face";
598
+ readonly PRODUCTION_LINE: "production_line";
599
+ readonly QUARANTINE: "quarantine";
600
+ readonly RETURNS: "returns";
601
+ };
416
602
 
417
- export { type TabConfig as $, ACCESS_RANK as A, PhysicalState as B, CAT as C, DOCUMENT_DISPLAY_INFO as D, ERROR_DICTIONARY as E, FORM_REGISTRY as F, PlantingMethod as G, HarvestMethod as H, type InfrastructureFields as I, RESOURCE_PATHS as J, RESOURCE_REQUIREMENTS as K, LinkedStatus as L, MOD as M, NettingType as N, OrderStatus as O, type PermissionLevel as P, ROLE_SECTIONS_BY_KEY as Q, RESOURCE_MODULE_MAP as R, RelationshipType as S, type ResolvedError as T, type ResourceOverrides as U, type ResourceRequirement as V, RowOrientation as W, SENTINEL_UUID as X, type ScopeType as Y, SoilTexture as Z, TASK_TYPE_REGISTRY as _, ACT as a, TargetEntityType as a0, TaskStatus as a1, TaskType as a2, type TaskTypeConfig as a3, TransactionType as a4, TrellisType as a5, UserPrivilege as a6, UserRole as a7, type UserRoleType as a8, VigorRating as a9, WaterSource as aa, 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, CATEGORY_TABS as k, type CompanyConfig as l, CropCycleStatus as m, DOCUMENT_MENU_MAP as n, DocumentCategory as o, DocumentType as p, EVERYONE as q, EmitterType as r, EnabledModule as s, FacilityType as t, type FormMeta as u, MODULE_LABELS as v, MicroclimateZone as w, MimeType as x, type ModCode as y, NotificationMode as z };
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 };
@@ -10,6 +10,8 @@ interface AvailableScope {
10
10
  interface CompanyConfig {
11
11
  isMultiEntity: boolean;
12
12
  }
13
+ type UserRoleType = typeof UserRole[keyof typeof UserRole];
14
+ type AccessLevelType = keyof typeof AccessLevel;
13
15
  /**
14
16
  * Deep map of scope IDs to resource paths and their permission levels.
15
17
  * Example: { "uuid-123": { "farm.records": "WRITE" } }
@@ -76,6 +78,88 @@ interface InfrastructureFields {
76
78
  facilityId: string | null;
77
79
  authScopeId: string;
78
80
  }
81
+ /**
82
+ * Base44 ID alias for readability only.
83
+ * Still just string at runtime.
84
+ */
85
+ type Base44Id = string;
86
+ /**
87
+ * Canonical UUID alias for readability only.
88
+ */
89
+ type CanonicalId = string;
90
+ /**
91
+ * Derived union types from constants.
92
+ */
93
+ type SignatureMode = typeof SIGNATURE_MODES[keyof typeof SIGNATURE_MODES];
94
+ type CorrectiveActionStatus = typeof CORRECTIVE_ACTION_STATUSES[keyof typeof CORRECTIVE_ACTION_STATUSES];
95
+ type FileUploadTaskType = typeof TaskType[keyof typeof TaskType];
96
+ type TemplateScopeLevel = typeof TEMPLATE_SCOPE_LEVELS[keyof typeof TEMPLATE_SCOPE_LEVELS];
97
+ type CorrectiveActionGenerationSource = typeof CORRECTIVE_ACTION_GENERATION_SOURCES[keyof typeof CORRECTIVE_ACTION_GENERATION_SOURCES];
98
+ type CarSupportedEvidenceMimeType = typeof CAR_SUPPORTED_EVIDENCE_MIME_TYPES[number];
99
+ type CarSupportedSignatureMimeType = typeof CAR_SUPPORTED_SIGNATURE_MIME_TYPES[number];
100
+ /**
101
+ * Shared signature payload used by create/preview CAR requests.
102
+ * typed_name stores text only.
103
+ * drawn_image / uploaded_image store a FileAsset Base44 ID.
104
+ */
105
+ type SignatureInput = {
106
+ mode: typeof SIGNATURE_MODES.TYPED_NAME;
107
+ typedName: string;
108
+ fileAssetId?: null;
109
+ } | {
110
+ mode: typeof SIGNATURE_MODES.DRAWN_IMAGE | typeof SIGNATURE_MODES.UPLOADED_IMAGE;
111
+ typedName?: null;
112
+ fileAssetId: Base44Id;
113
+ };
114
+ /**
115
+ * Optional normalized signature value that can also be reused inside entities later.
116
+ * Useful if you want one stable shape for mapped/flattened signature data.
117
+ */
118
+ type NormalizedSignatureValue = {
119
+ mode: SignatureMode;
120
+ typedName?: string | null;
121
+ fileAssetId?: Base44Id | null;
122
+ };
123
+ /**
124
+ * Metadata stored inside FileUploadTask for CAR compilation.
125
+ * Keep this lean: execution references only, not full form content.
126
+ */
127
+ type CorrectiveActionCompileTaskMetadata = {
128
+ correctiveActionId: Base44Id;
129
+ companyAuditDetailResponseId: Base44Id;
130
+ companyAuditHeaderId: Base44Id;
131
+ templateAssetId: Base44Id;
132
+ resolvedTemplateScopeLevel: TemplateScopeLevel;
133
+ operationalSettingsId: Base44Id;
134
+ supportingEvidenceFileIds: Base44Id[];
135
+ appendSupportingEvidenceInOrder: true;
136
+ linkCompiledPdfToResponseEvidence: true;
137
+ linkOriginalSupportingEvidenceToResponseEvidence: true;
138
+ generationSource: CorrectiveActionGenerationSource;
139
+ previousCorrectiveActionId: Base44Id | null;
140
+ };
141
+ /**
142
+ * FileAsset.metadata shape for CAR templates.
143
+ * Stored on the uploaded template PDF asset.
144
+ */
145
+ type CarTemplateFileMetadata = {
146
+ templateType: 'CAR';
147
+ stampingZone: {
148
+ xPct: number;
149
+ yPct: number;
150
+ wPct: number;
151
+ hPct: number;
152
+ };
153
+ pageNumber: number;
154
+ applyToAllPages: boolean;
155
+ promotedAt?: string;
156
+ };
157
+ type BarcodeTypeType = typeof BarcodeType[keyof typeof BarcodeType];
158
+ type BarcodeNamespaceType = typeof BarcodeNamespace[keyof typeof BarcodeNamespace];
159
+ type ProductTypeType = typeof ProductType[keyof typeof ProductType];
160
+ type ProductUnitType = typeof ProductUnit[keyof typeof ProductUnit];
161
+ type CatalogSyncStatusType = typeof CatalogSyncStatus[keyof typeof CatalogSyncStatus];
162
+ type StorageTierType = typeof StorageTier[keyof typeof StorageTier];
79
163
 
80
164
  declare const MOD: {
81
165
  readonly OPERATIONS: "OPR";
@@ -119,7 +203,6 @@ declare const UserRole: {
119
203
  readonly LEADING_HAND: "leadingHand";
120
204
  readonly WORKER: "worker";
121
205
  };
122
- type UserRoleType = typeof UserRole[keyof typeof UserRole];
123
206
  declare const UserPrivilege: {
124
207
  readonly FINANCE: "finance";
125
208
  readonly HR: "hr";
@@ -132,7 +215,6 @@ declare const AccessLevel: {
132
215
  readonly READ: "READ";
133
216
  readonly WRITE: "WRITE";
134
217
  };
135
- type AccessLevelType = keyof typeof AccessLevel;
136
218
  declare const EnabledModule: {
137
219
  readonly FARM_MANAGEMENT: "farm_management";
138
220
  readonly PACKHOUSE: "packhouse";
@@ -185,11 +267,18 @@ declare const NotificationMode: {
185
267
  readonly EXTERNAL_EMAIL: "external_email";
186
268
  readonly NONE: "none";
187
269
  };
270
+ /**
271
+ * FileUploadTask type for CAR compilation worker.
272
+ * Reused between service layer and async worker.
273
+ */
188
274
  declare const TaskType: {
189
275
  readonly KML_PARSE: "KML_PARSE";
190
276
  readonly INVOICE_OCR: "INVOICE_OCR";
191
277
  readonly AUDIT_UPLOAD: "AUDIT_UPLOAD";
192
278
  readonly REPORT_GEN: "REPORT_GEN";
279
+ readonly PDF_STAMPING: "PDF_STAMPING";
280
+ readonly CAR_TEMPLATE_UPLOAD: "CAR_TEMPLATE_UPLOAD";
281
+ readonly CORRECTIVE_ACTION_COMPILE: "CORRECTIVE_ACTION_COMPILE";
193
282
  };
194
283
  declare const TaskStatus: {
195
284
  readonly PENDING: "PENDING";
@@ -413,5 +502,102 @@ declare const DOCUMENT_DISPLAY_INFO: Record<DocumentType, {
413
502
  }>;
414
503
  declare const CATEGORY_TABS: string[];
415
504
  declare const DOCUMENT_MENU_MAP: Record<DocumentType, string[]>;
505
+ /**
506
+ * Signature modes supported by CAR and similar official document flows.
507
+ * Use this for both frontend UI selectors and backend validation.
508
+ */
509
+ declare const SIGNATURE_MODES: {
510
+ readonly TYPED_NAME: "typed_name";
511
+ readonly DRAWN_IMAGE: "drawn_image";
512
+ readonly UPLOADED_IMAGE: "uploaded_image";
513
+ };
514
+ /**
515
+ * Corrective Action lifecycle states.
516
+ * draft = record created, generation not finalized yet
517
+ * generated = compiled PDF created and linked successfully
518
+ * reviewed = optional later review completed
519
+ * closed = final business closure
520
+ * failed = generation failed
521
+ */
522
+ declare const CORRECTIVE_ACTION_STATUSES: {
523
+ readonly DRAFT: "draft";
524
+ readonly GENERATED: "generated";
525
+ readonly REVIEWED: "reviewed";
526
+ readonly CLOSED: "closed";
527
+ readonly FAILED: "failed";
528
+ };
529
+ /**
530
+ * Scope level used when resolving templates from OperationalSettings.
531
+ * Resolution precedence is facility -> legalEntity -> company.
532
+ */
533
+ declare const TEMPLATE_SCOPE_LEVELS: {
534
+ readonly FACILITY: "facility";
535
+ readonly LEGAL_ENTITY: "legalEntity";
536
+ readonly COMPANY: "company";
537
+ };
538
+ /**
539
+ * Generation source for CAR creation.
540
+ * CREATE = fresh new CAR
541
+ * RECREATE = new CAR created from a failed prior CAR
542
+ */
543
+ declare const CORRECTIVE_ACTION_GENERATION_SOURCES: {
544
+ readonly CREATE: "CREATE";
545
+ readonly RECREATE: "RECREATE";
546
+ };
547
+ /**
548
+ * Allowed supporting evidence mime types for CAR.
549
+ * Used by frontend upload filter and backend validation.
550
+ */
551
+ declare const CAR_SUPPORTED_EVIDENCE_MIME_TYPES: readonly ["application/pdf", "image/png", "image/jpeg"];
552
+ /**
553
+ * Allowed mime types for signature file uploads.
554
+ * Drawn signatures usually become PNG; uploaded signatures should stay image-only.
555
+ */
556
+ declare const CAR_SUPPORTED_SIGNATURE_MIME_TYPES: readonly ["image/png", "image/jpeg"];
557
+ declare const BarcodeType: {
558
+ readonly GTIN_8: "GTIN-8";
559
+ readonly GTIN_12: "GTIN-12";
560
+ readonly GTIN_13: "GTIN-13";
561
+ readonly GTIN_14: "GTIN-14";
562
+ readonly CODE_128: "CODE-128";
563
+ readonly QR: "QR";
564
+ readonly OTHER: "other";
565
+ };
566
+ declare const BarcodeNamespace: {
567
+ readonly GLOBAL_STANDARD: "global_standard";
568
+ readonly INTERNAL_COMPANY: "internal_company";
569
+ };
570
+ declare const ProductType: {
571
+ readonly CARTON: "carton";
572
+ readonly TRAY: "tray";
573
+ readonly LINER: "liner";
574
+ readonly LABEL: "label";
575
+ readonly TAPE: "tape";
576
+ readonly STRAPPING: "strapping";
577
+ readonly PALLET: "pallet";
578
+ readonly STRETCH_WRAP: "stretch_wrap";
579
+ readonly OTHER: "other";
580
+ };
581
+ declare const ProductUnit: {
582
+ readonly UNITS: "units";
583
+ readonly BOXES: "boxes";
584
+ readonly ROLLS: "rolls";
585
+ readonly PALLETS: "pallets";
586
+ readonly KG: "kg";
587
+ };
588
+ declare const CatalogSyncStatus: {
589
+ readonly UNVERIFIED: "unverified";
590
+ readonly PENDING_REVIEW: "pending_review";
591
+ readonly MATCHED: "matched";
592
+ readonly REJECTED: "rejected";
593
+ };
594
+ declare const StorageTier: {
595
+ readonly RECEIVING: "receiving";
596
+ readonly BULK_STORAGE: "bulk_storage";
597
+ readonly PICK_FACE: "pick_face";
598
+ readonly PRODUCTION_LINE: "production_line";
599
+ readonly QUARANTINE: "quarantine";
600
+ readonly RETURNS: "returns";
601
+ };
416
602
 
417
- export { type TabConfig as $, ACCESS_RANK as A, PhysicalState as B, CAT as C, DOCUMENT_DISPLAY_INFO as D, ERROR_DICTIONARY as E, FORM_REGISTRY as F, PlantingMethod as G, HarvestMethod as H, type InfrastructureFields as I, RESOURCE_PATHS as J, RESOURCE_REQUIREMENTS as K, LinkedStatus as L, MOD as M, NettingType as N, OrderStatus as O, type PermissionLevel as P, ROLE_SECTIONS_BY_KEY as Q, RESOURCE_MODULE_MAP as R, RelationshipType as S, type ResolvedError as T, type ResourceOverrides as U, type ResourceRequirement as V, RowOrientation as W, SENTINEL_UUID as X, type ScopeType as Y, SoilTexture as Z, TASK_TYPE_REGISTRY as _, ACT as a, TargetEntityType as a0, TaskStatus as a1, TaskType as a2, type TaskTypeConfig as a3, TransactionType as a4, TrellisType as a5, UserPrivilege as a6, UserRole as a7, type UserRoleType as a8, VigorRating as a9, WaterSource as aa, 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, CATEGORY_TABS as k, type CompanyConfig as l, CropCycleStatus as m, DOCUMENT_MENU_MAP as n, DocumentCategory as o, DocumentType as p, EVERYONE as q, EmitterType as r, EnabledModule as s, FacilityType as t, type FormMeta as u, MODULE_LABELS as v, MicroclimateZone as w, MimeType as x, type ModCode as y, NotificationMode as z };
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 };
@@ -1 +1 @@
1
- export { A as ACCESS_RANK, a as ACT, b as AccessLevel, c as AccessLevelType, e as ApprovalStatus, f as ApprovalType, g as AuditStatus, h as AuditType, C as CAT, k as CATEGORY_TABS, m as CropCycleStatus, D as DOCUMENT_DISPLAY_INFO, n as DOCUMENT_MENU_MAP, o as DocumentCategory, p as DocumentType, E as ERROR_DICTIONARY, q as EVERYONE, r as EmitterType, s as EnabledModule, F as FORM_REGISTRY, t as FacilityType, H as HarvestMethod, L as LinkedStatus, M as MOD, v as MODULE_LABELS, w as MicroclimateZone, x as MimeType, y as ModCode, N as NettingType, z as NotificationMode, O as OrderStatus, B as PhysicalState, G as PlantingMethod, R as RESOURCE_MODULE_MAP, J as RESOURCE_PATHS, K as RESOURCE_REQUIREMENTS, Q as ROLE_SECTIONS_BY_KEY, S as RelationshipType, V as ResourceRequirement, W as RowOrientation, X as SENTINEL_UUID, Z as SoilTexture, _ as TASK_TYPE_REGISTRY, a0 as TargetEntityType, a1 as TaskStatus, a2 as TaskType, a4 as TransactionType, a5 as TrellisType, a6 as UserPrivilege, a7 as UserRole, a8 as UserRoleType, a9 as VigorRating, aa as WaterSource } from './constants-DVuhM7rv.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 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 +1 @@
1
- export { A as ACCESS_RANK, a as ACT, b as AccessLevel, c as AccessLevelType, e as ApprovalStatus, f as ApprovalType, g as AuditStatus, h as AuditType, C as CAT, k as CATEGORY_TABS, m as CropCycleStatus, D as DOCUMENT_DISPLAY_INFO, n as DOCUMENT_MENU_MAP, o as DocumentCategory, p as DocumentType, E as ERROR_DICTIONARY, q as EVERYONE, r as EmitterType, s as EnabledModule, F as FORM_REGISTRY, t as FacilityType, H as HarvestMethod, L as LinkedStatus, M as MOD, v as MODULE_LABELS, w as MicroclimateZone, x as MimeType, y as ModCode, N as NettingType, z as NotificationMode, O as OrderStatus, B as PhysicalState, G as PlantingMethod, R as RESOURCE_MODULE_MAP, J as RESOURCE_PATHS, K as RESOURCE_REQUIREMENTS, Q as ROLE_SECTIONS_BY_KEY, S as RelationshipType, V as ResourceRequirement, W as RowOrientation, X as SENTINEL_UUID, Z as SoilTexture, _ as TASK_TYPE_REGISTRY, a0 as TargetEntityType, a1 as TaskStatus, a2 as TaskType, a4 as TransactionType, a5 as TrellisType, a6 as UserPrivilege, a7 as UserRole, a8 as UserRoleType, a9 as VigorRating, aa as WaterSource } from './constants-DVuhM7rv.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 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';
package/dist/constants.js CHANGED
@@ -27,8 +27,15 @@ __export(constants_exports, {
27
27
  ApprovalType: () => ApprovalType,
28
28
  AuditStatus: () => AuditStatus,
29
29
  AuditType: () => AuditType,
30
+ BarcodeNamespace: () => BarcodeNamespace,
31
+ BarcodeType: () => BarcodeType,
32
+ CAR_SUPPORTED_EVIDENCE_MIME_TYPES: () => CAR_SUPPORTED_EVIDENCE_MIME_TYPES,
33
+ CAR_SUPPORTED_SIGNATURE_MIME_TYPES: () => CAR_SUPPORTED_SIGNATURE_MIME_TYPES,
30
34
  CAT: () => CAT,
31
35
  CATEGORY_TABS: () => CATEGORY_TABS,
36
+ CORRECTIVE_ACTION_GENERATION_SOURCES: () => CORRECTIVE_ACTION_GENERATION_SOURCES,
37
+ CORRECTIVE_ACTION_STATUSES: () => CORRECTIVE_ACTION_STATUSES,
38
+ CatalogSyncStatus: () => CatalogSyncStatus,
32
39
  CropCycleStatus: () => CropCycleStatus,
33
40
  DOCUMENT_DISPLAY_INFO: () => DOCUMENT_DISPLAY_INFO,
34
41
  DOCUMENT_MENU_MAP: () => DOCUMENT_MENU_MAP,
@@ -51,6 +58,8 @@ __export(constants_exports, {
51
58
  OrderStatus: () => OrderStatus,
52
59
  PhysicalState: () => PhysicalState,
53
60
  PlantingMethod: () => PlantingMethod,
61
+ ProductType: () => ProductType,
62
+ ProductUnit: () => ProductUnit,
54
63
  RESOURCE_MODULE_MAP: () => RESOURCE_MODULE_MAP,
55
64
  RESOURCE_PATHS: () => RESOURCE_PATHS,
56
65
  RESOURCE_REQUIREMENTS: () => RESOURCE_REQUIREMENTS,
@@ -58,8 +67,11 @@ __export(constants_exports, {
58
67
  RelationshipType: () => RelationshipType,
59
68
  RowOrientation: () => RowOrientation,
60
69
  SENTINEL_UUID: () => SENTINEL_UUID,
70
+ SIGNATURE_MODES: () => SIGNATURE_MODES,
61
71
  SoilTexture: () => SoilTexture,
72
+ StorageTier: () => StorageTier,
62
73
  TASK_TYPE_REGISTRY: () => TASK_TYPE_REGISTRY,
74
+ TEMPLATE_SCOPE_LEVELS: () => TEMPLATE_SCOPE_LEVELS,
63
75
  TargetEntityType: () => TargetEntityType,
64
76
  TaskStatus: () => TaskStatus,
65
77
  TaskType: () => TaskType,
@@ -212,7 +224,10 @@ var TaskType = {
212
224
  KML_PARSE: "KML_PARSE",
213
225
  INVOICE_OCR: "INVOICE_OCR",
214
226
  AUDIT_UPLOAD: "AUDIT_UPLOAD",
215
- REPORT_GEN: "REPORT_GEN"
227
+ REPORT_GEN: "REPORT_GEN",
228
+ PDF_STAMPING: "PDF_STAMPING",
229
+ CAR_TEMPLATE_UPLOAD: "CAR_TEMPLATE_UPLOAD",
230
+ CORRECTIVE_ACTION_COMPILE: "CORRECTIVE_ACTION_COMPILE"
216
231
  };
217
232
  var TaskStatus = {
218
233
  PENDING: "PENDING",
@@ -794,6 +809,81 @@ var DOCUMENT_MENU_MAP = {
794
809
  ["AUDIT_REPORT" /* AUDIT_REPORT */]: [RESOURCE_PATHS.safetyAuditing, RESOURCE_PATHS.dashboard],
795
810
  ["SENSITIVE_IDENTITY" /* SENSITIVE_IDENTITY */]: [RESOURCE_PATHS.adminUserRoster]
796
811
  };
812
+ var SIGNATURE_MODES = {
813
+ TYPED_NAME: "typed_name",
814
+ DRAWN_IMAGE: "drawn_image",
815
+ UPLOADED_IMAGE: "uploaded_image"
816
+ };
817
+ var CORRECTIVE_ACTION_STATUSES = {
818
+ DRAFT: "draft",
819
+ GENERATED: "generated",
820
+ REVIEWED: "reviewed",
821
+ CLOSED: "closed",
822
+ FAILED: "failed"
823
+ };
824
+ var TEMPLATE_SCOPE_LEVELS = {
825
+ FACILITY: "facility",
826
+ LEGAL_ENTITY: "legalEntity",
827
+ COMPANY: "company"
828
+ };
829
+ var CORRECTIVE_ACTION_GENERATION_SOURCES = {
830
+ CREATE: "CREATE",
831
+ RECREATE: "RECREATE"
832
+ };
833
+ var CAR_SUPPORTED_EVIDENCE_MIME_TYPES = [
834
+ "application/pdf",
835
+ "image/png",
836
+ "image/jpeg"
837
+ ];
838
+ var CAR_SUPPORTED_SIGNATURE_MIME_TYPES = [
839
+ "image/png",
840
+ "image/jpeg"
841
+ ];
842
+ var BarcodeType = {
843
+ GTIN_8: "GTIN-8",
844
+ GTIN_12: "GTIN-12",
845
+ GTIN_13: "GTIN-13",
846
+ GTIN_14: "GTIN-14",
847
+ CODE_128: "CODE-128",
848
+ QR: "QR",
849
+ OTHER: "other"
850
+ };
851
+ var BarcodeNamespace = {
852
+ GLOBAL_STANDARD: "global_standard",
853
+ INTERNAL_COMPANY: "internal_company"
854
+ };
855
+ var ProductType = {
856
+ CARTON: "carton",
857
+ TRAY: "tray",
858
+ LINER: "liner",
859
+ LABEL: "label",
860
+ TAPE: "tape",
861
+ STRAPPING: "strapping",
862
+ PALLET: "pallet",
863
+ STRETCH_WRAP: "stretch_wrap",
864
+ OTHER: "other"
865
+ };
866
+ var ProductUnit = {
867
+ UNITS: "units",
868
+ BOXES: "boxes",
869
+ ROLLS: "rolls",
870
+ PALLETS: "pallets",
871
+ KG: "kg"
872
+ };
873
+ var CatalogSyncStatus = {
874
+ UNVERIFIED: "unverified",
875
+ PENDING_REVIEW: "pending_review",
876
+ MATCHED: "matched",
877
+ REJECTED: "rejected"
878
+ };
879
+ var StorageTier = {
880
+ RECEIVING: "receiving",
881
+ BULK_STORAGE: "bulk_storage",
882
+ PICK_FACE: "pick_face",
883
+ PRODUCTION_LINE: "production_line",
884
+ QUARANTINE: "quarantine",
885
+ RETURNS: "returns"
886
+ };
797
887
  // Annotate the CommonJS export names for ESM import in node:
798
888
  0 && (module.exports = {
799
889
  ACCESS_RANK,
@@ -803,8 +893,15 @@ var DOCUMENT_MENU_MAP = {
803
893
  ApprovalType,
804
894
  AuditStatus,
805
895
  AuditType,
896
+ BarcodeNamespace,
897
+ BarcodeType,
898
+ CAR_SUPPORTED_EVIDENCE_MIME_TYPES,
899
+ CAR_SUPPORTED_SIGNATURE_MIME_TYPES,
806
900
  CAT,
807
901
  CATEGORY_TABS,
902
+ CORRECTIVE_ACTION_GENERATION_SOURCES,
903
+ CORRECTIVE_ACTION_STATUSES,
904
+ CatalogSyncStatus,
808
905
  CropCycleStatus,
809
906
  DOCUMENT_DISPLAY_INFO,
810
907
  DOCUMENT_MENU_MAP,
@@ -827,6 +924,8 @@ var DOCUMENT_MENU_MAP = {
827
924
  OrderStatus,
828
925
  PhysicalState,
829
926
  PlantingMethod,
927
+ ProductType,
928
+ ProductUnit,
830
929
  RESOURCE_MODULE_MAP,
831
930
  RESOURCE_PATHS,
832
931
  RESOURCE_REQUIREMENTS,
@@ -834,8 +933,11 @@ var DOCUMENT_MENU_MAP = {
834
933
  RelationshipType,
835
934
  RowOrientation,
836
935
  SENTINEL_UUID,
936
+ SIGNATURE_MODES,
837
937
  SoilTexture,
938
+ StorageTier,
838
939
  TASK_TYPE_REGISTRY,
940
+ TEMPLATE_SCOPE_LEVELS,
839
941
  TargetEntityType,
840
942
  TaskStatus,
841
943
  TaskType,
@@ -6,8 +6,15 @@ import {
6
6
  ApprovalType,
7
7
  AuditStatus,
8
8
  AuditType,
9
+ BarcodeNamespace,
10
+ BarcodeType,
11
+ CAR_SUPPORTED_EVIDENCE_MIME_TYPES,
12
+ CAR_SUPPORTED_SIGNATURE_MIME_TYPES,
9
13
  CAT,
10
14
  CATEGORY_TABS,
15
+ CORRECTIVE_ACTION_GENERATION_SOURCES,
16
+ CORRECTIVE_ACTION_STATUSES,
17
+ CatalogSyncStatus,
11
18
  CropCycleStatus,
12
19
  DOCUMENT_DISPLAY_INFO,
13
20
  DOCUMENT_MENU_MAP,
@@ -30,6 +37,8 @@ import {
30
37
  OrderStatus,
31
38
  PhysicalState,
32
39
  PlantingMethod,
40
+ ProductType,
41
+ ProductUnit,
33
42
  RESOURCE_MODULE_MAP,
34
43
  RESOURCE_PATHS,
35
44
  RESOURCE_REQUIREMENTS,
@@ -37,8 +46,11 @@ import {
37
46
  RelationshipType,
38
47
  RowOrientation,
39
48
  SENTINEL_UUID,
49
+ SIGNATURE_MODES,
40
50
  SoilTexture,
51
+ StorageTier,
41
52
  TASK_TYPE_REGISTRY,
53
+ TEMPLATE_SCOPE_LEVELS,
42
54
  TargetEntityType,
43
55
  TaskStatus,
44
56
  TaskType,
@@ -48,7 +60,7 @@ import {
48
60
  UserRole,
49
61
  VigorRating,
50
62
  WaterSource
51
- } from "./chunk-LGEV4MBQ.mjs";
63
+ } from "./chunk-YE7Q7OFU.mjs";
52
64
  export {
53
65
  ACCESS_RANK,
54
66
  ACT,
@@ -57,8 +69,15 @@ export {
57
69
  ApprovalType,
58
70
  AuditStatus,
59
71
  AuditType,
72
+ BarcodeNamespace,
73
+ BarcodeType,
74
+ CAR_SUPPORTED_EVIDENCE_MIME_TYPES,
75
+ CAR_SUPPORTED_SIGNATURE_MIME_TYPES,
60
76
  CAT,
61
77
  CATEGORY_TABS,
78
+ CORRECTIVE_ACTION_GENERATION_SOURCES,
79
+ CORRECTIVE_ACTION_STATUSES,
80
+ CatalogSyncStatus,
62
81
  CropCycleStatus,
63
82
  DOCUMENT_DISPLAY_INFO,
64
83
  DOCUMENT_MENU_MAP,
@@ -81,6 +100,8 @@ export {
81
100
  OrderStatus,
82
101
  PhysicalState,
83
102
  PlantingMethod,
103
+ ProductType,
104
+ ProductUnit,
84
105
  RESOURCE_MODULE_MAP,
85
106
  RESOURCE_PATHS,
86
107
  RESOURCE_REQUIREMENTS,
@@ -88,8 +109,11 @@ export {
88
109
  RelationshipType,
89
110
  RowOrientation,
90
111
  SENTINEL_UUID,
112
+ SIGNATURE_MODES,
91
113
  SoilTexture,
114
+ StorageTier,
92
115
  TASK_TYPE_REGISTRY,
116
+ TEMPLATE_SCOPE_LEVELS,
93
117
  TargetEntityType,
94
118
  TaskStatus,
95
119
  TaskType,
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { d as AgriCoreSession, a8 as UserRoleType, V as ResourceRequirement, c as AccessLevelType, j as AvailableScope, I as InfrastructureFields, u as FormMeta, $ as TabConfig, T as ResolvedError } from './constants-DVuhM7rv.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, C as CAT, k as CATEGORY_TABS, l as CompanyConfig, m as CropCycleStatus, D as DOCUMENT_DISPLAY_INFO, n as DOCUMENT_MENU_MAP, o as DocumentCategory, p as DocumentType, E as ERROR_DICTIONARY, q as EVERYONE, r as EmitterType, s as EnabledModule, F as FORM_REGISTRY, t as FacilityType, H as HarvestMethod, L as LinkedStatus, M as MOD, v as MODULE_LABELS, w as MicroclimateZone, x as MimeType, y as ModCode, N as NettingType, z as NotificationMode, O as OrderStatus, P as PermissionLevel, B as PhysicalState, G as PlantingMethod, R as RESOURCE_MODULE_MAP, J as RESOURCE_PATHS, K as RESOURCE_REQUIREMENTS, Q as ROLE_SECTIONS_BY_KEY, S as RelationshipType, U as ResourceOverrides, W as RowOrientation, X as SENTINEL_UUID, Y as ScopeType, Z as SoilTexture, _ as TASK_TYPE_REGISTRY, a0 as TargetEntityType, a1 as TaskStatus, a2 as TaskType, a3 as TaskTypeConfig, a4 as TransactionType, a5 as TrellisType, a6 as UserPrivilege, a7 as UserRole, a9 as VigorRating, aa as WaterSource } from './constants-DVuhM7rv.mjs';
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';
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, a8 as UserRoleType, V as ResourceRequirement, c as AccessLevelType, j as AvailableScope, I as InfrastructureFields, u as FormMeta, $ as TabConfig, T as ResolvedError } from './constants-DVuhM7rv.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, C as CAT, k as CATEGORY_TABS, l as CompanyConfig, m as CropCycleStatus, D as DOCUMENT_DISPLAY_INFO, n as DOCUMENT_MENU_MAP, o as DocumentCategory, p as DocumentType, E as ERROR_DICTIONARY, q as EVERYONE, r as EmitterType, s as EnabledModule, F as FORM_REGISTRY, t as FacilityType, H as HarvestMethod, L as LinkedStatus, M as MOD, v as MODULE_LABELS, w as MicroclimateZone, x as MimeType, y as ModCode, N as NettingType, z as NotificationMode, O as OrderStatus, P as PermissionLevel, B as PhysicalState, G as PlantingMethod, R as RESOURCE_MODULE_MAP, J as RESOURCE_PATHS, K as RESOURCE_REQUIREMENTS, Q as ROLE_SECTIONS_BY_KEY, S as RelationshipType, U as ResourceOverrides, W as RowOrientation, X as SENTINEL_UUID, Y as ScopeType, Z as SoilTexture, _ as TASK_TYPE_REGISTRY, a0 as TargetEntityType, a1 as TaskStatus, a2 as TaskType, a3 as TaskTypeConfig, a4 as TransactionType, a5 as TrellisType, a6 as UserPrivilege, a7 as UserRole, a9 as VigorRating, aa as WaterSource } from './constants-DVuhM7rv.js';
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';
3
3
 
4
4
  declare const AgriLogger: {
5
5
  log(level: "INFO" | "WARN" | "ERROR", message: string, meta: any): void;
package/dist/index.js CHANGED
@@ -29,8 +29,15 @@ __export(index_exports, {
29
29
  ApprovalType: () => ApprovalType,
30
30
  AuditStatus: () => AuditStatus,
31
31
  AuditType: () => AuditType,
32
+ BarcodeNamespace: () => BarcodeNamespace,
33
+ BarcodeType: () => BarcodeType,
34
+ CAR_SUPPORTED_EVIDENCE_MIME_TYPES: () => CAR_SUPPORTED_EVIDENCE_MIME_TYPES,
35
+ CAR_SUPPORTED_SIGNATURE_MIME_TYPES: () => CAR_SUPPORTED_SIGNATURE_MIME_TYPES,
32
36
  CAT: () => CAT,
33
37
  CATEGORY_TABS: () => CATEGORY_TABS,
38
+ CORRECTIVE_ACTION_GENERATION_SOURCES: () => CORRECTIVE_ACTION_GENERATION_SOURCES,
39
+ CORRECTIVE_ACTION_STATUSES: () => CORRECTIVE_ACTION_STATUSES,
40
+ CatalogSyncStatus: () => CatalogSyncStatus,
34
41
  Converter: () => Converter,
35
42
  CropCycleStatus: () => CropCycleStatus,
36
43
  DOCUMENT_DISPLAY_INFO: () => DOCUMENT_DISPLAY_INFO,
@@ -55,6 +62,8 @@ __export(index_exports, {
55
62
  OrderStatus: () => OrderStatus,
56
63
  PhysicalState: () => PhysicalState,
57
64
  PlantingMethod: () => PlantingMethod,
65
+ ProductType: () => ProductType,
66
+ ProductUnit: () => ProductUnit,
58
67
  RESOURCE_MODULE_MAP: () => RESOURCE_MODULE_MAP,
59
68
  RESOURCE_PATHS: () => RESOURCE_PATHS,
60
69
  RESOURCE_REQUIREMENTS: () => RESOURCE_REQUIREMENTS,
@@ -62,8 +71,11 @@ __export(index_exports, {
62
71
  RelationshipType: () => RelationshipType,
63
72
  RowOrientation: () => RowOrientation,
64
73
  SENTINEL_UUID: () => SENTINEL_UUID,
74
+ SIGNATURE_MODES: () => SIGNATURE_MODES,
65
75
  SoilTexture: () => SoilTexture,
76
+ StorageTier: () => StorageTier,
66
77
  TASK_TYPE_REGISTRY: () => TASK_TYPE_REGISTRY,
78
+ TEMPLATE_SCOPE_LEVELS: () => TEMPLATE_SCOPE_LEVELS,
67
79
  TargetEntityType: () => TargetEntityType,
68
80
  TaskStatus: () => TaskStatus,
69
81
  TaskType: () => TaskType,
@@ -433,7 +445,10 @@ var TaskType = {
433
445
  KML_PARSE: "KML_PARSE",
434
446
  INVOICE_OCR: "INVOICE_OCR",
435
447
  AUDIT_UPLOAD: "AUDIT_UPLOAD",
436
- REPORT_GEN: "REPORT_GEN"
448
+ REPORT_GEN: "REPORT_GEN",
449
+ PDF_STAMPING: "PDF_STAMPING",
450
+ CAR_TEMPLATE_UPLOAD: "CAR_TEMPLATE_UPLOAD",
451
+ CORRECTIVE_ACTION_COMPILE: "CORRECTIVE_ACTION_COMPILE"
437
452
  };
438
453
  var TaskStatus = {
439
454
  PENDING: "PENDING",
@@ -1015,6 +1030,81 @@ var DOCUMENT_MENU_MAP = {
1015
1030
  ["AUDIT_REPORT" /* AUDIT_REPORT */]: [RESOURCE_PATHS.safetyAuditing, RESOURCE_PATHS.dashboard],
1016
1031
  ["SENSITIVE_IDENTITY" /* SENSITIVE_IDENTITY */]: [RESOURCE_PATHS.adminUserRoster]
1017
1032
  };
1033
+ var SIGNATURE_MODES = {
1034
+ TYPED_NAME: "typed_name",
1035
+ DRAWN_IMAGE: "drawn_image",
1036
+ UPLOADED_IMAGE: "uploaded_image"
1037
+ };
1038
+ var CORRECTIVE_ACTION_STATUSES = {
1039
+ DRAFT: "draft",
1040
+ GENERATED: "generated",
1041
+ REVIEWED: "reviewed",
1042
+ CLOSED: "closed",
1043
+ FAILED: "failed"
1044
+ };
1045
+ var TEMPLATE_SCOPE_LEVELS = {
1046
+ FACILITY: "facility",
1047
+ LEGAL_ENTITY: "legalEntity",
1048
+ COMPANY: "company"
1049
+ };
1050
+ var CORRECTIVE_ACTION_GENERATION_SOURCES = {
1051
+ CREATE: "CREATE",
1052
+ RECREATE: "RECREATE"
1053
+ };
1054
+ var CAR_SUPPORTED_EVIDENCE_MIME_TYPES = [
1055
+ "application/pdf",
1056
+ "image/png",
1057
+ "image/jpeg"
1058
+ ];
1059
+ var CAR_SUPPORTED_SIGNATURE_MIME_TYPES = [
1060
+ "image/png",
1061
+ "image/jpeg"
1062
+ ];
1063
+ var BarcodeType = {
1064
+ GTIN_8: "GTIN-8",
1065
+ GTIN_12: "GTIN-12",
1066
+ GTIN_13: "GTIN-13",
1067
+ GTIN_14: "GTIN-14",
1068
+ CODE_128: "CODE-128",
1069
+ QR: "QR",
1070
+ OTHER: "other"
1071
+ };
1072
+ var BarcodeNamespace = {
1073
+ GLOBAL_STANDARD: "global_standard",
1074
+ INTERNAL_COMPANY: "internal_company"
1075
+ };
1076
+ var ProductType = {
1077
+ CARTON: "carton",
1078
+ TRAY: "tray",
1079
+ LINER: "liner",
1080
+ LABEL: "label",
1081
+ TAPE: "tape",
1082
+ STRAPPING: "strapping",
1083
+ PALLET: "pallet",
1084
+ STRETCH_WRAP: "stretch_wrap",
1085
+ OTHER: "other"
1086
+ };
1087
+ var ProductUnit = {
1088
+ UNITS: "units",
1089
+ BOXES: "boxes",
1090
+ ROLLS: "rolls",
1091
+ PALLETS: "pallets",
1092
+ KG: "kg"
1093
+ };
1094
+ var CatalogSyncStatus = {
1095
+ UNVERIFIED: "unverified",
1096
+ PENDING_REVIEW: "pending_review",
1097
+ MATCHED: "matched",
1098
+ REJECTED: "rejected"
1099
+ };
1100
+ var StorageTier = {
1101
+ RECEIVING: "receiving",
1102
+ BULK_STORAGE: "bulk_storage",
1103
+ PICK_FACE: "pick_face",
1104
+ PRODUCTION_LINE: "production_line",
1105
+ QUARANTINE: "quarantine",
1106
+ RETURNS: "returns"
1107
+ };
1018
1108
 
1019
1109
  // src/index.ts
1020
1110
  var AppError = class extends Error {
@@ -1344,8 +1434,15 @@ function calculateFileMetadataMatch(criteria, fileMetadata, auditContext) {
1344
1434
  ApprovalType,
1345
1435
  AuditStatus,
1346
1436
  AuditType,
1437
+ BarcodeNamespace,
1438
+ BarcodeType,
1439
+ CAR_SUPPORTED_EVIDENCE_MIME_TYPES,
1440
+ CAR_SUPPORTED_SIGNATURE_MIME_TYPES,
1347
1441
  CAT,
1348
1442
  CATEGORY_TABS,
1443
+ CORRECTIVE_ACTION_GENERATION_SOURCES,
1444
+ CORRECTIVE_ACTION_STATUSES,
1445
+ CatalogSyncStatus,
1349
1446
  Converter,
1350
1447
  CropCycleStatus,
1351
1448
  DOCUMENT_DISPLAY_INFO,
@@ -1370,6 +1467,8 @@ function calculateFileMetadataMatch(criteria, fileMetadata, auditContext) {
1370
1467
  OrderStatus,
1371
1468
  PhysicalState,
1372
1469
  PlantingMethod,
1470
+ ProductType,
1471
+ ProductUnit,
1373
1472
  RESOURCE_MODULE_MAP,
1374
1473
  RESOURCE_PATHS,
1375
1474
  RESOURCE_REQUIREMENTS,
@@ -1377,8 +1476,11 @@ function calculateFileMetadataMatch(criteria, fileMetadata, auditContext) {
1377
1476
  RelationshipType,
1378
1477
  RowOrientation,
1379
1478
  SENTINEL_UUID,
1479
+ SIGNATURE_MODES,
1380
1480
  SoilTexture,
1481
+ StorageTier,
1381
1482
  TASK_TYPE_REGISTRY,
1483
+ TEMPLATE_SCOPE_LEVELS,
1382
1484
  TargetEntityType,
1383
1485
  TaskStatus,
1384
1486
  TaskType,
package/dist/index.mjs CHANGED
@@ -6,8 +6,15 @@ import {
6
6
  ApprovalType,
7
7
  AuditStatus,
8
8
  AuditType,
9
+ BarcodeNamespace,
10
+ BarcodeType,
11
+ CAR_SUPPORTED_EVIDENCE_MIME_TYPES,
12
+ CAR_SUPPORTED_SIGNATURE_MIME_TYPES,
9
13
  CAT,
10
14
  CATEGORY_TABS,
15
+ CORRECTIVE_ACTION_GENERATION_SOURCES,
16
+ CORRECTIVE_ACTION_STATUSES,
17
+ CatalogSyncStatus,
11
18
  CropCycleStatus,
12
19
  DOCUMENT_DISPLAY_INFO,
13
20
  DOCUMENT_MENU_MAP,
@@ -30,6 +37,8 @@ import {
30
37
  OrderStatus,
31
38
  PhysicalState,
32
39
  PlantingMethod,
40
+ ProductType,
41
+ ProductUnit,
33
42
  RESOURCE_MODULE_MAP,
34
43
  RESOURCE_PATHS,
35
44
  RESOURCE_REQUIREMENTS,
@@ -37,8 +46,11 @@ import {
37
46
  RelationshipType,
38
47
  RowOrientation,
39
48
  SENTINEL_UUID,
49
+ SIGNATURE_MODES,
40
50
  SoilTexture,
51
+ StorageTier,
41
52
  TASK_TYPE_REGISTRY,
53
+ TEMPLATE_SCOPE_LEVELS,
42
54
  TargetEntityType,
43
55
  TaskStatus,
44
56
  TaskType,
@@ -48,7 +60,7 @@ import {
48
60
  UserRole,
49
61
  VigorRating,
50
62
  WaterSource
51
- } from "./chunk-LGEV4MBQ.mjs";
63
+ } from "./chunk-YE7Q7OFU.mjs";
52
64
 
53
65
  // src/index.ts
54
66
  import { jwtVerify } from "jose";
@@ -566,8 +578,15 @@ export {
566
578
  ApprovalType,
567
579
  AuditStatus,
568
580
  AuditType,
581
+ BarcodeNamespace,
582
+ BarcodeType,
583
+ CAR_SUPPORTED_EVIDENCE_MIME_TYPES,
584
+ CAR_SUPPORTED_SIGNATURE_MIME_TYPES,
569
585
  CAT,
570
586
  CATEGORY_TABS,
587
+ CORRECTIVE_ACTION_GENERATION_SOURCES,
588
+ CORRECTIVE_ACTION_STATUSES,
589
+ CatalogSyncStatus,
571
590
  Converter,
572
591
  CropCycleStatus,
573
592
  DOCUMENT_DISPLAY_INFO,
@@ -592,6 +611,8 @@ export {
592
611
  OrderStatus,
593
612
  PhysicalState,
594
613
  PlantingMethod,
614
+ ProductType,
615
+ ProductUnit,
595
616
  RESOURCE_MODULE_MAP,
596
617
  RESOURCE_PATHS,
597
618
  RESOURCE_REQUIREMENTS,
@@ -599,8 +620,11 @@ export {
599
620
  RelationshipType,
600
621
  RowOrientation,
601
622
  SENTINEL_UUID,
623
+ SIGNATURE_MODES,
602
624
  SoilTexture,
625
+ StorageTier,
603
626
  TASK_TYPE_REGISTRY,
627
+ TEMPLATE_SCOPE_LEVELS,
604
628
  TargetEntityType,
605
629
  TaskStatus,
606
630
  TaskType,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@litusarchieve18/agricore-utils",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "description": "Canonical Backend Utility Library for AgriCore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",