busroot-sdk 0.0.8-dev.2832183355 → 0.0.8-dev.2835608806
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/build/index.js +11 -0
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -8166,6 +8166,8 @@ var require_production3 = __commonJS({
|
|
|
8166
8166
|
exports2.productionCap = productionCap;
|
|
8167
8167
|
exports2.isAtProductionCap = isAtProductionCap;
|
|
8168
8168
|
exports2.exceedsProductionCap = exceedsProductionCap;
|
|
8169
|
+
exports2.historicalCorrectionAnchor = historicalCorrectionAnchor;
|
|
8170
|
+
exports2.isHistoricalCorrectionRow = isHistoricalCorrectionRow;
|
|
8169
8171
|
exports2.formatScheduleProductionCount = formatScheduleProductionCount;
|
|
8170
8172
|
exports2.processProduction = processProduction;
|
|
8171
8173
|
exports2.filterBySkuType = filterBySkuType;
|
|
@@ -8194,6 +8196,15 @@ var require_production3 = __commonJS({
|
|
|
8194
8196
|
}
|
|
8195
8197
|
return (quantityTotal ?? 0) + delta > cap;
|
|
8196
8198
|
}
|
|
8199
|
+
function historicalCorrectionAnchor(actualEndAtTimestamp) {
|
|
8200
|
+
return actualEndAtTimestamp - time_1.TimeIntervals["1s"].ms;
|
|
8201
|
+
}
|
|
8202
|
+
function isHistoricalCorrectionRow(production, schedule) {
|
|
8203
|
+
if (schedule.actualEndAtTimestamp == null || production.type !== enums_1.PRODUCTION_TYPE.CORRECTION) {
|
|
8204
|
+
return false;
|
|
8205
|
+
}
|
|
8206
|
+
return production.lastUnitAtTimestamp === historicalCorrectionAnchor(schedule.actualEndAtTimestamp);
|
|
8207
|
+
}
|
|
8197
8208
|
function formatScheduleProductionCount(manifest, quantityTotal) {
|
|
8198
8209
|
const formatted = (0, _1.roundTo)(quantityTotal ?? 0, 2).toLocaleString("en-us");
|
|
8199
8210
|
return isAtProductionCap(manifest, quantityTotal) ? `${formatted} (limit)` : formatted;
|
package/package.json
CHANGED