@esolve/ng-esolve-connect 0.70.0 → 0.72.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 (80) hide show
  1. package/esm2022/lib/account/esolve-account.service.mjs +4 -4
  2. package/esm2022/lib/assets/esolve-assets.service.mjs +3 -3
  3. package/esm2022/lib/auth/esolve-auth-interceptor.service.mjs +3 -3
  4. package/esm2022/lib/auth/esolve-auth.service.mjs +4 -4
  5. package/esm2022/lib/auth/esolve-otp.service.mjs +3 -3
  6. package/esm2022/lib/banners/esolve-banner.service.mjs +3 -3
  7. package/esm2022/lib/cart/classes/esolve-cart-totals.model.mjs +11 -2
  8. package/esm2022/lib/cart/classes/esolve-delivery-category-totals.model.mjs +27 -0
  9. package/esm2022/lib/cart/classes/index.mjs +2 -1
  10. package/esm2022/lib/cart/esolve-cart.service.mjs +5 -5
  11. package/esm2022/lib/cart/interfaces/esolve-cart-totals-record.interface.mjs +1 -1
  12. package/esm2022/lib/cart/interfaces/esovle-delivery-category-totals-record.interface.mjs +2 -0
  13. package/esm2022/lib/cart/interfaces/index.mjs +2 -1
  14. package/esm2022/lib/cart/types/esolve-delivery-category-totals-map-record.type.mjs +2 -0
  15. package/esm2022/lib/cart/types/esolve-delivery-category-totals-map.type.mjs +2 -0
  16. package/esm2022/lib/cart/types/index.mjs +3 -1
  17. package/esm2022/lib/category-tree/esolve-category-tree.service.mjs +3 -3
  18. package/esm2022/lib/core/esolve-config.service.mjs +4 -4
  19. package/esm2022/lib/coupons/esolve-coupons.service.mjs +4 -4
  20. package/esm2022/lib/deliveries/classes/esolve-delivery.model.mjs +8 -2
  21. package/esm2022/lib/deliveries/esolve-deliveries.service.mjs +3 -3
  22. package/esm2022/lib/deliveries/interfaces/esolve-delivery-record.interface.mjs +1 -1
  23. package/esm2022/lib/device/esolve-device.service.mjs +3 -3
  24. package/esm2022/lib/enquiry/esolve-enquiry.service.mjs +3 -3
  25. package/esm2022/lib/geocoder/esolve-geocoder.service.mjs +3 -3
  26. package/esm2022/lib/images/directives/cdn-src.directive.mjs +5 -5
  27. package/esm2022/lib/locations/esolve-locations.service.mjs +3 -3
  28. package/esm2022/lib/manufacturers/esolve-manufacturers.service.mjs +3 -3
  29. package/esm2022/lib/menu/esolve-menu.service.mjs +3 -3
  30. package/esm2022/lib/news/esolve-news.service.mjs +3 -3
  31. package/esm2022/lib/ng-esolve-connect.module.mjs +4 -4
  32. package/esm2022/lib/payment/esolve-payment.service.mjs +3 -3
  33. package/esm2022/lib/ranges/esolve-ranges.service.mjs +3 -3
  34. package/esm2022/lib/seo/esolve-seo.service.mjs +4 -4
  35. package/esm2022/lib/session/esolve-session-metadata.service.mjs +3 -3
  36. package/esm2022/lib/session/esolve-session.service.mjs +4 -4
  37. package/esm2022/lib/shared/cookie/esolve-cookie.service.mjs +3 -3
  38. package/esm2022/lib/shared/errors/esolve-error-handler.service.mjs +3 -3
  39. package/esm2022/lib/shared/response/esolve-response-handler.service.mjs +3 -3
  40. package/esm2022/lib/shipping/esolve-shipping.service.mjs +3 -3
  41. package/esm2022/lib/specials/esolve-specials.service.mjs +3 -3
  42. package/esm2022/lib/stock/esolve-stock.service.mjs +3 -3
  43. package/esm2022/lib/suppliers/esolve-suppliers.service.mjs +3 -3
  44. package/esm2022/lib/tags/esolve-tags.service.mjs +3 -3
  45. package/esm2022/lib/topics/esolve-topic.service.mjs +3 -3
  46. package/esm2022/lib/transactions/classes/esolve-transaction-address.model.mjs +3 -2
  47. package/esm2022/lib/transactions/classes/esolve-transaction-pick.model.mjs +3 -2
  48. package/esm2022/lib/transactions/classes/esolve-transaction.model.mjs +3 -3
  49. package/esm2022/lib/transactions/esolve-transactions.service.mjs +4 -4
  50. package/esm2022/lib/transactions/interfaces/esolve-transaction-record.interface.mjs +1 -1
  51. package/esm2022/lib/vouchers/esolve-vouchers.service.mjs +4 -4
  52. package/esm2022/lib/wallet/esolve-wallet.service.mjs +4 -4
  53. package/esm2022/lib/wishlist/esolve-wishlist.service.mjs +3 -3
  54. package/esm2022/media/lib/components/media-layout/esolve-media-layout.component.mjs +3 -3
  55. package/esm2022/media/lib/components/media-section/esolve-media-section.component.mjs +3 -3
  56. package/esm2022/media/lib/ng-esolve-connect-media.module.mjs +4 -4
  57. package/esm2022/media/lib/services/esolve-media-layout.service.mjs +4 -4
  58. package/esm2022/media/lib/services/esolve-media.service.mjs +3 -3
  59. package/esm2022/notifications/lib/services/esolve-notifications.service.mjs +3 -3
  60. package/esm2022/survey/lib/services/esolve-survey.service.mjs +3 -3
  61. package/fesm2022/esolve-ng-esolve-connect-media.mjs +17 -17
  62. package/fesm2022/esolve-ng-esolve-connect-notifications.mjs +3 -3
  63. package/fesm2022/esolve-ng-esolve-connect-survey.mjs +3 -3
  64. package/fesm2022/esolve-ng-esolve-connect.mjs +178 -135
  65. package/fesm2022/esolve-ng-esolve-connect.mjs.map +1 -1
  66. package/lib/cart/classes/esolve-cart-totals.model.d.ts +6 -1
  67. package/lib/cart/classes/esolve-delivery-category-totals.model.d.ts +20 -0
  68. package/lib/cart/classes/index.d.ts +1 -0
  69. package/lib/cart/interfaces/esolve-cart-totals-record.interface.d.ts +2 -0
  70. package/lib/cart/interfaces/esovle-delivery-category-totals-record.interface.d.ts +18 -0
  71. package/lib/cart/interfaces/index.d.ts +1 -0
  72. package/lib/cart/types/esolve-delivery-category-totals-map-record.type.d.ts +2 -0
  73. package/lib/cart/types/esolve-delivery-category-totals-map.type.d.ts +2 -0
  74. package/lib/cart/types/index.d.ts +2 -0
  75. package/lib/deliveries/classes/esolve-delivery.model.d.ts +7 -1
  76. package/lib/deliveries/interfaces/esolve-delivery-record.interface.d.ts +7 -1
  77. package/lib/transactions/classes/esolve-transaction-address.model.d.ts +2 -1
  78. package/lib/transactions/classes/esolve-transaction-pick.model.d.ts +2 -1
  79. package/lib/transactions/interfaces/esolve-transaction-record.interface.d.ts +2 -0
  80. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
+ import { EsolveDeliveryCategoryTotalsMap, EsolveDeliveryCategoryTotalsMapRecord } from '../types';
1
2
  /**
2
3
  * Totals in cart
3
4
  */
@@ -30,6 +31,10 @@ export declare class EsolveCartTotals {
30
31
  * Total of allowance
31
32
  */
32
33
  allowance: number;
34
+ /**
35
+ * Map of the totals of each delivery category
36
+ */
37
+ delivery_category_totals?: EsolveDeliveryCategoryTotalsMap;
33
38
  /**
34
39
  * Grand total of cart which includes discount and VAT
35
40
  * (NOTE: shipping and insurance is not included)
@@ -63,5 +68,5 @@ export declare class EsolveCartTotals {
63
68
  /**
64
69
  * Total of allowance
65
70
  */
66
- allowance?: number);
71
+ allowance?: number, delivery_category_totals?: EsolveDeliveryCategoryTotalsMapRecord);
67
72
  }
@@ -0,0 +1,20 @@
1
+ import { EsolveDeliveryCategoryTotalsRecord } from '../interfaces';
2
+ export declare class EsolveDeliveryCategoryTotals {
3
+ /**
4
+ * TOTAL without DISCOUNTS and with TAX
5
+ */
6
+ subtotal: number;
7
+ /**
8
+ * TOTAL without DISCOUNTS and without TAX
9
+ */
10
+ subtotal_excl: number;
11
+ /**
12
+ * TOTAL with DISCOUNTS and with TAX
13
+ */
14
+ total: number;
15
+ /**
16
+ * TOTAL with DISCOUNTS and without TAX
17
+ */
18
+ total_excl: number;
19
+ constructor(record?: EsolveDeliveryCategoryTotalsRecord);
20
+ }
@@ -5,3 +5,4 @@ export * from './esolve-cart-stock-item.model';
5
5
  export * from './esolve-cart-totals.model';
6
6
  export * from './esolve-transaction-analytics-data.model';
7
7
  export * from './esolve-cart-alternative.model';
8
+ export * from './esolve-delivery-category-totals.model';
@@ -1,3 +1,4 @@
1
+ import { EsolveDeliveryCategoryTotalsMapRecord } from '../types';
1
2
  export interface EsolveCartTotalsRecord {
2
3
  records: number;
3
4
  items: string;
@@ -7,4 +8,5 @@ export interface EsolveCartTotalsRecord {
7
8
  vouchers: string;
8
9
  wallet: string;
9
10
  allowance: string;
11
+ delivery_category_totals?: EsolveDeliveryCategoryTotalsMapRecord;
10
12
  }
@@ -0,0 +1,18 @@
1
+ export interface EsolveDeliveryCategoryTotalsRecord {
2
+ /**
3
+ * TOTAL without DISCOUNTS and with TAX
4
+ */
5
+ subtotal: string;
6
+ /**
7
+ * TOTAL without DISCOUNTS and without TAX
8
+ */
9
+ subtotal_excl: string;
10
+ /**
11
+ * TOTAL with DISCOUNTS and with TAX
12
+ */
13
+ total: string;
14
+ /**
15
+ * TOTAL with DISCOUNTS and without TAX
16
+ */
17
+ total_excl: string;
18
+ }
@@ -9,3 +9,4 @@ export * from './esolve-transaction-analytics-data-record.interface';
9
9
  export * from './esolve-time-slot-checkout.interface';
10
10
  export * from './esolve-checkout-body.interface';
11
11
  export * from './esolve-cart-alternative-record.interface';
12
+ export * from './esovle-delivery-category-totals-record.interface';
@@ -0,0 +1,2 @@
1
+ import { EsolveDeliveryCategoryTotalsRecord } from '../interfaces';
2
+ export type EsolveDeliveryCategoryTotalsMapRecord = Record<string, EsolveDeliveryCategoryTotalsRecord>;
@@ -0,0 +1,2 @@
1
+ import { EsolveDeliveryCategoryTotals } from '../classes';
2
+ export type EsolveDeliveryCategoryTotalsMap = Map<string, EsolveDeliveryCategoryTotals>;
@@ -2,3 +2,5 @@ export * from './esolve-cart.type';
2
2
  export * from './esolve-cart-set-action.type';
3
3
  export * from './esolve-cart-empty-response.type';
4
4
  export * from './esolve-cart-alternatives-map.type';
5
+ export * from './esolve-delivery-category-totals-map-record.type';
6
+ export * from './esolve-delivery-category-totals-map.type';
@@ -23,9 +23,15 @@ export declare class EsolveDelivery {
23
23
  quote: any;
24
24
  delivery: any;
25
25
  proof: any;
26
- tracking: any;
26
+ tracking_href: string;
27
27
  last_tracked: Date;
28
28
  last_latitude: number;
29
29
  last_longitude: number;
30
+ driver_name: string;
31
+ driver_rating: string;
32
+ vehicle_make: string;
33
+ vehicle_model: string;
34
+ vehicle_color: string;
35
+ vehicle_type: string;
30
36
  constructor(record: EsolveDeliveryRecord);
31
37
  }
@@ -19,8 +19,14 @@ export interface EsolveDeliveryRecord {
19
19
  delivery_resumed: number;
20
20
  courier_cancellation_reason: string;
21
21
  proof: any;
22
- tracking: any;
22
+ tracking_href: string;
23
23
  last_tracked: number;
24
24
  last_latitude: number;
25
25
  last_longitude: number;
26
+ driver_name: string;
27
+ driver_rating: string;
28
+ vehicle_make: string;
29
+ vehicle_model: string;
30
+ vehicle_color: string;
31
+ vehicle_type: string;
26
32
  }
@@ -11,5 +11,6 @@ export declare class EsolveTransactionAddress {
11
11
  country: string;
12
12
  postal_code: string;
13
13
  pobox: string;
14
- constructor(recipient: string, address_type: EsolveAddressType, address_description: string, street_number: string, street: string, suburb: string, city: string, province: string, country: string, postal_code: string, pobox: string);
14
+ alias: string;
15
+ constructor(recipient: string, address_type: EsolveAddressType, address_description: string, street_number: string, street: string, suburb: string, city: string, province: string, country: string, postal_code: string, pobox: string, alias: string);
15
16
  }
@@ -1,8 +1,9 @@
1
1
  import { EsolvePickStatusType } from '../types';
2
2
  export declare class EsolveTransactionPick {
3
3
  pick_id: number;
4
+ balanced: boolean;
4
5
  status: EsolvePickStatusType;
5
6
  start_date?: Date;
6
7
  end_date?: Date;
7
- constructor(pick_id: number, status: EsolvePickStatusType);
8
+ constructor(pick_id: number, balanced: boolean, status: EsolvePickStatusType);
8
9
  }
@@ -39,6 +39,7 @@ export interface EsolveTransactionRecord {
39
39
  payment_description: string;
40
40
  shipping_method: string;
41
41
  shipping_method_details: EsolveTransactionShippingMethodRecord | null;
42
+ address_alias: string;
42
43
  recipient: string;
43
44
  address_type: EsolveAddressType;
44
45
  address_description: string;
@@ -57,6 +58,7 @@ export interface EsolveTransactionRecord {
57
58
  pick_status?: EsolvePickStatusType | null;
58
59
  pick_start?: number | null;
59
60
  pick_end?: number | null;
61
+ pick_balanced?: boolean | null;
60
62
  deliveries_id?: number;
61
63
  delivery_started?: number | null;
62
64
  delivery_completed?: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esolve/ng-esolve-connect",
3
- "version": "0.70.0",
3
+ "version": "0.72.0",
4
4
  "homepage": "https://www.esolve.co.za/",
5
5
  "description": "An Angular library that speaks to an eSolve instance's API",
6
6
  "peerDependencies": {