@bzbs/react-api-client 2.1.1 → 2.1.4

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.mjs CHANGED
@@ -402,7 +402,7 @@ var AuthenticateApi = class extends BaseService {
402
402
  usernamePasswordLogin(params, requestOptions) {
403
403
  return __async(this, null, function* () {
404
404
  return yield this.post(
405
- "auth/bzbs_login",
405
+ "auth/buzzebees_login",
406
406
  __spreadValues({
407
407
  username: params.username,
408
408
  password: params.password,
@@ -584,10 +584,10 @@ var AuthenticateApi = class extends BaseService {
584
584
  * @param requestOptions - Optional request options.
585
585
  * @returns A promise that resolves to a ServiceResponse containing the forget password response.
586
586
  */
587
- forgetPassword(params, requestOptions, version = 2) {
587
+ forgetPassword(params, requestOptions) {
588
588
  return __async(this, null, function* () {
589
589
  return yield this.get(
590
- `profile/forget_password${version}`,
590
+ "profile/forgot_password",
591
591
  __spreadValues({
592
592
  id: params.contact,
593
593
  type: params.type
@@ -608,10 +608,10 @@ var AuthenticateApi = class extends BaseService {
608
608
  * @param requestOptions - (Optional) Additional options for the request.
609
609
  * @returns A promise that resolves to a ServiceResponse containing the status response.
610
610
  */
611
- resetPassword(params, requestOptions, version = 2) {
611
+ resetPassword(params, requestOptions) {
612
612
  return __async(this, null, function* () {
613
613
  return yield this.post(
614
- `profile/forget_password${version}`,
614
+ "profile/forgot_password",
615
615
  __spreadValues({
616
616
  id: params.contact,
617
617
  refcode: params.refCode,
@@ -1081,6 +1081,7 @@ var CartApi = class extends BaseService {
1081
1081
  * @param params.id - The ID of the item to add to the cart.
1082
1082
  * @param params.mode - The mode off adding.
1083
1083
  * @param params.qty - The quantity of the item.
1084
+ * @param params.clearCart - Whether to clear the cart before adding the item.
1084
1085
  * @param params.sideCampaignJson - The side campaign JSON.
1085
1086
  * @param params.options - Additional options for adding the item to the cart.
1086
1087
  * @param requestOptions - The options for the request.
@@ -1093,6 +1094,7 @@ var CartApi = class extends BaseService {
1093
1094
  __spreadValues({
1094
1095
  mode: params.mode,
1095
1096
  qty: params.qty,
1097
+ clearCart: params.clearCart,
1096
1098
  sideCampaignJson: params.sideCampaignJson
1097
1099
  }, params.options),
1098
1100
  {
@@ -1846,10 +1848,10 @@ var ProfileApi = class extends BaseService {
1846
1848
  * @param requestOptions - Optional request options.
1847
1849
  * @returns A promise that resolves to a ServiceResponse containing the status response.
1848
1850
  */
1849
- changePassword(params, requestOptions, version = 2) {
1851
+ changePassword(params, requestOptions) {
1850
1852
  return __async(this, null, function* () {
1851
1853
  return yield this.post(
1852
- `profile/change_password${version}`,
1854
+ "profile/password_change",
1853
1855
  __spreadValues({
1854
1856
  current: params.current,
1855
1857
  change: params.change
@@ -2112,10 +2114,10 @@ var RegistrationApi = class extends BaseService {
2112
2114
  * @param requestOptions - The optional request options.
2113
2115
  * @returns A promise that resolves to a service response containing the registration response.
2114
2116
  */
2115
- register(params, requestOptions, version = 2) {
2117
+ register(params, requestOptions) {
2116
2118
  return __async(this, null, function* () {
2117
2119
  return yield this.post(
2118
- `auth/register${version}`,
2120
+ "auth/registration",
2119
2121
  __spreadValues({
2120
2122
  app_id: params.appId,
2121
2123
  uuid: params.uuid,