feeef 0.12.5 → 0.12.6
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.
|
@@ -66,6 +66,19 @@ export interface IntegrationsData {
|
|
|
66
66
|
googleTagsData?: GoogleTagData | null;
|
|
67
67
|
googleSheetsData?: GoogleSheetsData | null;
|
|
68
68
|
paymentMethodData?: PaymentMethodData | null;
|
|
69
|
+
/** Merchant-only Ecotrack warehouse stock mapping — never public. */
|
|
70
|
+
ecotrackData?: EcotrackData | null;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Per-product Ecotrack stock mapping.
|
|
74
|
+
* When `stock: 1`, Ecotrack `produit` must be the warehouse product reference.
|
|
75
|
+
*/
|
|
76
|
+
export interface EcotrackData {
|
|
77
|
+
enabled?: boolean | null;
|
|
78
|
+
/** Default Ecotrack stock product reference. */
|
|
79
|
+
produit?: string | null;
|
|
80
|
+
/** Feeef inventory SKU → Ecotrack stock `produit` reference. */
|
|
81
|
+
skuProduitMap?: Record<string, string> | null;
|
|
69
82
|
}
|
|
70
83
|
export declare enum MetaPixelEvent {
|
|
71
84
|
none = "none",
|
|
@@ -160,6 +173,8 @@ export interface ProductAddon {
|
|
|
160
173
|
photoUrl?: string;
|
|
161
174
|
title: string;
|
|
162
175
|
subtitle?: string;
|
|
176
|
+
/** Inventory bucket SKU (scoped under product root when inventory is enabled). */
|
|
177
|
+
sku?: string | null;
|
|
163
178
|
stock?: number;
|
|
164
179
|
price?: number;
|
|
165
180
|
min?: number;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { ProductEntity, ProductOffer } from './product.js';
|
|
2
2
|
/** Minimal product shape needed to resolve default / forced offer policy. */
|
|
3
|
-
export type ProductOfferPolicySource = Pick<ProductEntity, 'offers' | 'forceOffer' | 'defaultOfferCode'
|
|
3
|
+
export type ProductOfferPolicySource = Pick<ProductEntity, 'offers' | 'forceOffer' | 'defaultOfferCode'> & {
|
|
4
|
+
/** Defensive: some payloads / caches may still emit snake_case. */
|
|
5
|
+
force_offer?: boolean | null;
|
|
6
|
+
default_offer_code?: string | null;
|
|
7
|
+
};
|
|
4
8
|
/**
|
|
5
9
|
* Returns [defaultOfferCode] only when it exists in [offers]; otherwise null.
|
|
6
10
|
* Use whenever persisting or applying a default so stale codes never leak.
|