@bzbs/react-api-client 1.0.11 → 1.0.12

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
@@ -1663,6 +1663,36 @@ var ProfileApi = class extends BaseService {
1663
1663
  );
1664
1664
  });
1665
1665
  }
1666
+ /**
1667
+ * Changes the contact number for the current user.
1668
+ *
1669
+ * @param params - The parameters for changing the contact number.
1670
+ * @param params.contactNumber - The new contact number.
1671
+ * @param params.otp - The one-time password for verification.
1672
+ * @param params.refCode - The reference code for verification.
1673
+ * @param params.options - Additional options for the request.
1674
+ * @param requestOptions - The options for the request.
1675
+ * @returns A promise that resolves to a ServiceResponse containing the result of the request.
1676
+ */
1677
+ changeContactNumberV3(params, requestOptions) {
1678
+ return __async(this, null, function* () {
1679
+ return yield this.post(
1680
+ `profile/${params.userId}/contact_number`,
1681
+ __spreadValues({
1682
+ contact_number: params.contactNumber,
1683
+ otp: params.otp,
1684
+ refcode: params.refCode
1685
+ }, params.options),
1686
+ {
1687
+ headers: __spreadValues({
1688
+ "Content-Type": "application/x-www-form-urlencoded"
1689
+ }, requestOptions == null ? void 0 : requestOptions.headers),
1690
+ data: requestOptions == null ? void 0 : requestOptions.data,
1691
+ params: requestOptions == null ? void 0 : requestOptions.params
1692
+ }
1693
+ );
1694
+ });
1695
+ }
1666
1696
  /**
1667
1697
  * Retrieves the updated points for the current user's profile.
1668
1698
  *