Skip to content

Instantly share code, notes, and snippets.

@MinSomai
Created March 13, 2023 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MinSomai/081ae38760cecfd5a2885e566e67d3d7 to your computer and use it in GitHub Desktop.
Save MinSomai/081ae38760cecfd5a2885e566e67d3d7 to your computer and use it in GitHub Desktop.
let update8 = {
lastIndex: 110016159375425536,
clientSegment: [0, 128],
updates: [
{
index: 110015715536535552,
timestamp: '2023-03-13T11:23:16.887Z',
before: null,
after: {
voyageId: 'b0571ec1-ff7c-4b67-b00d-0121bd8dc372',
declarant: {
fullName: 'Ancotrans BV',
shortName: 'ANCOMD',
emailAddress: 'dla@ancotrans.nl',
address: 'Plaza 24 b',
city: 'MOERDIJK',
countryUnCode: 'NL',
countryName: 'Netherlands',
zipCode: '4782 SK',
phoneNumber: '0858902890',
contact: 'Dave Lanser',
customsEORINumber: 'NL858641197',
ean: '8713755907006',
chamberOfCommerceNumber: '71262830',
},
voyageData: {
tripNumber: 'T23B01SF',
modality: 'road',
},
visits: [
{
visitId: '3168287',
visitData: {
eta: '2023-03-20T14:15:22Z',
modality: 'road',
},
requestedVisitData: {
eta: '2023-03-20T14:15:22Z',
modality: 'road',
},
terminal: {
shortName: 'ECTDELTA',
ean: '8713755000059',
bicsCode: '00DDE',
quayName: 'DDE',
smdgCode: 'DCD',
location: {
name: 'Rotterdam',
locationUnCode: 'NLRTM',
},
displayNameOverrides: {
road: 'ECTDELTA',
},
allowedModalities: ['road', 'rail', 'barge'],
tarRequired: false,
roadLicenseIdRequired: false,
roadStatusRequestAllowed: true,
bargeStatusRequestForbidden: false,
loadDischargeListSettings: {
autoRejectEnabled: true,
handlingUpdateBypassAllowed: true,
},
quaySelectByDeclarantForbidden: false,
updateAllowed: true,
handlingUpdateForbidden: ['road', 'rail', 'cer'],
handlingUpdateBypassAllowed: ['rail'],
maxSealNumberLength: 15,
acceptAfterRejectForbidden: true,
terminalSettings: [
{
loading: false,
full: true,
modality: 'road',
sealNumberAllowed: false,
reeferAllowed: true,
grossWeightAllowed: true,
outOfGaugeAllowed: true,
dangerousGoodsAllowed: true,
},
{
loading: false,
full: false,
modality: 'road',
sealNumberAllowed: false,
reeferAllowed: false,
grossWeightAllowed: false,
outOfGaugeAllowed: false,
dangerousGoodsAllowed: true,
},
{
loading: false,
full: true,
modality: 'rail',
sealNumberAllowed: false,
reeferAllowed: true,
grossWeightAllowed: true,
outOfGaugeAllowed: true,
dangerousGoodsAllowed: true,
},
{
loading: false,
full: false,
modality: 'rail',
sealNumberAllowed: false,
reeferAllowed: false,
grossWeightAllowed: false,
outOfGaugeAllowed: false,
dangerousGoodsAllowed: true,
},
{
loading: false,
full: true,
modality: 'barge',
sealNumberAllowed: false,
reeferAllowed: true,
grossWeightAllowed: true,
outOfGaugeAllowed: true,
dangerousGoodsAllowed: true,
cargoCutOffInMinutes: 480,
},
{
loading: false,
full: false,
modality: 'barge',
sealNumberAllowed: false,
reeferAllowed: false,
grossWeightAllowed: false,
outOfGaugeAllowed: false,
dangerousGoodsAllowed: true,
cargoCutOffInMinutes: 480,
},
{
loading: true,
full: false,
modality: 'barge',
sealNumberAllowed: false,
reeferAllowed: false,
grossWeightAllowed: false,
outOfGaugeAllowed: false,
dangerousGoodsAllowed: false,
cargoCutOffInMinutes: 480,
},
{
loading: true,
full: true,
modality: 'barge',
sealNumberAllowed: false,
reeferAllowed: false,
grossWeightAllowed: false,
outOfGaugeAllowed: false,
dangerousGoodsAllowed: false,
cargoCutOffInMinutes: 480,
},
],
nextlogicParticipant: true,
prenotifyOnlyAfterVisitAccepted: false,
prenotificationRestrictedToDeclarants: {},
},
visitCancelled: false,
handlings: [
{
handlingId: '40c1df82-27a6-4528-92be-346e145b6023',
handlingData: {
equipmentNumber: 'CAIU6684535',
bookingNumber: '89927117',
shippingCompany: {
name: 'Hapag Lloyd',
scacCode: 'HLCU',
smdgCode: 'HLC',
},
sizeType: {
code: '22G1',
name: "20'x8'x8'6\" General Purpose Container",
},
type: 'loading',
full: true,
shippersOwned: false,
modality: 'road',
},
handlingStatus: {
dangerousGoods: [],
shippersOwned: false,
type: 'loading',
documentsPresent: false,
notifications: [],
documentNumbers: [],
damages: [],
},
cargoDeclarantShortName: 'ANCOMD',
cancelled: false,
extra: false,
preNotification: true,
completed: false,
handlingDeclaration: {
declarationUsingUpdateBypass: false,
cancelForUpdateByPassAcceptedByTerminal: false,
status: 'ACCEPTED',
acceptStatuses: [
{
type: 'COMMERCIAL_RELEASE',
ok: false,
code: 'COR',
remark: 'Release not found.',
},
{
ok: null,
code: 'COU',
remark: 'Container status not (yet) available.',
},
{
type: 'BOOKING_APPROVED',
ok: null,
},
{
type: 'CUSTOMS_DOCUMENT',
ok: null,
},
{
type: 'BLOCKED',
ok: null,
},
{
type: 'AVAILABLE',
ok: null,
},
{
type: 'SIZETYPE_APPROVED',
ok: null,
},
],
rejectReasons: [],
},
},
{
handlingId: 'e9d5abc9-16b1-427a-b414-e12c2cdb66b9',
handlingData: {
equipmentNumber: 'CAIU6684535',
bookingNumber: '89927117',
shippingCompany: {
name: 'Hapag Lloyd',
scacCode: 'HLCU',
smdgCode: 'HLC',
},
sizeType: {
code: '22G1',
name: "20'x8'x8'6\" General Purpose Container",
},
type: 'loading',
full: true,
shippersOwned: false,
modality: 'road',
},
handlingStatus: {
sealNumber: 'N',
dangerousGoods: [],
sizeType: {
code: '22G1',
name: "20'x8'x8'6\" General Purpose Container",
},
shippersOwned: false,
type: 'loading',
documentsPresent: false,
notifications: [],
documentNumbers: [],
damages: [],
},
cargoDeclarantShortName: 'ANCOMD',
cancelled: false,
extra: false,
preNotification: true,
completed: false,
handlingDeclaration: {
declarationUsingUpdateBypass: false,
cancelForUpdateByPassAcceptedByTerminal: false,
status: 'ACCEPTED',
acceptStatuses: [
{
type: 'COMMERCIAL_RELEASE',
ok: false,
code: 'COR',
remark: 'Release not found.',
},
{
type: 'AVAILABLE',
ok: false,
code: 'COA',
remark: 'Container not (yet) present at the terminal.',
},
{
type: 'BLOCKED',
ok: false,
code: 'BLT',
remark: 'Release not (yet) matched.',
},
{
type: 'CUSTOMS_DOCUMENT',
ok: false,
code: 'CDM',
remark: 'Release not (yet) matched.',
},
{
type: 'BOOKING_APPROVED',
ok: true,
},
{
type: 'SIZETYPE_APPROVED',
ok: true,
},
],
rejectReasons: [],
},
},
],
remainOnTruckContainers: [],
visitCompleted: false,
modality: 'road',
neverAcknowledged: true,
arrived: false,
visitDeclaration: {
acknowledgedByTerminal: false,
status: 'DECLARED',
rejectReasons: [],
},
},
],
cancelled: false,
cargoDeclarants: [
{
fullName: 'Ancotrans BV',
shortName: 'ANCOMD',
emailAddress: 'dla@ancotrans.nl',
address: 'Plaza 24 b',
city: 'MOERDIJK',
countryUnCode: 'NL',
countryName: 'Netherlands',
zipCode: '4782 SK',
phoneNumber: '0858902890',
contact: 'Dave Lanser',
customsEORINumber: 'NL858641197',
ean: '8713755907006',
chamberOfCommerceNumber: '71262830',
},
],
type: 'roadVoyage',
modality: 'road',
},
type: 'VOYAGE',
triggeredByOrganisation: false,
triggeredByUser: false,
triggeredByRecipient: false,
},
{
index: 110015717557338112,
timestamp: '2023-03-13T11:23:47.630Z',
before: null,
after: {
voyageId: 'e98466f8-2232-4f0e-a1fb-e3859206254d',
declarant: {
fullName: 'Ancotrans BV',
shortName: 'ANCOMD',
emailAddress: 'dla@ancotrans.nl',
address: 'Plaza 24 b',
city: 'MOERDIJK',
countryUnCode: 'NL',
countryName: 'Netherlands',
zipCode: '4782 SK',
phoneNumber: '0858902890',
contact: 'Dave Lanser',
customsEORINumber: 'NL858641197',
ean: '8713755907006',
chamberOfCommerceNumber: '71262830',
},
voyageData: {
tripNumber: 'T23B01SG',
modality: 'road',
},
visits: [
{
visitId: '3168288',
visitData: {
eta: '2023-03-20T14:15:22Z',
modality: 'road',
},
requestedVisitData: {
eta: '2023-03-20T14:15:22Z',
modality: 'road',
},
terminal: {
shortName: 'ECTDELTA',
ean: '8713755000059',
bicsCode: '00DDE',
quayName: 'DDE',
smdgCode: 'DCD',
location: {
name: 'Rotterdam',
locationUnCode: 'NLRTM',
},
displayNameOverrides: {
road: 'ECTDELTA',
},
allowedModalities: ['road', 'rail', 'barge'],
tarRequired: false,
roadLicenseIdRequired: false,
roadStatusRequestAllowed: true,
bargeStatusRequestForbidden: false,
loadDischargeListSettings: {
autoRejectEnabled: true,
handlingUpdateBypassAllowed: true,
},
quaySelectByDeclarantForbidden: false,
updateAllowed: true,
handlingUpdateForbidden: ['road', 'rail', 'cer'],
handlingUpdateBypassAllowed: ['rail'],
maxSealNumberLength: 15,
acceptAfterRejectForbidden: true,
terminalSettings: [
{
loading: false,
full: true,
modality: 'road',
sealNumberAllowed: false,
reeferAllowed: true,
grossWeightAllowed: true,
outOfGaugeAllowed: true,
dangerousGoodsAllowed: true,
},
{
loading: false,
full: false,
modality: 'road',
sealNumberAllowed: false,
reeferAllowed: false,
grossWeightAllowed: false,
outOfGaugeAllowed: false,
dangerousGoodsAllowed: true,
},
{
loading: false,
full: true,
modality: 'rail',
sealNumberAllowed: false,
reeferAllowed: true,
grossWeightAllowed: true,
outOfGaugeAllowed: true,
dangerousGoodsAllowed: true,
},
{
loading: false,
full: false,
modality: 'rail',
sealNumberAllowed: false,
reeferAllowed: false,
grossWeightAllowed: false,
outOfGaugeAllowed: false,
dangerousGoodsAllowed: true,
},
{
loading: false,
full: true,
modality: 'barge',
sealNumberAllowed: false,
reeferAllowed: true,
grossWeightAllowed: true,
outOfGaugeAllowed: true,
dangerousGoodsAllowed: true,
cargoCutOffInMinutes: 480,
},
{
loading: false,
full: false,
modality: 'barge',
sealNumberAllowed: false,
reeferAllowed: false,
grossWeightAllowed: false,
outOfGaugeAllowed: false,
dangerousGoodsAllowed: true,
cargoCutOffInMinutes: 480,
},
{
loading: true,
full: false,
modality: 'barge',
sealNumberAllowed: false,
reeferAllowed: false,
grossWeightAllowed: false,
outOfGaugeAllowed: false,
dangerousGoodsAllowed: false,
cargoCutOffInMinutes: 480,
},
{
loading: true,
full: true,
modality: 'barge',
sealNumberAllowed: false,
reeferAllowed: false,
grossWeightAllowed: false,
outOfGaugeAllowed: false,
dangerousGoodsAllowed: false,
cargoCutOffInMinutes: 480,
},
],
nextlogicParticipant: true,
prenotifyOnlyAfterVisitAccepted: false,
prenotificationRestrictedToDeclarants: {},
},
visitCancelled: false,
handlings: [],
remainOnTruckContainers: [],
visitCompleted: false,
modality: 'road',
neverAcknowledged: true,
arrived: false,
visitDeclaration: {
acknowledgedByTerminal: false,
status: 'DECLARED',
rejectReasons: [],
},
},
],
cancelled: false,
cargoDeclarants: [
{
fullName: 'Ancotrans BV',
shortName: 'ANCOMD',
emailAddress: 'dla@ancotrans.nl',
address: 'Plaza 24 b',
city: 'MOERDIJK',
countryUnCode: 'NL',
countryName: 'Netherlands',
zipCode: '4782 SK',
phoneNumber: '0858902890',
contact: 'Dave Lanser',
customsEORINumber: 'NL858641197',
ean: '8713755907006',
chamberOfCommerceNumber: '71262830',
},
],
type: 'roadVoyage',
modality: 'road',
},
type: 'VOYAGE',
triggeredByOrganisation: true,
triggeredByUser: true,
triggeredByRecipient: true,
},
{
index: 110015718457868288,
timestamp: '2023-03-13T11:24:01.450Z',
before: {
voyageId: 'b0571ec1-ff7c-4b67-b00d-0121bd8dc372',
declarant: {
fullName: 'Ancotrans BV',
shortName: 'ANCOMD',
emailAddress: 'dla@ancotrans.nl',
address: 'Plaza 24 b',
city: 'MOERDIJK',
countryUnCode: 'NL',
countryName: 'Netherlands',
zipCode: '4782 SK',
phoneNumber: '0858902890',
contact: 'Dave Lanser',
customsEORINumber: 'NL858641197',
ean: '8713755907006',
chamberOfCommerceNumber: '71262830',
},
voyageData: {
tripNumber: 'T23B01SF',
modality: 'road',
},
visits: [
{
visitId: '3168287',
visitData: {
eta: '2023-03-20T14:15:22Z',
modality: 'road',
},
requestedVisitData: {
eta: '2023-03-20T14:15:22Z',
modality: 'road',
},
terminal: {
shortName: 'ECTDELTA',
ean: '8713755000059',
bicsCode: '00DDE',
quayName: 'DDE',
smdgCode: 'DCD',
location: {
name: 'Rotterdam',
locationUnCode: 'NLRTM',
},
displayNameOverrides: {
road: 'ECTDELTA',
},
allowedModalities: ['road', 'rail', 'barge'],
tarRequired: false,
roadLicenseIdRequired: false,
roadStatusRequestAllowed: true,
bargeStatusRequestForbidden: false,
loadDischargeListSettings: {
autoRejectEnabled: true,
handlingUpdateBypassAllowed: true,
},
quaySelectByDeclarantForbidden: false,
updateAllowed: true,
handlingUpdateForbidden: ['road', 'rail', 'cer'],
handlingUpdateBypassAllowed: ['rail'],
maxSealNumberLength: 15,
acceptAfterRejectForbidden: true,
terminalSettings: [
{
loading: false,
full: true,
modality: 'road',
sealNumberAllowed: false,
reeferAllowed: true,
grossWeightAllowed: true,
outOfGaugeAllowed: true,
dangerousGoodsAllowed: true,
},
{
loading: false,
full: false,
modality: 'road',
sealNumberAllowed: false,
reeferAllowed: false,
grossWeightAllowed: false,
outOfGaugeAllowed: false,
dangerousGoodsAllowed: true,
},
{
loading: false,
full: true,
modality: 'rail',
sealNumberAllowed: false,
reeferAllowed: true,
grossWeightAllowed: true,
outOfGaugeAllowed: true,
dangerousGoodsAllowed: true,
},
{
loading: false,
full: false,
modality: 'rail',
sealNumberAllowed: false,
reeferAllowed: false,
grossWeightAllowed: false,
outOfGaugeAllowed: false,
dangerousGoodsAllowed: true,
},
{
loading: false,
full: true,
modality: 'barge',
sealNumberAllowed: false,
reeferAllowed: true,
grossWeightAllowed: true,
outOfGaugeAllowed: true,
dangerousGoodsAllowed: true,
cargoCutOffInMinutes: 480,
},
{
loading: false,
full: false,
modality: 'barge',
sealNumberAllowed: false,
reeferAllowed: false,
grossWeightAllowed: false,
outOfGaugeAllowed: false,
dangerousGoodsAllowed: true,
cargoCutOffInMinutes: 480,
},
{
loading: true,
full: false,
modality: 'barge',
sealNumberAllowed: false,
reeferAllowed: false,
grossWeightAllowed: false,
outOfGaugeAllowed: false,
dangerousGoodsAllowed: false,
cargoCutOffInMinutes: 480,
},
{
loading: true,
full: true,
modality: 'barge',
sealNumberAllowed: false,
reeferAllowed: false,
grossWeightAllowed: false,
outOfGaugeAllowed: false,
dangerousGoodsAllowed: false,
cargoCutOffInMinutes: 480,
},
],
nextlogicParticipant: true,
prenotifyOnlyAfterVisitAccepted: false,
prenotificationRestrictedToDeclarants: {},
},
visitCancelled: false,
handlings: [
{
handlingId: 'e9d5abc9-16b1-427a-b414-e12c2cdb66b9',
handlingData: {
equipmentNumber: 'CAIU6684535',
bookingNumber: '89927117',
shippingCompany: {
name: 'Hapag Lloyd',
scacCode: 'HLCU',
smdgCode: 'HLC',
},
sizeType: {
code: '22G1',
name: "20'x8'x8'6\" General Purpose Container",
},
type: 'loading',
full: true,
shippersOwned: false,
modality: 'road',
},
handlingStatus: {
sealNumber: 'N',
dangerousGoods: [],
sizeType: {
code: '22G1',
name: "20'x8'x8'6\" General Purpose Container",
},
shippersOwned: false,
type: 'loading',
documentsPresent: false,
notifications: [],
documentNumbers: [],
damages: [],
},
cargoDeclarantShortName: 'ANCOMD',
cancelled: false,
extra: false,
preNotification: true,
completed: false,
handlingDeclaration: {
declarationUsingUpdateBypass: false,
cancelForUpdateByPassAcceptedByTerminal: false,
status: 'ACCEPTED',
acceptStatuses: [
{
type: 'COMMERCIAL_RELEASE',
ok: false,
code: 'COR',
remark: 'Release not found.',
},
{
type: 'AVAILABLE',
ok: false,
code: 'COA',
remark: 'Container not (yet) present at the terminal.',
},
{
type: 'BLOCKED',
ok: false,
code: 'BLT',
remark: 'Release not (yet) matched.',
},
{
type: 'CUSTOMS_DOCUMENT',
ok: false,
code: 'CDM',
remark: 'Release not (yet) matched.',
},
{
type: 'BOOKING_APPROVED',
ok: true,
},
{
type: 'SIZETYPE_APPROVED',
ok: true,
},
],
rejectReasons: [],
},
},
],
remainOnTruckContainers: [],
visitCompleted: false,
modality: 'road',
neverAcknowledged: true,
arrived: false,
visitDeclaration: {
acknowledgedByTerminal: false,
status: 'DECLARED',
rejectReasons: [],
},
},
],
cancelled: false,
cargoDeclarants: [
{
fullName: 'Ancotrans BV',
shortName: 'ANCOMD',
emailAddress: 'dla@ancotrans.nl',
address: 'Plaza 24 b',
city: 'MOERDIJK',
countryUnCode: 'NL',
countryName: 'Netherlands',
zipCode: '4782 SK',
phoneNumber: '0858902890',
contact: 'Dave Lanser',
customsEORINumber: 'NL858641197',
ean: '8713755907006',
chamberOfCommerceNumber: '71262830',
},
],
type: 'roadVoyage',
modality: 'road',
},
after: {
voyageId: 'b0571ec1-ff7c-4b67-b00d-0121bd8dc372',
declarant: {
fullName: 'Ancotrans BV',
shortName: 'ANCOMD',
emailAddress: 'dla@ancotrans.nl',
address: 'Plaza 24 b',
city: 'MOERDIJK',
countryUnCode: 'NL',
countryName: 'Netherlands',
zipCode: '4782 SK',
phoneNumber: '0858902890',
contact: 'Dave Lanser',
customsEORINumber: 'NL858641197',
ean: '8713755907006',
chamberOfCommerceNumber: '71262830',
},
voyageData: {
tripNumber: 'T23B01SF',
modality: 'road',
},
visits: [
{
visitId: '3168287',
visitData: {
eta: '2023-03-20T14:15:22Z',
modality: 'road',
},
requestedVisitData: {
eta: '2023-03-20T14:15:22Z',
modality: 'road',
},
terminal: {
shortName: 'ECTDELTA',
ean: '8713755000059',
bicsCode: '00DDE',
quayName: 'DDE',
smdgCode: 'DCD',
location: {
name: 'Rotterdam',
locationUnCode: 'NLRTM',
},
displayNameOverrides: {
road: 'ECTDELTA',
},
allowedModalities: ['road', 'rail', 'barge'],
tarRequired: false,
roadLicenseIdRequired: false,
roadStatusRequestAllowed: true,
bargeStatusRequestForbidden: false,
loadDischargeListSettings: {
autoRejectEnabled: true,
handlingUpdateBypassAllowed: true,
},
quaySelectByDeclarantForbidden: false,
updateAllowed: true,
handlingUpdateForbidden: ['road', 'rail', 'cer'],
handlingUpdateBypassAllowed: ['rail'],
maxSealNumberLength: 15,
acceptAfterRejectForbidden: true,
terminalSettings: [
{
loading: false,
full: true,
modality: 'road',
sealNumberAllowed: false,
reeferAllowed: true,
grossWeightAllowed: true,
outOfGaugeAllowed: true,
dangerousGoodsAllowed: true,
},
{
loading: false,
full: false,
modality: 'road',
sealNumberAllowed: false,
reeferAllowed: false,
grossWeightAllowed: false,
outOfGaugeAllowed: false,
dangerousGoodsAllowed: true,
},
{
loading: false,
full: true,
modality: 'rail',
sealNumberAllowed: false,
reeferAllowed: true,
grossWeightAllowed: true,
outOfGaugeAllowed: true,
dangerousGoodsAllowed: true,
},
{
loading: false,
full: false,
modality: 'rail',
sealNumberAllowed: false,
reeferAllowed: false,
grossWeightAllowed: false,
outOfGaugeAllowed: false,
dangerousGoodsAllowed: true,
},
{
loading: false,
full: true,
modality: 'barge',
sealNumberAllowed: false,
reeferAllowed: true,
grossWeightAllowed: true,
outOfGaugeAllowed: true,
dangerousGoodsAllowed: true,
cargoCutOffInMinutes: 480,
},
{
loading: false,
full: false,
modality: 'barge',
sealNumberAllowed: false,
reeferAllowed: false,
grossWeightAllowed: false,
outOfGaugeAllowed: false,
dangerousGoodsAllowed: true,
cargoCutOffInMinutes: 480,
},
{
loading: true,
full: false,
modality: 'barge',
sealNumberAllowed: false,
reeferAllowed: false,
grossWeightAllowed: false,
outOfGaugeAllowed: false,
dangerousGoodsAllowed: false,
cargoCutOffInMinutes: 480,
},
{
loading: true,
full: true,
modality: 'barge',
sealNumberAllowed: false,
reeferAllowed: false,
grossWeightAllowed: false,
outOfGaugeAllowed: false,
dangerousGoodsAllowed: false,
cargoCutOffInMinutes: 480,
},
],
nextlogicParticipant: true,
prenotifyOnlyAfterVisitAccepted: false,
prenotificationRestrictedToDeclarants: {},
},
visitCancelled: false,
handlings: [
{
handlingId: 'e9d5abc9-16b1-427a-b414-e12c2cdb66b9',
handlingData: {
equipmentNumber: 'CAIU6684535',
bookingNumber: '89927117',
shippingCompany: {
name: 'Hapag Lloyd',
scacCode: 'HLCU',
smdgCode: 'HLC',
},
sizeType: {
code: '22G1',
name: "20'x8'x8'6\" General Purpose Container",
},
type: 'loading',
full: true,
shippersOwned: false,
modality: 'road',
},
handlingStatus: {
sealNumber: 'N',
dangerousGoods: [],
sizeType: {
code: '22G1',
name: "20'x8'x8'6\" General Purpose Container",
},
shippersOwned: false,
type: 'loading',
documentsPresent: false,
notifications: [],
documentNumbers: [],
damages: [],
},
cargoDeclarantShortName: 'ANCOMD',
cancelled: false,
extra: false,
preNotification: true,
completed: false,
handlingDeclaration: {
declarationUsingUpdateBypass: false,
cancelForUpdateByPassAcceptedByTerminal: false,
status: 'REJECTED',
acceptStatuses: [
{
type: 'COMMERCIAL_RELEASE',
ok: false,
code: 'COR',
remark: 'Release not found.',
},
{
type: 'AVAILABLE',
ok: false,
code: 'COA',
remark: 'Container not (yet) present at the terminal.',
},
{
type: 'BLOCKED',
ok: false,
code: 'BLT',
remark: 'Release not (yet) matched.',
},
{
type: 'CUSTOMS_DOCUMENT',
ok: false,
code: 'CDM',
remark: 'Release not (yet) matched.',
},
{
type: 'BOOKING_APPROVED',
ok: true,
},
{
type: 'SIZETYPE_APPROVED',
ok: true,
},
],
rejectReasons: [
{
code: 'DUP',
terminalDescription: 'DUPLICATEORDER',
parsedReason:
'Terminal has received duplicate pre-notifications for this container',
},
],
},
},
],
remainOnTruckContainers: [],
visitCompleted: false,
modality: 'road',
neverAcknowledged: true,
arrived: false,
visitDeclaration: {
acknowledgedByTerminal: false,
status: 'DECLARED',
rejectReasons: [],
},
},
],
cancelled: false,
cargoDeclarants: [
{
fullName: 'Ancotrans BV',
shortName: 'ANCOMD',
emailAddress: 'dla@ancotrans.nl',
address: 'Plaza 24 b',
city: 'MOERDIJK',
countryUnCode: 'NL',
countryName: 'Netherlands',
zipCode: '4782 SK',
phoneNumber: '0858902890',
contact: 'Dave Lanser',
customsEORINumber: 'NL858641197',
ean: '8713755907006',
chamberOfCommerceNumber: '71262830',
},
],
type: 'roadVoyage',
modality: 'road',
},
type: 'VOYAGE',
triggeredByOrganisation: false,
triggeredByUser: false,
triggeredByRecipient: false,
},
{
index: 110015719501135872,
timestamp: '2023-03-13T11:24:17.378Z',
before: {
voyageId: 'e98466f8-2232-4f0e-a1fb-e3859206254d',
declarant: {
fullName: 'Ancotrans BV',
shortName: 'ANCOMD',
emailAddress: 'dla@ancotrans.nl',
address: 'Plaza 24 b',
city: 'MOERDIJK',
countryUnCode: 'NL',
countryName: 'Netherlands',
zipCode: '4782 SK',
phoneNumber: '0858902890',
contact: 'Dave Lanser',
customsEORINumber: 'NL858641197',
ean: '8713755907006',
chamberOfCommerceNumber: '71262830',
},
voyageData: {
tripNumber: 'T23B01SG',
modality: 'road',
},
visits: [
{
visitId: '3168288',
visitData: {
eta: '2023-03-20T14:15:22Z',
modality: 'road',
},
requestedVisitData: {
eta: '2023-03-20T14:15:22Z',
modality: 'road',
},
terminal: {
shortName: 'ECTDELTA',
ean: '8713755000059',
bicsCode: '00DDE',
quayName: 'DDE',
smdgCode: 'DCD',
location: {
name: 'Rotterdam',
locationUnCode: 'NLRTM',
},
displayNameOverrides: {
road: 'ECTDELTA',
},
allowedModalities: ['road', 'rail', 'barge'],
tarRequired: false,
roadLicenseIdRequired: false,
roadStatusRequestAllowed: true,
bargeStatusRequestForbidden: false,
loadDischargeListSettings: {
autoRejectEnabled: true,
handlingUpdateBypassAllowed: true,
},
quaySelectByDeclarantForbidden: false,
updateAllowed: true,
handlingUpdateForbidden: ['road', 'rail', 'cer'],
handlingUpdateBypassAllowed: ['rail'],
maxSealNumberLength: 15,
acceptAfterRejectForbidden: true,
terminalSettings: [
{
loading: false,
full: true,
modality: 'road',
sealNumberAllowed: false,
reeferAllowed: true,
grossWeightAllowed: true,
outOfGaugeAllowed: true,
dangerousGoodsAllowed: true,
},
{
loading: false,
full: false,
modality: 'road',
sealNumberAllowed: false,
reeferAllowed: false,
grossWeightAllowed: false,
outOfGaugeAllowed: false,
dangerousGoodsAllowed: true,
},
{
loading: false,
full: true,
modality: 'rail',
sealNumberAllowed: false,
reeferAllowed: true,
grossWeightAllowed: true,
outOfGaugeAllowed: true,
dangerousGoodsAllowed: true,
},
{
loading: false,
full: false,
modality: 'rail',
sealNumberAllowed: false,
reeferAllowed: false,
grossWeightAllowed: false,
outOfGaugeAllowed: false,
dangerousGoodsAllowed: true,
},
{
loading: false,
full: true,
modality: 'barge',
sealNumberAllowed: false,
reeferAllowed: true,
grossWeightAllowed: true,
outOfGaugeAllowed: true,
dangerousGoodsAllowed: true,
cargoCutOffInMinutes: 480,
},
{
loading: false,
full: false,
modality: 'barge',
sealNumberAllowed: false,
reeferAllowed: false,
grossWeightAllowed: false,
outOfGaugeAllowed: false,
dangerousGoodsAllowed: true,
cargoCutOffInMinutes: 480,
},
{
loading: true,
full: false,
modality: 'barge',
sealNumberAllowed: false,
reeferAllowed: false,
grossWeightAllowed: false,
outOfGaugeAllowed: false,
dangerousGoodsAllowed: false,
cargoCutOffInMinutes: 480,
},
{
loading: true,
full: true,
modality: 'barge',
sealNumberAllowed: false,
reeferAllowed: false,
grossWeightAllowed: false,
outOfGaugeAllowed: false,
dangerousGoodsAllowed: false,
cargoCutOffInMinutes: 480,
},
],
nextlogicParticipant: true,
prenotifyOnlyAfterVisitAccepted: false,
prenotificationRestrictedToDeclarants: {},
},
visitCancelled: false,
handlings: [],
remainOnTruckContainers: [],
visitCompleted: false,
modality: 'road',
neverAcknowledged: true,
arrived: false,
visitDeclaration: {
acknowledgedByTerminal: false,
status: 'DECLARED',
rejectReasons: [],
},
},
],
cancelled: false,
cargoDeclarants: [
{
fullName: 'Ancotrans BV',
shortName: 'ANCOMD',
emailAddress: 'dla@ancotrans.nl',
address: 'Plaza 24 b',
city: 'MOERDIJK',
countryUnCode: 'NL',
countryName: 'Netherlands',
zipCode: '4782 SK',
phoneNumber: '0858902890',
contact: 'Dave Lanser',
customsEORINumber: 'NL858641197',
ean: '8713755907006',
chamberOfCommerceNumber: '71262830',
},
],
type: 'roadVoyage',
modality: 'road',
},
after: {
voyageId: 'e98466f8-2232-4f0e-a1fb-e3859206254d',
declarant: {
fullName: 'Ancotrans BV',
shortName: 'ANCOMD',
emailAddress: 'dla@ancotrans.nl',
address: 'Plaza 24 b',
city: 'MOERDIJK',
countryUnCode: 'NL',
countryName: 'Netherlands',
zipCode: '4782 SK',
phoneNumber: '0858902890',
contact: 'Dave Lanser',
customsEORINumber: 'NL858641197',
ean: '8713755907006',
chamberOfCommerceNumber: '71262830',
},
voyageData: {
tripNumber: 'T23B01SG',
modality: 'road',
},
visits: [
{
visitId: '3168288',
visitData: {
eta: '2023-03-20T14:15:22Z',
modality: 'road',
},
requestedVisitData: {
eta: '2023-03-20T14:15:22Z',
modality: 'road',
},
terminal: {
shortName: 'ECTDELTA',
ean: '8713755000059',
bicsCode: '00DDE',
quayName: 'DDE',
smdgCode: 'DCD',
location: {
name: 'Rotterdam',
locationUnCode: 'NLRTM',
},
displayNameOverrides: {
road: 'ECTDELTA',
},
allowedModalities: ['road', 'rail', 'barge'],
tarRequired: false,
roadLicenseIdRequired: false,
roadStatusRequestAllowed: true,
bargeStatusRequestForbidden: false,
loadDischargeListSettings: {
autoRejectEnabled: true,
handlingUpdateBypassAllowed: true,
},
quaySelectByDeclarantForbidden: false,
updateAllowed: true,
handlingUpdateForbidden: ['road', 'rail', 'cer'],
handlingUpdateBypassAllowed: ['rail'],
maxSealNumberLength: 15,
acceptAfterRejectForbidden: true,
terminalSettings: [
{
loading: false,
full: true,
modality: 'road',
sealNumberAllowed: false,
reeferAllowed: true,
grossWeightAllowed: true,
outOfGaugeAllowed: true,
dangerousGoodsAllowed: true,
},
{
loading: false,
full: false,
modality: 'road',
sealNumberAllowed: false,
reeferAllowed: false,
grossWeightAllowed: false,
outOfGaugeAllowed: false,
dangerousGoodsAllowed: true,
},
{
loading: false,
full: true,
modality: 'rail',
sealNumberAllowed: false,
reeferAllowed: true,
grossWeightAllowed: true,
outOfGaugeAllowed: true,
dangerousGoodsAllowed: true,
},
{
loading: false,
full: false,
modality: 'rail',
sealNumberAllowed: false,
reeferAllowed: false,
grossWeightAllowed: false,
outOfGaugeAllowed: false,
dangerousGoodsAllowed: true,
},
{
loading: false,
full: true,
modality: 'barge',
sealNumberAllowed: false,
reeferAllowed: true,
grossWeightAllowed: true,
outOfGaugeAllowed: true,
dangerousGoodsAllowed: true,
cargoCutOffInMinutes: 480,
},
{
loading: false,
full: false,
modality: 'barge',
sealNumberAllowed: false,
reeferAllowed: false,
grossWeightAllowed: false,
outOfGaugeAllowed: false,
dangerousGoodsAllowed: true,
cargoCutOffInMinutes: 480,
},
{
loading: true,
full: false,
modality: 'barge',
sealNumberAllowed: false,
reeferAllowed: false,
grossWeightAllowed: false,
outOfGaugeAllowed: false,
dangerousGoodsAllowed: false,
cargoCutOffInMinutes: 480,
},
{
loading: true,
full: true,
modality: 'barge',
sealNumberAllowed: false,
reeferAllowed: false,
grossWeightAllowed: false,
outOfGaugeAllowed: false,
dangerousGoodsAllowed: false,
cargoCutOffInMinutes: 480,
},
],
nextlogicParticipant: true,
prenotifyOnlyAfterVisitAccepted: false,
prenotificationRestrictedToDeclarants: {},
},
visitCancelled: false,
handlings: [
{
handlingId: '4a846f22-57ae-43f3-9e39-e48f386f1f20',
handlingData: {
equipmentNumber: 'FCIU6513757',
bookingNumber: '89927117',
shippingCompany: {
name: 'Hapag Lloyd',
scacCode: 'HLCU',
smdgCode: 'HLC',
},
sizeType: {
code: '22G1',
name: "20'x8'x8'6\" General Purpose Container",
},
type: 'loading',
full: true,
shippersOwned: false,
modality: 'road',
},
handlingStatus: {
dangerousGoods: [],
shippersOwned: false,
type: 'loading',
documentsPresent: false,
notifications: [],
documentNumbers: [],
damages: [],
},
cargoDeclarantShortName: 'ANCOMD',
cancelled: false,
extra: false,
preNotification: true,
completed: false,
handlingDeclaration: {
declarationUsingUpdateBypass: false,
cancelForUpdateByPassAcceptedByTerminal: false,
status: 'ACCEPTED',
acceptStatuses: [
{
type: 'COMMERCIAL_RELEASE',
ok: false,
code: 'COR',
remark: 'Release not found.',
},
{
ok: null,
code: 'COU',
remark: 'Container status not (yet) available.',
},
{
type: 'BOOKING_APPROVED',
ok: null,
},
{
type: 'CUSTOMS_DOCUMENT',
ok: null,
},
{
type: 'BLOCKED',
ok: null,
},
{
type: 'AVAILABLE',
ok: null,
},
{
type: 'SIZETYPE_APPROVED',
ok: null,
},
],
rejectReasons: [],
},
},
],
remainOnTruckContainers: [],
visitCompleted: false,
modality: 'road',
neverAcknowledged: true,
arrived: false,
visitDeclaration: {
acknowledgedByTerminal: false,
status: 'DECLARED',
rejectReasons: [],
},
},
],
cancelled: false,
cargoDeclarants: [
{
fullName: 'Ancotrans BV',
shortName: 'ANCOMD',
emailAddress: 'dla@ancotrans.nl',
address: 'Plaza 24 b',
city: 'MOERDIJK',
countryUnCode: 'NL',
countryName: 'Netherlands',
zipCode: '4782 SK',
phoneNumber: '0858902890',
contact: 'Dave Lanser',
customsEORINumber: 'NL858641197',
ean: '8713755907006',
chamberOfCommerceNumber: '71262830',
},
],
type: 'roadVoyage',
modality: 'road',
},
type: 'VOYAGE',
triggeredByOrganisation: false,
triggeredByUser: false,
triggeredByRecipient: false,
},
],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment