ionic-vhframeworks 10.1.8 → 10.2.0
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.
|
@@ -460,6 +460,7 @@ export declare class VhAlgorithm {
|
|
|
460
460
|
* @param data
|
|
461
461
|
*/
|
|
462
462
|
convert_OBJECT2STRING(obj: any): string;
|
|
463
|
+
formatDateToString(date: any): string | null;
|
|
463
464
|
roundTo3Decimals(value: any): number;
|
|
464
465
|
/**
|
|
465
466
|
* @example
|
|
@@ -908,6 +909,38 @@ export declare class VhAuth {
|
|
|
908
909
|
* @return Promise => user = {}
|
|
909
910
|
*/
|
|
910
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>;
|
|
911
944
|
/**
|
|
912
945
|
* @example:
|
|
913
946
|
* this.vhAuth.signInWithEmailAndPassword_Sales365_byDealer('emp11@gmail.com', '123456')
|
|
@@ -2611,16 +2644,6 @@ export declare class VhQueryCafe {
|
|
|
2611
2644
|
* => true áp dụng cho toàn chi nhánh, false áp dụng riêng cho từng chi nhánh
|
|
2612
2645
|
*/
|
|
2613
2646
|
getBranch_Management_Scope(): any;
|
|
2614
|
-
/**
|
|
2615
|
-
* @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)
|
|
2616
|
-
* @example
|
|
2617
|
-
* this.vhQueryCafe.refreshLocalRestrictionMainPackage()
|
|
2618
|
-
.then((bool:any)=>{
|
|
2619
|
-
console.log('bool', bool);
|
|
2620
|
-
})
|
|
2621
|
-
* @return Promise => null/error
|
|
2622
|
-
*/
|
|
2623
|
-
private refreshLocalRestrictionMainPackage;
|
|
2624
2647
|
/**
|
|
2625
2648
|
* @description: hàm này lấy về những hạn chế của gói main_package trong localstorage
|
|
2626
2649
|
* @example
|
|
@@ -2649,6 +2672,7 @@ export declare class VhQueryCafe {
|
|
|
2649
2672
|
*/
|
|
2650
2673
|
syncCollections_Desktop(): Promise<unknown>;
|
|
2651
2674
|
private checkExpireBranch_Cafe;
|
|
2675
|
+
private checkExpireBranch_Sales365;
|
|
2652
2676
|
/**
|
|
2653
2677
|
* @example:
|
|
2654
2678
|
this.vhQueryCafe.syncCollections_Sales365_Mobile().then((bool:any)=>{
|
|
@@ -22638,16 +22662,6 @@ export declare class VhQuerySales {
|
|
|
22638
22662
|
* @return Promise => udefined/error
|
|
22639
22663
|
*/
|
|
22640
22664
|
updateBranch_Management_Scope(value: any): Promise<unknown>;
|
|
22641
|
-
/**
|
|
22642
|
-
* @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)
|
|
22643
|
-
* @example
|
|
22644
|
-
* this.vhQuerySales.refreshLocalRestrictionMainPackage()
|
|
22645
|
-
.then(()=>{
|
|
22646
|
-
let restriction_main_package = this.vhQuerySales.getLocalRestrictionMainPackage();
|
|
22647
|
-
})
|
|
22648
|
-
* @return Promise => null/error
|
|
22649
|
-
*/
|
|
22650
|
-
private refreshLocalRestrictionMainPackage;
|
|
22651
22665
|
/**
|
|
22652
22666
|
* @description: hàm này lấy về những hạn chế của gói main_package trong localstorage
|
|
22653
22667
|
* @example
|
|
@@ -22655,16 +22669,6 @@ export declare class VhQuerySales {
|
|
|
22655
22669
|
* @return Object => obj ={} or null
|
|
22656
22670
|
*/
|
|
22657
22671
|
getLocalRestrictionMainPackage(): any;
|
|
22658
|
-
/**
|
|
22659
|
-
* @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)
|
|
22660
|
-
* @example
|
|
22661
|
-
* this.vhQuerySales.refreshLocalRestrictionEcommercePackage()
|
|
22662
|
-
.then((bool:any)=>{
|
|
22663
|
-
console.log('bool', bool);
|
|
22664
|
-
})
|
|
22665
|
-
* @return Promise => null/error
|
|
22666
|
-
*/
|
|
22667
|
-
refreshLocalRestrictionEcommercePackage(): Promise<unknown>;
|
|
22668
22672
|
/**
|
|
22669
22673
|
* @description: hàm này lấy về những hạn chế của gói ecommerce_package trong localstorage
|
|
22670
22674
|
* @example
|
|
@@ -22672,16 +22676,6 @@ export declare class VhQuerySales {
|
|
|
22672
22676
|
* @return Object => obj ={} or null
|
|
22673
22677
|
*/
|
|
22674
22678
|
getLocalRestrictionEcommercePackage(): any;
|
|
22675
|
-
/**
|
|
22676
|
-
* @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)
|
|
22677
|
-
* @example
|
|
22678
|
-
* this.vhQuerySales.refreshLocalRestrictionFacebookPackage()
|
|
22679
|
-
.then((bool:any)=>{
|
|
22680
|
-
console.log('bool', bool);
|
|
22681
|
-
})
|
|
22682
|
-
* @return Promise => null
|
|
22683
|
-
*/
|
|
22684
|
-
refreshLocalRestrictionFacebookPackage(): Promise<unknown>;
|
|
22685
22679
|
/**
|
|
22686
22680
|
* @description: hàm này lấy về những hạn chế của gói facebook_package trong localstorage
|
|
22687
22681
|
* @example
|
|
@@ -22689,16 +22683,6 @@ export declare class VhQuerySales {
|
|
|
22689
22683
|
* @return Object => obj ={} or null
|
|
22690
22684
|
*/
|
|
22691
22685
|
getLocalRestrictionFacebookPackage(): any;
|
|
22692
|
-
/**
|
|
22693
|
-
* @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)
|
|
22694
|
-
* @example
|
|
22695
|
-
* this.refreshLocalRestrictionWarrantyPackage()
|
|
22696
|
-
.then((bool:any)=>{
|
|
22697
|
-
console.log('bool', bool);
|
|
22698
|
-
})
|
|
22699
|
-
* @return Promise => null
|
|
22700
|
-
*/
|
|
22701
|
-
refreshLocalRestrictionWarrantyPackage(): Promise<unknown>;
|
|
22702
22686
|
/**
|
|
22703
22687
|
* @description: hàm này lấy về những hạn chế của gói warranty_package trong localstorage
|
|
22704
22688
|
* @example
|
|
@@ -23737,6 +23721,7 @@ export declare class VhQuerySales {
|
|
|
23737
23721
|
*/
|
|
23738
23722
|
syncCollections_Sales365_Desktop(): Promise<unknown>;
|
|
23739
23723
|
private checkExpireBranch_Sales;
|
|
23724
|
+
private checkExpireBranch_Sales365;
|
|
23740
23725
|
private initSyncCollections;
|
|
23741
23726
|
/**
|
|
23742
23727
|
* @example:
|
|
@@ -30152,6 +30137,23 @@ export declare class VhQueryDealer {
|
|
|
30152
30137
|
* @return Promise => Array -> array = [{},{},...]
|
|
30153
30138
|
*/
|
|
30154
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_branch
|
|
30149
|
+
* @param id_licenseKEY
|
|
30150
|
+
* @return Promise => response = {vcode, msg}
|
|
30151
|
+
* vcode = 0: gia hạn thành công
|
|
30152
|
+
* vcode = 1: id_licenseKEY không thuộc về Store
|
|
30153
|
+
* vcode = 2: id_licenseKEY đã được kích hoạt trước đây
|
|
30154
|
+
* vcode = 3: id_licenseKEY đã bị vô hiệu hóa trước đây
|
|
30155
|
+
*/
|
|
30156
|
+
extendLicenseValidaty_byLicenseKEY(id_store: string, id_branch: string, id_licenseKEY: string): Promise<unknown>;
|
|
30155
30157
|
static ɵfac: i0.ɵɵFactoryDeclaration<VhQueryDealer, never>;
|
|
30156
30158
|
static ɵprov: i0.ɵɵInjectableDeclaration<VhQueryDealer>;
|
|
30157
30159
|
}
|