@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 CHANGED
@@ -841,99 +841,99 @@ interface CartAccessResponse {
841
841
  }
842
842
 
843
843
  interface Address {
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;
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
- cityId?: string;
921
- subDistrictCode?: string;
922
- subDistrictName?: string;
923
- subDistrictNameEN?: string;
924
- zipCode?: string;
925
- districtCode?: string;
926
- districtName?: string;
927
- districtNameEN?: string;
928
- provinceCode?: string;
929
- provinceName?: string;
930
- provinceNameEN?: string;
931
- active?: boolean;
932
- createDate?: number;
933
- createBy?: string;
934
- modifyDate?: number;
935
- modifyBy?: string;
936
- zone?: string;
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
- appId?: string;
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
- 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
- lineProfileDisplayName?: any;
1065
- lineProfilePictureUrl?: any;
1066
- lineChatRepliedRoomAdminGroupId?: any;
1067
- lineChatRepliedRoomAdminId?: any;
1068
- lineChatRepliedRoomPartitionKey?: any;
1069
- lineChatRepliedRoomRowKey?: any;
1070
- lineChatMessagePartitionKey?: any;
1071
- lineChatMessageRowKey?: any;
1072
- lineChatMessageEventTimestamp?: any;
1073
- lineChatMessageUtcDate?: any;
1074
- lineChatMessageJson?: any;
1075
- partitionKey?: string;
1076
- rowKey?: string;
1077
- timestamp?: number;
1078
- eTag?: string;
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<ZipCode[]>>;
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<ZipCode[]>>;
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<ZipCode[]>>;
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 };