@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.d.mts +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.js +11 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1617,7 +1617,7 @@ declare class AuthenticateApi extends BaseService {
|
|
|
1617
1617
|
options?: {
|
|
1618
1618
|
[key: string]: unknown;
|
|
1619
1619
|
};
|
|
1620
|
-
}, requestOptions?: RequestOptions
|
|
1620
|
+
}, requestOptions?: RequestOptions): Promise<ServiceResponse<ForgetPasswordResponse>>;
|
|
1621
1621
|
/**
|
|
1622
1622
|
* Resets the password for a user.
|
|
1623
1623
|
*
|
|
@@ -1638,7 +1638,7 @@ declare class AuthenticateApi extends BaseService {
|
|
|
1638
1638
|
options?: {
|
|
1639
1639
|
[key: string]: unknown;
|
|
1640
1640
|
};
|
|
1641
|
-
}, requestOptions?: RequestOptions
|
|
1641
|
+
}, requestOptions?: RequestOptions): Promise<ServiceResponse<StatusResponse>>;
|
|
1642
1642
|
/**
|
|
1643
1643
|
* Sends an OTP (One-Time Password) to the user for authentication (GET method).
|
|
1644
1644
|
*
|
|
@@ -2010,6 +2010,7 @@ declare class CartApi extends BaseService {
|
|
|
2010
2010
|
* @param params.id - The ID of the item to add to the cart.
|
|
2011
2011
|
* @param params.mode - The mode off adding.
|
|
2012
2012
|
* @param params.qty - The quantity of the item.
|
|
2013
|
+
* @param params.clearCart - Whether to clear the cart before adding the item.
|
|
2013
2014
|
* @param params.sideCampaignJson - The side campaign JSON.
|
|
2014
2015
|
* @param params.options - Additional options for adding the item to the cart.
|
|
2015
2016
|
* @param requestOptions - The options for the request.
|
|
@@ -2019,6 +2020,7 @@ declare class CartApi extends BaseService {
|
|
|
2019
2020
|
id: string;
|
|
2020
2021
|
mode?: string;
|
|
2021
2022
|
qty?: number;
|
|
2023
|
+
clearCart?: boolean;
|
|
2022
2024
|
sideCampaignJson?: string;
|
|
2023
2025
|
options?: {
|
|
2024
2026
|
[key: string]: unknown;
|
|
@@ -2599,7 +2601,7 @@ declare class ProfileApi extends BaseService {
|
|
|
2599
2601
|
options?: {
|
|
2600
2602
|
[key: string]: unknown;
|
|
2601
2603
|
};
|
|
2602
|
-
}, requestOptions?: RequestOptions
|
|
2604
|
+
}, requestOptions?: RequestOptions): Promise<ServiceResponse<StatusResponse>>;
|
|
2603
2605
|
/**
|
|
2604
2606
|
* Updates the shipping information for the user.
|
|
2605
2607
|
*
|
|
@@ -2831,7 +2833,7 @@ declare class RegistrationApi extends BaseService {
|
|
|
2831
2833
|
options: {
|
|
2832
2834
|
[key: string]: unknown;
|
|
2833
2835
|
};
|
|
2834
|
-
}, requestOptions?: RequestOptions
|
|
2836
|
+
}, requestOptions?: RequestOptions): Promise<ServiceResponse<RegistrationResponse>>;
|
|
2835
2837
|
}
|
|
2836
2838
|
|
|
2837
2839
|
declare class AddressApi extends BaseService {
|
package/dist/index.d.ts
CHANGED
|
@@ -1617,7 +1617,7 @@ declare class AuthenticateApi extends BaseService {
|
|
|
1617
1617
|
options?: {
|
|
1618
1618
|
[key: string]: unknown;
|
|
1619
1619
|
};
|
|
1620
|
-
}, requestOptions?: RequestOptions
|
|
1620
|
+
}, requestOptions?: RequestOptions): Promise<ServiceResponse<ForgetPasswordResponse>>;
|
|
1621
1621
|
/**
|
|
1622
1622
|
* Resets the password for a user.
|
|
1623
1623
|
*
|
|
@@ -1638,7 +1638,7 @@ declare class AuthenticateApi extends BaseService {
|
|
|
1638
1638
|
options?: {
|
|
1639
1639
|
[key: string]: unknown;
|
|
1640
1640
|
};
|
|
1641
|
-
}, requestOptions?: RequestOptions
|
|
1641
|
+
}, requestOptions?: RequestOptions): Promise<ServiceResponse<StatusResponse>>;
|
|
1642
1642
|
/**
|
|
1643
1643
|
* Sends an OTP (One-Time Password) to the user for authentication (GET method).
|
|
1644
1644
|
*
|
|
@@ -2010,6 +2010,7 @@ declare class CartApi extends BaseService {
|
|
|
2010
2010
|
* @param params.id - The ID of the item to add to the cart.
|
|
2011
2011
|
* @param params.mode - The mode off adding.
|
|
2012
2012
|
* @param params.qty - The quantity of the item.
|
|
2013
|
+
* @param params.clearCart - Whether to clear the cart before adding the item.
|
|
2013
2014
|
* @param params.sideCampaignJson - The side campaign JSON.
|
|
2014
2015
|
* @param params.options - Additional options for adding the item to the cart.
|
|
2015
2016
|
* @param requestOptions - The options for the request.
|
|
@@ -2019,6 +2020,7 @@ declare class CartApi extends BaseService {
|
|
|
2019
2020
|
id: string;
|
|
2020
2021
|
mode?: string;
|
|
2021
2022
|
qty?: number;
|
|
2023
|
+
clearCart?: boolean;
|
|
2022
2024
|
sideCampaignJson?: string;
|
|
2023
2025
|
options?: {
|
|
2024
2026
|
[key: string]: unknown;
|
|
@@ -2599,7 +2601,7 @@ declare class ProfileApi extends BaseService {
|
|
|
2599
2601
|
options?: {
|
|
2600
2602
|
[key: string]: unknown;
|
|
2601
2603
|
};
|
|
2602
|
-
}, requestOptions?: RequestOptions
|
|
2604
|
+
}, requestOptions?: RequestOptions): Promise<ServiceResponse<StatusResponse>>;
|
|
2603
2605
|
/**
|
|
2604
2606
|
* Updates the shipping information for the user.
|
|
2605
2607
|
*
|
|
@@ -2831,7 +2833,7 @@ declare class RegistrationApi extends BaseService {
|
|
|
2831
2833
|
options: {
|
|
2832
2834
|
[key: string]: unknown;
|
|
2833
2835
|
};
|
|
2834
|
-
}, requestOptions?: RequestOptions
|
|
2836
|
+
}, requestOptions?: RequestOptions): Promise<ServiceResponse<RegistrationResponse>>;
|
|
2835
2837
|
}
|
|
2836
2838
|
|
|
2837
2839
|
declare class AddressApi extends BaseService {
|
package/dist/index.js
CHANGED
|
@@ -447,7 +447,7 @@ var AuthenticateApi = class extends BaseService {
|
|
|
447
447
|
usernamePasswordLogin(params, requestOptions) {
|
|
448
448
|
return __async(this, null, function* () {
|
|
449
449
|
return yield this.post(
|
|
450
|
-
"auth/
|
|
450
|
+
"auth/buzzebees_login",
|
|
451
451
|
__spreadValues({
|
|
452
452
|
username: params.username,
|
|
453
453
|
password: params.password,
|
|
@@ -629,10 +629,10 @@ var AuthenticateApi = class extends BaseService {
|
|
|
629
629
|
* @param requestOptions - Optional request options.
|
|
630
630
|
* @returns A promise that resolves to a ServiceResponse containing the forget password response.
|
|
631
631
|
*/
|
|
632
|
-
forgetPassword(params, requestOptions
|
|
632
|
+
forgetPassword(params, requestOptions) {
|
|
633
633
|
return __async(this, null, function* () {
|
|
634
634
|
return yield this.get(
|
|
635
|
-
|
|
635
|
+
"profile/forgot_password",
|
|
636
636
|
__spreadValues({
|
|
637
637
|
id: params.contact,
|
|
638
638
|
type: params.type
|
|
@@ -653,10 +653,10 @@ var AuthenticateApi = class extends BaseService {
|
|
|
653
653
|
* @param requestOptions - (Optional) Additional options for the request.
|
|
654
654
|
* @returns A promise that resolves to a ServiceResponse containing the status response.
|
|
655
655
|
*/
|
|
656
|
-
resetPassword(params, requestOptions
|
|
656
|
+
resetPassword(params, requestOptions) {
|
|
657
657
|
return __async(this, null, function* () {
|
|
658
658
|
return yield this.post(
|
|
659
|
-
|
|
659
|
+
"profile/forgot_password",
|
|
660
660
|
__spreadValues({
|
|
661
661
|
id: params.contact,
|
|
662
662
|
refcode: params.refCode,
|
|
@@ -1126,6 +1126,7 @@ var CartApi = class extends BaseService {
|
|
|
1126
1126
|
* @param params.id - The ID of the item to add to the cart.
|
|
1127
1127
|
* @param params.mode - The mode off adding.
|
|
1128
1128
|
* @param params.qty - The quantity of the item.
|
|
1129
|
+
* @param params.clearCart - Whether to clear the cart before adding the item.
|
|
1129
1130
|
* @param params.sideCampaignJson - The side campaign JSON.
|
|
1130
1131
|
* @param params.options - Additional options for adding the item to the cart.
|
|
1131
1132
|
* @param requestOptions - The options for the request.
|
|
@@ -1138,6 +1139,7 @@ var CartApi = class extends BaseService {
|
|
|
1138
1139
|
__spreadValues({
|
|
1139
1140
|
mode: params.mode,
|
|
1140
1141
|
qty: params.qty,
|
|
1142
|
+
clearCart: params.clearCart,
|
|
1141
1143
|
sideCampaignJson: params.sideCampaignJson
|
|
1142
1144
|
}, params.options),
|
|
1143
1145
|
{
|
|
@@ -1891,10 +1893,10 @@ var ProfileApi = class extends BaseService {
|
|
|
1891
1893
|
* @param requestOptions - Optional request options.
|
|
1892
1894
|
* @returns A promise that resolves to a ServiceResponse containing the status response.
|
|
1893
1895
|
*/
|
|
1894
|
-
changePassword(params, requestOptions
|
|
1896
|
+
changePassword(params, requestOptions) {
|
|
1895
1897
|
return __async(this, null, function* () {
|
|
1896
1898
|
return yield this.post(
|
|
1897
|
-
|
|
1899
|
+
"profile/password_change",
|
|
1898
1900
|
__spreadValues({
|
|
1899
1901
|
current: params.current,
|
|
1900
1902
|
change: params.change
|
|
@@ -2157,10 +2159,10 @@ var RegistrationApi = class extends BaseService {
|
|
|
2157
2159
|
* @param requestOptions - The optional request options.
|
|
2158
2160
|
* @returns A promise that resolves to a service response containing the registration response.
|
|
2159
2161
|
*/
|
|
2160
|
-
register(params, requestOptions
|
|
2162
|
+
register(params, requestOptions) {
|
|
2161
2163
|
return __async(this, null, function* () {
|
|
2162
2164
|
return yield this.post(
|
|
2163
|
-
|
|
2165
|
+
"auth/registration",
|
|
2164
2166
|
__spreadValues({
|
|
2165
2167
|
app_id: params.appId,
|
|
2166
2168
|
uuid: params.uuid,
|