@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.d.mts +20 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +30 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +30 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2248,6 +2248,26 @@ declare class ProfileApi extends BaseService {
|
|
|
2248
2248
|
[key: string]: unknown;
|
|
2249
2249
|
};
|
|
2250
2250
|
}, requestOptions?: RequestOptions): Promise<ServiceResponse<any>>;
|
|
2251
|
+
/**
|
|
2252
|
+
* Changes the contact number for the current user.
|
|
2253
|
+
*
|
|
2254
|
+
* @param params - The parameters for changing the contact number.
|
|
2255
|
+
* @param params.contactNumber - The new contact number.
|
|
2256
|
+
* @param params.otp - The one-time password for verification.
|
|
2257
|
+
* @param params.refCode - The reference code for verification.
|
|
2258
|
+
* @param params.options - Additional options for the request.
|
|
2259
|
+
* @param requestOptions - The options for the request.
|
|
2260
|
+
* @returns A promise that resolves to a ServiceResponse containing the result of the request.
|
|
2261
|
+
*/
|
|
2262
|
+
changeContactNumberV3(params: {
|
|
2263
|
+
userId: string;
|
|
2264
|
+
contactNumber: string;
|
|
2265
|
+
otp: string;
|
|
2266
|
+
refCode: string;
|
|
2267
|
+
options?: {
|
|
2268
|
+
[key: string]: unknown;
|
|
2269
|
+
};
|
|
2270
|
+
}, requestOptions?: RequestOptions): Promise<ServiceResponse<any>>;
|
|
2251
2271
|
/**
|
|
2252
2272
|
* Retrieves the updated points for the current user's profile.
|
|
2253
2273
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -2248,6 +2248,26 @@ declare class ProfileApi extends BaseService {
|
|
|
2248
2248
|
[key: string]: unknown;
|
|
2249
2249
|
};
|
|
2250
2250
|
}, requestOptions?: RequestOptions): Promise<ServiceResponse<any>>;
|
|
2251
|
+
/**
|
|
2252
|
+
* Changes the contact number for the current user.
|
|
2253
|
+
*
|
|
2254
|
+
* @param params - The parameters for changing the contact number.
|
|
2255
|
+
* @param params.contactNumber - The new contact number.
|
|
2256
|
+
* @param params.otp - The one-time password for verification.
|
|
2257
|
+
* @param params.refCode - The reference code for verification.
|
|
2258
|
+
* @param params.options - Additional options for the request.
|
|
2259
|
+
* @param requestOptions - The options for the request.
|
|
2260
|
+
* @returns A promise that resolves to a ServiceResponse containing the result of the request.
|
|
2261
|
+
*/
|
|
2262
|
+
changeContactNumberV3(params: {
|
|
2263
|
+
userId: string;
|
|
2264
|
+
contactNumber: string;
|
|
2265
|
+
otp: string;
|
|
2266
|
+
refCode: string;
|
|
2267
|
+
options?: {
|
|
2268
|
+
[key: string]: unknown;
|
|
2269
|
+
};
|
|
2270
|
+
}, requestOptions?: RequestOptions): Promise<ServiceResponse<any>>;
|
|
2251
2271
|
/**
|
|
2252
2272
|
* Retrieves the updated points for the current user's profile.
|
|
2253
2273
|
*
|
package/dist/index.js
CHANGED
|
@@ -1706,6 +1706,36 @@ var ProfileApi = class extends BaseService {
|
|
|
1706
1706
|
);
|
|
1707
1707
|
});
|
|
1708
1708
|
}
|
|
1709
|
+
/**
|
|
1710
|
+
* Changes the contact number for the current user.
|
|
1711
|
+
*
|
|
1712
|
+
* @param params - The parameters for changing the contact number.
|
|
1713
|
+
* @param params.contactNumber - The new contact number.
|
|
1714
|
+
* @param params.otp - The one-time password for verification.
|
|
1715
|
+
* @param params.refCode - The reference code for verification.
|
|
1716
|
+
* @param params.options - Additional options for the request.
|
|
1717
|
+
* @param requestOptions - The options for the request.
|
|
1718
|
+
* @returns A promise that resolves to a ServiceResponse containing the result of the request.
|
|
1719
|
+
*/
|
|
1720
|
+
changeContactNumberV3(params, requestOptions) {
|
|
1721
|
+
return __async(this, null, function* () {
|
|
1722
|
+
return yield this.post(
|
|
1723
|
+
`profile/${params.userId}/contact_number`,
|
|
1724
|
+
__spreadValues({
|
|
1725
|
+
contact_number: params.contactNumber,
|
|
1726
|
+
otp: params.otp,
|
|
1727
|
+
refcode: params.refCode
|
|
1728
|
+
}, params.options),
|
|
1729
|
+
{
|
|
1730
|
+
headers: __spreadValues({
|
|
1731
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
1732
|
+
}, requestOptions == null ? void 0 : requestOptions.headers),
|
|
1733
|
+
data: requestOptions == null ? void 0 : requestOptions.data,
|
|
1734
|
+
params: requestOptions == null ? void 0 : requestOptions.params
|
|
1735
|
+
}
|
|
1736
|
+
);
|
|
1737
|
+
});
|
|
1738
|
+
}
|
|
1709
1739
|
/**
|
|
1710
1740
|
* Retrieves the updated points for the current user's profile.
|
|
1711
1741
|
*
|