@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.d.mts
CHANGED
|
@@ -2573,10 +2573,57 @@ declare class ProfileApi extends BaseService {
|
|
|
2573
2573
|
|
|
2574
2574
|
declare class RegistrationApi extends BaseService {
|
|
2575
2575
|
constructor(client: AxiosInstance, baseUrl: string);
|
|
2576
|
+
/**
|
|
2577
|
+
* Validates registration information before actual registration.
|
|
2578
|
+
*
|
|
2579
|
+
* @param params - The validation parameters.
|
|
2580
|
+
* @param params.appId - The application ID.
|
|
2581
|
+
* @param params.username - The username.
|
|
2582
|
+
* @param params.email - The email.
|
|
2583
|
+
* @param params.contactNumber - The contact number.
|
|
2584
|
+
* @param requestOptions - The optional request options.
|
|
2585
|
+
* @returns A promise that resolves to a service response.
|
|
2586
|
+
*/
|
|
2587
|
+
validateRegister(params: {
|
|
2588
|
+
appId: string;
|
|
2589
|
+
username: string;
|
|
2590
|
+
email: string;
|
|
2591
|
+
contactNumber: string;
|
|
2592
|
+
}, requestOptions?: RequestOptions): Promise<ServiceResponse<StatusResponse>>;
|
|
2576
2593
|
/**
|
|
2577
2594
|
* Registers a user with the provided registration parameters.
|
|
2578
2595
|
*
|
|
2579
2596
|
* @param params - The registration parameters.
|
|
2597
|
+
* @param params.appId - The application ID.
|
|
2598
|
+
* @param params.uuid - The UUID.
|
|
2599
|
+
* @param params.macAddress - The MAC address.
|
|
2600
|
+
* @param params.os - The operating system.
|
|
2601
|
+
* @param params.platform - The platform.
|
|
2602
|
+
* @param params.clientVersion - The client version.
|
|
2603
|
+
* @param params.deviceNotificationEnable - The device notification enable.
|
|
2604
|
+
* @param params.username - The username.
|
|
2605
|
+
* @param params.password - The password.
|
|
2606
|
+
* @param params.confirmPassword - The confirm password.
|
|
2607
|
+
* @param params.firstName - The first name.
|
|
2608
|
+
* @param params.lastName - The last name.
|
|
2609
|
+
* @param params.contactNumber - The contact number.
|
|
2610
|
+
* @param params.otp - The OTP.
|
|
2611
|
+
* @param params.refCode - The referral code.
|
|
2612
|
+
* @param params.address - The address.
|
|
2613
|
+
* @param params.gender - The gender.
|
|
2614
|
+
* @param params.birthdate - The birthdate. In seconds since epoch.
|
|
2615
|
+
* @param params.email - The email.
|
|
2616
|
+
* @param params.refUserCode - The referral user code.
|
|
2617
|
+
* @param params.info - The info json string.
|
|
2618
|
+
* @param params.termAndConditionVersion - The term and condition version.
|
|
2619
|
+
* @param params.dataPrivacyVersion - The data privacy version.
|
|
2620
|
+
* @param params.marketingOptionsVersion - The marketing options version.
|
|
2621
|
+
* @param params.emailMarketing - The email marketing.
|
|
2622
|
+
* @param params.smsMarketing - The SMS marketing.
|
|
2623
|
+
* @param params.notificationMarketing - The notification marketing.
|
|
2624
|
+
* @param params.lineMarketing - The line marketing.
|
|
2625
|
+
* @param params.phoneMarketing - The phone marketing.
|
|
2626
|
+
* @param params.options - The options.
|
|
2580
2627
|
* @param requestOptions - The optional request options.
|
|
2581
2628
|
* @returns A promise that resolves to a service response containing the registration response.
|
|
2582
2629
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -2573,10 +2573,57 @@ declare class ProfileApi extends BaseService {
|
|
|
2573
2573
|
|
|
2574
2574
|
declare class RegistrationApi extends BaseService {
|
|
2575
2575
|
constructor(client: AxiosInstance, baseUrl: string);
|
|
2576
|
+
/**
|
|
2577
|
+
* Validates registration information before actual registration.
|
|
2578
|
+
*
|
|
2579
|
+
* @param params - The validation parameters.
|
|
2580
|
+
* @param params.appId - The application ID.
|
|
2581
|
+
* @param params.username - The username.
|
|
2582
|
+
* @param params.email - The email.
|
|
2583
|
+
* @param params.contactNumber - The contact number.
|
|
2584
|
+
* @param requestOptions - The optional request options.
|
|
2585
|
+
* @returns A promise that resolves to a service response.
|
|
2586
|
+
*/
|
|
2587
|
+
validateRegister(params: {
|
|
2588
|
+
appId: string;
|
|
2589
|
+
username: string;
|
|
2590
|
+
email: string;
|
|
2591
|
+
contactNumber: string;
|
|
2592
|
+
}, requestOptions?: RequestOptions): Promise<ServiceResponse<StatusResponse>>;
|
|
2576
2593
|
/**
|
|
2577
2594
|
* Registers a user with the provided registration parameters.
|
|
2578
2595
|
*
|
|
2579
2596
|
* @param params - The registration parameters.
|
|
2597
|
+
* @param params.appId - The application ID.
|
|
2598
|
+
* @param params.uuid - The UUID.
|
|
2599
|
+
* @param params.macAddress - The MAC address.
|
|
2600
|
+
* @param params.os - The operating system.
|
|
2601
|
+
* @param params.platform - The platform.
|
|
2602
|
+
* @param params.clientVersion - The client version.
|
|
2603
|
+
* @param params.deviceNotificationEnable - The device notification enable.
|
|
2604
|
+
* @param params.username - The username.
|
|
2605
|
+
* @param params.password - The password.
|
|
2606
|
+
* @param params.confirmPassword - The confirm password.
|
|
2607
|
+
* @param params.firstName - The first name.
|
|
2608
|
+
* @param params.lastName - The last name.
|
|
2609
|
+
* @param params.contactNumber - The contact number.
|
|
2610
|
+
* @param params.otp - The OTP.
|
|
2611
|
+
* @param params.refCode - The referral code.
|
|
2612
|
+
* @param params.address - The address.
|
|
2613
|
+
* @param params.gender - The gender.
|
|
2614
|
+
* @param params.birthdate - The birthdate. In seconds since epoch.
|
|
2615
|
+
* @param params.email - The email.
|
|
2616
|
+
* @param params.refUserCode - The referral user code.
|
|
2617
|
+
* @param params.info - The info json string.
|
|
2618
|
+
* @param params.termAndConditionVersion - The term and condition version.
|
|
2619
|
+
* @param params.dataPrivacyVersion - The data privacy version.
|
|
2620
|
+
* @param params.marketingOptionsVersion - The marketing options version.
|
|
2621
|
+
* @param params.emailMarketing - The email marketing.
|
|
2622
|
+
* @param params.smsMarketing - The SMS marketing.
|
|
2623
|
+
* @param params.notificationMarketing - The notification marketing.
|
|
2624
|
+
* @param params.lineMarketing - The line marketing.
|
|
2625
|
+
* @param params.phoneMarketing - The phone marketing.
|
|
2626
|
+
* @param params.options - The options.
|
|
2580
2627
|
* @param requestOptions - The optional request options.
|
|
2581
2628
|
* @returns A promise that resolves to a service response containing the registration response.
|
|
2582
2629
|
*/
|
package/dist/index.js
CHANGED
|
@@ -2073,10 +2073,71 @@ var RegistrationApi = class extends BaseService {
|
|
|
2073
2073
|
constructor(client, baseUrl) {
|
|
2074
2074
|
super(client, baseUrl);
|
|
2075
2075
|
}
|
|
2076
|
+
/**
|
|
2077
|
+
* Validates registration information before actual registration.
|
|
2078
|
+
*
|
|
2079
|
+
* @param params - The validation parameters.
|
|
2080
|
+
* @param params.appId - The application ID.
|
|
2081
|
+
* @param params.username - The username.
|
|
2082
|
+
* @param params.email - The email.
|
|
2083
|
+
* @param params.contactNumber - The contact number.
|
|
2084
|
+
* @param requestOptions - The optional request options.
|
|
2085
|
+
* @returns A promise that resolves to a service response.
|
|
2086
|
+
*/
|
|
2087
|
+
validateRegister(params, requestOptions) {
|
|
2088
|
+
return __async(this, null, function* () {
|
|
2089
|
+
return yield this.post(
|
|
2090
|
+
"auth/validate_register",
|
|
2091
|
+
{
|
|
2092
|
+
app_id: params.appId,
|
|
2093
|
+
username: params.username,
|
|
2094
|
+
email: params.email,
|
|
2095
|
+
contact_number: params.contactNumber
|
|
2096
|
+
},
|
|
2097
|
+
{
|
|
2098
|
+
headers: __spreadValues({
|
|
2099
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
2100
|
+
}, requestOptions == null ? void 0 : requestOptions.headers),
|
|
2101
|
+
data: requestOptions == null ? void 0 : requestOptions.data,
|
|
2102
|
+
params: requestOptions == null ? void 0 : requestOptions.params
|
|
2103
|
+
}
|
|
2104
|
+
);
|
|
2105
|
+
});
|
|
2106
|
+
}
|
|
2076
2107
|
/**
|
|
2077
2108
|
* Registers a user with the provided registration parameters.
|
|
2078
2109
|
*
|
|
2079
2110
|
* @param params - The registration parameters.
|
|
2111
|
+
* @param params.appId - The application ID.
|
|
2112
|
+
* @param params.uuid - The UUID.
|
|
2113
|
+
* @param params.macAddress - The MAC address.
|
|
2114
|
+
* @param params.os - The operating system.
|
|
2115
|
+
* @param params.platform - The platform.
|
|
2116
|
+
* @param params.clientVersion - The client version.
|
|
2117
|
+
* @param params.deviceNotificationEnable - The device notification enable.
|
|
2118
|
+
* @param params.username - The username.
|
|
2119
|
+
* @param params.password - The password.
|
|
2120
|
+
* @param params.confirmPassword - The confirm password.
|
|
2121
|
+
* @param params.firstName - The first name.
|
|
2122
|
+
* @param params.lastName - The last name.
|
|
2123
|
+
* @param params.contactNumber - The contact number.
|
|
2124
|
+
* @param params.otp - The OTP.
|
|
2125
|
+
* @param params.refCode - The referral code.
|
|
2126
|
+
* @param params.address - The address.
|
|
2127
|
+
* @param params.gender - The gender.
|
|
2128
|
+
* @param params.birthdate - The birthdate. In seconds since epoch.
|
|
2129
|
+
* @param params.email - The email.
|
|
2130
|
+
* @param params.refUserCode - The referral user code.
|
|
2131
|
+
* @param params.info - The info json string.
|
|
2132
|
+
* @param params.termAndConditionVersion - The term and condition version.
|
|
2133
|
+
* @param params.dataPrivacyVersion - The data privacy version.
|
|
2134
|
+
* @param params.marketingOptionsVersion - The marketing options version.
|
|
2135
|
+
* @param params.emailMarketing - The email marketing.
|
|
2136
|
+
* @param params.smsMarketing - The SMS marketing.
|
|
2137
|
+
* @param params.notificationMarketing - The notification marketing.
|
|
2138
|
+
* @param params.lineMarketing - The line marketing.
|
|
2139
|
+
* @param params.phoneMarketing - The phone marketing.
|
|
2140
|
+
* @param params.options - The options.
|
|
2080
2141
|
* @param requestOptions - The optional request options.
|
|
2081
2142
|
* @returns A promise that resolves to a service response containing the registration response.
|
|
2082
2143
|
*/
|