@bzbs/react-api-client 2.1.6 → 2.1.7

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.mts CHANGED
@@ -2001,7 +2001,7 @@ declare class CampaignApi extends BaseService {
2001
2001
  }, requestOptions?: RequestOptions): Promise<ServiceResponse<RedeemResponse>>;
2002
2002
  }
2003
2003
 
2004
- type CartType = 'normal' | 'subscription' | 'evoucher' | 'marketplaceprivilege' | 'c2ptopup' | 'beesbooking' | 'dealshop';
2004
+ type CartType = 'Normal' | 'Subscription' | 'EVoucher' | 'MarketPlacePrivilege' | 'C2PTopup' | 'BeesBooking' | 'DealShop';
2005
2005
  declare class CartApi extends BaseService {
2006
2006
  constructor(client: AxiosInstance, baseUrl: string);
2007
2007
  /**
@@ -2058,12 +2058,16 @@ declare class CartApi extends BaseService {
2058
2058
  /**
2059
2059
  * Retrieves the count of items in the cart.
2060
2060
  *
2061
+ * @param params.countQuantity - Whether to count the quantity of items in the cart. Defaults to true.
2061
2062
  * @param options - Optional additional parameters.
2062
2063
  * @param requestOptions - Optional request options.
2063
2064
  * @returns A promise that resolves to a ServiceResponse containing the CartCountResponse.
2064
2065
  */
2065
- cartCount(options?: {
2066
- [key: string]: unknown;
2066
+ cartCount(params: {
2067
+ countQuantity?: boolean;
2068
+ options?: {
2069
+ [key: string]: unknown;
2070
+ };
2067
2071
  }, requestOptions?: RequestOptions): Promise<ServiceResponse<CartCountResponse>>;
2068
2072
  /**
2069
2073
  * Retrieves the cart access.
package/dist/index.d.ts CHANGED
@@ -2001,7 +2001,7 @@ declare class CampaignApi extends BaseService {
2001
2001
  }, requestOptions?: RequestOptions): Promise<ServiceResponse<RedeemResponse>>;
2002
2002
  }
2003
2003
 
2004
- type CartType = 'normal' | 'subscription' | 'evoucher' | 'marketplaceprivilege' | 'c2ptopup' | 'beesbooking' | 'dealshop';
2004
+ type CartType = 'Normal' | 'Subscription' | 'EVoucher' | 'MarketPlacePrivilege' | 'C2PTopup' | 'BeesBooking' | 'DealShop';
2005
2005
  declare class CartApi extends BaseService {
2006
2006
  constructor(client: AxiosInstance, baseUrl: string);
2007
2007
  /**
@@ -2058,12 +2058,16 @@ declare class CartApi extends BaseService {
2058
2058
  /**
2059
2059
  * Retrieves the count of items in the cart.
2060
2060
  *
2061
+ * @param params.countQuantity - Whether to count the quantity of items in the cart. Defaults to true.
2061
2062
  * @param options - Optional additional parameters.
2062
2063
  * @param requestOptions - Optional request options.
2063
2064
  * @returns A promise that resolves to a ServiceResponse containing the CartCountResponse.
2064
2065
  */
2065
- cartCount(options?: {
2066
- [key: string]: unknown;
2066
+ cartCount(params: {
2067
+ countQuantity?: boolean;
2068
+ options?: {
2069
+ [key: string]: unknown;
2070
+ };
2067
2071
  }, requestOptions?: RequestOptions): Promise<ServiceResponse<CartCountResponse>>;
2068
2072
  /**
2069
2073
  * Retrieves the cart access.
package/dist/index.js CHANGED
@@ -1198,15 +1198,19 @@ var CartApi = class extends BaseService {
1198
1198
  /**
1199
1199
  * Retrieves the count of items in the cart.
1200
1200
  *
1201
+ * @param params.countQuantity - Whether to count the quantity of items in the cart. Defaults to true.
1201
1202
  * @param options - Optional additional parameters.
1202
1203
  * @param requestOptions - Optional request options.
1203
1204
  * @returns A promise that resolves to a ServiceResponse containing the CartCountResponse.
1204
1205
  */
1205
- cartCount(options, requestOptions) {
1206
+ cartCount(params, requestOptions) {
1206
1207
  return __async(this, null, function* () {
1208
+ var _a;
1207
1209
  return yield this.get(
1208
1210
  "cart/count",
1209
- __spreadValues({}, options),
1211
+ __spreadValues({
1212
+ countQuantity: (_a = params.countQuantity) != null ? _a : true
1213
+ }, params.options),
1210
1214
  requestOptions
1211
1215
  );
1212
1216
  });