@bzbs/react-api-client 0.0.3 → 0.0.5

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
@@ -88,10 +88,11 @@ interface Detail {
88
88
  ewallet_token: string;
89
89
  }
90
90
 
91
- declare class AuthenticateApi extends BaseService {
92
- constructor(client: AxiosInstance, baseUrl: string);
93
- deviceLogin(appId: string, requestOptions?: RequestOptions): Promise<ServiceResponse<LoginResponse>>;
94
- usernamePasswordLogin(username: string, password: string, appId: string, requestOptions?: RequestOptions): Promise<ServiceResponse<LoginResponse>>;
91
+ interface ForgetPasswordResponse {
92
+ status?: string;
93
+ refcode?: string;
94
+ expiredate?: number;
95
+ expireinseconds?: number;
95
96
  }
96
97
 
97
98
  interface Badge {
@@ -162,77 +163,6 @@ interface Mission {
162
163
  isComplete?: boolean;
163
164
  }
164
165
 
165
- declare class BadgeApi extends BaseService {
166
- constructor(client: AxiosInstance, baseUrl: string);
167
- getBadge(params: {
168
- badgeId?: string;
169
- option?: {
170
- [key: string]: any;
171
- };
172
- }, requestOptions?: RequestOptions): Promise<ServiceResponse<Badge[]>>;
173
- }
174
-
175
- interface Campaign {
176
- ID?: number;
177
- ReferenceCode?: string;
178
- Name?: string;
179
- AgencyId?: number;
180
- AgencyName?: string;
181
- StartDate?: number;
182
- IsConditionPass?: boolean;
183
- DayProceed?: number;
184
- DayRemain?: number;
185
- Qty?: number;
186
- RedeemMostPerPerson?: number;
187
- RedeemCount?: number;
188
- CurrentDate?: number;
189
- NextRedeemDate?: number;
190
- TracesJson?: any;
191
- Rating?: any;
192
- UserLevel?: number;
193
- UserVisibility?: number;
194
- PointPerUnit?: number;
195
- PricePerUnit?: number;
196
- FeePerUnit?: number;
197
- Discount?: number;
198
- ModifyDate?: number;
199
- Type?: number;
200
- Caption?: string;
201
- RedeemMedia?: number;
202
- IsSponsor?: boolean;
203
- FullImageUrl?: string;
204
- ExpireDate?: number;
205
- Extra?: string;
206
- EriginalPrice?: number;
207
- IsCheckUserCampaignPermission?: boolean;
208
- PointType?: string;
209
- CrossAppCampaignId?: number;
210
- HasCrossApp?: boolean;
211
- CategoryId?: number;
212
- CategoryName?: string;
213
- CategorySequence?: number;
214
- ParentCategoryId?: number;
215
- MasterCampaignId?: number;
216
- RankVote?: any;
217
- Vote?: number;
218
- Like?: number;
219
- OtherPointPerUnit?: number;
220
- Website?: string;
221
- ItemCountSold?: number;
222
- RedeemMostPerCard?: number;
223
- RedeemCountPerCard?: any;
224
- NextRedeemDatePerCard?: number;
225
- PriceSold?: number;
226
- LocationAgencyId?: number;
227
- SubscriptionPeriod?: number;
228
- SubscriptionTime?: number;
229
- PartialPoints?: any;
230
- SubCampaigns?: any;
231
- MinSubCampaignPricePerUnit?: any;
232
- MaxSubCampaignPricePerUnit?: any;
233
- CustomFacebookMessage?: string;
234
- }
235
-
236
166
  interface CampaignDetail {
237
167
  AgencyName?: string;
238
168
  ID?: number;
@@ -362,9 +292,106 @@ interface Picture {
362
292
  ETag?: string;
363
293
  }
364
294
 
365
- interface FavoriteResponse {
366
- PeopleFavourite?: number;
367
- Favourite?: number;
295
+ interface Campaign {
296
+ ID?: number;
297
+ ReferenceCode?: string;
298
+ Name?: string;
299
+ AgencyId?: number;
300
+ AgencyName?: string;
301
+ StartDate?: number;
302
+ IsConditionPass?: boolean;
303
+ DayProceed?: number;
304
+ DayRemain?: number;
305
+ Qty?: number;
306
+ RedeemMostPerPerson?: number;
307
+ RedeemCount?: number;
308
+ CurrentDate?: number;
309
+ NextRedeemDate?: number;
310
+ TracesJson?: any;
311
+ Rating?: any;
312
+ UserLevel?: number;
313
+ UserVisibility?: number;
314
+ PointPerUnit?: number;
315
+ PricePerUnit?: number;
316
+ FeePerUnit?: number;
317
+ Discount?: number;
318
+ ModifyDate?: number;
319
+ Type?: number;
320
+ Caption?: string;
321
+ RedeemMedia?: number;
322
+ IsSponsor?: boolean;
323
+ FullImageUrl?: string;
324
+ ExpireDate?: number;
325
+ Extra?: string;
326
+ EriginalPrice?: number;
327
+ IsCheckUserCampaignPermission?: boolean;
328
+ PointType?: string;
329
+ CrossAppCampaignId?: number;
330
+ HasCrossApp?: boolean;
331
+ CategoryId?: number;
332
+ CategoryName?: string;
333
+ CategorySequence?: number;
334
+ ParentCategoryId?: number;
335
+ MasterCampaignId?: number;
336
+ RankVote?: any;
337
+ Vote?: number;
338
+ Like?: number;
339
+ OtherPointPerUnit?: number;
340
+ Website?: string;
341
+ ItemCountSold?: number;
342
+ RedeemMostPerCard?: number;
343
+ RedeemCountPerCard?: any;
344
+ NextRedeemDatePerCard?: number;
345
+ PriceSold?: number;
346
+ LocationAgencyId?: number;
347
+ SubscriptionPeriod?: number;
348
+ SubscriptionTime?: number;
349
+ PartialPoints?: any;
350
+ SubCampaigns?: any;
351
+ MinSubCampaignPricePerUnit?: any;
352
+ MaxSubCampaignPricePerUnit?: any;
353
+ CustomFacebookMessage?: string;
354
+ }
355
+
356
+ interface CartCountResponse {
357
+ cart_count?: number;
358
+ }
359
+
360
+ interface Category {
361
+ mode?: string;
362
+ listConfig?: string;
363
+ name?: string;
364
+ id?: number;
365
+ detail?: string;
366
+ count?: number;
367
+ imageUrl?: string;
368
+ subCats?: Category[];
369
+ nameEn?: string;
370
+ nameTh?: string;
371
+ }
372
+
373
+ interface Consent {
374
+ termAndCondition?: number;
375
+ dataPrivacy?: number;
376
+ marketingOption?: number;
377
+ consentAge?: number;
378
+ lineMarketing?: number;
379
+ notificationMarketing?: number;
380
+ smsMarketing?: number;
381
+ emailMarketing?: number;
382
+ analyticsBuzzebeesCookies?: number;
383
+ analyticsFirebaseCookies?: number;
384
+ analyticsGoogleCookies?: number;
385
+ analyticsMetaCookies?: number;
386
+ analyticsOtherCookies?: number;
387
+ functionalCookies?: number;
388
+ marketingCookies?: number;
389
+ necessaryCookies?: number;
390
+ }
391
+
392
+ interface ConfirmOtpResponse {
393
+ status?: string;
394
+ token?: string;
368
395
  }
369
396
 
370
397
  interface RedeemResponse {
@@ -418,178 +445,223 @@ interface Trace {
418
445
  LineMessageSetting?: string;
419
446
  }
420
447
 
421
- declare class CampaignApi extends BaseService {
422
- constructor(client: AxiosInstance, baseUrl: string);
423
- campaign(params: {
424
- config: string;
425
- cat?: string;
426
- byConfig?: boolean;
427
- skip?: number;
428
- top?: number;
429
- deviceLocale?: number;
430
- locale?: number;
431
- keyword?: string;
432
- startDate?: string;
433
- sponsorId?: string;
434
- maxPoints?: string;
435
- minPoints?: string;
436
- sortBy?: string;
437
- center?: string;
438
- hashTags?: string;
439
- locationAgencyId?: string;
440
- option?: {
441
- [key: string]: any;
442
- };
443
- }, requestOptions?: RequestOptions): Promise<ServiceResponse<Campaign[]>>;
444
- favoriteCampaigns(params: {
445
- skip?: number;
446
- top?: number;
447
- locale?: number;
448
- option?: {
449
- [key: string]: any;
450
- };
451
- }, requestOptions?: RequestOptions): Promise<ServiceResponse<Campaign[]>>;
452
- campaignDetails(param: {
453
- id: string;
454
- deviceLocale?: number;
455
- }, requestOptions?: RequestOptions): Promise<ServiceResponse<CampaignDetail>>;
456
- addToFavorite(id: string, requestOptions?: RequestOptions): Promise<ServiceResponse<FavoriteResponse>>;
457
- removeFromFavorite(id: string, requestOptions?: RequestOptions): Promise<ServiceResponse<FavoriteResponse>>;
458
- redeem(params: {
459
- id: string;
460
- addressKey?: string;
461
- contactNumber?: string;
462
- }, requestOptions?: RequestOptions): Promise<ServiceResponse<RedeemResponse>>;
463
- bulkRedeem(id: string, quantity: number, requestOptions?: RequestOptions): Promise<ServiceResponse<RedeemResponse>>;
448
+ interface CouponResponse {
449
+ success?: boolean;
450
+ data?: CouponResponseData;
451
+ }
452
+ interface CouponResponseData {
453
+ code?: {};
454
+ errorCount?: number;
455
+ banUnit?: any;
456
+ buzzebees?: Buzzebees;
457
+ today?: number;
464
458
  }
465
459
 
466
- interface CartCountResponse {
467
- cart_count?: number;
460
+ interface Dashboard {
461
+ type?: string;
462
+ size?: string;
463
+ imgtype?: string;
464
+ walletVerifySuccessType?: string;
465
+ menu?: string;
466
+ catHeaderTh?: string;
467
+ catHeaderEn?: string;
468
+ headerThai?: string;
469
+ headerEn?: string;
470
+ id?: any;
471
+ imageUrl?: string;
472
+ url?: string;
473
+ cat?: string;
474
+ line1?: string;
475
+ line2?: string;
476
+ line3?: string;
477
+ line4?: string;
478
+ gaLabel?: string;
479
+ startDate?: number;
480
+ endDate?: number;
481
+ subCampaignDetails?: Dashboard[];
468
482
  }
469
483
 
470
- declare class CartApi extends BaseService {
471
- constructor(client: AxiosInstance, baseUrl: string);
472
- addCart(params: {
473
- id: string;
474
- mode?: string;
475
- qty?: number;
476
- sideCampaignJson?: string;
477
- }, requestOptions?: RequestOptions): Promise<ServiceResponse<CartCountResponse>>;
478
- cartCount(requestOptions?: RequestOptions): Promise<ServiceResponse<CartCountResponse>>;
479
- }
480
-
481
- interface Category {
482
- mode?: string;
483
- listConfig?: string;
484
- name?: string;
485
- id?: number;
486
- detail?: string;
487
- count?: number;
488
- imageUrl?: string;
489
- subCats?: Category[];
490
- nameEn?: string;
491
- nameTh?: string;
484
+ interface ExpiringPoints {
485
+ expiring_points?: UpdatedPoints[];
492
486
  }
493
487
 
494
- declare class CategoryApi extends BaseService {
495
- constructor(client: AxiosInstance, baseUrl: string);
496
- categories(params: {
497
- byConfig: boolean;
498
- config: string;
499
- }, requestOptions?: RequestOptions): Promise<ServiceResponse<Category[]>>;
488
+ interface FavoriteResponse {
489
+ PeopleFavourite?: number;
490
+ Favourite?: number;
500
491
  }
501
492
 
502
- interface Consent {
503
- termAndCondition?: number;
504
- dataPrivacy?: number;
505
- marketingOption?: number;
506
- consentAge?: number;
507
- lineMarketing?: number;
508
- notificationMarketing?: number;
509
- smsMarketing?: number;
510
- emailMarketing?: number;
511
- analyticsBuzzebeesCookies?: number;
512
- analyticsFirebaseCookies?: number;
513
- analyticsGoogleCookies?: number;
514
- analyticsMetaCookies?: number;
515
- analyticsOtherCookies?: number;
516
- functionalCookies?: number;
517
- marketingCookies?: number;
518
- necessaryCookies?: number;
493
+ interface Notification$1 {
494
+ ObjectType: string;
495
+ ObjectCategoryId: string;
496
+ ObjectCampaignId: string;
497
+ IsRead: string;
498
+ CreateTime: string;
499
+ ExpireDate: string;
500
+ ImagePath: string;
501
+ Object: string;
502
+ PartitionKey: string;
503
+ RowKey: string;
504
+ Timestamp: string;
505
+ ETag: string;
519
506
  }
520
507
 
521
- declare class ConsentApi extends BaseService {
522
- constructor(client: AxiosInstance, baseUrl: string);
523
- getConsent(params: {
524
- termsAndConditions?: string;
525
- dataPrivacy?: string;
526
- marketingOption?: string;
527
- email?: string;
528
- sms?: string;
529
- notification?: string;
530
- line?: string;
531
- analyticsBuzzebeesCookies?: string;
532
- analyticsFirebaseCookies?: string;
533
- analyticsGoogleCookies?: string;
534
- analyticsMetaCookies?: string;
535
- analyticsOtherCookies?: string;
536
- functionalCookies?: string;
537
- marketingCookies?: string;
538
- necessaryCookies?: string;
539
- }, requestOptions?: RequestOptions): Promise<ServiceResponse<Consent>>;
540
- unconsent(requestOptions?: RequestOptions): Promise<ServiceResponse<any>>;
508
+ interface LineAuthResponse {
509
+ access_token: string;
510
+ token_type: string;
511
+ refresh_token: string;
512
+ expires_in: number;
513
+ scope: string;
514
+ id_token: string;
541
515
  }
542
516
 
543
- interface CouponResponse {
544
- success?: boolean;
545
- data?: CouponResponseData;
546
- }
547
- interface CouponResponseData {
548
- code?: {};
549
- errorCount?: number;
550
- banUnit?: any;
551
- buzzebees?: Buzzebees;
552
- today?: number;
517
+ interface Place {
518
+ name?: string;
519
+ id?: string;
520
+ location?: Location;
521
+ isBuzzeBeesPlace?: boolean;
522
+ rank?: number;
523
+ distance?: number;
524
+ buzz?: number;
525
+ like?: number;
526
+ description?: string;
527
+ services?: PlaceService[];
528
+ contactNumber?: string;
529
+ workingDay?: string;
530
+ nameEn?: string;
531
+ descriptionEn?: string;
532
+ workingDayEn?: string;
533
+ address?: string;
534
+ addressEn?: string;
535
+ imageUrl?: string;
536
+ region?: string;
537
+ regionEn?: string;
538
+ lineChannelID?: any;
539
+ category?: any;
540
+ website?: any;
541
+ referenceCode?: any;
542
+ subdistrictCode?: any;
543
+ districtCode?: any;
544
+ provinceCode?: any;
545
+ expert?: any;
546
+ isBranchOpen?: boolean;
547
+ isPickupBranchOpen?: boolean;
548
+ isFavourite?: boolean;
549
+ fullImageUrl?: string;
553
550
  }
554
-
555
- declare class CouponApi extends BaseService {
556
- constructor(client: AxiosInstance, baseUrl: string);
557
- processCodes(params: {
558
- codes: string;
559
- }, requestOptions?: RequestOptions): Promise<ServiceResponse<CouponResponse>>;
551
+ interface PlaceService {
552
+ id?: number;
553
+ name?: string;
560
554
  }
561
555
 
562
- interface Dashboard {
563
- type?: string;
564
- size?: string;
565
- imgtype?: string;
566
- walletVerifySuccessType?: string;
567
- menu?: string;
568
- catHeaderTh?: string;
569
- catHeaderEn?: string;
570
- headerThai?: string;
571
- headerEn?: string;
572
- id?: any;
573
- imageUrl?: string;
574
- url?: string;
575
- cat?: string;
576
- line1?: string;
577
- line2?: string;
578
- line3?: string;
579
- line4?: string;
580
- gaLabel?: string;
581
- startDate?: number;
582
- endDate?: number;
583
- subCampaignDetails?: Dashboard[];
556
+ interface PointLog {
557
+ RowKey: string;
558
+ UserId: string;
559
+ Info: string;
560
+ Detail: string;
561
+ Points: number;
562
+ Type: string;
563
+ Caller: string;
564
+ Pair: string;
565
+ Timestamp: number;
566
+ Message: string;
567
+ CampaignId: string;
568
+ CampaignName: string;
569
+ CreateDate: number;
570
+ Input: string;
584
571
  }
585
572
 
586
- declare class DashboardApi extends BaseService {
587
- constructor(client: AxiosInstance, baseUrl: string);
588
- mainDashboard(appName: string, locale: number, requestOptions?: RequestOptions): Promise<ServiceResponse<Dashboard[]>>;
589
- subDashboard(params: {
590
- dashboardName: string;
591
- locale: number;
592
- }, requestOptions?: RequestOptions): Promise<ServiceResponse<Dashboard[]>>;
573
+ interface ProfileResponse {
574
+ UserLevel: any;
575
+ UserId?: string;
576
+ Name?: string;
577
+ FirstName?: string;
578
+ LastName?: string;
579
+ Title?: string;
580
+ Gender?: string;
581
+ BirthDate?: number;
582
+ Age?: number;
583
+ Address?: string;
584
+ SubDistrictCode?: number;
585
+ SubDistrictName?: string;
586
+ DistrictCode?: number;
587
+ DistrictName?: string;
588
+ ProvinceCode?: number;
589
+ ProvinceName?: string;
590
+ Zipcode?: string;
591
+ Contact_Number?: string;
592
+ Email?: string;
593
+ NotificationEnable?: boolean;
594
+ PostToFacebook?: boolean;
595
+ Locale?: number;
596
+ ModifyDate?: number;
597
+ CreditCardHolder?: any;
598
+ CreditCardNo?: any;
599
+ CreditCardType?: any;
600
+ CreditCardExpireMonth?: any;
601
+ CreditCardExpireYear?: any;
602
+ ExtensionJsonProperty?: any;
603
+ NationalIdCard?: string;
604
+ Passport?: string;
605
+ MembershipId?: number;
606
+ MembershipUserName?: string;
607
+ LoginType?: string;
608
+ VerifiedEmail?: boolean;
609
+ DisplayName?: string;
610
+ PlayboyCampaignId?: string;
611
+ UserType?: string;
612
+ UserTypeName?: string;
613
+ OtherUserId?: string;
614
+ CategoryConfig?: string;
615
+ ShippingFirstName?: string;
616
+ ShippingLastName?: string;
617
+ ShippingContactNumber?: string;
618
+ ShippingAddress?: string;
619
+ ShippingSubDistrictCode?: number;
620
+ ShippingSubDistrictName?: string;
621
+ ShippingDistrictCode?: number;
622
+ ShippingDistrictName?: string;
623
+ ShippingProvinceCode?: number;
624
+ ShippingProvinceName?: string;
625
+ ShippingZipcode?: string;
626
+ PhonePurchase?: number;
627
+ Income?: string;
628
+ Interests?: string;
629
+ Region?: string;
630
+ Refercode?: string;
631
+ MaritalStatus?: string;
632
+ Nationality?: string;
633
+ Religion?: string;
634
+ HighestEducation?: string;
635
+ Occupation?: string;
636
+ DriverLicenseNumber?: string;
637
+ Latitude?: number;
638
+ Longitude?: number;
639
+ JoinDate?: number;
640
+ Village?: string;
641
+ Building?: string;
642
+ Number?: string;
643
+ Moo?: string;
644
+ Room?: string;
645
+ Floor?: string;
646
+ Soi?: string;
647
+ City?: string;
648
+ Road?: string;
649
+ Landmark?: string;
650
+ Location?: string;
651
+ FullAddress?: string;
652
+ CountryCode?: number;
653
+ CountryName?: string;
654
+ HomeContactNumber?: string;
655
+ AlternateContactNumber?: string;
656
+ Remark?: string;
657
+ TermAndCondition?: number;
658
+ DataPrivacy?: number;
659
+ EmailMarketing?: number;
660
+ SMSMarketing?: number;
661
+ NotificationMarketing?: number;
662
+ LineMarketing?: number;
663
+ updated_points?: UpdatedPoints;
664
+ Token?: string;
593
665
  }
594
666
 
595
667
  interface Purchase {
@@ -663,17 +735,354 @@ interface Purchase {
663
735
  ArrangedDate?: number;
664
736
  }
665
737
 
666
- interface UseCampaignResponse {
667
- campaignId?: number;
668
- itemNumber?: number;
669
- serial?: string;
670
- privilegeMessage?: string;
671
- usedDate?: number;
672
- currentDate?: number;
673
- privilegeMessageFormat?: string;
674
- redeemCount?: number;
675
- useCount?: number;
676
- expireIn?: number;
738
+ interface RegistrationResponse {
739
+ status?: string;
740
+ username?: string;
741
+ userId?: string;
742
+ membershipId?: number;
743
+ appId?: string;
744
+ firstname?: string;
745
+ lastname?: string;
746
+ address?: string;
747
+ email?: string;
748
+ clientVersion?: string;
749
+ carrier?: string;
750
+ macAddress?: string;
751
+ platform?: string;
752
+ os?: string;
753
+ gender?: string;
754
+ birthdate?: number;
755
+ buzzebees?: Buzzebees;
756
+ }
757
+
758
+ interface StatusResponse {
759
+ status?: string;
760
+ }
761
+
762
+ interface UseCampaignResponse {
763
+ campaignId?: number;
764
+ itemNumber?: number;
765
+ serial?: string;
766
+ privilegeMessage?: string;
767
+ usedDate?: number;
768
+ currentDate?: number;
769
+ privilegeMessageFormat?: string;
770
+ redeemCount?: number;
771
+ useCount?: number;
772
+ expireIn?: number;
773
+ }
774
+
775
+ interface OtpResponse {
776
+ refcode?: string;
777
+ channel?: string;
778
+ expiredate?: number;
779
+ expireinseconds?: number;
780
+ }
781
+
782
+ interface ValidateOtpResponse {
783
+ validatecode?: string;
784
+ }
785
+
786
+ interface Version {
787
+ allowUse?: boolean;
788
+ hasNewVersion?: boolean;
789
+ welcomePageTimes?: number;
790
+ termAndCondition?: number;
791
+ dataPrivacy?: number;
792
+ }
793
+
794
+ interface ResumeResponse {
795
+ userId?: string;
796
+ appId?: string;
797
+ isFbUser?: boolean;
798
+ locale?: number;
799
+ userLevel?: number;
800
+ userLevelDetail?: string;
801
+ sponsorId?: number;
802
+ canRedeem?: boolean;
803
+ uuid?: string;
804
+ cart_count?: number;
805
+ topics?: string[];
806
+ channel?: string;
807
+ version?: Version;
808
+ userFlags?: any[];
809
+ token?: string;
810
+ jwt?: string;
811
+ TermAndCondition?: number;
812
+ DataPrivacy?: number;
813
+ MarketingOption?: number;
814
+ platform?: string;
815
+ authenticated?: boolean;
816
+ }
817
+
818
+ declare class AuthenticateApi extends BaseService {
819
+ constructor(client: AxiosInstance, baseUrl: string);
820
+ /**
821
+ * Performs a device login using the provided device uuid.
822
+ * @param appId - Your application id.
823
+ * @param uuid - The unique device identifier.
824
+ * @param requestOptions - Optional request options.
825
+ * @returns A promise that resolves to a ServiceResponse containing the login response.
826
+ */
827
+ deviceLogin(appId: string, uuid: string, requestOptions?: RequestOptions): Promise<ServiceResponse<LoginResponse>>;
828
+ /**
829
+ * Performs a Facebook login using the provided Facebook access token.
830
+ * @param accessToken - The access token obtained from Facebook.
831
+ * @param appId - Your application id.
832
+ * @param uuid - The unique device identifier.
833
+ * @param requestOptions - Optional request options.
834
+ * @returns A promise that resolves to a ServiceResponse containing the login response.
835
+ */
836
+ facebookLogin(accessToken: string, appId: string, uuid: string, requestOptions?: RequestOptions): Promise<ServiceResponse<LoginResponse>>;
837
+ /**
838
+ * Performs a Google login using the provided id token, app id, and uuid.
839
+ * @param idToken - The Google id token.
840
+ * @param appId - Your application id.
841
+ * @param uuid - The unique device identifier.
842
+ * @param requestOptions - Optional request options.
843
+ * @returns A promise that resolves to a ServiceResponse containing the login response.
844
+ */
845
+ googleLogin(idToken: string, appId: string, uuid: string, requestOptions?: RequestOptions): Promise<ServiceResponse<LoginResponse>>;
846
+ /**
847
+ * Performs a Line login using the provided id token, Line access token and authorization code.
848
+ * @param idToken - The Line id token.
849
+ * @param lineAccessToken - The Line access token.
850
+ * @param authorizationCode - The authorization code.
851
+ * @param appId - Your application id.
852
+ * @param uuid - The unique device identifier.
853
+ * @param requestOptions - Optional request options.
854
+ * @returns A promise that resolves to a ServiceResponse containing the login response.
855
+ */
856
+ lineLogin(idToken: string, lineAccessToken: string, authorizationCode: string, appId: string, uuid: string, requestOptions?: RequestOptions): Promise<ServiceResponse<LoginResponse>>;
857
+ /**
858
+ * Performs an Apple login using the provided id token and Apple refresh token.
859
+ * @param idToken - The Apple id token.
860
+ * @param refreshToken - The Apple access token.
861
+ * @param appId - Your application id.
862
+ * @param uuid - The unique device identifier.
863
+ * @param requestOptions - Optional request options.
864
+ * @returns A promise that resolves to a ServiceResponse containing the login response.
865
+ */
866
+ appleLogin(idToken: string, refreshToken: string, appId: string, uuid: string, requestOptions?: RequestOptions): Promise<ServiceResponse<LoginResponse>>;
867
+ /**
868
+ * Authenticates a user using a username and password.
869
+ *
870
+ * @param username - The username of the user.
871
+ * @param password - The password of the user.
872
+ * @param uuid - The unique device identifier.
873
+ * @param appId - Your application id.
874
+ * @param requestOptions - Optional request options.
875
+ * @returns A promise that resolves to a ServiceResponse containing the login response.
876
+ */
877
+ usernamePasswordLogin(username: string, password: string, uuid: string, appId: string, requestOptions?: RequestOptions): Promise<ServiceResponse<LoginResponse>>;
878
+ /**
879
+ * Logs out the user with the specified UUID.
880
+ * @param uuid - The unique device identifier.
881
+ * @param requestOptions - Optional request options.
882
+ * @returns A promise that resolves to a ServiceResponse containing the logout result.
883
+ */
884
+ logout(uuid: string, requestOptions?: RequestOptions): Promise<ServiceResponse<any>>;
885
+ /**
886
+ * Sends a forget password request to the server.
887
+ *
888
+ * @param contact - The contact information for the user (email or contact number).
889
+ * @param type - The type of contact information provided ('email' or 'contact_number').
890
+ * @param requestOptions - Optional request options.
891
+ * @returns A promise that resolves to a ServiceResponse containing the forget password response.
892
+ */
893
+ forgetPassword(contact: string, type: 'email' | 'contact_number', requestOptions?: RequestOptions): Promise<ServiceResponse<ForgetPasswordResponse>>;
894
+ /**
895
+ * Resets the password for a user.
896
+ *
897
+ * @param contact - The contact information for the user (email or contact number).
898
+ * @param refCode - The reference code for password reset.
899
+ * @param newPassword - The new password to set.
900
+ * @param otp - (Optional) The one-time password.
901
+ * @param requestOptions - (Optional) Additional options for the request.
902
+ * @returns A promise that resolves to a ServiceResponse containing the status response.
903
+ */
904
+ resetPassword(contact: string, refCode: string, newPassword: string, otp?: string, requestOptions?: RequestOptions): Promise<ServiceResponse<StatusResponse>>;
905
+ /**
906
+ * Send an OTP (One-Time Password) to the user for authentication.
907
+ *
908
+ * @param uuid - The unique device identifier.
909
+ * @param appId - Your application id.
910
+ * @param contactNumber - The contact number of the user.
911
+ * @param channel - (Optional) The channel through which the OTP should be sent.
912
+ * @param requestOptions - (Optional) Additional options for the request.
913
+ * @returns A promise that resolves to a ServiceResponse containing the OTP response.
914
+ */
915
+ getOtp(uuid: string, appId: string, contactNumber: string, channel?: string, requestOptions?: RequestOptions): Promise<ServiceResponse<OtpResponse>>;
916
+ /**
917
+ * Confirms the OTP (One-Time Password) for authentication.
918
+ *
919
+ * @param otp - The OTP to be confirmed.
920
+ * @param refCode - The reference code for the OTP.
921
+ * @param contactNumber - The contact number associated with the OTP.
922
+ * @param requestOptions - Optional request options.
923
+ * @returns A promise that resolves to a ServiceResponse containing the confirmation response.
924
+ */
925
+ confirmOtp(otp: string, refCode: string, contactNumber: string, requestOptions?: RequestOptions): Promise<ServiceResponse<ConfirmOtpResponse>>;
926
+ /**
927
+ * Validates the OTP (One-Time Password) for a given app and contact number.
928
+ * @param appId - Your application id.
929
+ * @param otp - The OTP to validate.
930
+ * @param refCode - The reference code.
931
+ * @param contactNumber - The contact number.
932
+ * @param use - A boolean indicating whether the OTP should be used.
933
+ * @param channel - (Optional) The channel to use for OTP validation.
934
+ * @param requestOptions - (Optional) Additional options for the request.
935
+ * @returns A promise that resolves to a ServiceResponse containing the validation result.
936
+ */
937
+ validateOtp(appId: string, otp: string, refCode: string, contactNumber: string, use: boolean, channel?: string, requestOptions?: RequestOptions): Promise<ServiceResponse<ValidateOtpResponse>>;
938
+ /**
939
+ * Retrieve a new token and update the current device token.
940
+ *
941
+ * @param uuid - The unique device identifier.
942
+ * @param appId - Your application id.
943
+ * @param clientVersion - The version of the client.
944
+ * @param deviceToken - The token of the device.
945
+ * @param requestOptions - The options for the request.
946
+ * @returns A promise that resolves to a ServiceResponse containing the resume response.
947
+ */
948
+ resume(uuid: string, appId: string, clientVersion?: string, deviceToken?: string, requestOptions?: RequestOptions): Promise<ServiceResponse<ResumeResponse>>;
949
+ /**
950
+ * Update the device token for push notification.
951
+ *
952
+ * @param uuid - The unique device identifier.
953
+ * @param appId - Your application id.
954
+ * @param clientVersion - The version of the client.
955
+ * @param deviceToken - The token of the device.
956
+ * @param requestOptions - The options for the request.
957
+ * @returns A promise that resolves to a ServiceResponse containing the resume response.
958
+ */
959
+ updateDevice(uuid: string, appId: string, clientVersion?: string, deviceToken?: string, requestOptions?: RequestOptions): Promise<ServiceResponse<ResumeResponse>>;
960
+ /**
961
+ * Retrieves the version information for the current app version.
962
+ * @param clientVersion - The version of the client (App Prefix + Your application version , Ex. ios_buzzebeesdemo1.0.1).
963
+ * @param requestOptions - Optional request options.
964
+ * @returns A promise that resolves to a ServiceResponse containing the version information.
965
+ */
966
+ version(clientVersion: string, requestOptions?: RequestOptions): Promise<ServiceResponse<Version>>;
967
+ /**
968
+ * Retrieves the raw version information for the current app version.
969
+ * @param clientVersion - The version of the client (App Prefix + Your application version , Ex. ios_buzzebeesdemo1.0.1).
970
+ * @param requestOptions - Optional request options.
971
+ * @returns A promise that resolves to a ServiceResponse containing the raw version information.
972
+ */
973
+ versionRaw(clientVersion: string, requestOptions?: RequestOptions): Promise<ServiceResponse<any>>;
974
+ }
975
+
976
+ declare class BadgeApi extends BaseService {
977
+ constructor(client: AxiosInstance, baseUrl: string);
978
+ getBadge(params: {
979
+ badgeId?: string;
980
+ option?: {
981
+ [key: string]: any;
982
+ };
983
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<Badge[]>>;
984
+ }
985
+
986
+ declare class CampaignApi extends BaseService {
987
+ constructor(client: AxiosInstance, baseUrl: string);
988
+ campaign(params: {
989
+ config: string;
990
+ cat?: string;
991
+ byConfig?: boolean;
992
+ skip?: number;
993
+ top?: number;
994
+ deviceLocale?: number;
995
+ locale?: number;
996
+ keyword?: string;
997
+ startDate?: string;
998
+ sponsorId?: string;
999
+ maxPoints?: string;
1000
+ minPoints?: string;
1001
+ sortBy?: string;
1002
+ center?: string;
1003
+ hashTags?: string;
1004
+ locationAgencyId?: string;
1005
+ option?: {
1006
+ [key: string]: any;
1007
+ };
1008
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<Campaign[]>>;
1009
+ favoriteCampaigns(params: {
1010
+ skip?: number;
1011
+ top?: number;
1012
+ locale?: number;
1013
+ option?: {
1014
+ [key: string]: any;
1015
+ };
1016
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<Campaign[]>>;
1017
+ campaignDetails(param: {
1018
+ id: string;
1019
+ deviceLocale?: number;
1020
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<CampaignDetail>>;
1021
+ addToFavorite(id: string, requestOptions?: RequestOptions): Promise<ServiceResponse<FavoriteResponse>>;
1022
+ removeFromFavorite(id: string, requestOptions?: RequestOptions): Promise<ServiceResponse<FavoriteResponse>>;
1023
+ redeem(params: {
1024
+ id: string;
1025
+ addressKey?: string;
1026
+ contactNumber?: string;
1027
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<RedeemResponse>>;
1028
+ bulkRedeem(id: string, quantity: number, requestOptions?: RequestOptions): Promise<ServiceResponse<RedeemResponse>>;
1029
+ }
1030
+
1031
+ declare class CartApi extends BaseService {
1032
+ constructor(client: AxiosInstance, baseUrl: string);
1033
+ addCart(params: {
1034
+ id: string;
1035
+ mode?: string;
1036
+ qty?: number;
1037
+ sideCampaignJson?: string;
1038
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<CartCountResponse>>;
1039
+ cartCount(requestOptions?: RequestOptions): Promise<ServiceResponse<CartCountResponse>>;
1040
+ }
1041
+
1042
+ declare class CategoryApi extends BaseService {
1043
+ constructor(client: AxiosInstance, baseUrl: string);
1044
+ categories(params: {
1045
+ byConfig: boolean;
1046
+ config: string;
1047
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<Category[]>>;
1048
+ }
1049
+
1050
+ declare class ConsentApi extends BaseService {
1051
+ constructor(client: AxiosInstance, baseUrl: string);
1052
+ getConsent(params: {
1053
+ termsAndConditions?: string;
1054
+ dataPrivacy?: string;
1055
+ marketingOption?: string;
1056
+ email?: string;
1057
+ sms?: string;
1058
+ notification?: string;
1059
+ line?: string;
1060
+ analyticsBuzzebeesCookies?: string;
1061
+ analyticsFirebaseCookies?: string;
1062
+ analyticsGoogleCookies?: string;
1063
+ analyticsMetaCookies?: string;
1064
+ analyticsOtherCookies?: string;
1065
+ functionalCookies?: string;
1066
+ marketingCookies?: string;
1067
+ necessaryCookies?: string;
1068
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<Consent>>;
1069
+ unconsent(requestOptions?: RequestOptions): Promise<ServiceResponse<any>>;
1070
+ }
1071
+
1072
+ declare class CouponApi extends BaseService {
1073
+ constructor(client: AxiosInstance, baseUrl: string);
1074
+ processCodes(params: {
1075
+ codes: string;
1076
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<CouponResponse>>;
1077
+ }
1078
+
1079
+ declare class DashboardApi extends BaseService {
1080
+ constructor(client: AxiosInstance, baseUrl: string);
1081
+ mainDashboard(appName: string, locale: number, requestOptions?: RequestOptions): Promise<ServiceResponse<Dashboard[]>>;
1082
+ subDashboard(params: {
1083
+ dashboardName: string;
1084
+ locale: number;
1085
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<Dashboard[]>>;
677
1086
  }
678
1087
 
679
1088
  declare class HistoryApi extends BaseService {
@@ -692,15 +1101,6 @@ declare class HistoryApi extends BaseService {
692
1101
  }, requestOptions?: RequestOptions): Promise<ServiceResponse<UseCampaignResponse>>;
693
1102
  }
694
1103
 
695
- interface LineAuthResponse {
696
- access_token: string;
697
- token_type: string;
698
- refresh_token: string;
699
- expires_in: number;
700
- scope: string;
701
- id_token: string;
702
- }
703
-
704
1104
  declare class LineApi extends BaseService {
705
1105
  constructor(client: AxiosInstance, baseUrl: string);
706
1106
  lineAuth(params: {
@@ -723,45 +1123,6 @@ declare class NotificationApi extends BaseService {
723
1123
  }, requestOptions?: RequestOptions): Promise<ServiceResponse<any>>;
724
1124
  }
725
1125
 
726
- interface Place {
727
- name?: string;
728
- id?: string;
729
- location?: Location;
730
- isBuzzeBeesPlace?: boolean;
731
- rank?: number;
732
- distance?: number;
733
- buzz?: number;
734
- like?: number;
735
- description?: string;
736
- services?: PlaceService[];
737
- contactNumber?: string;
738
- workingDay?: string;
739
- nameEn?: string;
740
- descriptionEn?: string;
741
- workingDayEn?: string;
742
- address?: string;
743
- addressEn?: string;
744
- imageUrl?: string;
745
- region?: string;
746
- regionEn?: string;
747
- lineChannelID?: any;
748
- category?: any;
749
- website?: any;
750
- referenceCode?: any;
751
- subdistrictCode?: any;
752
- districtCode?: any;
753
- provinceCode?: any;
754
- expert?: any;
755
- isBranchOpen?: boolean;
756
- isPickupBranchOpen?: boolean;
757
- isFavourite?: boolean;
758
- fullImageUrl?: string;
759
- }
760
- interface PlaceService {
761
- id?: number;
762
- name?: string;
763
- }
764
-
765
1126
  declare class PlaceApi extends BaseService {
766
1127
  constructor(client: AxiosInstance, baseUrl: string);
767
1128
  placeList(params: {
@@ -790,23 +1151,6 @@ declare class PlaceApi extends BaseService {
790
1151
  }, requestOptions?: RequestOptions): Promise<ServiceResponse<any>>;
791
1152
  }
792
1153
 
793
- interface PointLog {
794
- RowKey: string;
795
- UserId: string;
796
- Info: string;
797
- Detail: string;
798
- Points: number;
799
- Type: string;
800
- Caller: string;
801
- Pair: string;
802
- Timestamp: number;
803
- Message: string;
804
- CampaignId: string;
805
- CampaignName: string;
806
- CreateDate: number;
807
- Input: string;
808
- }
809
-
810
1154
  declare class PointLogApi extends BaseService {
811
1155
  constructor(client: AxiosInstance, baseUrl: string);
812
1156
  getPointLog(month: string, options?: {
@@ -816,148 +1160,6 @@ declare class PointLogApi extends BaseService {
816
1160
  }, requestOption?: RequestOptions): Promise<ServiceResponse<PointLog[]>>;
817
1161
  }
818
1162
 
819
- interface ConfirmOtpResponse {
820
- status?: string;
821
- token?: string;
822
- }
823
-
824
- interface ExpiringPoints {
825
- expiring_points?: UpdatedPoints[];
826
- }
827
-
828
- interface Notification$1 {
829
- ObjectType: string;
830
- ObjectCategoryId: string;
831
- ObjectCampaignId: string;
832
- IsRead: string;
833
- CreateTime: string;
834
- ExpireDate: string;
835
- ImagePath: string;
836
- Object: string;
837
- PartitionKey: string;
838
- RowKey: string;
839
- Timestamp: string;
840
- ETag: string;
841
- }
842
-
843
- interface ProfileResponse {
844
- UserLevel: any;
845
- UserId?: string;
846
- Name?: string;
847
- FirstName?: string;
848
- LastName?: string;
849
- Title?: string;
850
- Gender?: string;
851
- BirthDate?: number;
852
- Age?: number;
853
- Address?: string;
854
- SubDistrictCode?: number;
855
- SubDistrictName?: string;
856
- DistrictCode?: number;
857
- DistrictName?: string;
858
- ProvinceCode?: number;
859
- ProvinceName?: string;
860
- Zipcode?: string;
861
- Contact_Number?: string;
862
- Email?: string;
863
- NotificationEnable?: boolean;
864
- PostToFacebook?: boolean;
865
- Locale?: number;
866
- ModifyDate?: number;
867
- CreditCardHolder?: any;
868
- CreditCardNo?: any;
869
- CreditCardType?: any;
870
- CreditCardExpireMonth?: any;
871
- CreditCardExpireYear?: any;
872
- ExtensionJsonProperty?: any;
873
- NationalIdCard?: string;
874
- Passport?: string;
875
- MembershipId?: number;
876
- MembershipUserName?: string;
877
- LoginType?: string;
878
- VerifiedEmail?: boolean;
879
- DisplayName?: string;
880
- PlayboyCampaignId?: string;
881
- UserType?: string;
882
- UserTypeName?: string;
883
- OtherUserId?: string;
884
- CategoryConfig?: string;
885
- ShippingFirstName?: string;
886
- ShippingLastName?: string;
887
- ShippingContactNumber?: string;
888
- ShippingAddress?: string;
889
- ShippingSubDistrictCode?: number;
890
- ShippingSubDistrictName?: string;
891
- ShippingDistrictCode?: number;
892
- ShippingDistrictName?: string;
893
- ShippingProvinceCode?: number;
894
- ShippingProvinceName?: string;
895
- ShippingZipcode?: string;
896
- PhonePurchase?: number;
897
- Income?: string;
898
- Interests?: string;
899
- Region?: string;
900
- Refercode?: string;
901
- MaritalStatus?: string;
902
- Nationality?: string;
903
- Religion?: string;
904
- HighestEducation?: string;
905
- Occupation?: string;
906
- DriverLicenseNumber?: string;
907
- Latitude?: number;
908
- Longitude?: number;
909
- JoinDate?: number;
910
- Village?: string;
911
- Building?: string;
912
- Number?: string;
913
- Moo?: string;
914
- Room?: string;
915
- Floor?: string;
916
- Soi?: string;
917
- City?: string;
918
- Road?: string;
919
- Landmark?: string;
920
- Location?: string;
921
- FullAddress?: string;
922
- CountryCode?: number;
923
- CountryName?: string;
924
- HomeContactNumber?: string;
925
- AlternateContactNumber?: string;
926
- Remark?: string;
927
- TermAndCondition?: number;
928
- DataPrivacy?: number;
929
- EmailMarketing?: number;
930
- SMSMarketing?: number;
931
- NotificationMarketing?: number;
932
- LineMarketing?: number;
933
- updated_points?: UpdatedPoints;
934
- Token?: string;
935
- }
936
-
937
- interface RegistrationResponse {
938
- status?: string;
939
- username?: string;
940
- userId?: string;
941
- membershipId?: number;
942
- appId?: string;
943
- firstname?: string;
944
- lastname?: string;
945
- address?: string;
946
- email?: string;
947
- clientVersion?: string;
948
- carrier?: string;
949
- macAddress?: string;
950
- platform?: string;
951
- os?: string;
952
- gender?: string;
953
- birthdate?: number;
954
- buzzebees?: Buzzebees;
955
- }
956
-
957
- interface StatusResponse {
958
- status?: string;
959
- }
960
-
961
1163
  declare class ProfileApi extends BaseService {
962
1164
  constructor(client: AxiosInstance, baseUrl: string);
963
1165
  updateProfile(params: {