@bzbs/react-api-client 1.4.6 → 1.4.8
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 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +36 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +36 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -151,6 +151,11 @@ var BaseService = class {
|
|
|
151
151
|
"Content-Type": "application/json"
|
|
152
152
|
}, customHeaders);
|
|
153
153
|
}
|
|
154
|
+
setBaseUrl(baseUrl) {
|
|
155
|
+
if (baseUrl.length === 0) throw new Error("Base URL is required.");
|
|
156
|
+
this.baseUrl = baseUrl;
|
|
157
|
+
return this;
|
|
158
|
+
}
|
|
154
159
|
};
|
|
155
160
|
|
|
156
161
|
// src/api/auth/auth-api.ts
|
|
@@ -2726,6 +2731,37 @@ var BzbsService = class {
|
|
|
2726
2731
|
this.settingApi = new SettingApi(this.client, this.baseUrl);
|
|
2727
2732
|
this.blob = new Blob(this.client, this.baseBlobUrl);
|
|
2728
2733
|
}
|
|
2734
|
+
setBaseUrl(baseUrl) {
|
|
2735
|
+
this.baseUrl = baseUrl;
|
|
2736
|
+
this.authApi.setBaseUrl(baseUrl);
|
|
2737
|
+
this.badgeApi.setBaseUrl(baseUrl);
|
|
2738
|
+
this.campaignApi.setBaseUrl(baseUrl);
|
|
2739
|
+
this.cartApi.setBaseUrl(baseUrl);
|
|
2740
|
+
this.categoryApi.setBaseUrl(baseUrl);
|
|
2741
|
+
this.consentApi.setBaseUrl(baseUrl);
|
|
2742
|
+
this.couponApi.setBaseUrl(baseUrl);
|
|
2743
|
+
this.dashboardApi.setBaseUrl(baseUrl);
|
|
2744
|
+
this.historyApi.setBaseUrl(baseUrl);
|
|
2745
|
+
this.notificationApi.setBaseUrl(baseUrl);
|
|
2746
|
+
this.placeApi.setBaseUrl(baseUrl);
|
|
2747
|
+
this.pointLogApi.setBaseUrl(baseUrl);
|
|
2748
|
+
this.profileApi.setBaseUrl(baseUrl);
|
|
2749
|
+
this.registerApi.setBaseUrl(baseUrl);
|
|
2750
|
+
this.addressApi.setBaseUrl(baseUrl);
|
|
2751
|
+
this.stampApi.setBaseUrl(baseUrl);
|
|
2752
|
+
this.forumApi.setBaseUrl(baseUrl);
|
|
2753
|
+
this.settingApi.setBaseUrl(baseUrl);
|
|
2754
|
+
return this;
|
|
2755
|
+
}
|
|
2756
|
+
setBlobUrl(blobUrl) {
|
|
2757
|
+
this.blob.setBaseUrl(blobUrl);
|
|
2758
|
+
return this;
|
|
2759
|
+
}
|
|
2760
|
+
setLineUrl(lineUrl) {
|
|
2761
|
+
var _a;
|
|
2762
|
+
(_a = this.lineApi) == null ? void 0 : _a.setBaseUrl(lineUrl);
|
|
2763
|
+
return this;
|
|
2764
|
+
}
|
|
2729
2765
|
};
|
|
2730
2766
|
export {
|
|
2731
2767
|
AddressApi,
|