@litusarchieve18/agricore-utils 1.0.30 → 1.0.32
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 +4 -0
- package/dist/{chunk-Y5KVDVNY.mjs → chunk-U332M2N6.mjs} +83 -6
- package/dist/{constants-CrAPx_xU.d.mts → constants-x8gYRJIw.d.mts} +154 -6
- package/dist/{constants-CrAPx_xU.d.ts → constants-x8gYRJIw.d.ts} +154 -6
- package/dist/constants.d.mts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +88 -6
- package/dist/constants.mjs +13 -3
- package/dist/index.d.mts +49 -3
- package/dist/index.d.ts +49 -3
- package/dist/index.js +267 -14
- package/dist/index.mjs +186 -11
- package/package.json +1 -1
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.32 — generalize sanitizeSiteName and added export to procurement related object, and generateSystemFolderPath
|
|
187
|
+
|
|
188
|
+
V1.0.31 — Added Receival menu path, moving some procurement enum to library, and added a functional calculatePaymentDueDate function
|
|
189
|
+
|
|
186
190
|
V1.0.30 — altered authscoped Id to receive a list of string not a single string
|
|
187
191
|
|
|
188
192
|
V1.0.29 — altered filtering logic from validFrom_lte: targetIso to validFrom: { $lte: targetIso }
|
|
@@ -381,6 +381,12 @@ var RESOURCE_PATHS = {
|
|
|
381
381
|
farmManagement: "operations.farmManagement",
|
|
382
382
|
packhouse: "operations.packhouse",
|
|
383
383
|
accommodation: "operations.accommodation",
|
|
384
|
+
logistics: "operations.logistics",
|
|
385
|
+
logisticsReceival: "operations.logistics.receival",
|
|
386
|
+
logisticsReceivalReview: "operations.logistics.receival.review",
|
|
387
|
+
// being reviewed by manager/owner
|
|
388
|
+
logisticsDispatch: "operations.logistics.dispatch",
|
|
389
|
+
logisticsDispatchReview: "operations.logistics.dispatch.review",
|
|
384
390
|
// ── Inventory ────────────────────────────────────────────────────────────
|
|
385
391
|
// === Consumables ===
|
|
386
392
|
inventory: "inventory",
|
|
@@ -416,6 +422,7 @@ var RESOURCE_PATHS = {
|
|
|
416
422
|
equipFuelRegister: "equipment.fuelRegister",
|
|
417
423
|
equipCalibration: "equipment.calibration",
|
|
418
424
|
equipFleet: "equipment.fleetManagement",
|
|
425
|
+
// ── Finance ──────────────────────────────────────────────────────
|
|
419
426
|
finance: "finance",
|
|
420
427
|
financeProductRequisition: "finance.product.requistion",
|
|
421
428
|
financeDashboard: "finance.dashboard",
|
|
@@ -479,12 +486,23 @@ var RESOURCE_MODULE_MAP = {
|
|
|
479
486
|
[RESOURCE_PATHS.farmManagement]: [EnabledModule.FARM_MANAGEMENT],
|
|
480
487
|
[RESOURCE_PATHS.packhouse]: [EnabledModule.PACKHOUSE],
|
|
481
488
|
[RESOURCE_PATHS.accommodation]: [EnabledModule.ACCOMMODATION],
|
|
489
|
+
// ── Logistics ──────────────────────────────────────────────────────────────
|
|
490
|
+
[RESOURCE_PATHS.logistics]: ALL_OPERATIONS,
|
|
491
|
+
[RESOURCE_PATHS.logisticsReceival]: ALL_OPERATIONS,
|
|
492
|
+
[RESOURCE_PATHS.logisticsReceivalReview]: ALL_OPERATIONS,
|
|
493
|
+
[RESOURCE_PATHS.logisticsDispatch]: ALL_OPERATIONS,
|
|
494
|
+
[RESOURCE_PATHS.logisticsDispatchReview]: ALL_OPERATIONS,
|
|
482
495
|
// ── Equipment & Fleet ──────────────────────────────────────────────────────
|
|
483
496
|
[RESOURCE_PATHS.equipPreStart]: ALL_OPERATIONS,
|
|
484
497
|
[RESOURCE_PATHS.equipMaintenance]: ALL_OPERATIONS,
|
|
485
498
|
[RESOURCE_PATHS.equipFuelRegister]: ALL_OPERATIONS,
|
|
486
499
|
[RESOURCE_PATHS.equipCalibration]: AGRI_ONLY,
|
|
487
500
|
[RESOURCE_PATHS.equipFleet]: ALL_OPERATIONS,
|
|
501
|
+
// ── Finance ──────────────────────────────────────────────────────────────
|
|
502
|
+
[RESOURCE_PATHS.financeProductRequisition]: ALL_OPERATIONS,
|
|
503
|
+
[RESOURCE_PATHS.financeDashboard]: ALL_OPERATIONS,
|
|
504
|
+
[RESOURCE_PATHS.financeTransaction]: ALL_OPERATIONS,
|
|
505
|
+
[RESOURCE_PATHS.financeBudgetAllocation]: ALL_OPERATIONS,
|
|
488
506
|
// ── Safety, Quality & Compliance ──────────────────────────────────────────
|
|
489
507
|
[RESOURCE_PATHS.safetyAuditing]: ALL_OPERATIONS,
|
|
490
508
|
[RESOURCE_PATHS.safetyFood]: AGRI_ONLY,
|
|
@@ -533,6 +551,15 @@ var RESOURCE_REQUIREMENTS = {
|
|
|
533
551
|
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR],
|
|
534
552
|
requiredPrivileges: [UserPrivilege.ADMIN, UserPrivilege.AUDIT_COMPLIANCE, UserPrivilege.FINANCE, UserPrivilege.DOCUMENT]
|
|
535
553
|
},
|
|
554
|
+
// ── Logistics ──────────────────────────────────────────────────────────────
|
|
555
|
+
[RESOURCE_PATHS.logisticsReceival]: {
|
|
556
|
+
allowedRoles: EVERYONE
|
|
557
|
+
},
|
|
558
|
+
[RESOURCE_PATHS.logisticsReceivalReview]: {
|
|
559
|
+
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
|
|
560
|
+
},
|
|
561
|
+
[RESOURCE_PATHS.logisticsDispatch]: { allowedRoles: EVERYONE },
|
|
562
|
+
[RESOURCE_PATHS.logisticsDispatchReview]: { allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR] },
|
|
536
563
|
// CONSUMABLES PERMISSIONS
|
|
537
564
|
[RESOURCE_PATHS.inventoryConsumableProduct]: {
|
|
538
565
|
allowedRoles: [UserRole.OWNER, UserRole.MANAGER, UserRole.SUPERVISOR]
|
|
@@ -647,6 +674,7 @@ var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
|
647
674
|
DocumentType2["PACKHOUSE_INSPECTION"] = "PACKHOUSE_INSPECTION";
|
|
648
675
|
DocumentType2["TRAINING_CERTIFICATE"] = "TRAINING_CERTIFICATE";
|
|
649
676
|
DocumentType2["INVOICE"] = "INVOICE";
|
|
677
|
+
DocumentType2["PURCHASE"] = "PURCHASE";
|
|
650
678
|
DocumentType2["LEGAL_CONTRACT"] = "LEGAL_CONTRACT";
|
|
651
679
|
DocumentType2["AUDIT_REPORT"] = "AUDIT_REPORT";
|
|
652
680
|
DocumentType2["SENSITIVE_IDENTITY"] = "SENSITIVE_IDENTITY";
|
|
@@ -660,6 +688,7 @@ var DocumentCategory = /* @__PURE__ */ ((DocumentCategory2) => {
|
|
|
660
688
|
DocumentCategory2["ASSETS_MAINT"] = "Assets & Maintenance";
|
|
661
689
|
DocumentCategory2["HR_LEGAL_SAFETY"] = "HR, Legal & Safety";
|
|
662
690
|
DocumentCategory2["FINANCE_ADMIN"] = "Finance & Admin";
|
|
691
|
+
DocumentCategory2["LOGISTICS"] = "Logistics";
|
|
663
692
|
return DocumentCategory2;
|
|
664
693
|
})(DocumentCategory || {});
|
|
665
694
|
var DOCUMENT_DISPLAY_INFO = {
|
|
@@ -834,6 +863,12 @@ var DOCUMENT_DISPLAY_INFO = {
|
|
|
834
863
|
label: "Supplier Invoices",
|
|
835
864
|
description: "Billing records for inputs, utilities, and services.",
|
|
836
865
|
category: "Finance & Admin" /* FINANCE_ADMIN */
|
|
866
|
+
},
|
|
867
|
+
// --- LOGISTICS ---
|
|
868
|
+
["PURCHASE" /* PURCHASE */]: {
|
|
869
|
+
label: "Purchase Orders",
|
|
870
|
+
description: "Purchase orders for goods and services.",
|
|
871
|
+
category: "Logistics" /* LOGISTICS */
|
|
837
872
|
}
|
|
838
873
|
};
|
|
839
874
|
var CATEGORY_TABS = [
|
|
@@ -871,6 +906,7 @@ var DOCUMENT_MENU_MAP = {
|
|
|
871
906
|
["HARVEST_LOG" /* HARVEST_LOG */]: [RESOURCE_PATHS.farmManagement],
|
|
872
907
|
["PACKHOUSE_INSPECTION" /* PACKHOUSE_INSPECTION */]: [RESOURCE_PATHS.packhouse],
|
|
873
908
|
["INVOICE" /* INVOICE */]: [RESOURCE_PATHS.documentHub],
|
|
909
|
+
["PURCHASE" /* PURCHASE */]: [RESOURCE_PATHS.logistics],
|
|
874
910
|
["LEGAL_CONTRACT" /* LEGAL_CONTRACT */]: [RESOURCE_PATHS.documentHub],
|
|
875
911
|
["AUDIT_REPORT" /* AUDIT_REPORT */]: [RESOURCE_PATHS.safetyAuditing, RESOURCE_PATHS.dashboard],
|
|
876
912
|
["SENSITIVE_IDENTITY" /* SENSITIVE_IDENTITY */]: [RESOURCE_PATHS.adminUserRoster]
|
|
@@ -887,10 +923,10 @@ var CORRECTIVE_ACTION_STATUSES = {
|
|
|
887
923
|
CLOSED: "closed",
|
|
888
924
|
FAILED: "failed"
|
|
889
925
|
};
|
|
890
|
-
var
|
|
891
|
-
|
|
892
|
-
LEGAL_ENTITY: "
|
|
893
|
-
|
|
926
|
+
var SCOPE_LEVELS = {
|
|
927
|
+
COMPANY: "company",
|
|
928
|
+
LEGAL_ENTITY: "legal_entity",
|
|
929
|
+
FACILITY: "facility"
|
|
894
930
|
};
|
|
895
931
|
var CORRECTIVE_ACTION_GENERATION_SOURCES = {
|
|
896
932
|
CREATE: "CREATE",
|
|
@@ -956,6 +992,42 @@ var StockPolicyTier = {
|
|
|
956
992
|
BY_STORAGE_PHASE: 2,
|
|
957
993
|
BY_LOCATION: 3
|
|
958
994
|
};
|
|
995
|
+
var PRODUCT_TYPE_TO_BUDGET_CATEGORY = Object.freeze({
|
|
996
|
+
carton: "packaging",
|
|
997
|
+
tray: "packaging",
|
|
998
|
+
liner: "packaging",
|
|
999
|
+
label: "packaging",
|
|
1000
|
+
tape: "packaging",
|
|
1001
|
+
strapping: "packaging",
|
|
1002
|
+
pallet: "packaging",
|
|
1003
|
+
stretch_wrap: "packaging",
|
|
1004
|
+
other: "general"
|
|
1005
|
+
// fallback — reviewer must confirm at Step 3
|
|
1006
|
+
});
|
|
1007
|
+
var TERM_RESOLUTION_MODES = Object.freeze({
|
|
1008
|
+
SUPPLIER_LEVEL: "SUPPLIER_LEVEL",
|
|
1009
|
+
PRODUCT_LEVEL: "PRODUCT_LEVEL"
|
|
1010
|
+
});
|
|
1011
|
+
var REQUISITION_STATUSES = Object.freeze({
|
|
1012
|
+
DRAFT: "draft",
|
|
1013
|
+
PENDING_FINANCE: "pending_finance",
|
|
1014
|
+
APPROVED: "approved",
|
|
1015
|
+
REJECTED: "rejected",
|
|
1016
|
+
ORDERED: "ordered"
|
|
1017
|
+
});
|
|
1018
|
+
var PO_STATUSES = Object.freeze({
|
|
1019
|
+
NEW: "new",
|
|
1020
|
+
ACKNOWLEDGED: "acknowledged",
|
|
1021
|
+
IN_PROGRESS: "in_progress",
|
|
1022
|
+
SHIPPED: "shipped",
|
|
1023
|
+
RECEIVED: "received",
|
|
1024
|
+
CANCELLED: "cancelled"
|
|
1025
|
+
});
|
|
1026
|
+
var PREFLIGHT_CHECK_STATUSES = Object.freeze({
|
|
1027
|
+
OK: "ok",
|
|
1028
|
+
WARNING: "warning",
|
|
1029
|
+
BLOCKED: "blocked"
|
|
1030
|
+
});
|
|
959
1031
|
|
|
960
1032
|
export {
|
|
961
1033
|
MOD,
|
|
@@ -1010,7 +1082,7 @@ export {
|
|
|
1010
1082
|
DOCUMENT_MENU_MAP,
|
|
1011
1083
|
SIGNATURE_MODES,
|
|
1012
1084
|
CORRECTIVE_ACTION_STATUSES,
|
|
1013
|
-
|
|
1085
|
+
SCOPE_LEVELS,
|
|
1014
1086
|
CORRECTIVE_ACTION_GENERATION_SOURCES,
|
|
1015
1087
|
CAR_SUPPORTED_EVIDENCE_MIME_TYPES,
|
|
1016
1088
|
CAR_SUPPORTED_SIGNATURE_MIME_TYPES,
|
|
@@ -1020,5 +1092,10 @@ export {
|
|
|
1020
1092
|
ProductUnit,
|
|
1021
1093
|
CatalogSyncStatus,
|
|
1022
1094
|
StoragePhases,
|
|
1023
|
-
StockPolicyTier
|
|
1095
|
+
StockPolicyTier,
|
|
1096
|
+
PRODUCT_TYPE_TO_BUDGET_CATEGORY,
|
|
1097
|
+
TERM_RESOLUTION_MODES,
|
|
1098
|
+
REQUISITION_STATUSES,
|
|
1099
|
+
PO_STATUSES,
|
|
1100
|
+
PREFLIGHT_CHECK_STATUSES
|
|
1024
1101
|
};
|
|
@@ -138,7 +138,7 @@ type CanonicalId = string;
|
|
|
138
138
|
type SignatureMode = typeof SIGNATURE_MODES[keyof typeof SIGNATURE_MODES];
|
|
139
139
|
type CorrectiveActionStatus = typeof CORRECTIVE_ACTION_STATUSES[keyof typeof CORRECTIVE_ACTION_STATUSES];
|
|
140
140
|
type FileUploadTaskType = typeof TaskType[keyof typeof TaskType];
|
|
141
|
-
type TemplateScopeLevel = typeof
|
|
141
|
+
type TemplateScopeLevel = typeof SCOPE_LEVELS[keyof typeof SCOPE_LEVELS];
|
|
142
142
|
type CorrectiveActionGenerationSource = typeof CORRECTIVE_ACTION_GENERATION_SOURCES[keyof typeof CORRECTIVE_ACTION_GENERATION_SOURCES];
|
|
143
143
|
type CarSupportedEvidenceMimeType = typeof CAR_SUPPORTED_EVIDENCE_MIME_TYPES[number];
|
|
144
144
|
type CarSupportedSignatureMimeType = typeof CAR_SUPPORTED_SIGNATURE_MIME_TYPES[number];
|
|
@@ -266,6 +266,86 @@ interface ShadowedCleanMatch {
|
|
|
266
266
|
contractReferenceNumber?: string;
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
|
+
type PaymentTerm = "cashOnDelivery" | "supplierTradeCredit" | "prePaymentProgram" | "forwardOrderingContract" | "thirdPartyInputFinance";
|
|
270
|
+
/**
|
|
271
|
+
* NET n -> transactionDate + n days
|
|
272
|
+
* EOM -> last day of the month AFTER the transaction month
|
|
273
|
+
* EOM n -> the n-th day of the month AFTER the transaction month
|
|
274
|
+
*
|
|
275
|
+
* Examples (transactionDate = 13 Jul):
|
|
276
|
+
* { type: "NET", days: 7 } -> 20 Jul
|
|
277
|
+
* { type: "EOM" } -> 31 Aug
|
|
278
|
+
* { type: "EOM", days: 14 } -> 14 Aug
|
|
279
|
+
*/
|
|
280
|
+
type CreditDaysWindow = {
|
|
281
|
+
type: "NET";
|
|
282
|
+
days: number;
|
|
283
|
+
} | {
|
|
284
|
+
type: "EOM";
|
|
285
|
+
days?: number;
|
|
286
|
+
};
|
|
287
|
+
/**
|
|
288
|
+
* FIXED_DATE -> contract specifies one exact calendar due date.
|
|
289
|
+
* FIXED_DAY -> recurring monthly on a fixed day-of-month, relative to
|
|
290
|
+
* `triggerDate` (defaults to transactionDate if omitted).
|
|
291
|
+
* ASSUMPTION: if triggerDate's day-of-month <= dayOfMonth,
|
|
292
|
+
* the due date falls in the SAME month (same-day counts
|
|
293
|
+
* as due). Otherwise it rolls to next month. Flip this in
|
|
294
|
+
* calculateForwardOrderingContractDueDate() if the
|
|
295
|
+
* business rule is actually "always roll forward".
|
|
296
|
+
* END_OF_MONTH -> due date = last day of triggerDate's month, optionally
|
|
297
|
+
* shifted by offsetDays (e.g. "EOM + 5 days").
|
|
298
|
+
* DELIVERY_BASED -> due date = triggerDate (e.g. actual delivery date) +
|
|
299
|
+
* offsetDays.
|
|
300
|
+
*/
|
|
301
|
+
type ForwardOrderingContractWindow = {
|
|
302
|
+
frequencyType: "FIXED_DATE";
|
|
303
|
+
dueDate: Date;
|
|
304
|
+
} | {
|
|
305
|
+
frequencyType: "FIXED_DAY";
|
|
306
|
+
dayOfMonth: number;
|
|
307
|
+
triggerDate?: Date;
|
|
308
|
+
} | {
|
|
309
|
+
frequencyType: "END_OF_MONTH";
|
|
310
|
+
triggerDate?: Date;
|
|
311
|
+
offsetDays?: number;
|
|
312
|
+
} | {
|
|
313
|
+
frequencyType: "DELIVERY_BASED";
|
|
314
|
+
triggerDate: Date;
|
|
315
|
+
offsetDays: number;
|
|
316
|
+
};
|
|
317
|
+
/**
|
|
318
|
+
* Generates `numberOfInstallments` due dates, spaced every `periodInterval`
|
|
319
|
+
* periods (days or months) starting from `startDate` (defaults to
|
|
320
|
+
* transactionDate).
|
|
321
|
+
*
|
|
322
|
+
* ASSUMPTION: installment #1 falls ONE period after the start date (not on
|
|
323
|
+
* the start date itself). e.g. periodType "MONTHS", periodInterval 1,
|
|
324
|
+
* dayOfMonth 15, numberOfInstallments 3, starting 13 Jul ->
|
|
325
|
+
* [15 Aug, 15 Sep, 15 Oct]
|
|
326
|
+
*
|
|
327
|
+
* `dayOfMonth` is required when periodType is "MONTHS" (pins each
|
|
328
|
+
* installment to a specific day, e.g. "every 1 month on the 15th").
|
|
329
|
+
*/
|
|
330
|
+
type InstallmentWindow = {
|
|
331
|
+
numberOfInstallments: number;
|
|
332
|
+
periodType: "DAYS" | "MONTHS";
|
|
333
|
+
periodInterval: number;
|
|
334
|
+
dayOfMonth?: number;
|
|
335
|
+
startDate?: Date;
|
|
336
|
+
};
|
|
337
|
+
interface CalculatePaymentDueDateInput {
|
|
338
|
+
transactionDate: Date;
|
|
339
|
+
paymentTerm: PaymentTerm;
|
|
340
|
+
/** Required when paymentTerm === "supplierTradeCredit" */
|
|
341
|
+
creditDaysWindow?: CreditDaysWindow;
|
|
342
|
+
/** Required when paymentTerm === "cashOnDelivery" (due date = delivery date) */
|
|
343
|
+
deliveryDate?: Date;
|
|
344
|
+
/** Required when paymentTerm === "forwardOrderingContract" */
|
|
345
|
+
forwardOrderingContractWindow?: ForwardOrderingContractWindow;
|
|
346
|
+
/** Required when paymentTerm === "thirdPartyInputFinance" */
|
|
347
|
+
installmentWindow?: InstallmentWindow;
|
|
348
|
+
}
|
|
269
349
|
|
|
270
350
|
declare const MOD: {
|
|
271
351
|
readonly OPERATIONS: "OPR";
|
|
@@ -543,6 +623,11 @@ declare const RESOURCE_PATHS: {
|
|
|
543
623
|
farmManagement: string;
|
|
544
624
|
packhouse: string;
|
|
545
625
|
accommodation: string;
|
|
626
|
+
logistics: string;
|
|
627
|
+
logisticsReceival: string;
|
|
628
|
+
logisticsReceivalReview: string;
|
|
629
|
+
logisticsDispatch: string;
|
|
630
|
+
logisticsDispatchReview: string;
|
|
546
631
|
inventory: string;
|
|
547
632
|
inventoryConsumable: string;
|
|
548
633
|
inventoryConsumableProduct: string;
|
|
@@ -622,6 +707,7 @@ declare enum DocumentType {
|
|
|
622
707
|
PACKHOUSE_INSPECTION = "PACKHOUSE_INSPECTION",
|
|
623
708
|
TRAINING_CERTIFICATE = "TRAINING_CERTIFICATE",
|
|
624
709
|
INVOICE = "INVOICE",
|
|
710
|
+
PURCHASE = "PURCHASE",
|
|
625
711
|
LEGAL_CONTRACT = "LEGAL_CONTRACT",
|
|
626
712
|
AUDIT_REPORT = "AUDIT_REPORT",
|
|
627
713
|
SENSITIVE_IDENTITY = "SENSITIVE_IDENTITY"
|
|
@@ -633,7 +719,8 @@ declare enum DocumentCategory {
|
|
|
633
719
|
INVENTORY_LOG = "Inventory & Logistics",
|
|
634
720
|
ASSETS_MAINT = "Assets & Maintenance",
|
|
635
721
|
HR_LEGAL_SAFETY = "HR, Legal & Safety",
|
|
636
|
-
FINANCE_ADMIN = "Finance & Admin"
|
|
722
|
+
FINANCE_ADMIN = "Finance & Admin",
|
|
723
|
+
LOGISTICS = "Logistics"
|
|
637
724
|
}
|
|
638
725
|
declare const DOCUMENT_DISPLAY_INFO: Record<DocumentType, {
|
|
639
726
|
label: string;
|
|
@@ -670,10 +757,10 @@ declare const CORRECTIVE_ACTION_STATUSES: {
|
|
|
670
757
|
* Scope level used when resolving templates from OperationalSettings.
|
|
671
758
|
* Resolution precedence is facility -> legalEntity -> company.
|
|
672
759
|
*/
|
|
673
|
-
declare const
|
|
674
|
-
readonly FACILITY: "facility";
|
|
675
|
-
readonly LEGAL_ENTITY: "legalEntity";
|
|
760
|
+
declare const SCOPE_LEVELS: {
|
|
676
761
|
readonly COMPANY: "company";
|
|
762
|
+
readonly LEGAL_ENTITY: "legal_entity";
|
|
763
|
+
readonly FACILITY: "facility";
|
|
677
764
|
};
|
|
678
765
|
/**
|
|
679
766
|
* Generation source for CAR creation.
|
|
@@ -745,5 +832,66 @@ declare const StockPolicyTier: {
|
|
|
745
832
|
readonly BY_STORAGE_PHASE: 2;
|
|
746
833
|
readonly BY_LOCATION: 3;
|
|
747
834
|
};
|
|
835
|
+
/**
|
|
836
|
+
* PRODUCT_TYPE_TO_BUDGET_CATEGORY
|
|
837
|
+
* Maps CompanyProduct.productType → BudgetAllocation.budgetCategory.
|
|
838
|
+
* Used by the preflight and submit service to evaluate budget impacts.
|
|
839
|
+
* Anti-splitting rule: ALL lines in a cart escalate to the highest category found.
|
|
840
|
+
*/
|
|
841
|
+
declare const PRODUCT_TYPE_TO_BUDGET_CATEGORY: Readonly<{
|
|
842
|
+
carton: "packaging";
|
|
843
|
+
tray: "packaging";
|
|
844
|
+
liner: "packaging";
|
|
845
|
+
label: "packaging";
|
|
846
|
+
tape: "packaging";
|
|
847
|
+
strapping: "packaging";
|
|
848
|
+
pallet: "packaging";
|
|
849
|
+
stretch_wrap: "packaging";
|
|
850
|
+
other: "general";
|
|
851
|
+
}>;
|
|
852
|
+
/**
|
|
853
|
+
* TERM_RESOLUTION_MODES
|
|
854
|
+
* Controls whether payment terms are resolved at the supplier level or per-product.
|
|
855
|
+
* Mirrors CompanyConnection.termResolutionMode schema values.
|
|
856
|
+
*/
|
|
857
|
+
declare const TERM_RESOLUTION_MODES: Readonly<{
|
|
858
|
+
SUPPLIER_LEVEL: "SUPPLIER_LEVEL";
|
|
859
|
+
PRODUCT_LEVEL: "PRODUCT_LEVEL";
|
|
860
|
+
}>;
|
|
861
|
+
/**
|
|
862
|
+
* REQUISITION_STATUSES
|
|
863
|
+
* Valid status values for InternalPurchaseRequisition.
|
|
864
|
+
* Mirrors the entity schema enum exactly.
|
|
865
|
+
*/
|
|
866
|
+
declare const REQUISITION_STATUSES: Readonly<{
|
|
867
|
+
DRAFT: "draft";
|
|
868
|
+
PENDING_FINANCE: "pending_finance";
|
|
869
|
+
APPROVED: "approved";
|
|
870
|
+
REJECTED: "rejected";
|
|
871
|
+
ORDERED: "ordered";
|
|
872
|
+
}>;
|
|
873
|
+
/**
|
|
874
|
+
* PO_STATUSES
|
|
875
|
+
* Valid status values for B2BPurchaseOrderHeader / B2BSalesOrderHeader.
|
|
876
|
+
* Mirrors the entity schema enum exactly.
|
|
877
|
+
* On submit → PO is always 'new' (no tier-based approval gating).
|
|
878
|
+
*/
|
|
879
|
+
declare const PO_STATUSES: Readonly<{
|
|
880
|
+
NEW: "new";
|
|
881
|
+
ACKNOWLEDGED: "acknowledged";
|
|
882
|
+
IN_PROGRESS: "in_progress";
|
|
883
|
+
SHIPPED: "shipped";
|
|
884
|
+
RECEIVED: "received";
|
|
885
|
+
CANCELLED: "cancelled";
|
|
886
|
+
}>;
|
|
887
|
+
/**
|
|
888
|
+
* PREFLIGHT_CHECK_STATUSES
|
|
889
|
+
* Traffic-light status values returned in preflight response checks.
|
|
890
|
+
*/
|
|
891
|
+
declare const PREFLIGHT_CHECK_STATUSES: Readonly<{
|
|
892
|
+
OK: "ok";
|
|
893
|
+
WARNING: "warning";
|
|
894
|
+
BLOCKED: "blocked";
|
|
895
|
+
}>;
|
|
748
896
|
|
|
749
|
-
export {
|
|
897
|
+
export { MOD as $, ACCESS_RANK as A, BarcodeNamespace as B, CAR_SUPPORTED_EVIDENCE_MIME_TYPES as C, type CatalogSyncStatusType as D, type CompanyConfig as E, type CorrectiveActionCompileTaskMetadata as F, type CorrectiveActionGenerationSource as G, type CorrectiveActionStatus as H, type CreditDaysWindow as I, CropCycleStatus as J, DOCUMENT_DISPLAY_INFO as K, DOCUMENT_MENU_MAP as L, DocumentCategory as M, DocumentType as N, ERROR_DICTIONARY as O, EVERYONE as P, EmitterType as Q, EnabledModule as R, FORM_REGISTRY as S, FacilityType as T, type FileUploadTaskType as U, type FormMeta as V, type ForwardOrderingContractWindow as W, HarvestMethod as X, type InfrastructureFields as Y, type InstallmentWindow as Z, LinkedStatus as _, ACT as a, type UserRoleAssignment as a$, MODULE_LABELS as a0, type MatrixRow as a1, MicroclimateZone as a2, MimeType as a3, type ModCode as a4, NettingType as a5, type NormalizedSignatureValue as a6, NotificationMode as a7, OrderStatus as a8, PO_STATUSES as a9, SENTINEL_UUID as aA, SESSION_SCHEMA as aB, SIGNATURE_MODES as aC, type SchemaField as aD, type ScopeType as aE, type ShadowedCleanMatch as aF, type SignatureInput as aG, type SignatureMode as aH, SoilTexture as aI, StockPolicyTier as aJ, type StockPolicyTierType as aK, StoragePhases as aL, type StorageType as aM, TASK_TYPE_REGISTRY as aN, TERM_RESOLUTION_MODES as aO, type TabConfig as aP, TargetEntityType as aQ, TaskStatus as aR, TaskType as aS, type TaskTypeConfig as aT, type TemplateScopeLevel as aU, type Tier as aV, TransactionType as aW, TrellisType as aX, UserPrivilege as aY, type UserPrivilegeType as aZ, UserRole as a_, PREFLIGHT_CHECK_STATUSES as aa, PRODUCT_TYPE_TO_BUDGET_CATEGORY as ab, type PaymentTerm as ac, type PermissionLevel as ad, PhysicalState as ae, PlantingMethod as af, type PriceConflictCandidate as ag, type PriceResolutionResult as ah, type PricingContext as ai, type PricingDataSource as aj, ProductType as ak, type ProductTypeType as al, ProductUnit as am, type ProductUnitType as an, REQUISITION_STATUSES as ao, RESOURCE_MODULE_MAP as ap, RESOURCE_PATHS as aq, RESOURCE_REQUIREMENTS as ar, ROLE_SECTIONS_BY_KEY as as, RelationshipType as at, type ResolvedError as au, type ResourceOverrides as av, type ResourceRequirement as aw, type RoleAssignment as ax, RowOrientation as ay, SCOPE_LEVELS as az, AccessLevel as b, type UserRoleType as b0, VigorRating as b1, WaterSource as b2, type WireSession as b3, 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, type BaseProductRow as o, CAR_SUPPORTED_SIGNATURE_MIME_TYPES as p, CAT as q, CATEGORY_TABS as r, CORRECTIVE_ACTION_GENERATION_SOURCES as s, CORRECTIVE_ACTION_STATUSES as t, type CalculatePaymentDueDateInput as u, type CanonicalId as v, type CarSupportedEvidenceMimeType as w, type CarSupportedSignatureMimeType as x, type CarTemplateFileMetadata as y, CatalogSyncStatus as z };
|
|
@@ -138,7 +138,7 @@ type CanonicalId = string;
|
|
|
138
138
|
type SignatureMode = typeof SIGNATURE_MODES[keyof typeof SIGNATURE_MODES];
|
|
139
139
|
type CorrectiveActionStatus = typeof CORRECTIVE_ACTION_STATUSES[keyof typeof CORRECTIVE_ACTION_STATUSES];
|
|
140
140
|
type FileUploadTaskType = typeof TaskType[keyof typeof TaskType];
|
|
141
|
-
type TemplateScopeLevel = typeof
|
|
141
|
+
type TemplateScopeLevel = typeof SCOPE_LEVELS[keyof typeof SCOPE_LEVELS];
|
|
142
142
|
type CorrectiveActionGenerationSource = typeof CORRECTIVE_ACTION_GENERATION_SOURCES[keyof typeof CORRECTIVE_ACTION_GENERATION_SOURCES];
|
|
143
143
|
type CarSupportedEvidenceMimeType = typeof CAR_SUPPORTED_EVIDENCE_MIME_TYPES[number];
|
|
144
144
|
type CarSupportedSignatureMimeType = typeof CAR_SUPPORTED_SIGNATURE_MIME_TYPES[number];
|
|
@@ -266,6 +266,86 @@ interface ShadowedCleanMatch {
|
|
|
266
266
|
contractReferenceNumber?: string;
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
|
+
type PaymentTerm = "cashOnDelivery" | "supplierTradeCredit" | "prePaymentProgram" | "forwardOrderingContract" | "thirdPartyInputFinance";
|
|
270
|
+
/**
|
|
271
|
+
* NET n -> transactionDate + n days
|
|
272
|
+
* EOM -> last day of the month AFTER the transaction month
|
|
273
|
+
* EOM n -> the n-th day of the month AFTER the transaction month
|
|
274
|
+
*
|
|
275
|
+
* Examples (transactionDate = 13 Jul):
|
|
276
|
+
* { type: "NET", days: 7 } -> 20 Jul
|
|
277
|
+
* { type: "EOM" } -> 31 Aug
|
|
278
|
+
* { type: "EOM", days: 14 } -> 14 Aug
|
|
279
|
+
*/
|
|
280
|
+
type CreditDaysWindow = {
|
|
281
|
+
type: "NET";
|
|
282
|
+
days: number;
|
|
283
|
+
} | {
|
|
284
|
+
type: "EOM";
|
|
285
|
+
days?: number;
|
|
286
|
+
};
|
|
287
|
+
/**
|
|
288
|
+
* FIXED_DATE -> contract specifies one exact calendar due date.
|
|
289
|
+
* FIXED_DAY -> recurring monthly on a fixed day-of-month, relative to
|
|
290
|
+
* `triggerDate` (defaults to transactionDate if omitted).
|
|
291
|
+
* ASSUMPTION: if triggerDate's day-of-month <= dayOfMonth,
|
|
292
|
+
* the due date falls in the SAME month (same-day counts
|
|
293
|
+
* as due). Otherwise it rolls to next month. Flip this in
|
|
294
|
+
* calculateForwardOrderingContractDueDate() if the
|
|
295
|
+
* business rule is actually "always roll forward".
|
|
296
|
+
* END_OF_MONTH -> due date = last day of triggerDate's month, optionally
|
|
297
|
+
* shifted by offsetDays (e.g. "EOM + 5 days").
|
|
298
|
+
* DELIVERY_BASED -> due date = triggerDate (e.g. actual delivery date) +
|
|
299
|
+
* offsetDays.
|
|
300
|
+
*/
|
|
301
|
+
type ForwardOrderingContractWindow = {
|
|
302
|
+
frequencyType: "FIXED_DATE";
|
|
303
|
+
dueDate: Date;
|
|
304
|
+
} | {
|
|
305
|
+
frequencyType: "FIXED_DAY";
|
|
306
|
+
dayOfMonth: number;
|
|
307
|
+
triggerDate?: Date;
|
|
308
|
+
} | {
|
|
309
|
+
frequencyType: "END_OF_MONTH";
|
|
310
|
+
triggerDate?: Date;
|
|
311
|
+
offsetDays?: number;
|
|
312
|
+
} | {
|
|
313
|
+
frequencyType: "DELIVERY_BASED";
|
|
314
|
+
triggerDate: Date;
|
|
315
|
+
offsetDays: number;
|
|
316
|
+
};
|
|
317
|
+
/**
|
|
318
|
+
* Generates `numberOfInstallments` due dates, spaced every `periodInterval`
|
|
319
|
+
* periods (days or months) starting from `startDate` (defaults to
|
|
320
|
+
* transactionDate).
|
|
321
|
+
*
|
|
322
|
+
* ASSUMPTION: installment #1 falls ONE period after the start date (not on
|
|
323
|
+
* the start date itself). e.g. periodType "MONTHS", periodInterval 1,
|
|
324
|
+
* dayOfMonth 15, numberOfInstallments 3, starting 13 Jul ->
|
|
325
|
+
* [15 Aug, 15 Sep, 15 Oct]
|
|
326
|
+
*
|
|
327
|
+
* `dayOfMonth` is required when periodType is "MONTHS" (pins each
|
|
328
|
+
* installment to a specific day, e.g. "every 1 month on the 15th").
|
|
329
|
+
*/
|
|
330
|
+
type InstallmentWindow = {
|
|
331
|
+
numberOfInstallments: number;
|
|
332
|
+
periodType: "DAYS" | "MONTHS";
|
|
333
|
+
periodInterval: number;
|
|
334
|
+
dayOfMonth?: number;
|
|
335
|
+
startDate?: Date;
|
|
336
|
+
};
|
|
337
|
+
interface CalculatePaymentDueDateInput {
|
|
338
|
+
transactionDate: Date;
|
|
339
|
+
paymentTerm: PaymentTerm;
|
|
340
|
+
/** Required when paymentTerm === "supplierTradeCredit" */
|
|
341
|
+
creditDaysWindow?: CreditDaysWindow;
|
|
342
|
+
/** Required when paymentTerm === "cashOnDelivery" (due date = delivery date) */
|
|
343
|
+
deliveryDate?: Date;
|
|
344
|
+
/** Required when paymentTerm === "forwardOrderingContract" */
|
|
345
|
+
forwardOrderingContractWindow?: ForwardOrderingContractWindow;
|
|
346
|
+
/** Required when paymentTerm === "thirdPartyInputFinance" */
|
|
347
|
+
installmentWindow?: InstallmentWindow;
|
|
348
|
+
}
|
|
269
349
|
|
|
270
350
|
declare const MOD: {
|
|
271
351
|
readonly OPERATIONS: "OPR";
|
|
@@ -543,6 +623,11 @@ declare const RESOURCE_PATHS: {
|
|
|
543
623
|
farmManagement: string;
|
|
544
624
|
packhouse: string;
|
|
545
625
|
accommodation: string;
|
|
626
|
+
logistics: string;
|
|
627
|
+
logisticsReceival: string;
|
|
628
|
+
logisticsReceivalReview: string;
|
|
629
|
+
logisticsDispatch: string;
|
|
630
|
+
logisticsDispatchReview: string;
|
|
546
631
|
inventory: string;
|
|
547
632
|
inventoryConsumable: string;
|
|
548
633
|
inventoryConsumableProduct: string;
|
|
@@ -622,6 +707,7 @@ declare enum DocumentType {
|
|
|
622
707
|
PACKHOUSE_INSPECTION = "PACKHOUSE_INSPECTION",
|
|
623
708
|
TRAINING_CERTIFICATE = "TRAINING_CERTIFICATE",
|
|
624
709
|
INVOICE = "INVOICE",
|
|
710
|
+
PURCHASE = "PURCHASE",
|
|
625
711
|
LEGAL_CONTRACT = "LEGAL_CONTRACT",
|
|
626
712
|
AUDIT_REPORT = "AUDIT_REPORT",
|
|
627
713
|
SENSITIVE_IDENTITY = "SENSITIVE_IDENTITY"
|
|
@@ -633,7 +719,8 @@ declare enum DocumentCategory {
|
|
|
633
719
|
INVENTORY_LOG = "Inventory & Logistics",
|
|
634
720
|
ASSETS_MAINT = "Assets & Maintenance",
|
|
635
721
|
HR_LEGAL_SAFETY = "HR, Legal & Safety",
|
|
636
|
-
FINANCE_ADMIN = "Finance & Admin"
|
|
722
|
+
FINANCE_ADMIN = "Finance & Admin",
|
|
723
|
+
LOGISTICS = "Logistics"
|
|
637
724
|
}
|
|
638
725
|
declare const DOCUMENT_DISPLAY_INFO: Record<DocumentType, {
|
|
639
726
|
label: string;
|
|
@@ -670,10 +757,10 @@ declare const CORRECTIVE_ACTION_STATUSES: {
|
|
|
670
757
|
* Scope level used when resolving templates from OperationalSettings.
|
|
671
758
|
* Resolution precedence is facility -> legalEntity -> company.
|
|
672
759
|
*/
|
|
673
|
-
declare const
|
|
674
|
-
readonly FACILITY: "facility";
|
|
675
|
-
readonly LEGAL_ENTITY: "legalEntity";
|
|
760
|
+
declare const SCOPE_LEVELS: {
|
|
676
761
|
readonly COMPANY: "company";
|
|
762
|
+
readonly LEGAL_ENTITY: "legal_entity";
|
|
763
|
+
readonly FACILITY: "facility";
|
|
677
764
|
};
|
|
678
765
|
/**
|
|
679
766
|
* Generation source for CAR creation.
|
|
@@ -745,5 +832,66 @@ declare const StockPolicyTier: {
|
|
|
745
832
|
readonly BY_STORAGE_PHASE: 2;
|
|
746
833
|
readonly BY_LOCATION: 3;
|
|
747
834
|
};
|
|
835
|
+
/**
|
|
836
|
+
* PRODUCT_TYPE_TO_BUDGET_CATEGORY
|
|
837
|
+
* Maps CompanyProduct.productType → BudgetAllocation.budgetCategory.
|
|
838
|
+
* Used by the preflight and submit service to evaluate budget impacts.
|
|
839
|
+
* Anti-splitting rule: ALL lines in a cart escalate to the highest category found.
|
|
840
|
+
*/
|
|
841
|
+
declare const PRODUCT_TYPE_TO_BUDGET_CATEGORY: Readonly<{
|
|
842
|
+
carton: "packaging";
|
|
843
|
+
tray: "packaging";
|
|
844
|
+
liner: "packaging";
|
|
845
|
+
label: "packaging";
|
|
846
|
+
tape: "packaging";
|
|
847
|
+
strapping: "packaging";
|
|
848
|
+
pallet: "packaging";
|
|
849
|
+
stretch_wrap: "packaging";
|
|
850
|
+
other: "general";
|
|
851
|
+
}>;
|
|
852
|
+
/**
|
|
853
|
+
* TERM_RESOLUTION_MODES
|
|
854
|
+
* Controls whether payment terms are resolved at the supplier level or per-product.
|
|
855
|
+
* Mirrors CompanyConnection.termResolutionMode schema values.
|
|
856
|
+
*/
|
|
857
|
+
declare const TERM_RESOLUTION_MODES: Readonly<{
|
|
858
|
+
SUPPLIER_LEVEL: "SUPPLIER_LEVEL";
|
|
859
|
+
PRODUCT_LEVEL: "PRODUCT_LEVEL";
|
|
860
|
+
}>;
|
|
861
|
+
/**
|
|
862
|
+
* REQUISITION_STATUSES
|
|
863
|
+
* Valid status values for InternalPurchaseRequisition.
|
|
864
|
+
* Mirrors the entity schema enum exactly.
|
|
865
|
+
*/
|
|
866
|
+
declare const REQUISITION_STATUSES: Readonly<{
|
|
867
|
+
DRAFT: "draft";
|
|
868
|
+
PENDING_FINANCE: "pending_finance";
|
|
869
|
+
APPROVED: "approved";
|
|
870
|
+
REJECTED: "rejected";
|
|
871
|
+
ORDERED: "ordered";
|
|
872
|
+
}>;
|
|
873
|
+
/**
|
|
874
|
+
* PO_STATUSES
|
|
875
|
+
* Valid status values for B2BPurchaseOrderHeader / B2BSalesOrderHeader.
|
|
876
|
+
* Mirrors the entity schema enum exactly.
|
|
877
|
+
* On submit → PO is always 'new' (no tier-based approval gating).
|
|
878
|
+
*/
|
|
879
|
+
declare const PO_STATUSES: Readonly<{
|
|
880
|
+
NEW: "new";
|
|
881
|
+
ACKNOWLEDGED: "acknowledged";
|
|
882
|
+
IN_PROGRESS: "in_progress";
|
|
883
|
+
SHIPPED: "shipped";
|
|
884
|
+
RECEIVED: "received";
|
|
885
|
+
CANCELLED: "cancelled";
|
|
886
|
+
}>;
|
|
887
|
+
/**
|
|
888
|
+
* PREFLIGHT_CHECK_STATUSES
|
|
889
|
+
* Traffic-light status values returned in preflight response checks.
|
|
890
|
+
*/
|
|
891
|
+
declare const PREFLIGHT_CHECK_STATUSES: Readonly<{
|
|
892
|
+
OK: "ok";
|
|
893
|
+
WARNING: "warning";
|
|
894
|
+
BLOCKED: "blocked";
|
|
895
|
+
}>;
|
|
748
896
|
|
|
749
|
-
export {
|
|
897
|
+
export { MOD as $, ACCESS_RANK as A, BarcodeNamespace as B, CAR_SUPPORTED_EVIDENCE_MIME_TYPES as C, type CatalogSyncStatusType as D, type CompanyConfig as E, type CorrectiveActionCompileTaskMetadata as F, type CorrectiveActionGenerationSource as G, type CorrectiveActionStatus as H, type CreditDaysWindow as I, CropCycleStatus as J, DOCUMENT_DISPLAY_INFO as K, DOCUMENT_MENU_MAP as L, DocumentCategory as M, DocumentType as N, ERROR_DICTIONARY as O, EVERYONE as P, EmitterType as Q, EnabledModule as R, FORM_REGISTRY as S, FacilityType as T, type FileUploadTaskType as U, type FormMeta as V, type ForwardOrderingContractWindow as W, HarvestMethod as X, type InfrastructureFields as Y, type InstallmentWindow as Z, LinkedStatus as _, ACT as a, type UserRoleAssignment as a$, MODULE_LABELS as a0, type MatrixRow as a1, MicroclimateZone as a2, MimeType as a3, type ModCode as a4, NettingType as a5, type NormalizedSignatureValue as a6, NotificationMode as a7, OrderStatus as a8, PO_STATUSES as a9, SENTINEL_UUID as aA, SESSION_SCHEMA as aB, SIGNATURE_MODES as aC, type SchemaField as aD, type ScopeType as aE, type ShadowedCleanMatch as aF, type SignatureInput as aG, type SignatureMode as aH, SoilTexture as aI, StockPolicyTier as aJ, type StockPolicyTierType as aK, StoragePhases as aL, type StorageType as aM, TASK_TYPE_REGISTRY as aN, TERM_RESOLUTION_MODES as aO, type TabConfig as aP, TargetEntityType as aQ, TaskStatus as aR, TaskType as aS, type TaskTypeConfig as aT, type TemplateScopeLevel as aU, type Tier as aV, TransactionType as aW, TrellisType as aX, UserPrivilege as aY, type UserPrivilegeType as aZ, UserRole as a_, PREFLIGHT_CHECK_STATUSES as aa, PRODUCT_TYPE_TO_BUDGET_CATEGORY as ab, type PaymentTerm as ac, type PermissionLevel as ad, PhysicalState as ae, PlantingMethod as af, type PriceConflictCandidate as ag, type PriceResolutionResult as ah, type PricingContext as ai, type PricingDataSource as aj, ProductType as ak, type ProductTypeType as al, ProductUnit as am, type ProductUnitType as an, REQUISITION_STATUSES as ao, RESOURCE_MODULE_MAP as ap, RESOURCE_PATHS as aq, RESOURCE_REQUIREMENTS as ar, ROLE_SECTIONS_BY_KEY as as, RelationshipType as at, type ResolvedError as au, type ResourceOverrides as av, type ResourceRequirement as aw, type RoleAssignment as ax, RowOrientation as ay, SCOPE_LEVELS as az, AccessLevel as b, type UserRoleType as b0, VigorRating as b1, WaterSource as b2, type WireSession as b3, 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, type BaseProductRow as o, CAR_SUPPORTED_SIGNATURE_MIME_TYPES as p, CAT as q, CATEGORY_TABS as r, CORRECTIVE_ACTION_GENERATION_SOURCES as s, CORRECTIVE_ACTION_STATUSES as t, type CalculatePaymentDueDateInput as u, type CanonicalId as v, type CarSupportedEvidenceMimeType as w, type CarSupportedSignatureMimeType as x, type CarTemplateFileMetadata as y, CatalogSyncStatus as z };
|
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, p as CAR_SUPPORTED_SIGNATURE_MIME_TYPES, q as CAT, r as CATEGORY_TABS, s as CORRECTIVE_ACTION_GENERATION_SOURCES, t as CORRECTIVE_ACTION_STATUSES,
|
|
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, p as CAR_SUPPORTED_SIGNATURE_MIME_TYPES, q as CAT, r as CATEGORY_TABS, s as CORRECTIVE_ACTION_GENERATION_SOURCES, t as CORRECTIVE_ACTION_STATUSES, z as CatalogSyncStatus, J as CropCycleStatus, K as DOCUMENT_DISPLAY_INFO, L as DOCUMENT_MENU_MAP, M as DocumentCategory, N as DocumentType, O as ERROR_DICTIONARY, P as EVERYONE, Q as EmitterType, R as EnabledModule, S as FORM_REGISTRY, T as FacilityType, X as HarvestMethod, _ as LinkedStatus, $ as MOD, a0 as MODULE_LABELS, a2 as MicroclimateZone, a3 as MimeType, a4 as ModCode, a5 as NettingType, a7 as NotificationMode, a8 as OrderStatus, a9 as PO_STATUSES, aa as PREFLIGHT_CHECK_STATUSES, ab as PRODUCT_TYPE_TO_BUDGET_CATEGORY, ae as PhysicalState, af as PlantingMethod, ak as ProductType, am as ProductUnit, ao as REQUISITION_STATUSES, ap as RESOURCE_MODULE_MAP, aq as RESOURCE_PATHS, ar as RESOURCE_REQUIREMENTS, as as ROLE_SECTIONS_BY_KEY, at as RelationshipType, aw as ResourceRequirement, ay as RowOrientation, az as SCOPE_LEVELS, aA as SENTINEL_UUID, aB as SESSION_SCHEMA, aC as SIGNATURE_MODES, aI as SoilTexture, aJ as StockPolicyTier, aL as StoragePhases, aN as TASK_TYPE_REGISTRY, aO as TERM_RESOLUTION_MODES, aQ as TargetEntityType, aR as TaskStatus, aS as TaskType, aW as TransactionType, aX as TrellisType, aY as UserPrivilege, a_ as UserRole, b1 as VigorRating, b2 as WaterSource } from './constants-x8gYRJIw.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, p as CAR_SUPPORTED_SIGNATURE_MIME_TYPES, q as CAT, r as CATEGORY_TABS, s as CORRECTIVE_ACTION_GENERATION_SOURCES, t as CORRECTIVE_ACTION_STATUSES,
|
|
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, p as CAR_SUPPORTED_SIGNATURE_MIME_TYPES, q as CAT, r as CATEGORY_TABS, s as CORRECTIVE_ACTION_GENERATION_SOURCES, t as CORRECTIVE_ACTION_STATUSES, z as CatalogSyncStatus, J as CropCycleStatus, K as DOCUMENT_DISPLAY_INFO, L as DOCUMENT_MENU_MAP, M as DocumentCategory, N as DocumentType, O as ERROR_DICTIONARY, P as EVERYONE, Q as EmitterType, R as EnabledModule, S as FORM_REGISTRY, T as FacilityType, X as HarvestMethod, _ as LinkedStatus, $ as MOD, a0 as MODULE_LABELS, a2 as MicroclimateZone, a3 as MimeType, a4 as ModCode, a5 as NettingType, a7 as NotificationMode, a8 as OrderStatus, a9 as PO_STATUSES, aa as PREFLIGHT_CHECK_STATUSES, ab as PRODUCT_TYPE_TO_BUDGET_CATEGORY, ae as PhysicalState, af as PlantingMethod, ak as ProductType, am as ProductUnit, ao as REQUISITION_STATUSES, ap as RESOURCE_MODULE_MAP, aq as RESOURCE_PATHS, ar as RESOURCE_REQUIREMENTS, as as ROLE_SECTIONS_BY_KEY, at as RelationshipType, aw as ResourceRequirement, ay as RowOrientation, az as SCOPE_LEVELS, aA as SENTINEL_UUID, aB as SESSION_SCHEMA, aC as SIGNATURE_MODES, aI as SoilTexture, aJ as StockPolicyTier, aL as StoragePhases, aN as TASK_TYPE_REGISTRY, aO as TERM_RESOLUTION_MODES, aQ as TargetEntityType, aR as TaskStatus, aS as TaskType, aW as TransactionType, aX as TrellisType, aY as UserPrivilege, a_ as UserRole, b1 as VigorRating, b2 as WaterSource } from './constants-x8gYRJIw.js';
|