@esolve/ng-esolve-connect 0.47.2 → 0.48.0

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.
Files changed (30) hide show
  1. package/esm2022/lib/locations/classes/esolve-location.model.mjs +4 -1
  2. package/esm2022/lib/locations/esolve-locations.service.mjs +1 -1
  3. package/esm2022/lib/locations/interfaces/esolve-location-record.interface.mjs +1 -1
  4. package/esm2022/lib/shipping/esolve-shipping.service.mjs +4 -1
  5. package/esm2022/lib/shipping/interfaces/esolve-shipping-method-options.interface.mjs +1 -1
  6. package/esm2022/media/lib/classes/esolve-media-layout-section.model.mjs +1 -1
  7. package/esm2022/media/lib/interfaces/esolve-layout-config.interface.mjs +1 -1
  8. package/esm2022/media/lib/interfaces/esolve-media-layout-section-record.interface.mjs +1 -1
  9. package/esm2022/media/lib/interfaces/esolve-media-section-data-generic.interface.mjs +2 -0
  10. package/esm2022/media/lib/interfaces/esolve-media-stock-section-data.interface.mjs +2 -0
  11. package/esm2022/media/lib/interfaces/index.mjs +3 -1
  12. package/esm2022/media/lib/services/esolve-media-layout.service.mjs +7 -2
  13. package/esm2022/media/lib/types/esolve-media-layout-section-type.type.mjs +1 -1
  14. package/fesm2022/esolve-ng-esolve-connect-media.mjs +6 -1
  15. package/fesm2022/esolve-ng-esolve-connect-media.mjs.map +1 -1
  16. package/fesm2022/esolve-ng-esolve-connect.mjs +6 -0
  17. package/fesm2022/esolve-ng-esolve-connect.mjs.map +1 -1
  18. package/lib/locations/classes/esolve-location.model.d.ts +8 -3
  19. package/lib/locations/esolve-locations.service.d.ts +6 -5
  20. package/lib/locations/interfaces/esolve-location-record.interface.d.ts +3 -1
  21. package/lib/shipping/interfaces/esolve-shipping-method-options.interface.d.ts +2 -0
  22. package/media/lib/classes/esolve-media-layout-section.model.d.ts +2 -2
  23. package/media/lib/interfaces/esolve-layout-config.interface.d.ts +4 -0
  24. package/media/lib/interfaces/esolve-media-layout-section-record.interface.d.ts +2 -1
  25. package/media/lib/interfaces/esolve-media-section-data-generic.interface.d.ts +6 -0
  26. package/media/lib/interfaces/esolve-media-stock-section-data.interface.d.ts +3 -0
  27. package/media/lib/interfaces/index.d.ts +2 -0
  28. package/media/lib/services/esolve-media-layout.service.d.ts +2 -0
  29. package/media/lib/types/esolve-media-layout-section-type.type.d.ts +1 -1
  30. package/package.json +1 -1
@@ -2643,6 +2643,9 @@ class EsolveLocation {
2643
2643
  const public_holiday = new EsolveLocationTradingDay(record.public_holiday_open_time, record.public_holiday_close_time);
2644
2644
  this.trading_times = new EsolveLocationTradingTimes(monday, tuesday, wednesday, thursday, friday, saturday, sunday, public_holiday, record.trading_hours_additional_info);
2645
2645
  this.geo = new EsolveLocationGEO(record.distance, record.range, record.target_description);
2646
+ if (record.custom_fields) {
2647
+ this.custom_fields = record.custom_fields;
2648
+ }
2646
2649
  }
2647
2650
  }
2648
2651
 
@@ -6235,6 +6238,9 @@ class EsolveShippingService {
6235
6238
  if (typeof options.location_id !== 'undefined') {
6236
6239
  params = params.set('location_id', options.location_id);
6237
6240
  }
6241
+ if (typeof options.type !== 'undefined') {
6242
+ params = params.set('type', options.type);
6243
+ }
6238
6244
  }
6239
6245
  return this.http
6240
6246
  .get(`${this.config.api_url}/get-shipping-methods.php`, { params })