@salla.sa/twilight 2.11.110 → 2.11.113
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/README.md +1 -1
- package/dist/@salla.sa/twilight.min.js +2 -2
- package/dist/@salla.sa/twilight.min.js.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +3 -3
- package/types/api/product/request.d.ts +1 -1
- package/types/api/product/response.d.ts +42 -42
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salla.sa/twilight",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.113",
|
|
4
4
|
"description": "Salla Theme Toolkit, Webcomponents, Events, Requests, Utils",
|
|
5
5
|
"main": "dist/cjs",
|
|
6
6
|
"module": "dist/esm",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
],
|
|
34
34
|
"homepage": "https://salla.dev",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@salla.sa/base": "^2.11.
|
|
36
|
+
"@salla.sa/base": "^2.11.111",
|
|
37
37
|
"axios": "^0.27.2",
|
|
38
38
|
"infinite-scroll": "^4.0.1",
|
|
39
39
|
"jwt-decode": "^3.1.2",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"webpack": "^4 || ^5"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "a3df23f4460fcd8deb8cd89643d2d99b20bb2262"
|
|
71
71
|
}
|
|
@@ -53,7 +53,7 @@ export namespace ProductRequest {
|
|
|
53
53
|
|
|
54
54
|
export interface FetchProductsQueryParams {
|
|
55
55
|
source: 'categories' | 'latest' | 'related' | 'brands' | 'json' | 'search' | 'tags' | 'selected' | 'offers' | 'landing-page';
|
|
56
|
-
|
|
56
|
+
source_value: number | string | object | string[];
|
|
57
57
|
filters?: object;
|
|
58
58
|
limit?: number;
|
|
59
59
|
}
|
|
@@ -62,58 +62,58 @@ export interface GiftText {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
export interface ProductDetail {
|
|
65
|
+
calories: null;
|
|
66
|
+
cost_price: string;
|
|
67
|
+
customized_sku_quantity: boolean;
|
|
68
|
+
description: string;
|
|
69
|
+
favorite: null;
|
|
70
|
+
features: Features;
|
|
71
|
+
gtin: null;
|
|
72
|
+
has_size_guide: boolean;
|
|
73
|
+
is_on_sale: boolean;
|
|
74
|
+
hide_quantity: boolean;
|
|
65
75
|
id: number;
|
|
66
|
-
|
|
67
|
-
|
|
76
|
+
image: { alt:string; url:string };
|
|
77
|
+
images: Image[];
|
|
78
|
+
included_tax: boolean;
|
|
79
|
+
is_available: boolean;
|
|
80
|
+
managed_by_branches: boolean;
|
|
81
|
+
max_items_per_user: number;
|
|
82
|
+
maximum_quantity_per_order: null;
|
|
68
83
|
mpn: null;
|
|
69
|
-
gtin: null;
|
|
70
|
-
type: string;
|
|
71
84
|
name: string;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
price: PreTaxPrice;
|
|
75
|
-
taxed_price: PreTaxPrice;
|
|
85
|
+
notify_quantity: null;
|
|
86
|
+
options: Option[];
|
|
76
87
|
pre_tax_price: PreTaxPrice;
|
|
77
|
-
|
|
78
|
-
|
|
88
|
+
price: number;
|
|
89
|
+
promotion: Promotion;
|
|
79
90
|
quantity: null;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
views: null;
|
|
83
|
-
sale_price: PreTaxPrice;
|
|
84
|
-
sale_end: null;
|
|
91
|
+
rating: Rating;
|
|
92
|
+
regular_price: number;
|
|
85
93
|
require_shipping: boolean;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
included_tax: boolean;
|
|
92
|
-
url: string;
|
|
93
|
-
main_image: string;
|
|
94
|
-
images: Image[];
|
|
94
|
+
sale_end: null;
|
|
95
|
+
sale_price: PreTaxPrice;
|
|
96
|
+
services_blocks: ServicesBlocks;
|
|
97
|
+
short_link_code: string;
|
|
98
|
+
show_in_app: boolean;
|
|
95
99
|
show_purchase_count: boolean;
|
|
100
|
+
sku: string;
|
|
101
|
+
skus: Skus[];
|
|
96
102
|
sold_quantity: number;
|
|
97
103
|
sold_quantity_desc: string;
|
|
98
|
-
|
|
99
|
-
favorite: null;
|
|
100
|
-
has_special_price: boolean;
|
|
101
|
-
regular_price: PreTaxPrice;
|
|
102
|
-
features: Features;
|
|
103
|
-
max_items_per_user: number;
|
|
104
|
-
maximum_quantity_per_order: null;
|
|
105
|
-
show_in_app: boolean;
|
|
106
|
-
has_size_guide: boolean;
|
|
107
|
-
notify_quantity: null;
|
|
108
|
-
hide_quantity: boolean;
|
|
109
|
-
unlimited_quantity: boolean;
|
|
110
|
-
managed_by_branches: boolean;
|
|
111
|
-
services_blocks: ServicesBlocks;
|
|
112
|
-
calories: null;
|
|
113
|
-
customized_sku_quantity: boolean;
|
|
114
|
-
options: Option[];
|
|
115
|
-
skus: Skus[];
|
|
104
|
+
status: string;
|
|
116
105
|
tags: any[];
|
|
106
|
+
tax: PreTaxPrice;
|
|
107
|
+
taxed_price: PreTaxPrice;
|
|
108
|
+
type: string;
|
|
109
|
+
unlimited_quantity: boolean;
|
|
110
|
+
url: string;
|
|
111
|
+
urls: Urls;
|
|
112
|
+
views: null;
|
|
113
|
+
weight: number;
|
|
114
|
+
weight_label: null;
|
|
115
|
+
weight_type: string;
|
|
116
|
+
with_tax: boolean;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
export interface Features {
|