ionic-vhframeworks 10.1.9 → 10.2.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.
@@ -909,6 +909,38 @@ export declare class VhAuth {
909
909
  * @return Promise => user = {}
910
910
  */
911
911
  onAuthStateChanged_Sales(): Promise<unknown>;
912
+ /**
913
+ * @example:
914
+ * this.vhAuth.signInWithEmailAndPassword_Sales365('emp11@gmail.com', '123456')
915
+ .then((user)=>{
916
+ this.vhQuerySales.refreshLocalBranchs()
917
+ .then(()=>{
918
+ do something.....
919
+ console.log('user', user);
920
+ })
921
+ },(error:any)=>{
922
+ console.log('error', error);
923
+ })
924
+ * @param email
925
+ * @param password
926
+ * @return Promise => user = {}
927
+ */
928
+ signInWithEmailAndPassword_Sales365(email: string, password: string): Promise<unknown>;
929
+ /**
930
+ * @example:
931
+ * this.vhAuth.onAuthStateChanged_Sales365()
932
+ .then((user)=>{
933
+ this.vhQuerySales.refreshLocalBranchs()
934
+ .then(()=>{
935
+ do something.....
936
+ console.log('onAuthStateChanged_Sales365', user);
937
+ })
938
+ },(error:any)=>{
939
+ console.log('onAuthStateChanged_Sales365', error);
940
+ })
941
+ * @return Promise => user = {}
942
+ */
943
+ onAuthStateChanged_Sales365(): Promise<unknown>;
912
944
  /**
913
945
  * @example:
914
946
  * this.vhAuth.signInWithEmailAndPassword_Sales365_byDealer('emp11@gmail.com', '123456')
@@ -2612,16 +2644,6 @@ export declare class VhQueryCafe {
2612
2644
  * => true áp dụng cho toàn chi nhánh, false áp dụng riêng cho từng chi nhánh
2613
2645
  */
2614
2646
  getBranch_Management_Scope(): any;
2615
- /**
2616
- * @description: hàm này lấy về những hạn chế của gói main_package (khách trả phí mua gói sử dụng các chức năng CHÍNH, mỗi gói sẽ có nhưng hạn chế khác nhau về user_number, show_report_duration)
2617
- * @example
2618
- * this.vhQueryCafe.refreshLocalRestrictionMainPackage()
2619
- .then((bool:any)=>{
2620
- console.log('bool', bool);
2621
- })
2622
- * @return Promise => null/error
2623
- */
2624
- private refreshLocalRestrictionMainPackage;
2625
2647
  /**
2626
2648
  * @description: hàm này lấy về những hạn chế của gói main_package trong localstorage
2627
2649
  * @example
@@ -2650,6 +2672,7 @@ export declare class VhQueryCafe {
2650
2672
  */
2651
2673
  syncCollections_Desktop(): Promise<unknown>;
2652
2674
  private checkExpireBranch_Cafe;
2675
+ private checkExpireBranch_Sales365;
2653
2676
  /**
2654
2677
  * @example:
2655
2678
  this.vhQueryCafe.syncCollections_Sales365_Mobile().then((bool:any)=>{
@@ -22639,16 +22662,6 @@ export declare class VhQuerySales {
22639
22662
  * @return Promise => udefined/error
22640
22663
  */
22641
22664
  updateBranch_Management_Scope(value: any): Promise<unknown>;
22642
- /**
22643
- * @description: hàm này lấy về những hạn chế của gói main_package (khách trả phí mua gói sử dụng các chức năng CHÍNH, mỗi gói sẽ có nhưng hạn chế khác nhau về user_number, show_report_duration)
22644
- * @example
22645
- * this.vhQuerySales.refreshLocalRestrictionMainPackage()
22646
- .then(()=>{
22647
- let restriction_main_package = this.vhQuerySales.getLocalRestrictionMainPackage();
22648
- })
22649
- * @return Promise => null/error
22650
- */
22651
- private refreshLocalRestrictionMainPackage;
22652
22665
  /**
22653
22666
  * @description: hàm này lấy về những hạn chế của gói main_package trong localstorage
22654
22667
  * @example
@@ -22656,16 +22669,6 @@ export declare class VhQuerySales {
22656
22669
  * @return Object => obj ={} or null
22657
22670
  */
22658
22671
  getLocalRestrictionMainPackage(): any;
22659
- /**
22660
- * @description: hàm này lấy về những hạn chế của gói ecommerce_package (khách trả phí mua gói sử dụng TMĐT, mỗi gói sẽ có nhưng hạn chế khác nhau về shop_number, show_report_duration)
22661
- * @example
22662
- * this.vhQuerySales.refreshLocalRestrictionEcommercePackage()
22663
- .then((bool:any)=>{
22664
- console.log('bool', bool);
22665
- })
22666
- * @return Promise => null/error
22667
- */
22668
- refreshLocalRestrictionEcommercePackage(): Promise<unknown>;
22669
22672
  /**
22670
22673
  * @description: hàm này lấy về những hạn chế của gói ecommerce_package trong localstorage
22671
22674
  * @example
@@ -22673,16 +22676,6 @@ export declare class VhQuerySales {
22673
22676
  * @return Object => obj ={} or null
22674
22677
  */
22675
22678
  getLocalRestrictionEcommercePackage(): any;
22676
- /**
22677
- * @description: hàm này lấy về những hạn chế của gói facebook_package (khách trả phí mua gói sử dụng facebook, mỗi gói sẽ có nhưng hạn chế khác nhau về fanpage_number, show_report_duration)
22678
- * @example
22679
- * this.vhQuerySales.refreshLocalRestrictionFacebookPackage()
22680
- .then((bool:any)=>{
22681
- console.log('bool', bool);
22682
- })
22683
- * @return Promise => null
22684
- */
22685
- refreshLocalRestrictionFacebookPackage(): Promise<unknown>;
22686
22679
  /**
22687
22680
  * @description: hàm này lấy về những hạn chế của gói facebook_package trong localstorage
22688
22681
  * @example
@@ -22690,16 +22683,6 @@ export declare class VhQuerySales {
22690
22683
  * @return Object => obj ={} or null
22691
22684
  */
22692
22685
  getLocalRestrictionFacebookPackage(): any;
22693
- /**
22694
- * @description: hàm này lấy về những hạn chế của gói warranty_package (khách trả phí mua gói sử dụng warranty, mỗi gói sẽ có nhưng hạn chế khác nhau về show_report_duration)
22695
- * @example
22696
- * this.refreshLocalRestrictionWarrantyPackage()
22697
- .then((bool:any)=>{
22698
- console.log('bool', bool);
22699
- })
22700
- * @return Promise => null
22701
- */
22702
- refreshLocalRestrictionWarrantyPackage(): Promise<unknown>;
22703
22686
  /**
22704
22687
  * @description: hàm này lấy về những hạn chế của gói warranty_package trong localstorage
22705
22688
  * @example
@@ -23738,6 +23721,7 @@ export declare class VhQuerySales {
23738
23721
  */
23739
23722
  syncCollections_Sales365_Desktop(): Promise<unknown>;
23740
23723
  private checkExpireBranch_Sales;
23724
+ private checkExpireBranch_Sales365;
23741
23725
  private initSyncCollections;
23742
23726
  /**
23743
23727
  * @example:
@@ -30153,6 +30137,24 @@ export declare class VhQueryDealer {
30153
30137
  * @return Promise => Array -> array = [{},{},...]
30154
30138
  */
30155
30139
  getBranchs_byIDstore(id_store: any): Promise<unknown>;
30140
+ /**
30141
+ * @example:
30142
+ * this.vhQueryDealer.extendLicenseValidaty_byLicenseKEY('3I1oQhMvkeySdtCSmsy5', '5fb6780ca2148e09806c5b01', '674fd94a9ace7267deb685fd')
30143
+ .then((response)=>{
30144
+ console.log('extendLicenseValidaty_byLicenseKEY', response);
30145
+ }, error=>{
30146
+ console.log('error', error);
30147
+ })
30148
+ * @param id_store:string
30149
+ * @param id_branch
30150
+ * @param id_licenseKEY
30151
+ * @return Promise => response = {vcode, msg}
30152
+ * vcode = 0: gia hạn thành công
30153
+ * vcode = 1: id_licenseKEY không thuộc về Store
30154
+ * vcode = 2: id_licenseKEY đã được kích hoạt trước đây
30155
+ * vcode = 3: id_licenseKEY đã bị vô hiệu hóa trước đây
30156
+ */
30157
+ extendLicenseValidaty_byLicenseKEY(id_store: string, id_branch: string, id_licenseKEY: string): Promise<unknown>;
30156
30158
  static ɵfac: i0.ɵɵFactoryDeclaration<VhQueryDealer, never>;
30157
30159
  static ɵprov: i0.ɵɵInjectableDeclaration<VhQueryDealer>;
30158
30160
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "10.1.9",
3
+ "version": "10.2.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"