ionic-vhframeworks 9.2.4 → 9.2.6
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.
|
@@ -11980,6 +11980,7 @@ export declare class VhQueryAutoWeb {
|
|
|
11980
11980
|
private socket;
|
|
11981
11981
|
private configChanged;
|
|
11982
11982
|
private renderer;
|
|
11983
|
+
private database_RAM;
|
|
11983
11984
|
constructor(vhMGDB_database: VhMGDB_database, vhMGDB_socketMongoDB: VhMGDB_socketMongoDB, vhQuery: VhQuery, vhAuth: VhAuth, vhMGDB_rootdatabase: VhMGDB_rootdatabase, vhMGDB_auth: VhMGDB_auth, vhOTP: VhOTP, vhAlgorithm: VhAlgorithm, vhBuildAutoWeb: VhBuildAutoWeb, vhDesignAutoWeb: VhDesignAutoWeb, vhEventMediator: VhEventMediator, http: HttpClient, renderFactory: RendererFactory2);
|
|
11984
11985
|
/**
|
|
11985
11986
|
* Lấy về danh sách các ngân hàng (kèm logo) mà vietqr hỗ trợ tạo mã QR
|
|
@@ -13136,6 +13137,8 @@ export declare class VhQueryAutoWeb {
|
|
|
13136
13137
|
* this.vhQueryAutoWeb.getIDPage_byLink('trang-tin-tuc')
|
|
13137
13138
|
.then((id_page)=>{
|
|
13138
13139
|
console.log('getIDPage_byLink', id_page);
|
|
13140
|
+
}, error=>{
|
|
13141
|
+
|
|
13139
13142
|
})
|
|
13140
13143
|
* @param link
|
|
13141
13144
|
* @return Promise => null or string
|
|
@@ -13168,9 +13171,18 @@ export declare class VhQueryAutoWeb {
|
|
|
13168
13171
|
*/
|
|
13169
13172
|
getDetailPage(id_page: any): Promise<unknown>;
|
|
13170
13173
|
/**
|
|
13171
|
-
*
|
|
13174
|
+
* Hàm này giúp đồng bộ giao diện người dùng khi có sự thay đổi giá trị ở database một cách tự động,
|
|
13175
|
+
* nghĩa là khi thêm, xóa, sửa các giá trị trong database thì giao diện tự động thay đổi theo
|
|
13176
|
+
* @example
|
|
13177
|
+
* this.vhQueryAutoWeb.pipeDetailPage_byLink('gioi-thieu')
|
|
13178
|
+
.then(()=>{
|
|
13179
|
+
console.log('pipeDetailPage_byLink');
|
|
13180
|
+
}, error=>{
|
|
13181
|
+
console.log(error)
|
|
13182
|
+
})
|
|
13172
13183
|
*/
|
|
13173
13184
|
pipeDetailPage_byLink(link: any): Promise<unknown>;
|
|
13185
|
+
pipeDetailPage_byLink1(link: any): Promise<unknown>;
|
|
13174
13186
|
/**
|
|
13175
13187
|
* Hàm này giúp đồng bộ giao diện người dùng khi có sự thay đổi giá trị ở database một cách tự động,
|
|
13176
13188
|
* nghĩa là khi thêm, xóa, sửa các giá trị trong database thì giao diện tự động thay đổi theo
|
|
@@ -14635,15 +14647,16 @@ export declare class VhQueryAutoWeb {
|
|
|
14635
14647
|
* @example:
|
|
14636
14648
|
* this.vhQueryAutoWeb.admin_addWallet(data)
|
|
14637
14649
|
.then((rsp:any)=>{
|
|
14650
|
+
console.log('admin_addWallet', rsp);
|
|
14638
14651
|
if(rsp.vcode === 0){
|
|
14639
|
-
|
|
14652
|
+
//-----------your code-----------
|
|
14640
14653
|
}
|
|
14641
14654
|
}, error=>{
|
|
14642
|
-
|
|
14655
|
+
console.log('error', error);
|
|
14643
14656
|
})
|
|
14644
14657
|
* @param data
|
|
14645
14658
|
* @return Promise => rsp ={vcode, msg, data(object)} / error
|
|
14646
|
-
* @notice : hàm này chỉ
|
|
14659
|
+
* @notice : hàm này chỉ thêm được dữ liệu sau khi nhân viên (admin) đã đăng nhập
|
|
14647
14660
|
* vcode == 0: success
|
|
14648
14661
|
* vcode == 11: 'not logged in
|
|
14649
14662
|
*/
|
|
@@ -14652,33 +14665,35 @@ export declare class VhQueryAutoWeb {
|
|
|
14652
14665
|
* @example:
|
|
14653
14666
|
* this.vhQueryAutoWeb.admin_updateWallet('5fb6780ca2148e09806c5b01', {hidden:true})
|
|
14654
14667
|
.then((rsp:any)=>{
|
|
14668
|
+
console.log('admin_updateWallet', rsp);
|
|
14655
14669
|
if(rsp.vcode === 0){
|
|
14656
|
-
|
|
14670
|
+
//-----------your code-----------
|
|
14657
14671
|
}
|
|
14658
14672
|
}, error=>{
|
|
14659
14673
|
console.log('error', error);
|
|
14660
14674
|
})
|
|
14661
|
-
* @param
|
|
14662
|
-
* @param
|
|
14675
|
+
* @param id_wallet
|
|
14676
|
+
* @param value
|
|
14663
14677
|
* @return Promise object => rsp ={vcode, msg, data(true or false)} / error
|
|
14664
|
-
* @notice : hàm này chỉ
|
|
14678
|
+
* @notice : hàm này chỉ cập nhật được dữ liệu sau khi nhân viên (admin) đã đăng nhập
|
|
14665
14679
|
* vcode == 0: success
|
|
14666
14680
|
* vcode == 11: 'not logged in
|
|
14667
14681
|
*/
|
|
14668
|
-
admin_updateWallet(
|
|
14682
|
+
admin_updateWallet(id_wallet: string, value: object): Promise<unknown>;
|
|
14669
14683
|
/**
|
|
14670
14684
|
* @example:
|
|
14671
14685
|
* this.vhQueryAutoWeb.admin_deleteWallet('5fb67fda87c0f21d484cbdf3')
|
|
14672
14686
|
.then((rsp:any)=>{
|
|
14687
|
+
console.log('admin_deleteWallet', rsp);
|
|
14673
14688
|
if(rsp.vcode === 0){
|
|
14674
|
-
|
|
14689
|
+
//-----------your code-----------
|
|
14675
14690
|
}
|
|
14676
14691
|
}, error=>{
|
|
14677
|
-
|
|
14692
|
+
console.log('error', error);
|
|
14678
14693
|
})
|
|
14679
14694
|
* @param id_wallet
|
|
14680
14695
|
* @return Promise => rsp ={vcode, msg, data(true or false)} / error
|
|
14681
|
-
* @notice : hàm này chỉ
|
|
14696
|
+
* @notice : hàm này chỉ xóa được dữ liệu sau khi nhân viên (admin) đã đăng nhập
|
|
14682
14697
|
* vcode == 0: success
|
|
14683
14698
|
* vcode == 11: 'not logged in
|
|
14684
14699
|
*/
|
|
@@ -14686,11 +14701,17 @@ export declare class VhQueryAutoWeb {
|
|
|
14686
14701
|
/**
|
|
14687
14702
|
* @example
|
|
14688
14703
|
* this.vhQueryAutoWeb.admin_getWallet('5fb67fda87c0f21d484cbdf3')
|
|
14689
|
-
|
|
14690
|
-
|
|
14691
|
-
|
|
14704
|
+
.then((rsp:any)=>{
|
|
14705
|
+
console.log('admin_getWallet', rsp);
|
|
14706
|
+
if(rsp.vcode === 0){
|
|
14707
|
+
//-----------your code-----------
|
|
14708
|
+
}
|
|
14709
|
+
}, error=>{
|
|
14710
|
+
console.log('error', error);
|
|
14711
|
+
})
|
|
14692
14712
|
* @param id_wallet
|
|
14693
14713
|
* @return Promise object => rsp ={vcode, msg, data(object or null)} / error
|
|
14714
|
+
* @notice : hàm này chỉ lấy về được dữ liệu sau khi nhân viên (admin) đã đăng nhập
|
|
14694
14715
|
* vcode == 0: success
|
|
14695
14716
|
* vcode == 11: 'not logged in
|
|
14696
14717
|
*/
|
|
@@ -14698,20 +14719,20 @@ export declare class VhQueryAutoWeb {
|
|
|
14698
14719
|
/**
|
|
14699
14720
|
* @example:
|
|
14700
14721
|
* this.vhQueryAutoWeb.admin_getWallets_byFields({name:{$eq:'name abc'}}, {},{},6)
|
|
14701
|
-
.then(
|
|
14702
|
-
console.log('
|
|
14703
|
-
if(
|
|
14704
|
-
|
|
14705
|
-
let products = response.data;
|
|
14722
|
+
.then((rsp:any)=>{
|
|
14723
|
+
console.log('admin_getWallets_byFields', rsp);
|
|
14724
|
+
if(rsp.vcode === 0){
|
|
14725
|
+
//-----------your code-----------
|
|
14706
14726
|
}
|
|
14707
|
-
},
|
|
14708
|
-
|
|
14727
|
+
}, error=>{
|
|
14728
|
+
console.log('error', error);
|
|
14709
14729
|
})
|
|
14710
14730
|
* @param query
|
|
14711
14731
|
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
14712
14732
|
* @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
|
|
14713
14733
|
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
14714
14734
|
* @return Promise object => response = {vcode, msg, data(array)}
|
|
14735
|
+
* @notice : hàm này chỉ lấy về được dữ liệu sau khi nhân viên (admin) đã đăng nhập
|
|
14715
14736
|
* vcode == 0: success
|
|
14716
14737
|
* vcode == 11: 'not logged in
|
|
14717
14738
|
*/
|
|
@@ -14719,14 +14740,13 @@ export declare class VhQueryAutoWeb {
|
|
|
14719
14740
|
/**
|
|
14720
14741
|
* @example:
|
|
14721
14742
|
* this.vhQueryAutoWeb.admin_getWallets_byFields_byPages({name:{$eq:'name abc'}}, {},{},6,1)
|
|
14722
|
-
.then(
|
|
14723
|
-
console.log('
|
|
14724
|
-
if(
|
|
14725
|
-
|
|
14726
|
-
let products = response.data;
|
|
14743
|
+
.then((rsp:any)=>{
|
|
14744
|
+
console.log('admin_getWallets_byFields_byPages', rsp);
|
|
14745
|
+
if(rsp.vcode === 0){
|
|
14746
|
+
//-----------your code-----------
|
|
14727
14747
|
}
|
|
14728
|
-
},
|
|
14729
|
-
|
|
14748
|
+
}, error=>{
|
|
14749
|
+
console.log('error', error);
|
|
14730
14750
|
})
|
|
14731
14751
|
* @param query
|
|
14732
14752
|
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
@@ -14734,10 +14754,48 @@ export declare class VhQueryAutoWeb {
|
|
|
14734
14754
|
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
14735
14755
|
* @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
|
|
14736
14756
|
* @return Promise object => response = {vcode, msg, data(array), limit, page, totalpages}
|
|
14757
|
+
* @notice : hàm này chỉ lấy về được dữ liệu sau khi nhân viên (admin) đã đăng nhập
|
|
14737
14758
|
* vcode == 0: success
|
|
14738
14759
|
* vcode == 11: 'not logged in
|
|
14739
14760
|
*/
|
|
14740
14761
|
admin_getWallets_byFields_byPages(query: object, projection?: object, sort?: object, limit?: number, page?: number): Promise<unknown>;
|
|
14762
|
+
/**
|
|
14763
|
+
* @example:
|
|
14764
|
+
* this.vhQueryAutoWeb.enduser_updateWallet('5fb6780ca2148e09806c5b01', {hidden:true})
|
|
14765
|
+
.then((rsp:any)=>{
|
|
14766
|
+
console.log('enduser_updateWallet', rsp);
|
|
14767
|
+
if(rsp.vcode === 0){
|
|
14768
|
+
//-----------your code-----------
|
|
14769
|
+
}
|
|
14770
|
+
}, error=>{
|
|
14771
|
+
console.log('error', error);
|
|
14772
|
+
})
|
|
14773
|
+
* @param id_wallet
|
|
14774
|
+
* @param value
|
|
14775
|
+
* @return Promise object => rsp ={vcode, msg, data(true or false)} / error
|
|
14776
|
+
* @notice : hàm này chỉ cập nhật được dữ liệu sau khi khách hàng (enduser) đã đăng nhập
|
|
14777
|
+
* vcode == 0: success
|
|
14778
|
+
* vcode == 11: 'not logged in
|
|
14779
|
+
*/
|
|
14780
|
+
enduser_updateWallet(id_wallet: string, value: object): Promise<unknown>;
|
|
14781
|
+
/**
|
|
14782
|
+
* @example
|
|
14783
|
+
* this.vhQueryAutoWeb.enduser_getWallet('5fb67fda87c0f21d484cbdf3')
|
|
14784
|
+
.then((rsp:any)=>{
|
|
14785
|
+
console.log('enduser_getWallet', rsp);
|
|
14786
|
+
if(rsp.vcode === 0){
|
|
14787
|
+
//-----------your code-----------
|
|
14788
|
+
}
|
|
14789
|
+
}, error=>{
|
|
14790
|
+
console.log('error', error);
|
|
14791
|
+
})
|
|
14792
|
+
* @param id_wallet
|
|
14793
|
+
* @return Promise object => rsp ={vcode, msg, data(object or null)} / error
|
|
14794
|
+
* @notice : hàm này chỉ lấy về được dữ liệu sau khi khách hàng (enduser) đã đăng nhập
|
|
14795
|
+
* vcode == 0: success
|
|
14796
|
+
* vcode == 11: 'not logged in
|
|
14797
|
+
*/
|
|
14798
|
+
enduser_getWallet(id_wallet: string): Promise<unknown>;
|
|
14741
14799
|
/**
|
|
14742
14800
|
* Hàm này tạo toppings (type=1), blog (type=2),.....
|
|
14743
14801
|
* @example:
|
|
@@ -24969,7 +25027,7 @@ export declare class VhQuerySales {
|
|
|
24969
25027
|
* @param newbill_type
|
|
24970
25028
|
* @return Promise => undefined
|
|
24971
25029
|
*/
|
|
24972
|
-
saveBill_Billdetail(id_bill: any, newbill_type: number): any;
|
|
25030
|
+
saveBill_Billdetail(id_bill: any, newbill_type: number, billdate?: any): any;
|
|
24973
25031
|
/**
|
|
24974
25032
|
* hàm này chỉ dùng cho trường hợp bill_type 29->30 và 31
|
|
24975
25033
|
* @example
|
|
@@ -25094,6 +25152,7 @@ export declare class VhQuerySales {
|
|
|
25094
25152
|
* @param bill_type
|
|
25095
25153
|
*/
|
|
25096
25154
|
createBillCode(billdate: any, bill_type: number): Promise<unknown>;
|
|
25155
|
+
createYearColname(colname: any, billdate: any): string;
|
|
25097
25156
|
/**
|
|
25098
25157
|
* @example:
|
|
25099
25158
|
* this.vhQuerySales.getBill('5fb67fda87c0f21d484cbdf3')
|
|
@@ -26599,6 +26658,7 @@ export declare class VhQuerySales {
|
|
|
26599
26658
|
* vhQuerySales
|
|
26600
26659
|
* @returns
|
|
26601
26660
|
*/
|
|
26661
|
+
private syncInventoryEveryDay_Stock1stDayOfMonth_new;
|
|
26602
26662
|
private syncInventoryEveryDay_Stock1stDayOfMonth;
|
|
26603
26663
|
/**
|
|
26604
26664
|
* this.vhQuerySales.xoaduthuatronglots()
|