@monada-ai/monada-cargofive-integration 0.0.8 → 0.0.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monada-ai/monada-cargofive-integration",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "All that is needed to integrate CargoFive into monada (server & client code)",
5
5
  "main": "./dist/",
6
6
  "publishConfig": {
@@ -172,10 +172,12 @@ function convertCargofiveRateToMonadaRate({ rate, sourcePort, destinationPort, p
172
172
  source: productOffer.origin_port_unlocode === sourcePort.id ? sourcePort : {
173
173
  text: productOffer.origin_port_display_name,
174
174
  id: productOffer.origin_port_unlocode,
175
+ countryCode: productOffer.origin_port_unlocode.substring(0, 2),
175
176
  },
176
177
  destination: productOffer.destination_port_unlocode === destinationPort.id ? destinationPort : {
177
178
  text: productOffer.destination_port_display_name,
178
179
  id: productOffer.destination_port_unlocode,
180
+ countryCode: productOffer.destination_port_unlocode.substring(0, 2),
179
181
  },
180
182
  supplier: {
181
183
  organization: productOffer.main_carrier_name,