feat: enforce canonical container identity across regions

This commit is contained in:
2026-08-31 12:13:20 +08:00
parent b386f35ab4
commit 942dbace19
78 changed files with 1203 additions and 730 deletions
@@ -169,7 +169,7 @@ export async function run(context) {
const base = `/api/platform/v1/inbounds/${inboundId}`
const suffix = markerSuffix(context.marker)
const warehouseId = id(initial?.summary?.warehouseId)
const containerNo = `P3B-${suffix}`.slice(0, 64)
const containerNo = iso6346ContainerNumber(`${context.marker}-phase3-loading`)
const smartLoadingBase = '/api/platform/v1/first-leg/smart-loading'
const pdaBase = '/api/platform/v1/first-leg/pda-loading'
const supplierResponse = await context.request('GET',
@@ -1387,3 +1387,4 @@ export async function run(context) {
marker: context.marker, inboundStatus: 'LOADING', loadingPlanStatus: 'LOADING', finalStatus: 'AWAITING_REVIEW',
}
}
import { iso6346ContainerNumber } from './iso6346-container-number.mjs'