ionic-vhframeworks 9.2.3 → 9.2.5
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
|
|
@@ -14635,15 +14636,16 @@ export declare class VhQueryAutoWeb {
|
|
|
14635
14636
|
* @example:
|
|
14636
14637
|
* this.vhQueryAutoWeb.admin_addWallet(data)
|
|
14637
14638
|
.then((rsp:any)=>{
|
|
14639
|
+
console.log('admin_addWallet', rsp);
|
|
14638
14640
|
if(rsp.vcode === 0){
|
|
14639
|
-
|
|
14641
|
+
//-----------your code-----------
|
|
14640
14642
|
}
|
|
14641
14643
|
}, error=>{
|
|
14642
|
-
|
|
14644
|
+
console.log('error', error);
|
|
14643
14645
|
})
|
|
14644
14646
|
* @param data
|
|
14645
14647
|
* @return Promise => rsp ={vcode, msg, data(object)} / error
|
|
14646
|
-
* @notice : hàm này chỉ
|
|
14648
|
+
* @notice : hàm này chỉ thêm được dữ liệu sau khi nhân viên (admin) đã đăng nhập
|
|
14647
14649
|
* vcode == 0: success
|
|
14648
14650
|
* vcode == 11: 'not logged in
|
|
14649
14651
|
*/
|
|
@@ -14652,33 +14654,35 @@ export declare class VhQueryAutoWeb {
|
|
|
14652
14654
|
* @example:
|
|
14653
14655
|
* this.vhQueryAutoWeb.admin_updateWallet('5fb6780ca2148e09806c5b01', {hidden:true})
|
|
14654
14656
|
.then((rsp:any)=>{
|
|
14657
|
+
console.log('admin_updateWallet', rsp);
|
|
14655
14658
|
if(rsp.vcode === 0){
|
|
14656
|
-
|
|
14659
|
+
//-----------your code-----------
|
|
14657
14660
|
}
|
|
14658
14661
|
}, error=>{
|
|
14659
14662
|
console.log('error', error);
|
|
14660
14663
|
})
|
|
14661
|
-
* @param
|
|
14662
|
-
* @param
|
|
14664
|
+
* @param id_wallet
|
|
14665
|
+
* @param value
|
|
14663
14666
|
* @return Promise object => rsp ={vcode, msg, data(true or false)} / error
|
|
14664
|
-
* @notice : hàm này chỉ
|
|
14667
|
+
* @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
14668
|
* vcode == 0: success
|
|
14666
14669
|
* vcode == 11: 'not logged in
|
|
14667
14670
|
*/
|
|
14668
|
-
admin_updateWallet(
|
|
14671
|
+
admin_updateWallet(id_wallet: string, value: object): Promise<unknown>;
|
|
14669
14672
|
/**
|
|
14670
14673
|
* @example:
|
|
14671
14674
|
* this.vhQueryAutoWeb.admin_deleteWallet('5fb67fda87c0f21d484cbdf3')
|
|
14672
14675
|
.then((rsp:any)=>{
|
|
14676
|
+
console.log('admin_deleteWallet', rsp);
|
|
14673
14677
|
if(rsp.vcode === 0){
|
|
14674
|
-
|
|
14678
|
+
//-----------your code-----------
|
|
14675
14679
|
}
|
|
14676
14680
|
}, error=>{
|
|
14677
|
-
|
|
14681
|
+
console.log('error', error);
|
|
14678
14682
|
})
|
|
14679
14683
|
* @param id_wallet
|
|
14680
14684
|
* @return Promise => rsp ={vcode, msg, data(true or false)} / error
|
|
14681
|
-
* @notice : hàm này chỉ
|
|
14685
|
+
* @notice : hàm này chỉ xóa được dữ liệu sau khi nhân viên (admin) đã đăng nhập
|
|
14682
14686
|
* vcode == 0: success
|
|
14683
14687
|
* vcode == 11: 'not logged in
|
|
14684
14688
|
*/
|
|
@@ -14686,11 +14690,17 @@ export declare class VhQueryAutoWeb {
|
|
|
14686
14690
|
/**
|
|
14687
14691
|
* @example
|
|
14688
14692
|
* this.vhQueryAutoWeb.admin_getWallet('5fb67fda87c0f21d484cbdf3')
|
|
14689
|
-
|
|
14690
|
-
|
|
14691
|
-
|
|
14693
|
+
.then((rsp:any)=>{
|
|
14694
|
+
console.log('admin_getWallet', rsp);
|
|
14695
|
+
if(rsp.vcode === 0){
|
|
14696
|
+
//-----------your code-----------
|
|
14697
|
+
}
|
|
14698
|
+
}, error=>{
|
|
14699
|
+
console.log('error', error);
|
|
14700
|
+
})
|
|
14692
14701
|
* @param id_wallet
|
|
14693
14702
|
* @return Promise object => rsp ={vcode, msg, data(object or null)} / error
|
|
14703
|
+
* @notice : hàm này chỉ lấy về được dữ liệu sau khi nhân viên (admin) đã đăng nhập
|
|
14694
14704
|
* vcode == 0: success
|
|
14695
14705
|
* vcode == 11: 'not logged in
|
|
14696
14706
|
*/
|
|
@@ -14698,20 +14708,20 @@ export declare class VhQueryAutoWeb {
|
|
|
14698
14708
|
/**
|
|
14699
14709
|
* @example:
|
|
14700
14710
|
* this.vhQueryAutoWeb.admin_getWallets_byFields({name:{$eq:'name abc'}}, {},{},6)
|
|
14701
|
-
.then(
|
|
14702
|
-
console.log('
|
|
14703
|
-
if(
|
|
14704
|
-
|
|
14705
|
-
let products = response.data;
|
|
14711
|
+
.then((rsp:any)=>{
|
|
14712
|
+
console.log('admin_getWallets_byFields', rsp);
|
|
14713
|
+
if(rsp.vcode === 0){
|
|
14714
|
+
//-----------your code-----------
|
|
14706
14715
|
}
|
|
14707
|
-
},
|
|
14708
|
-
|
|
14716
|
+
}, error=>{
|
|
14717
|
+
console.log('error', error);
|
|
14709
14718
|
})
|
|
14710
14719
|
* @param query
|
|
14711
14720
|
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
14712
14721
|
* @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
14722
|
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
14714
14723
|
* @return Promise object => response = {vcode, msg, data(array)}
|
|
14724
|
+
* @notice : hàm này chỉ lấy về được dữ liệu sau khi nhân viên (admin) đã đăng nhập
|
|
14715
14725
|
* vcode == 0: success
|
|
14716
14726
|
* vcode == 11: 'not logged in
|
|
14717
14727
|
*/
|
|
@@ -14719,14 +14729,13 @@ export declare class VhQueryAutoWeb {
|
|
|
14719
14729
|
/**
|
|
14720
14730
|
* @example:
|
|
14721
14731
|
* 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;
|
|
14732
|
+
.then((rsp:any)=>{
|
|
14733
|
+
console.log('admin_getWallets_byFields_byPages', rsp);
|
|
14734
|
+
if(rsp.vcode === 0){
|
|
14735
|
+
//-----------your code-----------
|
|
14727
14736
|
}
|
|
14728
|
-
},
|
|
14729
|
-
|
|
14737
|
+
}, error=>{
|
|
14738
|
+
console.log('error', error);
|
|
14730
14739
|
})
|
|
14731
14740
|
* @param query
|
|
14732
14741
|
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
@@ -14734,10 +14743,48 @@ export declare class VhQueryAutoWeb {
|
|
|
14734
14743
|
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
14735
14744
|
* @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
|
|
14736
14745
|
* @return Promise object => response = {vcode, msg, data(array), limit, page, totalpages}
|
|
14746
|
+
* @notice : hàm này chỉ lấy về được dữ liệu sau khi nhân viên (admin) đã đăng nhập
|
|
14737
14747
|
* vcode == 0: success
|
|
14738
14748
|
* vcode == 11: 'not logged in
|
|
14739
14749
|
*/
|
|
14740
14750
|
admin_getWallets_byFields_byPages(query: object, projection?: object, sort?: object, limit?: number, page?: number): Promise<unknown>;
|
|
14751
|
+
/**
|
|
14752
|
+
* @example:
|
|
14753
|
+
* this.vhQueryAutoWeb.enduser_updateWallet('5fb6780ca2148e09806c5b01', {hidden:true})
|
|
14754
|
+
.then((rsp:any)=>{
|
|
14755
|
+
console.log('enduser_updateWallet', rsp);
|
|
14756
|
+
if(rsp.vcode === 0){
|
|
14757
|
+
//-----------your code-----------
|
|
14758
|
+
}
|
|
14759
|
+
}, error=>{
|
|
14760
|
+
console.log('error', error);
|
|
14761
|
+
})
|
|
14762
|
+
* @param id_wallet
|
|
14763
|
+
* @param value
|
|
14764
|
+
* @return Promise object => rsp ={vcode, msg, data(true or false)} / error
|
|
14765
|
+
* @notice : hàm này chỉ cập nhật được dữ liệu sau khi khách hàng (enduser) đã đăng nhập
|
|
14766
|
+
* vcode == 0: success
|
|
14767
|
+
* vcode == 11: 'not logged in
|
|
14768
|
+
*/
|
|
14769
|
+
enduser_updateWallet(id_wallet: string, value: object): Promise<unknown>;
|
|
14770
|
+
/**
|
|
14771
|
+
* @example
|
|
14772
|
+
* this.vhQueryAutoWeb.enduser_getWallet('5fb67fda87c0f21d484cbdf3')
|
|
14773
|
+
.then((rsp:any)=>{
|
|
14774
|
+
console.log('enduser_getWallet', rsp);
|
|
14775
|
+
if(rsp.vcode === 0){
|
|
14776
|
+
//-----------your code-----------
|
|
14777
|
+
}
|
|
14778
|
+
}, error=>{
|
|
14779
|
+
console.log('error', error);
|
|
14780
|
+
})
|
|
14781
|
+
* @param id_wallet
|
|
14782
|
+
* @return Promise object => rsp ={vcode, msg, data(object or null)} / error
|
|
14783
|
+
* @notice : hàm này chỉ lấy về được dữ liệu sau khi khách hàng (enduser) đã đăng nhập
|
|
14784
|
+
* vcode == 0: success
|
|
14785
|
+
* vcode == 11: 'not logged in
|
|
14786
|
+
*/
|
|
14787
|
+
enduser_getWallet(id_wallet: string): Promise<unknown>;
|
|
14741
14788
|
/**
|
|
14742
14789
|
* Hàm này tạo toppings (type=1), blog (type=2),.....
|
|
14743
14790
|
* @example:
|