@usethrottle/cart 3.20.1 → 3.21.0
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.cjs +2 -2
- package/dist/index.d.cts +9 -2
- package/dist/index.d.ts +9 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -654,8 +654,8 @@ var CartSessionClient = class _CartSessionClient {
|
|
|
654
654
|
}
|
|
655
655
|
/**
|
|
656
656
|
* Ask the app that prices a resolved cart to re-check every line it owns.
|
|
657
|
-
* `changed` is true when a price, name or
|
|
658
|
-
* cart comes back unchanged. Throws `LineResolverUnavailableError` (nothing
|
|
657
|
+
* `changed` is true when a price, name, refusal or a catalog weight or
|
|
658
|
+
* dimension on a line changed. An unresolved cart comes back unchanged. Throws `LineResolverUnavailableError` (nothing
|
|
659
659
|
* changed) when the app does not answer.
|
|
660
660
|
*/
|
|
661
661
|
async refresh() {
|
package/dist/index.d.cts
CHANGED
|
@@ -216,6 +216,13 @@ interface LineResolution {
|
|
|
216
216
|
code: string | null;
|
|
217
217
|
maxQuantity: number | null;
|
|
218
218
|
minQuantity: number | null;
|
|
219
|
+
/**
|
|
220
|
+
* Present only while the line's price is a volume (bulk) tier price:
|
|
221
|
+
* `minQuantity` is the quantity that tier starts at. Absent otherwise.
|
|
222
|
+
*/
|
|
223
|
+
bulk?: {
|
|
224
|
+
minQuantity: number;
|
|
225
|
+
};
|
|
219
226
|
}
|
|
220
227
|
/**
|
|
221
228
|
* A line of a resolved cart: the app sets its name, price and image, so the
|
|
@@ -864,8 +871,8 @@ declare class CartSessionClient {
|
|
|
864
871
|
addResolvedItem(input: AddResolvedLineItemInput): Promise<CartSessionCart>;
|
|
865
872
|
/**
|
|
866
873
|
* Ask the app that prices a resolved cart to re-check every line it owns.
|
|
867
|
-
* `changed` is true when a price, name or
|
|
868
|
-
* cart comes back unchanged. Throws `LineResolverUnavailableError` (nothing
|
|
874
|
+
* `changed` is true when a price, name, refusal or a catalog weight or
|
|
875
|
+
* dimension on a line changed. An unresolved cart comes back unchanged. Throws `LineResolverUnavailableError` (nothing
|
|
869
876
|
* changed) when the app does not answer.
|
|
870
877
|
*/
|
|
871
878
|
refresh(): Promise<CartSessionCart & {
|
package/dist/index.d.ts
CHANGED
|
@@ -216,6 +216,13 @@ interface LineResolution {
|
|
|
216
216
|
code: string | null;
|
|
217
217
|
maxQuantity: number | null;
|
|
218
218
|
minQuantity: number | null;
|
|
219
|
+
/**
|
|
220
|
+
* Present only while the line's price is a volume (bulk) tier price:
|
|
221
|
+
* `minQuantity` is the quantity that tier starts at. Absent otherwise.
|
|
222
|
+
*/
|
|
223
|
+
bulk?: {
|
|
224
|
+
minQuantity: number;
|
|
225
|
+
};
|
|
219
226
|
}
|
|
220
227
|
/**
|
|
221
228
|
* A line of a resolved cart: the app sets its name, price and image, so the
|
|
@@ -864,8 +871,8 @@ declare class CartSessionClient {
|
|
|
864
871
|
addResolvedItem(input: AddResolvedLineItemInput): Promise<CartSessionCart>;
|
|
865
872
|
/**
|
|
866
873
|
* Ask the app that prices a resolved cart to re-check every line it owns.
|
|
867
|
-
* `changed` is true when a price, name or
|
|
868
|
-
* cart comes back unchanged. Throws `LineResolverUnavailableError` (nothing
|
|
874
|
+
* `changed` is true when a price, name, refusal or a catalog weight or
|
|
875
|
+
* dimension on a line changed. An unresolved cart comes back unchanged. Throws `LineResolverUnavailableError` (nothing
|
|
869
876
|
* changed) when the app does not answer.
|
|
870
877
|
*/
|
|
871
878
|
refresh(): Promise<CartSessionCart & {
|
package/dist/index.js
CHANGED
|
@@ -578,8 +578,8 @@ var CartSessionClient = class _CartSessionClient {
|
|
|
578
578
|
}
|
|
579
579
|
/**
|
|
580
580
|
* Ask the app that prices a resolved cart to re-check every line it owns.
|
|
581
|
-
* `changed` is true when a price, name or
|
|
582
|
-
* cart comes back unchanged. Throws `LineResolverUnavailableError` (nothing
|
|
581
|
+
* `changed` is true when a price, name, refusal or a catalog weight or
|
|
582
|
+
* dimension on a line changed. An unresolved cart comes back unchanged. Throws `LineResolverUnavailableError` (nothing
|
|
583
583
|
* changed) when the app does not answer.
|
|
584
584
|
*/
|
|
585
585
|
async refresh() {
|