@salla.sa/twilight 3.0.45 → 3.0.47
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salla.sa/twilight",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.47",
|
|
4
4
|
"description": "Salla Theme Toolkit, Webcomponents, Events, Requests, Utils",
|
|
5
5
|
"main": "dist/cjs",
|
|
6
6
|
"module": "dist/esm",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"homepage": "https://salla.dev",
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@jitsu/js": "^1.10.4",
|
|
37
|
-
"@salla.sa/analytics": "3.0.
|
|
38
|
-
"@salla.sa/base": "3.0.
|
|
37
|
+
"@salla.sa/analytics": "3.0.47",
|
|
38
|
+
"@salla.sa/base": "3.0.47",
|
|
39
39
|
"axios": "^1.13.6",
|
|
40
40
|
"infinite-scroll": "^4.0.1",
|
|
41
41
|
"jwt-decode": "^4.0.0",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"webpack": "^4 || ^5"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "ab5b44fda3e78b5907cefa6157a0971314284801"
|
|
76
76
|
}
|
|
@@ -34,8 +34,16 @@ export interface Offer {
|
|
|
34
34
|
products?: Product[];
|
|
35
35
|
categories?: ShortCategory[];
|
|
36
36
|
type: 'product' | 'category';
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
/**
|
|
38
|
+
* The reward on the get (Y) products:
|
|
39
|
+
* - 'free-product': Y is free;
|
|
40
|
+
* - 'percentage': discount_amount is a percentage off each Y unit;
|
|
41
|
+
* - 'fixed-amount': discount_amount is an amount off each Y unit, in the offer's currency;
|
|
42
|
+
* - 'fixed-price': discount_amount is the price the customer pays for each Y unit, in the offer's currency.
|
|
43
|
+
* Amounts are applied to the pre-VAT price, like every offer type.
|
|
44
|
+
*/
|
|
45
|
+
discount_type: 'free-product' | 'percentage' | 'fixed-amount' | 'fixed-price';
|
|
46
|
+
quantity?: number;//when discount_type != 'free-product'
|
|
39
47
|
discount_amount?: number; //when offer_type != 'buy_x_get_y' or get.discount_type !='free-product'
|
|
40
48
|
}
|
|
41
49
|
}
|