ionic-vhframeworks 9.7.9 → 9.8.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.
|
@@ -14750,6 +14750,92 @@ export declare class VhQueryAutoWeb {
|
|
|
14750
14750
|
* @return Promise object => response = {vcode, msg, data(array), limit, page, totalpages}
|
|
14751
14751
|
*/
|
|
14752
14752
|
getWebApps_byFields(query: object, projection?: object, sort?: object, limit?: number, page?: number): Promise<unknown>;
|
|
14753
|
+
/**
|
|
14754
|
+
* Hàm này tạo webapp (type=11)
|
|
14755
|
+
* @example:
|
|
14756
|
+
let data = {
|
|
14757
|
+
id_branch: '0HqApj6sMu5VXCWdAyqz',
|
|
14758
|
+
date: new Date()
|
|
14759
|
+
}
|
|
14760
|
+
* this.vhQueryAutoWeb.addHosting_Package(data)
|
|
14761
|
+
.then((rsp:any)=>{
|
|
14762
|
+
if(rsp.vcode === 0){
|
|
14763
|
+
let branch = rsp.data;
|
|
14764
|
+
}
|
|
14765
|
+
}, error=>{ reject(error)
|
|
14766
|
+
})
|
|
14767
|
+
* @param data
|
|
14768
|
+
* @return Promise => rsp ={vcode, msg, data(object)} / error
|
|
14769
|
+
* @notice : hàm này chỉ add được dữ liệu sau khi khách hàng hoặc nhân viên đã đăng nhập
|
|
14770
|
+
* vcode == 0: success
|
|
14771
|
+
* vcode == 11: 'not logged in
|
|
14772
|
+
*/
|
|
14773
|
+
addHosting_Package(data: any): Promise<unknown>;
|
|
14774
|
+
/**
|
|
14775
|
+
* @example:
|
|
14776
|
+
* this.vhQueryAutoWeb.updateHosting_Package('5fb6780ca2148e09806c5b01', {hidden:true})
|
|
14777
|
+
.then((rsp:any)=>{
|
|
14778
|
+
if(rsp.vcode === 0){
|
|
14779
|
+
console.log('updateHosting_Package succeed');
|
|
14780
|
+
}
|
|
14781
|
+
}, error=>{
|
|
14782
|
+
console.log('error', error);
|
|
14783
|
+
})
|
|
14784
|
+
* @param id_hosting_package
|
|
14785
|
+
* @param data
|
|
14786
|
+
* @return Promise object => rsp ={vcode, msg, data(undefined)} / error
|
|
14787
|
+
* @notice : hàm này chỉ add được dữ liệu sau khi khách hàng hoặc nhân viên đã đăng nhập
|
|
14788
|
+
* vcode == 0: success
|
|
14789
|
+
* vcode == 11: 'not logged in
|
|
14790
|
+
*/
|
|
14791
|
+
updateHosting_Package(id_hosting_package: string, data: object): Promise<unknown>;
|
|
14792
|
+
/**
|
|
14793
|
+
* @example:
|
|
14794
|
+
* this.vhQueryAutoWeb.deleteHosting_Package('5fb67fda87c0f21d484cbdf3')
|
|
14795
|
+
.then((rsp:any)=>{
|
|
14796
|
+
if(rsp.vcode === 0){
|
|
14797
|
+
console.log('deleteHosting_Package succeed');
|
|
14798
|
+
}
|
|
14799
|
+
}, error=>{
|
|
14800
|
+
reject(error)
|
|
14801
|
+
})
|
|
14802
|
+
* @param id_hosting_package
|
|
14803
|
+
* @return Promise => rsp ={vcode, msg} / error
|
|
14804
|
+
* @notice : hàm này chỉ add được dữ liệu sau khi khách hàng hoặc nhân viên đã đăng nhập
|
|
14805
|
+
* vcode == 0: success
|
|
14806
|
+
* vcode == 11: 'not logged in
|
|
14807
|
+
*/
|
|
14808
|
+
deleteHosting_Package(id_hosting_package: string): Promise<unknown>;
|
|
14809
|
+
/**
|
|
14810
|
+
* @example
|
|
14811
|
+
* this.vhQueryAutoWeb.getHosting_Package('5fb67fda87c0f21d484cbdf3')
|
|
14812
|
+
.then((webapp)=>{
|
|
14813
|
+
console.log('getHosting_Package', webapp);
|
|
14814
|
+
})
|
|
14815
|
+
* @param id_hosting_package
|
|
14816
|
+
* @return Promise => obj ={} or null
|
|
14817
|
+
*/
|
|
14818
|
+
getHosting_Package(id_hosting_package: string): Promise<unknown>;
|
|
14819
|
+
/**
|
|
14820
|
+
* @example:
|
|
14821
|
+
* this.vhQueryAutoWeb.getHosting_Packages_byFields_byPages({name:{$eq:'name abc'}}, {},{},6,1)
|
|
14822
|
+
.then(response=>{
|
|
14823
|
+
console.log('response', response);
|
|
14824
|
+
if(response.vcode === 0){
|
|
14825
|
+
//-----------your code-----------
|
|
14826
|
+
let products = response.data;
|
|
14827
|
+
}
|
|
14828
|
+
},(error:any)=>{
|
|
14829
|
+
console.log('error', error)
|
|
14830
|
+
})
|
|
14831
|
+
* @param query
|
|
14832
|
+
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
14833
|
+
* @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
|
|
14834
|
+
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
14835
|
+
* @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
|
|
14836
|
+
* @return Promise object => response = {vcode, msg, data(array), limit, page, totalpages}
|
|
14837
|
+
*/
|
|
14838
|
+
getHosting_Packages_byFields_byPages(query: object, projection?: object, sort?: object, limit?: number, page?: number): Promise<unknown>;
|
|
14753
14839
|
/**
|
|
14754
14840
|
* Hàm này tạo combos (type=1), blog (type=2),.....
|
|
14755
14841
|
* @example:
|