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

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