@bzbs/react-api-client 1.4.2 → 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 +17 -0
- package/dist/index.d.ts +17 -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.d.mts
CHANGED
|
@@ -62,6 +62,7 @@ declare class BaseService {
|
|
|
62
62
|
}): {
|
|
63
63
|
[key: string]: string;
|
|
64
64
|
};
|
|
65
|
+
setBaseUrl(baseUrl: string): this;
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
interface LoginResponse {
|
|
@@ -638,6 +639,19 @@ interface Place {
|
|
|
638
639
|
isPickupBranchOpen?: boolean;
|
|
639
640
|
isFavourite?: boolean;
|
|
640
641
|
fullImageUrl?: string;
|
|
642
|
+
contact_number?: string;
|
|
643
|
+
working_day?: string;
|
|
644
|
+
name_en?: string;
|
|
645
|
+
description_en?: string;
|
|
646
|
+
working_day_en?: string;
|
|
647
|
+
address_en?: string;
|
|
648
|
+
image_url?: string;
|
|
649
|
+
reference_code?: string;
|
|
650
|
+
subdistrict_code?: string;
|
|
651
|
+
district_code?: string;
|
|
652
|
+
province_code?: string;
|
|
653
|
+
pickup_working_day?: string;
|
|
654
|
+
pickup_working_day_en?: string;
|
|
641
655
|
}
|
|
642
656
|
interface PlaceService {
|
|
643
657
|
id?: number;
|
|
@@ -3090,6 +3104,9 @@ declare class BzbsService {
|
|
|
3090
3104
|
settingApi: SettingApi;
|
|
3091
3105
|
blob: Blob;
|
|
3092
3106
|
constructor(client: AxiosInstance, baseUrl: string, baseLineUrl: string | "", baseBlobUrl: string);
|
|
3107
|
+
setBaseUrl(baseUrl: string): this;
|
|
3108
|
+
setBlobUrl(blobUrl: string): this;
|
|
3109
|
+
setLineUrl(lineUrl: string): this;
|
|
3093
3110
|
}
|
|
3094
3111
|
|
|
3095
3112
|
export { type AccessTokenResponse, type Address, AddressApi, type ApiResponse, type AppleToken, AuthenticateApi, type Badge, BadgeApi, BaseService, Blob, type Buzzebees, type BzbsErrorResponse, BzbsService, type Campaign, CampaignApi, type CampaignDetail, type CartAccessResponse, CartApi, type CartCountResponse, type Category, CategoryApi, type ChatMessage, type ClientError, type ConfirmOtpResponse, type Consent, ConsentApi, type ConsentVersion, type ConsentVersionValue, CouponApi, type CouponResponse, type CouponResponseData, type CreateStampResponse, type Dashboard, DashboardApi, type Detail, type District, type ErrorResponse, type ExpiringPoints, type FavoriteResponse, type ForgetPasswordResponse, HistoryApi, type LikeForumResponse, LineApi, type LineAuthResponse, type LoginResponse, type Maintenance, type Mission, type Notification, NotificationApi, type OtpResponse, type Picture, type Place, PlaceApi, type PlaceService, type PointLog, PointLogApi, type PointUnit, ProfileApi, type ProfileResponse, type Province, type Purchase, type RedeemResponse, RegistrationApi, type RegistrationResponse, RequestHelpApi, type RequestHelpCode, type RequestOptions, type ResumeResponse, type ServerError, type ServiceResponse, SettingApi, type Stamp, StampApi, type StampCampaign, type StampHistory, type StampProfileResponse, type StatusResponse, type Style, type SubCampaign, type SubCampaignStyle, type SubDistrict, type SuccessResponse, type Trace, type UpdatedPoints, type UseCampaignResponse, type ValidateOtpResponse, type Version, type ZipCode };
|
package/dist/index.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ declare class BaseService {
|
|
|
62
62
|
}): {
|
|
63
63
|
[key: string]: string;
|
|
64
64
|
};
|
|
65
|
+
setBaseUrl(baseUrl: string): this;
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
interface LoginResponse {
|
|
@@ -638,6 +639,19 @@ interface Place {
|
|
|
638
639
|
isPickupBranchOpen?: boolean;
|
|
639
640
|
isFavourite?: boolean;
|
|
640
641
|
fullImageUrl?: string;
|
|
642
|
+
contact_number?: string;
|
|
643
|
+
working_day?: string;
|
|
644
|
+
name_en?: string;
|
|
645
|
+
description_en?: string;
|
|
646
|
+
working_day_en?: string;
|
|
647
|
+
address_en?: string;
|
|
648
|
+
image_url?: string;
|
|
649
|
+
reference_code?: string;
|
|
650
|
+
subdistrict_code?: string;
|
|
651
|
+
district_code?: string;
|
|
652
|
+
province_code?: string;
|
|
653
|
+
pickup_working_day?: string;
|
|
654
|
+
pickup_working_day_en?: string;
|
|
641
655
|
}
|
|
642
656
|
interface PlaceService {
|
|
643
657
|
id?: number;
|
|
@@ -3090,6 +3104,9 @@ declare class BzbsService {
|
|
|
3090
3104
|
settingApi: SettingApi;
|
|
3091
3105
|
blob: Blob;
|
|
3092
3106
|
constructor(client: AxiosInstance, baseUrl: string, baseLineUrl: string | "", baseBlobUrl: string);
|
|
3107
|
+
setBaseUrl(baseUrl: string): this;
|
|
3108
|
+
setBlobUrl(blobUrl: string): this;
|
|
3109
|
+
setLineUrl(lineUrl: string): this;
|
|
3093
3110
|
}
|
|
3094
3111
|
|
|
3095
3112
|
export { type AccessTokenResponse, type Address, AddressApi, type ApiResponse, type AppleToken, AuthenticateApi, type Badge, BadgeApi, BaseService, Blob, type Buzzebees, type BzbsErrorResponse, BzbsService, type Campaign, CampaignApi, type CampaignDetail, type CartAccessResponse, CartApi, type CartCountResponse, type Category, CategoryApi, type ChatMessage, type ClientError, type ConfirmOtpResponse, type Consent, ConsentApi, type ConsentVersion, type ConsentVersionValue, CouponApi, type CouponResponse, type CouponResponseData, type CreateStampResponse, type Dashboard, DashboardApi, type Detail, type District, type ErrorResponse, type ExpiringPoints, type FavoriteResponse, type ForgetPasswordResponse, HistoryApi, type LikeForumResponse, LineApi, type LineAuthResponse, type LoginResponse, type Maintenance, type Mission, type Notification, NotificationApi, type OtpResponse, type Picture, type Place, PlaceApi, type PlaceService, type PointLog, PointLogApi, type PointUnit, ProfileApi, type ProfileResponse, type Province, type Purchase, type RedeemResponse, RegistrationApi, type RegistrationResponse, RequestHelpApi, type RequestHelpCode, type RequestOptions, type ResumeResponse, type ServerError, type ServiceResponse, SettingApi, type Stamp, StampApi, type StampCampaign, type StampHistory, type StampProfileResponse, type StatusResponse, type Style, type SubCampaign, type SubCampaignStyle, type SubDistrict, type SuccessResponse, type Trace, type UpdatedPoints, type UseCampaignResponse, type ValidateOtpResponse, type Version, type ZipCode };
|
package/dist/index.js
CHANGED
|
@@ -195,6 +195,11 @@ var BaseService = class {
|
|
|
195
195
|
"Content-Type": "application/json"
|
|
196
196
|
}, customHeaders);
|
|
197
197
|
}
|
|
198
|
+
setBaseUrl(baseUrl) {
|
|
199
|
+
if (baseUrl.length === 0) throw new Error("Base URL is required.");
|
|
200
|
+
this.baseUrl = baseUrl;
|
|
201
|
+
return this;
|
|
202
|
+
}
|
|
198
203
|
};
|
|
199
204
|
|
|
200
205
|
// src/api/auth/auth-api.ts
|
|
@@ -2770,6 +2775,37 @@ var BzbsService = class {
|
|
|
2770
2775
|
this.settingApi = new SettingApi(this.client, this.baseUrl);
|
|
2771
2776
|
this.blob = new Blob(this.client, this.baseBlobUrl);
|
|
2772
2777
|
}
|
|
2778
|
+
setBaseUrl(baseUrl) {
|
|
2779
|
+
this.baseUrl = baseUrl;
|
|
2780
|
+
this.authApi.setBaseUrl(baseUrl);
|
|
2781
|
+
this.badgeApi.setBaseUrl(baseUrl);
|
|
2782
|
+
this.campaignApi.setBaseUrl(baseUrl);
|
|
2783
|
+
this.cartApi.setBaseUrl(baseUrl);
|
|
2784
|
+
this.categoryApi.setBaseUrl(baseUrl);
|
|
2785
|
+
this.consentApi.setBaseUrl(baseUrl);
|
|
2786
|
+
this.couponApi.setBaseUrl(baseUrl);
|
|
2787
|
+
this.dashboardApi.setBaseUrl(baseUrl);
|
|
2788
|
+
this.historyApi.setBaseUrl(baseUrl);
|
|
2789
|
+
this.notificationApi.setBaseUrl(baseUrl);
|
|
2790
|
+
this.placeApi.setBaseUrl(baseUrl);
|
|
2791
|
+
this.pointLogApi.setBaseUrl(baseUrl);
|
|
2792
|
+
this.profileApi.setBaseUrl(baseUrl);
|
|
2793
|
+
this.registerApi.setBaseUrl(baseUrl);
|
|
2794
|
+
this.addressApi.setBaseUrl(baseUrl);
|
|
2795
|
+
this.stampApi.setBaseUrl(baseUrl);
|
|
2796
|
+
this.forumApi.setBaseUrl(baseUrl);
|
|
2797
|
+
this.settingApi.setBaseUrl(baseUrl);
|
|
2798
|
+
return this;
|
|
2799
|
+
}
|
|
2800
|
+
setBlobUrl(blobUrl) {
|
|
2801
|
+
this.blob.setBaseUrl(blobUrl);
|
|
2802
|
+
return this;
|
|
2803
|
+
}
|
|
2804
|
+
setLineUrl(lineUrl) {
|
|
2805
|
+
var _a;
|
|
2806
|
+
(_a = this.lineApi) == null ? void 0 : _a.setBaseUrl(lineUrl);
|
|
2807
|
+
return this;
|
|
2808
|
+
}
|
|
2773
2809
|
};
|
|
2774
2810
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2775
2811
|
0 && (module.exports = {
|