@bzbs/react-api-client 0.0.22 → 0.1.1

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.ts CHANGED
@@ -840,6 +840,248 @@ 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
+ 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;
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
+ appId?: 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
+ 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;
1079
+ }
1080
+
1081
+ interface LikeForumResponse {
1082
+ result?: boolean;
1083
+ }
1084
+
843
1085
  declare class AuthenticateApi extends BaseService {
844
1086
  constructor(client: AxiosInstance, baseUrl: string);
845
1087
  /**
@@ -1914,6 +2156,270 @@ declare class RegistrationApi extends BaseService {
1914
2156
  }, requestOptions?: RequestOptions): Promise<ServiceResponse<RegistrationResponse>>;
1915
2157
  }
1916
2158
 
2159
+ declare class AddressApi extends BaseService {
2160
+ constructor(client: AxiosInstance, baseUrl: string);
2161
+ /**
2162
+ * Get information of zip code
2163
+ *
2164
+ * @param zipCode - Zip code
2165
+ * @param requestOptions - Optional request options
2166
+ * @returns A promise that resolves to a service response containing an array of ZipCode objects
2167
+ */
2168
+ zipCodes(params: {
2169
+ zipCode?: string;
2170
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<ZipCode[]>>;
2171
+ /**
2172
+ * Get list of Thailand province
2173
+ *
2174
+ * @param requestOptions - Optional request options
2175
+ * @returns A promise that resolves to a service response containing an array of ZipCode objects
2176
+ */
2177
+ provinces(requestOptions?: RequestOptions): Promise<ServiceResponse<ZipCode[]>>;
2178
+ /**
2179
+ * Get list of Thailand district
2180
+ *
2181
+ * @param provinceCode - Province code
2182
+ * @param requestOptions - Optional request options
2183
+ * @returns A promise that resolves to a service response containing an array of ZipCode objects
2184
+ */
2185
+ districts(params: {
2186
+ provinceCode?: string;
2187
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<ZipCode[]>>;
2188
+ /**
2189
+ * Get list of Thailand sub district
2190
+ *
2191
+ * @param provinceCode - Province code
2192
+ * @param districtCode - District code
2193
+ * @param requestOptions - Optional request options
2194
+ * @returns A promise that resolves to a service response containing an array of ZipCode objects
2195
+ */
2196
+ subDistricts(params: {
2197
+ provinceCode?: string;
2198
+ districtCode?: string;
2199
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<ZipCode[]>>;
2200
+ /**
2201
+ * Get user addresses
2202
+ *
2203
+ * @param requestOptions - Optional request options
2204
+ * @returns A promise that resolves to a service response containing an array of Address objects
2205
+ */
2206
+ userAddresses(requestOptions?: RequestOptions): Promise<ServiceResponse<Address[]>>;
2207
+ /**
2208
+ * Update user address
2209
+ *
2210
+ * @param params - The parameters for updating the address
2211
+ * @param requestOptions - Optional request options
2212
+ * @returns A promise that resolves to a service response containing the updated Address object
2213
+ */
2214
+ updateAddress(params: {
2215
+ addressName?: string;
2216
+ firstName?: string;
2217
+ lastName?: string;
2218
+ address?: string;
2219
+ zipcode?: string;
2220
+ provinceCode?: string;
2221
+ provinceName?: string;
2222
+ districtCode?: string;
2223
+ districtName?: string;
2224
+ subDistrictCode?: string;
2225
+ subDistrictName?: string;
2226
+ contactNumber?: string;
2227
+ countryCode?: string;
2228
+ countryName?: string;
2229
+ isDefault?: boolean;
2230
+ rowKey?: string;
2231
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<Address>>;
2232
+ /**
2233
+ * Delete user address
2234
+ *
2235
+ * @param rowKey - Row key
2236
+ * @param requestOptions - Optional request options
2237
+ * @returns A promise that resolves to a service response containing the result of the deletion
2238
+ */
2239
+ deleteAddress(params: {
2240
+ rowKey?: string;
2241
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<any>>;
2242
+ /**
2243
+ * Get user tax addresses
2244
+ *
2245
+ * @param requestOptions - Optional request options
2246
+ * @returns A promise that resolves to a service response containing an array of Address objects
2247
+ */
2248
+ userTaxAddresses(requestOptions?: RequestOptions): Promise<ServiceResponse<Address[]>>;
2249
+ /**
2250
+ * Update user tax address
2251
+ *
2252
+ * @param params - The parameters for updating the tax address
2253
+ * @param requestOptions - Optional request options
2254
+ * @returns A promise that resolves to a service response containing the updated Address object
2255
+ */
2256
+ updateTaxAddress(params: {
2257
+ rowKey?: string;
2258
+ taxId?: string;
2259
+ isDefault?: boolean;
2260
+ personType?: string;
2261
+ title?: string;
2262
+ firstName?: string;
2263
+ lastName?: string;
2264
+ email?: string;
2265
+ contactNumber?: string;
2266
+ companyName?: string;
2267
+ address?: string;
2268
+ addressName?: string;
2269
+ floor?: string;
2270
+ building?: string;
2271
+ moo?: string;
2272
+ road?: string;
2273
+ room?: string;
2274
+ soi?: string;
2275
+ village?: string;
2276
+ districtCode?: string;
2277
+ districtName?: string;
2278
+ provinceCode?: string;
2279
+ provinceName?: string;
2280
+ subDistrictCode?: string;
2281
+ subDistrictName?: string;
2282
+ zipCode?: string;
2283
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<Address>>;
2284
+ /**
2285
+ * Delete user tax address
2286
+ *
2287
+ * @param rowKey - Row key
2288
+ * @param requestOptions - Optional request options
2289
+ * @returns A promise that resolves to a service response containing the result of the deletion
2290
+ */
2291
+ deleteTaxAddress(params: {
2292
+ rowKey?: string;
2293
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<any>>;
2294
+ }
2295
+
2296
+ declare class StampApi extends BaseService {
2297
+ constructor(client: AxiosInstance, baseUrl: string);
2298
+ /**
2299
+ * Create stamp
2300
+ *
2301
+ * @param params - The parameters for creating the stamp
2302
+ * @param requestOptions - Optional request options
2303
+ * @returns A promise that resolves to a service response containing the created stamp response
2304
+ */
2305
+ createStamp(params: {
2306
+ imei?: string;
2307
+ issuer?: string;
2308
+ os?: string;
2309
+ platform?: string;
2310
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<CreateStampResponse>>;
2311
+ /**
2312
+ * Get list of stamps
2313
+ *
2314
+ * @param requestOptions - Optional request options
2315
+ * @returns A promise that resolves to a service response containing an array of stamps
2316
+ */
2317
+ stamps(requestOptions?: RequestOptions): Promise<ServiceResponse<Stamp[]>>;
2318
+ /**
2319
+ * Get stamp info
2320
+ *
2321
+ * @param id - Stamp id
2322
+ * @param cardId - Card Id
2323
+ * @param requestOptions - Optional request options
2324
+ * @returns A promise that resolves to a service response containing the stamp profile response
2325
+ */
2326
+ stampProfile(params: {
2327
+ id: string;
2328
+ cardId: string;
2329
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<StampProfileResponse>>;
2330
+ }
2331
+
2332
+ declare class ForumApi extends BaseService {
2333
+ constructor(client: AxiosInstance, baseUrl: string);
2334
+ /**
2335
+ * Get help code
2336
+ *
2337
+ * @param params - The parameters for getting the help code
2338
+ * @param requestOptions - Optional request options
2339
+ * @returns A promise that resolves to a service response containing the help code
2340
+ */
2341
+ helpCode(params: {
2342
+ os: string;
2343
+ platform: string;
2344
+ clientVersion: string;
2345
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<RequestHelpCode>>;
2346
+ /**
2347
+ * Get request help list
2348
+ *
2349
+ * @param params - The parameters for getting the request help list
2350
+ * @param requestOptions - Optional request options
2351
+ * @returns A promise that resolves to a service response containing a list of chat messages
2352
+ */
2353
+ requestHelpList(params: {
2354
+ requestId: string;
2355
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<ChatMessage[]>>;
2356
+ /**
2357
+ * Get request help detail
2358
+ *
2359
+ * @param params - The parameters for getting the request help detail
2360
+ * @param requestOptions - Optional request options
2361
+ * @returns A promise that resolves to a service response containing a chat message
2362
+ */
2363
+ requestDetail(params: {
2364
+ buzzKey: string;
2365
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<ChatMessage>>;
2366
+ /**
2367
+ * Create request help
2368
+ *
2369
+ * @param params - The parameters for creating the request help
2370
+ * @param requestOptions - Optional request options
2371
+ * @returns A promise that resolves to a service response containing a chat message
2372
+ */
2373
+ postRequestHelp(params: {
2374
+ requestId: string;
2375
+ message: string;
2376
+ image?: File;
2377
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<ChatMessage>>;
2378
+ /**
2379
+ * Get comment list
2380
+ *
2381
+ * @param params - The parameters for getting the comment list
2382
+ * @param requestOptions - Optional request options
2383
+ * @returns A promise that resolves to a service response containing a list of chat messages
2384
+ */
2385
+ comments(params: {
2386
+ buzzKey: string;
2387
+ lastRowKey?: string;
2388
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<ChatMessage[]>>;
2389
+ /**
2390
+ * Create comment
2391
+ *
2392
+ * @param params - The parameters for creating the comment
2393
+ * @param requestOptions - Optional request options
2394
+ * @returns A promise that resolves to a service response containing a chat message
2395
+ */
2396
+ postComment(params: {
2397
+ buzzKey: string;
2398
+ message: string;
2399
+ image?: File;
2400
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<ChatMessage>>;
2401
+ /**
2402
+ * Like/Unlike forum
2403
+ *
2404
+ * @param params - The parameters for liking the forum
2405
+ * @param requestOptions - Optional request options
2406
+ * @returns A promise that resolves to a service response containing the like forum response
2407
+ */
2408
+ likeForum(params: {
2409
+ buzzKey: string;
2410
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<LikeForumResponse>>;
2411
+ /**
2412
+ * Unlike forum
2413
+ *
2414
+ * @param params - The parameters for unliking the forum
2415
+ * @param requestOptions - Optional request options
2416
+ * @returns A promise that resolves to a service response containing the like forum response
2417
+ */
2418
+ unlikeForum(params: {
2419
+ buzzKey: string;
2420
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<LikeForumResponse>>;
2421
+ }
2422
+
1917
2423
  declare class BzbsService {
1918
2424
  client: AxiosInstance;
1919
2425
  baseUrl: string;
@@ -1933,7 +2439,10 @@ declare class BzbsService {
1933
2439
  pointLogApi: PointLogApi;
1934
2440
  profileApi: ProfileApi;
1935
2441
  registerApi: RegistrationApi;
2442
+ addressApi: AddressApi;
2443
+ stampApi: StampApi;
2444
+ forumApi: ForumApi;
1936
2445
  constructor(client: AxiosInstance, baseUrl: string, baseLineUrl: string);
1937
2446
  }
1938
2447
 
1939
- 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 };
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 };