ionic-vhframeworks 10.5.6 → 10.5.8

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.
@@ -435,7 +435,17 @@ export declare class VhAlgorithm {
435
435
  vhnumeral(classname: any): Cleave;
436
436
  vhphoneNumber(classname: any): Cleave;
437
437
  vhYoutubeLink(value: any): import("@angular/platform-browser").SafeResourceUrl;
438
+ /**
439
+ * @example
440
+ array = this.sortVietnamesebyASC(array, 'name');
441
+ * @return array
442
+ */
438
443
  sortVietnamesebyASC(array: any, field: any): any;
444
+ /**
445
+ * @example
446
+ array = this.sortVietnamesebyDESC(array, 'name');
447
+ * @return array
448
+ */
439
449
  sortVietnamesebyDESC(array: any, field: any): any;
440
450
  sortDatebyASC(array: any, field: any): any;
441
451
  sortDatebyDESC(array: any, field: any): any;
@@ -602,6 +612,17 @@ export declare class VhAuth {
602
612
  */
603
613
  checkPaymentIOS(): Promise<unknown>;
604
614
  /**
615
+ * @example:
616
+ * this.vhAuth.checkPaymentIOS2()
617
+ .then((bool:any)=>{
618
+ console.log('bool', bool);
619
+ },(error:any)=>{
620
+ console.log('error', error);
621
+ })
622
+ * @returns Promise => boolean
623
+ */
624
+ checkPaymentIOS2(): Promise<unknown>;
625
+ /**
605
626
  * Nếu paymentIOS == true : cho phép hiển thị các chức năng liên quan đến thanh toán trên iphone, ipad. Ngược lại thì ko
606
627
  * lưu ý: hàm này chỉ dùng cho iphone và ipad
607
628
  * let paymentIOS = this.vhAuth.checkLocalPaymentIOS();
@@ -827,12 +848,13 @@ export declare class VhAuth {
827
848
  signUpOwner_Sales(email: string, password: string, phoneNumber: string, info: any): Promise<unknown> | null;
828
849
  private tam_email;
829
850
  private tam_pw;
851
+ private tam_info;
830
852
  /**
831
853
  * @example:
832
854
  * if (this.platform.is('ios')) {
833
855
  //Đăng ký bình thường như cách cũ
834
856
  }else{
835
- this.vhAuth.signUpOwner_byOTP_Sales('huyleduc92@gmail.com', 'Vh123456', '+84909925359',{})
857
+ this.vhAuth.verificationSignup_byOTP_Sales365('huyleduc92@gmail.com', 'Vh123456', '+84909925359',{})
836
858
  .then((rsp:any)=>{
837
859
  if(rsp.vcode === 0){
838
860
  //Nếu số đt và email trước đây chưa được đăng ký sử dụng thì bây giờ có thể đăng ký
@@ -840,11 +862,11 @@ export declare class VhAuth {
840
862
  const verificationCode = window.prompt(
841
863
  'Please enter the verification code that was sent to your mobile device.',
842
864
  )!;
843
- this.vhAuth.verificationSignup_byOTP_Sales(verificationCode)
865
+ this.vhAuth.verificationSignup_byOTP_Sales365(verificationCode)
844
866
  .then((owner)=>{
845
867
  if(owner){
846
868
  //Thông báo người dùng đã đăng ký thành công và trở về lại trang đăng nhập
847
- console.log('verificationSignup_byOTP_Sales', owner);
869
+ console.log('verificationSignup_byOTP_Sales365', owner);
848
870
  }else{
849
871
  //thông báo người dùng đã nhập sai mã otp
850
872
  }
@@ -872,13 +894,13 @@ export declare class VhAuth {
872
894
  * vcode === 3: Hiện thị ra thông báo cho người dùng biết rằng số điện thoại của họ nhập vào không đúng với định dạng của nhà mạng
873
895
  * @notice : nhớ kiểm tra email đúng cú pháp và chuỗi trước @gmail.com có chiều dài lớn hơn bằng 6 thì nút "Đồng ý" mới sáng lên
874
896
  */
875
- signUpOwner_byOTP_Sales(email: string, password: string, phoneNumber: string, info: any): Promise<unknown> | null;
897
+ signUpOwner_byOTP_Sales365(email: string, password: string, phoneNumber: string, info: any): Promise<unknown> | null;
876
898
  /**
877
899
  * @example:
878
- * this.vhAuth.verificationSignup_byOTP_Sales(verificationCode)
900
+ * this.vhAuth.verificationSignup_byOTP_Sales365(verificationCode)
879
901
  .then((owner)=>{
880
902
  if(owner){
881
- console.log('verificationSignup_byOTP_Sales', owner);
903
+ console.log('verificationSignup_byOTP_Sales365', owner);
882
904
  }else{
883
905
  //thông báo người dùng đã nhập sai mã otp
884
906
  }
@@ -888,7 +910,7 @@ export declare class VhAuth {
888
910
  * @param verificationCode: mã otp được viethas gửi đến số điện thoại của bạn
889
911
  * @returns Promise => owner = obj: mã verificationCode nhập vào đúng và trả về thông tin người dùng; owner = null: mã verificationCode nhập vào sai;
890
912
  */
891
- verificationSignup_byOTP_Sales(verificationCode: string): Promise<unknown>;
913
+ verificationSignup_byOTP_Sales365(verificationCode: string): Promise<unknown>;
892
914
  /**
893
915
  * @example:
894
916
  * this.vhAuth.signInWithEmailAndPassword_Sales('emp11@gmail.com', '123456')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "10.5.6",
3
+ "version": "10.5.8",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"