@usethrottle/cart 3.20.0 → 3.20.1
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/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -182,6 +182,14 @@ interface LineItem {
|
|
|
182
182
|
subscriptionId: string | null;
|
|
183
183
|
imageUrl: string | null;
|
|
184
184
|
position: number;
|
|
185
|
+
/**
|
|
186
|
+
* Free-form line metadata. A line from the Product Catalog also carries the
|
|
187
|
+
* variant's shipping measures, set by Throttle and read-only: `weight` (kg)
|
|
188
|
+
* with `weightUnit`, and `length`, `width` and `height` (cm) with
|
|
189
|
+
* `dimensionUnit`. A key is absent when the catalog has no value for it;
|
|
190
|
+
* the three dimensions come together or not at all. Writing any of them
|
|
191
|
+
* answers `400 price_locked`.
|
|
192
|
+
*/
|
|
185
193
|
metadata: Record<string, unknown>;
|
|
186
194
|
/**
|
|
187
195
|
* Resolved carts only: the app's last answer for this line, or null on a
|
package/dist/index.d.ts
CHANGED
|
@@ -182,6 +182,14 @@ interface LineItem {
|
|
|
182
182
|
subscriptionId: string | null;
|
|
183
183
|
imageUrl: string | null;
|
|
184
184
|
position: number;
|
|
185
|
+
/**
|
|
186
|
+
* Free-form line metadata. A line from the Product Catalog also carries the
|
|
187
|
+
* variant's shipping measures, set by Throttle and read-only: `weight` (kg)
|
|
188
|
+
* with `weightUnit`, and `length`, `width` and `height` (cm) with
|
|
189
|
+
* `dimensionUnit`. A key is absent when the catalog has no value for it;
|
|
190
|
+
* the three dimensions come together or not at all. Writing any of them
|
|
191
|
+
* answers `400 price_locked`.
|
|
192
|
+
*/
|
|
185
193
|
metadata: Record<string, unknown>;
|
|
186
194
|
/**
|
|
187
195
|
* Resolved carts only: the app's last answer for this line, or null on a
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usethrottle/cart",
|
|
3
|
-
"version": "3.20.
|
|
3
|
+
"version": "3.20.1",
|
|
4
4
|
"description": "Typed REST client for the Throttle Cart API.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"README.md"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@usethrottle/
|
|
22
|
-
"@usethrottle/
|
|
21
|
+
"@usethrottle/money": "^1.1.0",
|
|
22
|
+
"@usethrottle/errors": "^1.1.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"tsup": "^8.0.0",
|