@cloudcommerce/api 0.23.0 → 0.23.2
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/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-test.log +3 -3
- package/package.json +1 -1
- package/types/carts.d.ts +8 -0
- package/types/orders.d.ts +8 -0
package/.turbo/turbo-build.log
CHANGED
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @cloudcommerce/api@0.
|
|
2
|
+
> @cloudcommerce/api@0.23.1 test /home/leo/code/ecomplus/cloud-commerce/packages/api
|
|
3
3
|
> tsc -p ../../tsconfig.test.json && vitest run
|
|
4
4
|
|
|
5
5
|
|
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
|
|
14
14
|
Test Files 1 passed (1)
|
|
15
15
|
Tests 5 passed (5)
|
|
16
|
-
Start at
|
|
17
|
-
Duration 1.
|
|
16
|
+
Start at 14:32:58
|
|
17
|
+
Duration 1.60s (transform 136ms, setup 0ms, collect 110ms, tests 992ms, environment 0ms, prepare 158ms)
|
|
18
18
|
|
package/package.json
CHANGED
package/types/carts.d.ts
CHANGED
|
@@ -102,6 +102,10 @@ export interface Carts {
|
|
|
102
102
|
* Product or variation full name, or other label for this cart item
|
|
103
103
|
*/
|
|
104
104
|
name?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Product slug to complete page URL
|
|
107
|
+
*/
|
|
108
|
+
slug?: string;
|
|
105
109
|
/**
|
|
106
110
|
* Product or variation picture for this cart item
|
|
107
111
|
*/
|
|
@@ -241,6 +245,10 @@ export interface Carts {
|
|
|
241
245
|
* Final item price including additions due to customizations (auto-calculated)
|
|
242
246
|
*/
|
|
243
247
|
final_price?: number;
|
|
248
|
+
/**
|
|
249
|
+
* Item's original price for comparison, without discounts
|
|
250
|
+
*/
|
|
251
|
+
base_price?: number;
|
|
244
252
|
/**
|
|
245
253
|
* Flags to associate additional info
|
|
246
254
|
*
|
package/types/orders.d.ts
CHANGED
|
@@ -1171,6 +1171,10 @@ export interface Orders {
|
|
|
1171
1171
|
* Product or variation full name, or other label for this cart item
|
|
1172
1172
|
*/
|
|
1173
1173
|
name?: string;
|
|
1174
|
+
/**
|
|
1175
|
+
* Product slug to complete page URL
|
|
1176
|
+
*/
|
|
1177
|
+
slug?: string;
|
|
1174
1178
|
/**
|
|
1175
1179
|
* Product or variation picture for this cart item
|
|
1176
1180
|
*/
|
|
@@ -1294,6 +1298,10 @@ export interface Orders {
|
|
|
1294
1298
|
* Final item price including additions due to customizations and gift wrap
|
|
1295
1299
|
*/
|
|
1296
1300
|
final_price?: number;
|
|
1301
|
+
/**
|
|
1302
|
+
* Item's original price for comparison, without discounts
|
|
1303
|
+
*/
|
|
1304
|
+
base_price?: number;
|
|
1297
1305
|
/**
|
|
1298
1306
|
* Flags to associate additional info
|
|
1299
1307
|
*
|