@bzbs/react-api-client 1.3.4 → 1.4.0
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 +47 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.js +61 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +61 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2029,10 +2029,71 @@ var RegistrationApi = class extends BaseService {
|
|
|
2029
2029
|
constructor(client, baseUrl) {
|
|
2030
2030
|
super(client, baseUrl);
|
|
2031
2031
|
}
|
|
2032
|
+
/**
|
|
2033
|
+
* Validates registration information before actual registration.
|
|
2034
|
+
*
|
|
2035
|
+
* @param params - The validation parameters.
|
|
2036
|
+
* @param params.appId - The application ID.
|
|
2037
|
+
* @param params.username - The username.
|
|
2038
|
+
* @param params.email - The email.
|
|
2039
|
+
* @param params.contactNumber - The contact number.
|
|
2040
|
+
* @param requestOptions - The optional request options.
|
|
2041
|
+
* @returns A promise that resolves to a service response.
|
|
2042
|
+
*/
|
|
2043
|
+
validateRegister(params, requestOptions) {
|
|
2044
|
+
return __async(this, null, function* () {
|
|
2045
|
+
return yield this.post(
|
|
2046
|
+
"auth/validate_register",
|
|
2047
|
+
{
|
|
2048
|
+
app_id: params.appId,
|
|
2049
|
+
username: params.username,
|
|
2050
|
+
email: params.email,
|
|
2051
|
+
contact_number: params.contactNumber
|
|
2052
|
+
},
|
|
2053
|
+
{
|
|
2054
|
+
headers: __spreadValues({
|
|
2055
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
2056
|
+
}, requestOptions == null ? void 0 : requestOptions.headers),
|
|
2057
|
+
data: requestOptions == null ? void 0 : requestOptions.data,
|
|
2058
|
+
params: requestOptions == null ? void 0 : requestOptions.params
|
|
2059
|
+
}
|
|
2060
|
+
);
|
|
2061
|
+
});
|
|
2062
|
+
}
|
|
2032
2063
|
/**
|
|
2033
2064
|
* Registers a user with the provided registration parameters.
|
|
2034
2065
|
*
|
|
2035
2066
|
* @param params - The registration parameters.
|
|
2067
|
+
* @param params.appId - The application ID.
|
|
2068
|
+
* @param params.uuid - The UUID.
|
|
2069
|
+
* @param params.macAddress - The MAC address.
|
|
2070
|
+
* @param params.os - The operating system.
|
|
2071
|
+
* @param params.platform - The platform.
|
|
2072
|
+
* @param params.clientVersion - The client version.
|
|
2073
|
+
* @param params.deviceNotificationEnable - The device notification enable.
|
|
2074
|
+
* @param params.username - The username.
|
|
2075
|
+
* @param params.password - The password.
|
|
2076
|
+
* @param params.confirmPassword - The confirm password.
|
|
2077
|
+
* @param params.firstName - The first name.
|
|
2078
|
+
* @param params.lastName - The last name.
|
|
2079
|
+
* @param params.contactNumber - The contact number.
|
|
2080
|
+
* @param params.otp - The OTP.
|
|
2081
|
+
* @param params.refCode - The referral code.
|
|
2082
|
+
* @param params.address - The address.
|
|
2083
|
+
* @param params.gender - The gender.
|
|
2084
|
+
* @param params.birthdate - The birthdate. In seconds since epoch.
|
|
2085
|
+
* @param params.email - The email.
|
|
2086
|
+
* @param params.refUserCode - The referral user code.
|
|
2087
|
+
* @param params.info - The info json string.
|
|
2088
|
+
* @param params.termAndConditionVersion - The term and condition version.
|
|
2089
|
+
* @param params.dataPrivacyVersion - The data privacy version.
|
|
2090
|
+
* @param params.marketingOptionsVersion - The marketing options version.
|
|
2091
|
+
* @param params.emailMarketing - The email marketing.
|
|
2092
|
+
* @param params.smsMarketing - The SMS marketing.
|
|
2093
|
+
* @param params.notificationMarketing - The notification marketing.
|
|
2094
|
+
* @param params.lineMarketing - The line marketing.
|
|
2095
|
+
* @param params.phoneMarketing - The phone marketing.
|
|
2096
|
+
* @param params.options - The options.
|
|
2036
2097
|
* @param requestOptions - The optional request options.
|
|
2037
2098
|
* @returns A promise that resolves to a service response containing the registration response.
|
|
2038
2099
|
*/
|