@bzbs/react-api-client 1.0.1 → 1.0.3
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/README.md +82 -82
- package/dist/index.d.mts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +6 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +63 -63
package/dist/index.mjs
CHANGED
|
@@ -41,10 +41,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
41
41
|
// src/api/base-service.ts
|
|
42
42
|
var BaseService = class {
|
|
43
43
|
constructor(client, baseUrl) {
|
|
44
|
-
if (!client)
|
|
45
|
-
|
|
46
|
-
if (!baseUrl)
|
|
47
|
-
throw new Error("Base URL is required.");
|
|
44
|
+
if (!client) throw new Error("Axios client is required.");
|
|
45
|
+
if (!baseUrl) throw new Error("Base URL is required.");
|
|
48
46
|
this.client = client;
|
|
49
47
|
this.baseUrl = baseUrl;
|
|
50
48
|
}
|
|
@@ -525,7 +523,7 @@ var AuthenticateApi = class extends BaseService {
|
|
|
525
523
|
validateOtp(params, requestOptions) {
|
|
526
524
|
return __async(this, null, function* () {
|
|
527
525
|
return yield this.post(
|
|
528
|
-
"auth/
|
|
526
|
+
"auth/validate_otp",
|
|
529
527
|
__spreadValues({
|
|
530
528
|
app_id: params.appId,
|
|
531
529
|
otp: params.otp,
|