@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 +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -567,10 +567,10 @@ var AuthenticateApi = class extends BaseService {
|
|
|
567
567
|
* @param requestOptions - Optional request options.
|
|
568
568
|
* @returns A promise that resolves to a ServiceResponse containing the forget password response.
|
|
569
569
|
*/
|
|
570
|
-
forgetPassword(params, requestOptions) {
|
|
570
|
+
forgetPassword(params, requestOptions, version = 2) {
|
|
571
571
|
return __async(this, null, function* () {
|
|
572
572
|
return yield this.get(
|
|
573
|
-
|
|
573
|
+
`profile/forget_password${version}`,
|
|
574
574
|
__spreadValues({
|
|
575
575
|
id: params.contact,
|
|
576
576
|
type: params.type
|
|
@@ -591,10 +591,10 @@ var AuthenticateApi = class extends BaseService {
|
|
|
591
591
|
* @param requestOptions - (Optional) Additional options for the request.
|
|
592
592
|
* @returns A promise that resolves to a ServiceResponse containing the status response.
|
|
593
593
|
*/
|
|
594
|
-
resetPassword(params, requestOptions) {
|
|
594
|
+
resetPassword(params, requestOptions, version = 2) {
|
|
595
595
|
return __async(this, null, function* () {
|
|
596
596
|
return yield this.post(
|
|
597
|
-
|
|
597
|
+
`profile/forget_password${version}`,
|
|
598
598
|
__spreadValues({
|
|
599
599
|
id: params.contact,
|
|
600
600
|
refcode: params.refCode,
|
|
@@ -1727,10 +1727,10 @@ var ProfileApi = class extends BaseService {
|
|
|
1727
1727
|
* @param requestOptions - Optional request options.
|
|
1728
1728
|
* @returns A promise that resolves to a ServiceResponse containing the status response.
|
|
1729
1729
|
*/
|
|
1730
|
-
changePassword(params, requestOptions) {
|
|
1730
|
+
changePassword(params, requestOptions, version = 2) {
|
|
1731
1731
|
return __async(this, null, function* () {
|
|
1732
1732
|
return yield this.post(
|
|
1733
|
-
|
|
1733
|
+
`profile/change_password${version}`,
|
|
1734
1734
|
__spreadValues({
|
|
1735
1735
|
current: params.current,
|
|
1736
1736
|
change: params.change
|
|
@@ -1993,10 +1993,10 @@ var RegistrationApi = class extends BaseService {
|
|
|
1993
1993
|
* @param requestOptions - The optional request options.
|
|
1994
1994
|
* @returns A promise that resolves to a service response containing the registration response.
|
|
1995
1995
|
*/
|
|
1996
|
-
register(params, requestOptions) {
|
|
1996
|
+
register(params, requestOptions, version = 2) {
|
|
1997
1997
|
return __async(this, null, function* () {
|
|
1998
1998
|
return yield this.post(
|
|
1999
|
-
|
|
1999
|
+
`auth/register${version}`,
|
|
2000
2000
|
__spreadValues({
|
|
2001
2001
|
app_id: params.appId,
|
|
2002
2002
|
uuid: params.uuid,
|