ionic-vhframeworks 10.6.8 → 10.6.9

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.
@@ -586,6 +586,7 @@ export declare class VhOTP {
586
586
  }
587
587
  export declare class VhAuth {
588
588
  private platform;
589
+ private vhMGDB_rootdatabase;
589
590
  private vhMGDB_auth;
590
591
  private vhMGDB_database;
591
592
  private vhForFirstTime;
@@ -598,8 +599,7 @@ export declare class VhAuth {
598
599
  private hwinfo;
599
600
  private renderer;
600
601
  private subjectemployees;
601
- private paymentIOS;
602
- constructor(platform: Platform, vhMGDB_auth: VhMGDB_auth, vhMGDB_database: VhMGDB_database, vhForFirstTime: VhForFirstTime, renderFactory: RendererFactory2, platformId: Object);
602
+ constructor(platform: Platform, vhMGDB_rootdatabase: VhMGDB_rootdatabase, vhMGDB_auth: VhMGDB_auth, vhMGDB_database: VhMGDB_database, vhForFirstTime: VhForFirstTime, renderFactory: RendererFactory2, platformId: Object);
603
603
  /**
604
604
  * Hàm lấy thông tin thiết bị đang dùng phần mềm
605
605
  * @example:
@@ -612,15 +612,17 @@ export declare class VhAuth {
612
612
  */
613
613
  getDVinfo(): Promise<unknown>;
614
614
  /**
615
- * @example:
616
- * this.vhAuth.checkPaymentIOS()
617
- .then((bool:any)=>{
618
- console.log('bool', bool);
619
- },(error:any)=>{
620
- console.log('error', error);
621
- })
622
- * @returns Promise => boolean
623
- */
615
+ * 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
616
+ * lưu ý: hàm này chỉ dùng cho iphone và ipad
617
+ * @example:
618
+ * this.vhAuth.checkPaymentIOS()
619
+ .then((bool:any)=>{
620
+ console.log('bool', bool);
621
+ },(error:any)=>{
622
+ console.log('error', error);
623
+ })
624
+ * @returns Promise => boolean
625
+ */
624
626
  checkPaymentIOS(): Promise<unknown>;
625
627
  /**
626
628
  * @example:
@@ -634,10 +636,74 @@ export declare class VhAuth {
634
636
  */
635
637
  checkPaymentIOS2(): Promise<unknown>;
636
638
  /**
637
- * 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
638
- * lưu ý: hàm này chỉ dùng cho iphone và ipad
639
- * let paymentIOS = this.vhAuth.checkLocalPaymentIOS();
640
- */
639
+ * @example:
640
+ * let data = {
641
+ created_at: new Date(),
642
+ suggestion: "Lỗi đăng xuất",
643
+ img:"",
644
+ id_store: "5fb6780ca2148e09806c5b01"
645
+ }
646
+ * this.vhAuth.createSuggestion(data)
647
+ .then((suggestion)=>{
648
+ console.log('createSuggestion', suggestion);
649
+ },(error:any)=>{
650
+ console.log('error', error);
651
+ })
652
+ * @param data : object
653
+ * @return Promise => suggestion = {} / error
654
+ * Luu ý: chỉ có 2 trường hợp, hoặc là thêm thành công, hoặc là báo lỗi error
655
+ */
656
+ createSuggestion(data: any): Promise<unknown>;
657
+ /**
658
+ * @example:
659
+ * this.vhAuth.getSuggestion('5fb67fda87c0f21d484cbdf3')
660
+ .then((suggestion)=>{
661
+ console.log('getSuggestion', suggestion);
662
+ })
663
+ * @param id_suggestion
664
+ * @return Promise => suggestion ={} or null / error
665
+ */
666
+ getSuggestion(id_suggestion: any): Promise<unknown>;
667
+ /**
668
+ * @example:
669
+ * this.vhAuth.updateSuggestion('5fb6780ca2148e09806c5b01', {feedback: "đã xử lý" })
670
+ .then((response)=>{
671
+ console.log('updateSuggestion', response);
672
+ }, error=>{
673
+ console.log('error', error);
674
+ })
675
+ * @param id_suggestion
676
+ * @param value
677
+ * @return Promise => response = undefined / error
678
+ */
679
+ updateSuggestion(id_suggestion: string, value: any): Promise<unknown>;
680
+ /**
681
+ * @example:
682
+ * this.vhAuth.deleteSuggestion('5fb67fda87c0f21d484cbdf3')
683
+ .then((response)=>{
684
+ console.log('deleteSuggestion', response);
685
+ }, error=>{
686
+ console.log(error, error);
687
+ })
688
+ * @param id_suggestion
689
+ * @return Promise => response = undefined / error
690
+ */
691
+ deleteSuggestion(id_suggestion: any): Promise<unknown>;
692
+ /**
693
+ * @example:
694
+ * let time = new Date();
695
+ * time.setDate(time.getDate()-7);
696
+ * this.vhAuth.getSuggestion_byFields({payment_type:{$eq:5}}, {},{},0)
697
+ .then((suggestions)=>{
698
+ console.log('getSuggestion_byFields', suggestions);
699
+ })
700
+ * @param query
701
+ * @param projection — đang tìm hiểu, tạm thời để giá trị là {}
702
+ * @param sort — null hoặc {}:không sắp xếp; {date:1}: sắp xếp theo ASC; {date:-1}: sắp xếp theo DESC
703
+ * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
704
+ * @return — Array -> array = [{},{},...]
705
+ */
706
+ getSuggestion_byFields(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
641
707
  /**
642
708
  * @example:
643
709
  * this.vhAuth.signInWithEmailAndPasswordOfEndUser('emp11@gmail.com', '123456')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "10.6.8",
3
+ "version": "10.6.9",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"