feeef 0.8.13 → 0.9.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.
- package/build/index.js +9 -0
- package/build/index.js.map +1 -1
- package/build/src/core/entities/order.d.ts +6 -0
- package/build/src/core/entities/shipping_price.d.ts +2 -2
- package/build/src/feeef/services/cart.d.ts +4 -4
- package/build/src/feeef/services/integrations.d.ts +2 -1
- package/package.json +1 -1
|
@@ -19,8 +19,14 @@ export declare enum DeliveryStatus {
|
|
|
19
19
|
returned = "returned"
|
|
20
20
|
}
|
|
21
21
|
export declare enum ShippingType {
|
|
22
|
+
/** Deliver to the customer's address (maps to shipping price `home`). */
|
|
22
23
|
home = "home",
|
|
24
|
+
/**
|
|
25
|
+
* Stopdesk / carrier relay office in the region (not merchant store).
|
|
26
|
+
* Maps to shipping price key `desk`.
|
|
27
|
+
*/
|
|
23
28
|
pickup = "pickup",
|
|
29
|
+
/** Customer collects at the merchant's store branch. Maps to shipping price key `pickup`. */
|
|
24
30
|
store = "store"
|
|
25
31
|
}
|
|
26
32
|
export interface OrderEntity {
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
export interface ShippingStateRates {
|
|
31
31
|
/** Price for home delivery (nullable if unavailable) */
|
|
32
32
|
home: number | null;
|
|
33
|
-
/**
|
|
33
|
+
/** Stopdesk / carrier relay office pickup in the region (nullable if unavailable) */
|
|
34
34
|
desk: number | null;
|
|
35
|
-
/**
|
|
35
|
+
/** Merchant store branch pickup — customer goes to the store (nullable if unavailable) */
|
|
36
36
|
pickup: number | null;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
@@ -15,10 +15,10 @@ export interface CartItem {
|
|
|
15
15
|
addons?: Record<string, number>;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
-
* Cart shipping types.
|
|
19
|
-
* - `
|
|
20
|
-
* - `
|
|
21
|
-
* - `store`:
|
|
18
|
+
* Cart shipping types (order `ShippingType`, distinct from {@link ShippingPriceType} keys).
|
|
19
|
+
* - `home`: deliver to the customer's address (price key `home`).
|
|
20
|
+
* - `pickup`: stopdesk / carrier relay office — customer collects there (price key `desk`).
|
|
21
|
+
* - `store`: merchant store branch pickup (price key `pickup`).
|
|
22
22
|
*/
|
|
23
23
|
/**
|
|
24
24
|
* Interface for a shipping address.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Legacy delivery fees per state (wilaya order): `[desk, home]` (stopdesk vs home).
|
|
4
|
+
* Some sources may expose a third slot for in-store pickup; see cart legacy handling.
|
|
4
5
|
*/
|
|
5
6
|
export type DeliveryFees = (number | null)[][];
|
|
6
7
|
/**
|