@bunnyapp/components 1.8.0-beta.51 → 1.8.0-beta.53

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.
@@ -1,8 +1,8 @@
1
- declare function CouponEditor({ className, apiHost, token, quoteChangeId, appliedCoupons, onCouponAdded, onCouponRemoved, }: {
1
+ declare function CouponEditor({ className, apiHost, token, quoteId, appliedCoupons, onCouponAdded, onCouponRemoved, }: {
2
2
  className?: string;
3
3
  apiHost: string;
4
4
  token?: string;
5
- quoteChangeId?: string;
5
+ quoteId?: string;
6
6
  appliedCoupons: string[];
7
7
  onCouponAdded?: () => void;
8
8
  onCouponRemoved?: () => void;
@@ -1,5 +1,5 @@
1
- export declare const quoteChangeAddCoupon: ({ quoteChangeId, couponCode, token, apiHost, }: {
2
- quoteChangeId: string;
1
+ export declare const quoteAddCoupon: ({ quoteId, couponCode, token, apiHost, }: {
2
+ quoteId: string;
3
3
  couponCode: string;
4
4
  token?: string;
5
5
  apiHost: string;
@@ -0,0 +1,9 @@
1
+ declare const quoteRemoveCoupon: ({ quoteId, couponCode, token, apiHost, }: {
2
+ quoteId: string;
3
+ couponCode: string;
4
+ token?: string;
5
+ apiHost: string;
6
+ }) => Promise<{
7
+ id: string | null;
8
+ } | null | undefined>;
9
+ export default quoteRemoveCoupon;
@@ -1,7 +1,7 @@
1
- declare const useCouponMutations: ({ apiHost, token, quoteChangeId, onCouponAdded, onCouponRemoved, }: {
1
+ declare const useCouponMutations: ({ apiHost, token, quoteId, onCouponAdded, onCouponRemoved, }: {
2
2
  apiHost: string;
3
3
  token?: string;
4
- quoteChangeId?: string;
4
+ quoteId?: string;
5
5
  onCouponAdded?: () => void;
6
6
  onCouponRemoved?: () => void;
7
7
  }) => {
@@ -9,9 +9,7 @@ declare const useCouponMutations: ({ apiHost, token, quoteChangeId, onCouponAdde
9
9
  id: string | null;
10
10
  } | null | undefined, Error, string, unknown>;
11
11
  removeCoupon: import("@tanstack/react-query").UseMutateFunction<{
12
- quote: {
13
- id: string | null;
14
- };
12
+ id: string | null;
15
13
  } | null | undefined, Error, string, unknown>;
16
14
  isAddingCoupon: boolean;
17
15
  isRemovingCoupon: boolean;