@bzbs/react-api-client 2.0.1 → 2.0.2

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
@@ -1587,7 +1587,7 @@ declare class AuthenticateApi extends BaseService {
1587
1587
  options?: {
1588
1588
  [key: string]: unknown;
1589
1589
  };
1590
- }, requestOptions?: RequestOptions): Promise<ServiceResponse<ForgetPasswordResponse>>;
1590
+ }, requestOptions?: RequestOptions, version?: number): Promise<ServiceResponse<ForgetPasswordResponse>>;
1591
1591
  /**
1592
1592
  * Resets the password for a user.
1593
1593
  *
@@ -1608,7 +1608,7 @@ declare class AuthenticateApi extends BaseService {
1608
1608
  options?: {
1609
1609
  [key: string]: unknown;
1610
1610
  };
1611
- }, requestOptions?: RequestOptions): Promise<ServiceResponse<StatusResponse>>;
1611
+ }, requestOptions?: RequestOptions, version?: number): Promise<ServiceResponse<StatusResponse>>;
1612
1612
  /**
1613
1613
  * Sends an OTP (One-Time Password) to the user for authentication (GET method).
1614
1614
  *
@@ -2485,7 +2485,7 @@ declare class ProfileApi extends BaseService {
2485
2485
  options?: {
2486
2486
  [key: string]: unknown;
2487
2487
  };
2488
- }, requestOptions?: RequestOptions): Promise<ServiceResponse<StatusResponse>>;
2488
+ }, requestOptions?: RequestOptions, version?: number): Promise<ServiceResponse<StatusResponse>>;
2489
2489
  /**
2490
2490
  * Updates the shipping information for the user.
2491
2491
  *
@@ -2717,7 +2717,7 @@ declare class RegistrationApi extends BaseService {
2717
2717
  options: {
2718
2718
  [key: string]: unknown;
2719
2719
  };
2720
- }, requestOptions?: RequestOptions): Promise<ServiceResponse<RegistrationResponse>>;
2720
+ }, requestOptions?: RequestOptions, version?: number): Promise<ServiceResponse<RegistrationResponse>>;
2721
2721
  }
2722
2722
 
2723
2723
  declare class AddressApi extends BaseService {
package/dist/index.d.ts CHANGED
@@ -1587,7 +1587,7 @@ declare class AuthenticateApi extends BaseService {
1587
1587
  options?: {
1588
1588
  [key: string]: unknown;
1589
1589
  };
1590
- }, requestOptions?: RequestOptions): Promise<ServiceResponse<ForgetPasswordResponse>>;
1590
+ }, requestOptions?: RequestOptions, version?: number): Promise<ServiceResponse<ForgetPasswordResponse>>;
1591
1591
  /**
1592
1592
  * Resets the password for a user.
1593
1593
  *
@@ -1608,7 +1608,7 @@ declare class AuthenticateApi extends BaseService {
1608
1608
  options?: {
1609
1609
  [key: string]: unknown;
1610
1610
  };
1611
- }, requestOptions?: RequestOptions): Promise<ServiceResponse<StatusResponse>>;
1611
+ }, requestOptions?: RequestOptions, version?: number): Promise<ServiceResponse<StatusResponse>>;
1612
1612
  /**
1613
1613
  * Sends an OTP (One-Time Password) to the user for authentication (GET method).
1614
1614
  *
@@ -2485,7 +2485,7 @@ declare class ProfileApi extends BaseService {
2485
2485
  options?: {
2486
2486
  [key: string]: unknown;
2487
2487
  };
2488
- }, requestOptions?: RequestOptions): Promise<ServiceResponse<StatusResponse>>;
2488
+ }, requestOptions?: RequestOptions, version?: number): Promise<ServiceResponse<StatusResponse>>;
2489
2489
  /**
2490
2490
  * Updates the shipping information for the user.
2491
2491
  *
@@ -2717,7 +2717,7 @@ declare class RegistrationApi extends BaseService {
2717
2717
  options: {
2718
2718
  [key: string]: unknown;
2719
2719
  };
2720
- }, requestOptions?: RequestOptions): Promise<ServiceResponse<RegistrationResponse>>;
2720
+ }, requestOptions?: RequestOptions, version?: number): Promise<ServiceResponse<RegistrationResponse>>;
2721
2721
  }
2722
2722
 
2723
2723
  declare class AddressApi extends BaseService {
package/dist/index.js CHANGED
@@ -611,10 +611,10 @@ var AuthenticateApi = class extends BaseService {
611
611
  * @param requestOptions - Optional request options.
612
612
  * @returns A promise that resolves to a ServiceResponse containing the forget password response.
613
613
  */
614
- forgetPassword(params, requestOptions) {
614
+ forgetPassword(params, requestOptions, version = 2) {
615
615
  return __async(this, null, function* () {
616
616
  return yield this.get(
617
- "profile/forget_password",
617
+ `profile/forget_password${version}`,
618
618
  __spreadValues({
619
619
  id: params.contact,
620
620
  type: params.type
@@ -635,10 +635,10 @@ var AuthenticateApi = class extends BaseService {
635
635
  * @param requestOptions - (Optional) Additional options for the request.
636
636
  * @returns A promise that resolves to a ServiceResponse containing the status response.
637
637
  */
638
- resetPassword(params, requestOptions) {
638
+ resetPassword(params, requestOptions, version = 2) {
639
639
  return __async(this, null, function* () {
640
640
  return yield this.post(
641
- "profile/forget_password",
641
+ `profile/forget_password${version}`,
642
642
  __spreadValues({
643
643
  id: params.contact,
644
644
  refcode: params.refCode,
@@ -1771,10 +1771,10 @@ var ProfileApi = class extends BaseService {
1771
1771
  * @param requestOptions - Optional request options.
1772
1772
  * @returns A promise that resolves to a ServiceResponse containing the status response.
1773
1773
  */
1774
- changePassword(params, requestOptions) {
1774
+ changePassword(params, requestOptions, version = 2) {
1775
1775
  return __async(this, null, function* () {
1776
1776
  return yield this.post(
1777
- "profile/change_password",
1777
+ `profile/change_password${version}`,
1778
1778
  __spreadValues({
1779
1779
  current: params.current,
1780
1780
  change: params.change
@@ -2037,10 +2037,10 @@ var RegistrationApi = class extends BaseService {
2037
2037
  * @param requestOptions - The optional request options.
2038
2038
  * @returns A promise that resolves to a service response containing the registration response.
2039
2039
  */
2040
- register(params, requestOptions) {
2040
+ register(params, requestOptions, version = 2) {
2041
2041
  return __async(this, null, function* () {
2042
2042
  return yield this.post(
2043
- "auth/register",
2043
+ `auth/register${version}`,
2044
2044
  __spreadValues({
2045
2045
  app_id: params.appId,
2046
2046
  uuid: params.uuid,