@bzbs/react-api-client 0.1.0 → 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
@@ -840,6 +840,269 @@ interface CartAccessResponse {
840
840
  };
841
841
  }
842
842
 
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;
917
+ }
918
+
919
+ interface ZipCode {
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
+ }
938
+
939
+ interface Stamp {
940
+ amount?: number;
941
+ agencyId?: number;
942
+ cardId?: string;
943
+ issuer?: string;
944
+ stampId?: string;
945
+ imageUrl?: string;
946
+ owner?: string;
947
+ timestamp?: number;
948
+ active?: boolean;
949
+ name?: string;
950
+ description?: string;
951
+ stampImageUrl?: string;
952
+ maxQuantity?: number;
953
+ currentQuantity?: number;
954
+ pricePerStamp?: number;
955
+ codeExpireIn?: number;
956
+ stampRawScore?: number;
957
+ stampScore?: number;
958
+ stampSpecialScore?: number;
959
+ }
960
+
961
+ interface StampProfileResponse {
962
+ id?: string;
963
+ agencyId?: number;
964
+ cardId?: string;
965
+ name?: string;
966
+ description?: string;
967
+ imageUrl?: string;
968
+ backgroundUrl?: string;
969
+ maxQuantity?: number;
970
+ currentQuantity?: number;
971
+ expireDate?: number;
972
+ pricePerStamp?: number;
973
+ otherPromotions?: any;
974
+ otherStamps?: Stamp[];
975
+ campaigns?: StampCampaign[];
976
+ history?: StampHistory[];
977
+ }
978
+ interface StampCampaign {
979
+ id?: number;
980
+ imgUrl?: string;
981
+ qty?: number;
982
+ }
983
+ interface StampHistory {
984
+ amount?: number;
985
+ terminalId?: string;
986
+ branchId?: string;
987
+ branchName?: string;
988
+ brandId?: string;
989
+ customerId?: string;
990
+ customerName?: any;
991
+ campaignId?: any;
992
+ description?: string;
993
+ issuer?: string;
994
+ issuerName?: string;
995
+ imageUrl?: string;
996
+ merchant?: string;
997
+ merchantName?: string;
998
+ status?: number;
999
+ timestamp?: number;
1000
+ type?: string;
1001
+ stampCount?: number;
1002
+ createDate?: number;
1003
+ name?: string;
1004
+ backgroundUrl?: string;
1005
+ }
1006
+
1007
+ interface CreateStampResponse {
1008
+ success?: boolean;
1009
+ balance?: number;
1010
+ cardId?: string;
1011
+ userId?: string;
1012
+ imei?: string;
1013
+ app_id?: string;
1014
+ issuer?: string;
1015
+ stampId?: string;
1016
+ sponsorId?: number;
1017
+ }
1018
+
1019
+ interface RequestHelpCode {
1020
+ code?: string;
1021
+ }
1022
+
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
+ 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
+ }
1080
+
1081
+ interface LikeForumResponse {
1082
+ result?: boolean;
1083
+ }
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
+
843
1106
  declare class AuthenticateApi extends BaseService {
844
1107
  constructor(client: AxiosInstance, baseUrl: string);
845
1108
  /**
@@ -1914,102 +2177,6 @@ declare class RegistrationApi extends BaseService {
1914
2177
  }, requestOptions?: RequestOptions): Promise<ServiceResponse<RegistrationResponse>>;
1915
2178
  }
1916
2179
 
1917
- interface ZipCode {
1918
- cityId?: string;
1919
- subDistrictCode?: string;
1920
- subDistrictName?: string;
1921
- subDistrictNameEN?: string;
1922
- zipCode?: string;
1923
- districtCode?: string;
1924
- districtName?: string;
1925
- districtNameEN?: string;
1926
- provinceCode?: string;
1927
- provinceName?: string;
1928
- provinceNameEN?: string;
1929
- active?: boolean;
1930
- createDate?: number;
1931
- createBy?: string;
1932
- modifyDate?: number;
1933
- modifyBy?: string;
1934
- zone?: string;
1935
- }
1936
-
1937
- interface Address {
1938
- active?: boolean;
1939
- isDefault?: boolean;
1940
- isDefaultTax?: boolean;
1941
- createDate?: number;
1942
- modifyDate?: number;
1943
- addressName?: string;
1944
- title?: string;
1945
- firstName?: string;
1946
- lastName?: string;
1947
- name?: string;
1948
- companyName?: string;
1949
- contactNumber?: string;
1950
- homeContactNumber?: string;
1951
- alternateContactNumber?: string;
1952
- email?: string;
1953
- idCard?: any;
1954
- type?: any;
1955
- address?: any;
1956
- village?: string;
1957
- building?: any;
1958
- number?: any;
1959
- moo?: any;
1960
- room?: any;
1961
- floor?: any;
1962
- soi?: string;
1963
- city?: string;
1964
- road?: string;
1965
- subDistrictCode?: number;
1966
- subDistrictName?: string;
1967
- districtCode?: number;
1968
- districtName?: string;
1969
- provinceCode?: number;
1970
- provinceName?: string;
1971
- countryId?: number;
1972
- countryCode?: number;
1973
- countryName?: string;
1974
- zipcode?: any;
1975
- remark?: any;
1976
- landmark?: any;
1977
- latitude?: any;
1978
- longitude?: any;
1979
- isTax?: boolean;
1980
- taxName?: string;
1981
- taxId?: any;
1982
- taxAddressName?: string;
1983
- taxNumber?: string;
1984
- taxSoi?: any;
1985
- taxSubDistrictCode?: number;
1986
- taxSubDistrictName?: string;
1987
- taxDistrictCode?: number;
1988
- taxDistrictName?: string;
1989
- taxProvinceCode?: number;
1990
- taxProvinceName?: string;
1991
- taxZipcode?: any;
1992
- taxDetail?: any;
1993
- personType?: string;
1994
- branchName?: string;
1995
- blockNumber?: any;
1996
- house?: any;
1997
- street?: string;
1998
- ward?: any;
1999
- greaterArea?: any;
2000
- state?: any;
2001
- customInfo1?: any;
2002
- customInfo2?: any;
2003
- customInfo3?: any;
2004
- customInfo4?: any;
2005
- customInfo5?: any;
2006
- extra?: any;
2007
- partitionKey?: string;
2008
- rowKey?: string;
2009
- timestamp?: number;
2010
- eTag?: string;
2011
- }
2012
-
2013
2180
  declare class AddressApi extends BaseService {
2014
2181
  constructor(client: AxiosInstance, baseUrl: string);
2015
2182
  /**
@@ -2028,7 +2195,7 @@ declare class AddressApi extends BaseService {
2028
2195
  * @param requestOptions - Optional request options
2029
2196
  * @returns A promise that resolves to a service response containing an array of ZipCode objects
2030
2197
  */
2031
- provinces(requestOptions?: RequestOptions): Promise<ServiceResponse<ZipCode[]>>;
2198
+ provinces(requestOptions?: RequestOptions): Promise<ServiceResponse<Province[]>>;
2032
2199
  /**
2033
2200
  * Get list of Thailand district
2034
2201
  *
@@ -2038,7 +2205,7 @@ declare class AddressApi extends BaseService {
2038
2205
  */
2039
2206
  districts(params: {
2040
2207
  provinceCode?: string;
2041
- }, requestOptions?: RequestOptions): Promise<ServiceResponse<ZipCode[]>>;
2208
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<District[]>>;
2042
2209
  /**
2043
2210
  * Get list of Thailand sub district
2044
2211
  *
@@ -2050,7 +2217,7 @@ declare class AddressApi extends BaseService {
2050
2217
  subDistricts(params: {
2051
2218
  provinceCode?: string;
2052
2219
  districtCode?: string;
2053
- }, requestOptions?: RequestOptions): Promise<ServiceResponse<ZipCode[]>>;
2220
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<SubDistrict[]>>;
2054
2221
  /**
2055
2222
  * Get user addresses
2056
2223
  *
@@ -2147,86 +2314,6 @@ declare class AddressApi extends BaseService {
2147
2314
  }, requestOptions?: RequestOptions): Promise<ServiceResponse<any>>;
2148
2315
  }
2149
2316
 
2150
- interface CreateStampResponse {
2151
- success?: boolean;
2152
- balance?: number;
2153
- cardId?: string;
2154
- userId?: string;
2155
- imei?: string;
2156
- appId?: string;
2157
- issuer?: string;
2158
- stampId?: string;
2159
- sponsorId?: number;
2160
- }
2161
-
2162
- interface Stamp {
2163
- amount?: number;
2164
- agencyId?: number;
2165
- cardId?: string;
2166
- issuer?: string;
2167
- stampId?: string;
2168
- imageUrl?: string;
2169
- owner?: string;
2170
- timestamp?: number;
2171
- active?: boolean;
2172
- name?: string;
2173
- description?: string;
2174
- stampImageUrl?: string;
2175
- maxQuantity?: number;
2176
- currentQuantity?: number;
2177
- pricePerStamp?: number;
2178
- codeExpireIn?: number;
2179
- stampRawScore?: number;
2180
- stampScore?: number;
2181
- stampSpecialScore?: number;
2182
- }
2183
-
2184
- interface StampProfileResponse {
2185
- id?: string;
2186
- agencyId?: number;
2187
- cardId?: string;
2188
- name?: string;
2189
- description?: string;
2190
- imageUrl?: string;
2191
- backgroundUrl?: string;
2192
- maxQuantity?: number;
2193
- currentQuantity?: number;
2194
- expireDate?: number;
2195
- pricePerStamp?: number;
2196
- otherPromotions?: any;
2197
- otherStamps?: Stamp[];
2198
- campaigns?: StampCampaign[];
2199
- history?: StampHistory[];
2200
- }
2201
- interface StampCampaign {
2202
- id?: number;
2203
- imgUrl?: string;
2204
- qty?: number;
2205
- }
2206
- interface StampHistory {
2207
- amount?: number;
2208
- terminalId?: string;
2209
- branchId?: string;
2210
- branchName?: string;
2211
- brandId?: string;
2212
- customerId?: string;
2213
- customerName?: any;
2214
- campaignId?: any;
2215
- description?: string;
2216
- issuer?: string;
2217
- issuerName?: string;
2218
- imageUrl?: string;
2219
- merchant?: string;
2220
- merchantName?: string;
2221
- status?: number;
2222
- timestamp?: number;
2223
- type?: string;
2224
- stampCount?: number;
2225
- createDate?: number;
2226
- name?: string;
2227
- backgroundUrl?: string;
2228
- }
2229
-
2230
2317
  declare class StampApi extends BaseService {
2231
2318
  constructor(client: AxiosInstance, baseUrl: string);
2232
2319
  /**
@@ -2263,72 +2350,6 @@ declare class StampApi extends BaseService {
2263
2350
  }, requestOptions?: RequestOptions): Promise<ServiceResponse<StampProfileResponse>>;
2264
2351
  }
2265
2352
 
2266
- interface RequestHelpCode {
2267
- code?: string;
2268
- }
2269
-
2270
- interface ChatMessage {
2271
- userId?: string;
2272
- name?: string;
2273
- message?: string;
2274
- placeId?: any;
2275
- placeName?: any;
2276
- imageUrl?: any;
2277
- rating?: any;
2278
- postId?: any;
2279
- width?: number;
2280
- height?: number;
2281
- photoId?: any;
2282
- type?: string;
2283
- agencyId?: any;
2284
- agencyName?: any;
2285
- likes?: number;
2286
- isLiked?: boolean;
2287
- isApproved?: boolean;
2288
- isReply?: boolean;
2289
- sticker?: any;
2290
- commentCount?: number;
2291
- latestCommentDate?: any;
2292
- latestCommentBy?: any;
2293
- latestAdminCommentDate?: any;
2294
- latestAdminGroupId?: any;
2295
- latestAdminCommentBy?: any;
2296
- subject?: any;
2297
- isRead?: boolean;
2298
- isHidden?: boolean;
2299
- readCount?: number;
2300
- unReadCount?: number;
2301
- hiddenCount?: number;
2302
- createdTime?: number;
2303
- buzzKey?: string;
2304
- appId?: string;
2305
- os?: any;
2306
- locationAgencyId?: any;
2307
- campaignId?: any;
2308
- lineChannelId?: any;
2309
- lineChatRoomId?: any;
2310
- lineUserId?: any;
2311
- lineProfileDisplayName?: any;
2312
- lineProfilePictureUrl?: any;
2313
- lineChatRepliedRoomAdminGroupId?: any;
2314
- lineChatRepliedRoomAdminId?: any;
2315
- lineChatRepliedRoomPartitionKey?: any;
2316
- lineChatRepliedRoomRowKey?: any;
2317
- lineChatMessagePartitionKey?: any;
2318
- lineChatMessageRowKey?: any;
2319
- lineChatMessageEventTimestamp?: any;
2320
- lineChatMessageUtcDate?: any;
2321
- lineChatMessageJson?: any;
2322
- partitionKey?: string;
2323
- rowKey?: string;
2324
- timestamp?: number;
2325
- eTag?: string;
2326
- }
2327
-
2328
- interface LikeForumResponse {
2329
- result?: boolean;
2330
- }
2331
-
2332
2353
  declare class ForumApi extends BaseService {
2333
2354
  constructor(client: AxiosInstance, baseUrl: string);
2334
2355
  /**
@@ -2445,4 +2466,4 @@ declare class BzbsService {
2445
2466
  constructor(client: AxiosInstance, baseUrl: string, baseLineUrl: string);
2446
2467
  }
2447
2468
 
2448
- export { type Badge, BaseService, type Buzzebees, type BzbsErrorResponse, BzbsService, type Campaign, type CampaignDetail, type CartAccessResponse, type CartCountResponse, type Category, type ClientError, type ConfirmOtpResponse, type Consent, type CouponResponse, type CouponResponseData, type Dashboard, type Detail, type ErrorResponse, type ExpiringPoints, type FavoriteResponse, type ForgetPasswordResponse, 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 RequestOptions, type ResumeResponse, type ServerError, type ServiceResponse, type StatusResponse, type Style, type SubCampaign, type SubCampaignStyle, type SuccessResponse, type Trace, type UpdatedPoints, type UseCampaignResponse, type ValidateOtpResponse, type Version };
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 };