@bzbs/react-api-client 0.1.1 → 0.1.2
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 +171 -150
- package/dist/index.d.ts +171 -150
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -841,99 +841,99 @@ interface CartAccessResponse {
|
|
|
841
841
|
}
|
|
842
842
|
|
|
843
843
|
interface Address {
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
844
|
+
Active?: boolean;
|
|
845
|
+
IsDefault?: boolean;
|
|
846
|
+
IsDefaultTax?: boolean;
|
|
847
|
+
CreateDate?: number;
|
|
848
|
+
ModifyDate?: number;
|
|
849
|
+
AddressName?: string;
|
|
850
|
+
Title?: string;
|
|
851
|
+
FirstName?: string;
|
|
852
|
+
LastName?: string;
|
|
853
|
+
Name?: string;
|
|
854
|
+
CompanyName?: string;
|
|
855
|
+
ContactNumber?: string;
|
|
856
|
+
HomeContactNumber?: string;
|
|
857
|
+
AlternateContactNumber?: string;
|
|
858
|
+
Email?: string;
|
|
859
|
+
IdCard?: any;
|
|
860
|
+
Type?: any;
|
|
861
|
+
Address?: any;
|
|
862
|
+
Village?: string;
|
|
863
|
+
Building?: any;
|
|
864
|
+
Number?: any;
|
|
865
|
+
Moo?: any;
|
|
866
|
+
Room?: any;
|
|
867
|
+
Floor?: any;
|
|
868
|
+
Soi?: string;
|
|
869
|
+
City?: string;
|
|
870
|
+
Road?: string;
|
|
871
|
+
SubDistrictCode?: number;
|
|
872
|
+
SubDistrictName?: string;
|
|
873
|
+
DistrictCode?: number;
|
|
874
|
+
DistrictName?: string;
|
|
875
|
+
ProvinceCode?: number;
|
|
876
|
+
ProvinceName?: string;
|
|
877
|
+
CountryId?: number;
|
|
878
|
+
CountryCode?: number;
|
|
879
|
+
CountryName?: string;
|
|
880
|
+
Zipcode?: any;
|
|
881
|
+
Remark?: any;
|
|
882
|
+
Landmark?: any;
|
|
883
|
+
Latitude?: any;
|
|
884
|
+
Longitude?: any;
|
|
885
|
+
IsTax?: boolean;
|
|
886
|
+
TaxName?: string;
|
|
887
|
+
TaxId?: any;
|
|
888
|
+
TaxAddressName?: string;
|
|
889
|
+
TaxNumber?: string;
|
|
890
|
+
TaxSoi?: any;
|
|
891
|
+
TaxSubDistrictCode?: number;
|
|
892
|
+
TaxSubDistrictName?: string;
|
|
893
|
+
TaxDistrictCode?: number;
|
|
894
|
+
TaxDistrictName?: string;
|
|
895
|
+
TaxProvinceCode?: number;
|
|
896
|
+
TaxProvinceName?: string;
|
|
897
|
+
TaxZipcode?: any;
|
|
898
|
+
TaxDetail?: any;
|
|
899
|
+
PersonType?: string;
|
|
900
|
+
BranchName?: string;
|
|
901
|
+
BlockNumber?: any;
|
|
902
|
+
House?: any;
|
|
903
|
+
Street?: string;
|
|
904
|
+
Ward?: any;
|
|
905
|
+
GreaterArea?: any;
|
|
906
|
+
State?: any;
|
|
907
|
+
CustomInfo1?: any;
|
|
908
|
+
CustomInfo2?: any;
|
|
909
|
+
CustomInfo3?: any;
|
|
910
|
+
CustomInfo4?: any;
|
|
911
|
+
CustomInfo5?: any;
|
|
912
|
+
Extra?: any;
|
|
913
|
+
PartitionKey?: string;
|
|
914
|
+
RowKey?: string;
|
|
915
|
+
Timestamp?: number;
|
|
916
|
+
ETag?: string;
|
|
917
917
|
}
|
|
918
918
|
|
|
919
919
|
interface ZipCode {
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
920
|
+
CityId?: string;
|
|
921
|
+
Active?: boolean;
|
|
922
|
+
CreateBy?: string;
|
|
923
|
+
CreateDate?: number;
|
|
924
|
+
DistrictCode?: string;
|
|
925
|
+
DistrictName?: string;
|
|
926
|
+
DistrictName_EN?: string;
|
|
927
|
+
ModifyBy?: string;
|
|
928
|
+
ModifyDate?: number;
|
|
929
|
+
ProvinceCode?: string;
|
|
930
|
+
ProvinceName?: string;
|
|
931
|
+
ProvinceName_EN?: string;
|
|
932
|
+
SubDistrictCode?: string;
|
|
933
|
+
SubDistrictName?: string;
|
|
934
|
+
SubDistrictName_EN?: string;
|
|
935
|
+
ZipCode?: string;
|
|
936
|
+
Zone?: string;
|
|
937
937
|
}
|
|
938
938
|
|
|
939
939
|
interface Stamp {
|
|
@@ -1010,7 +1010,7 @@ interface CreateStampResponse {
|
|
|
1010
1010
|
cardId?: string;
|
|
1011
1011
|
userId?: string;
|
|
1012
1012
|
imei?: string;
|
|
1013
|
-
|
|
1013
|
+
app_id?: string;
|
|
1014
1014
|
issuer?: string;
|
|
1015
1015
|
stampId?: string;
|
|
1016
1016
|
sponsorId?: number;
|
|
@@ -1021,67 +1021,88 @@ interface RequestHelpCode {
|
|
|
1021
1021
|
}
|
|
1022
1022
|
|
|
1023
1023
|
interface ChatMessage {
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1024
|
+
UserId?: string;
|
|
1025
|
+
Name?: string;
|
|
1026
|
+
Message?: string;
|
|
1027
|
+
PlaceId?: any;
|
|
1028
|
+
PlaceName?: any;
|
|
1029
|
+
ImageUrl?: any;
|
|
1030
|
+
Rating?: any;
|
|
1031
|
+
PostId?: any;
|
|
1032
|
+
Width?: number;
|
|
1033
|
+
Height?: number;
|
|
1034
|
+
PhotoId?: any;
|
|
1035
|
+
Type?: string;
|
|
1036
|
+
AgencyId?: any;
|
|
1037
|
+
AgencyName?: any;
|
|
1038
|
+
Likes?: number;
|
|
1039
|
+
IsLiked?: boolean;
|
|
1040
|
+
IsApproved?: boolean;
|
|
1041
|
+
IsReply?: boolean;
|
|
1042
|
+
Sticker?: any;
|
|
1043
|
+
CommentCount?: number;
|
|
1044
|
+
LatestCommentDate?: any;
|
|
1045
|
+
LatestCommentBy?: any;
|
|
1046
|
+
LatestAdminCommentDate?: any;
|
|
1047
|
+
LatestAdminGroupID?: any;
|
|
1048
|
+
LatestAdminCommentBy?: any;
|
|
1049
|
+
Subject?: any;
|
|
1050
|
+
IsRead?: boolean;
|
|
1051
|
+
IsHidden?: boolean;
|
|
1052
|
+
ReadCount?: number;
|
|
1053
|
+
UnReadCount?: number;
|
|
1054
|
+
HiddenCount?: number;
|
|
1055
|
+
CreatedTime?: number;
|
|
1056
|
+
BuzzKey?: string;
|
|
1057
|
+
AppId?: string;
|
|
1058
|
+
Os?: any;
|
|
1059
|
+
LocationAgencyId?: any;
|
|
1060
|
+
CampaignId?: any;
|
|
1061
|
+
LineChannelID?: any;
|
|
1062
|
+
LineChatRoomID?: any;
|
|
1063
|
+
LineUserID?: any;
|
|
1064
|
+
Line_profile_displayName?: any;
|
|
1065
|
+
Line_profile_pictureUrl?: any;
|
|
1066
|
+
LineChatRepliedRoom_AdminGroupID?: any;
|
|
1067
|
+
LineChatRepliedRoom_AdminID?: any;
|
|
1068
|
+
LineChatRepliedRoom_PartitionKey?: any;
|
|
1069
|
+
LineChatRepliedRoom_RowKey?: any;
|
|
1070
|
+
LineChatMessage_PartitionKey?: any;
|
|
1071
|
+
LineChatMessage_RowKey?: any;
|
|
1072
|
+
LineChatMessage_EventTimestamp?: any;
|
|
1073
|
+
LineChatMessage_UtcDate?: any;
|
|
1074
|
+
LineChatMessage_Json?: any;
|
|
1075
|
+
PartitionKey?: string;
|
|
1076
|
+
RowKey?: string;
|
|
1077
|
+
Timestamp?: number;
|
|
1078
|
+
ETag?: string;
|
|
1079
1079
|
}
|
|
1080
1080
|
|
|
1081
1081
|
interface LikeForumResponse {
|
|
1082
1082
|
result?: boolean;
|
|
1083
1083
|
}
|
|
1084
1084
|
|
|
1085
|
+
interface Province {
|
|
1086
|
+
province_code?: string;
|
|
1087
|
+
province_name?: string;
|
|
1088
|
+
province_name_eng?: string;
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
interface District {
|
|
1092
|
+
district_code?: string;
|
|
1093
|
+
district_name?: string;
|
|
1094
|
+
district_name_EN?: string;
|
|
1095
|
+
province_code?: string;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
interface SubDistrict {
|
|
1099
|
+
subdistrict_code?: string;
|
|
1100
|
+
subdistrict_name?: string;
|
|
1101
|
+
subdistrict_name_en?: string;
|
|
1102
|
+
city?: string;
|
|
1103
|
+
zip_code?: string;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1085
1106
|
declare class AuthenticateApi extends BaseService {
|
|
1086
1107
|
constructor(client: AxiosInstance, baseUrl: string);
|
|
1087
1108
|
/**
|
|
@@ -2174,7 +2195,7 @@ declare class AddressApi extends BaseService {
|
|
|
2174
2195
|
* @param requestOptions - Optional request options
|
|
2175
2196
|
* @returns A promise that resolves to a service response containing an array of ZipCode objects
|
|
2176
2197
|
*/
|
|
2177
|
-
provinces(requestOptions?: RequestOptions): Promise<ServiceResponse<
|
|
2198
|
+
provinces(requestOptions?: RequestOptions): Promise<ServiceResponse<Province[]>>;
|
|
2178
2199
|
/**
|
|
2179
2200
|
* Get list of Thailand district
|
|
2180
2201
|
*
|
|
@@ -2184,7 +2205,7 @@ declare class AddressApi extends BaseService {
|
|
|
2184
2205
|
*/
|
|
2185
2206
|
districts(params: {
|
|
2186
2207
|
provinceCode?: string;
|
|
2187
|
-
}, requestOptions?: RequestOptions): Promise<ServiceResponse<
|
|
2208
|
+
}, requestOptions?: RequestOptions): Promise<ServiceResponse<District[]>>;
|
|
2188
2209
|
/**
|
|
2189
2210
|
* Get list of Thailand sub district
|
|
2190
2211
|
*
|
|
@@ -2196,7 +2217,7 @@ declare class AddressApi extends BaseService {
|
|
|
2196
2217
|
subDistricts(params: {
|
|
2197
2218
|
provinceCode?: string;
|
|
2198
2219
|
districtCode?: string;
|
|
2199
|
-
}, requestOptions?: RequestOptions): Promise<ServiceResponse<
|
|
2220
|
+
}, requestOptions?: RequestOptions): Promise<ServiceResponse<SubDistrict[]>>;
|
|
2200
2221
|
/**
|
|
2201
2222
|
* Get user addresses
|
|
2202
2223
|
*
|
|
@@ -2445,4 +2466,4 @@ declare class BzbsService {
|
|
|
2445
2466
|
constructor(client: AxiosInstance, baseUrl: string, baseLineUrl: string);
|
|
2446
2467
|
}
|
|
2447
2468
|
|
|
2448
|
-
export { type Address, type Badge, BaseService, type Buzzebees, type BzbsErrorResponse, BzbsService, type Campaign, type CampaignDetail, type CartAccessResponse, type CartCountResponse, type Category, type ChatMessage, type ClientError, type ConfirmOtpResponse, type Consent, type CouponResponse, type CouponResponseData, type CreateStampResponse, type Dashboard, type Detail, type ErrorResponse, type ExpiringPoints, type FavoriteResponse, type ForgetPasswordResponse, type LikeForumResponse, type LineAuthResponse, type LoginResponse, type Mission, type Notification, type OtpResponse, type Picture, type Place, type PlaceService, type PointLog, type ProfileResponse, type Purchase, type RedeemResponse, type RegistrationResponse, type RequestHelpCode, type RequestOptions, type ResumeResponse, type ServerError, type ServiceResponse, type Stamp, type StampCampaign, type StampHistory, type StampProfileResponse, type StatusResponse, type Style, type SubCampaign, type SubCampaignStyle, type SuccessResponse, type Trace, type UpdatedPoints, type UseCampaignResponse, type ValidateOtpResponse, type Version, type ZipCode };
|
|
2469
|
+
export { type Address, type Badge, BaseService, type Buzzebees, type BzbsErrorResponse, BzbsService, type Campaign, type CampaignDetail, type CartAccessResponse, type CartCountResponse, type Category, type ChatMessage, type ClientError, type ConfirmOtpResponse, type Consent, type CouponResponse, type CouponResponseData, type CreateStampResponse, type Dashboard, type Detail, type District, type ErrorResponse, type ExpiringPoints, type FavoriteResponse, type ForgetPasswordResponse, type LikeForumResponse, type LineAuthResponse, type LoginResponse, type Mission, type Notification, type OtpResponse, type Picture, type Place, type PlaceService, type PointLog, type ProfileResponse, type Province, type Purchase, type RedeemResponse, type RegistrationResponse, type RequestHelpCode, type RequestOptions, type ResumeResponse, type ServerError, type ServiceResponse, type Stamp, 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 };
|