ionic-vhframeworks 9.1.3 → 9.1.4
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.
|
@@ -11996,12 +11996,14 @@ export declare class VhQueryAutoWeb {
|
|
|
11996
11996
|
}
|
|
11997
11997
|
})
|
|
11998
11998
|
* @param id_node
|
|
11999
|
+
* @param selectedDevice: 'desktop', "tablet_portrait', 'tablet_landscape' , "mobile_portrait', 'mobile_landscape'
|
|
11999
12000
|
* @returns
|
|
12000
12001
|
*/
|
|
12001
|
-
createFlexboxTemplate(id_node: string): Promise<unknown>;
|
|
12002
|
+
createFlexboxTemplate(id_node: string, selectedDevice: string): Promise<unknown>;
|
|
12002
12003
|
/**
|
|
12003
12004
|
* Hàm tạo mảng cây nhị nhâp với các node theo chuẩn flexbox từ mảng position
|
|
12004
12005
|
* @param id_node
|
|
12006
|
+
* @param selectedDevice: 'desktop', "tablet_portrait', 'tablet_landscape' , "mobile_portrait', 'mobile_landscape'
|
|
12005
12007
|
* @returns
|
|
12006
12008
|
*/
|
|
12007
12009
|
private binarizeAndFlexboxTree;
|
|
@@ -12136,7 +12138,8 @@ export declare class VhQueryAutoWeb {
|
|
|
12136
12138
|
* Hàm này Enduser deploy source webapp CHỈ từ dự án webappgiare.vn (chạy trong Autoweb_design và autoweb_build) lên máy chủ (server) của dự án Autoweb_build
|
|
12137
12139
|
* Lưu ý: hàm này tự động kiểm tra enduser đã đăng nhập mới cho deploy
|
|
12138
12140
|
* @example:
|
|
12139
|
-
*
|
|
12141
|
+
* const cloning_options = {source_webapp:'renew', template_webapp:'renew', commondata_webapp:'renew', database_webapp:'renew'};
|
|
12142
|
+
* this.vhQueryAutoWeb.deployWebAppsource_toMySqlHosting_byEndUser('664483e744da7a03b4d5e1a2', 'domain07.webappgiare.vn', cloning_options)
|
|
12140
12143
|
.then((rsp:any)=>{
|
|
12141
12144
|
console.log('rsp', rsp);
|
|
12142
12145
|
if(rsp.vcode === 0){
|
|
@@ -12147,14 +12150,14 @@ export declare class VhQueryAutoWeb {
|
|
|
12147
12150
|
},(error:any)=>{
|
|
12148
12151
|
console.log('error', error)
|
|
12149
12152
|
})
|
|
12150
|
-
* @param
|
|
12151
|
-
* @param
|
|
12153
|
+
* @param db_webapp
|
|
12154
|
+
* @param hosting
|
|
12152
12155
|
* @return Promise object => response = {vcode, msg}
|
|
12153
12156
|
* vcode == 0: Message sent to email address successfully
|
|
12154
12157
|
* vcode == 1: Email address does not exist
|
|
12155
12158
|
* vcode == 11: 'not logged in'
|
|
12156
12159
|
*/
|
|
12157
|
-
|
|
12160
|
+
deployWebAppsource_toMySqlHosting_byEndUser(db_webapp: string, hosting: string, cloning_options: any): Promise<unknown>;
|
|
12158
12161
|
/**
|
|
12159
12162
|
* Hàm này đẩy source webapp từ dự án Autoweb_design lên hosting dự án Autoweb_build, dùng database Cloud Mongo của Viethas
|
|
12160
12163
|
* @example:
|
|
@@ -12620,7 +12623,7 @@ export declare class VhQueryAutoWeb {
|
|
|
12620
12623
|
/**
|
|
12621
12624
|
* Hàm này cập nhật thông tin người dùng webapp (người dùng đã nhập vào webapp mới cập nhật được)
|
|
12622
12625
|
* @example:
|
|
12623
|
-
* this.vhQueryAutoWeb.updateEndUser(
|
|
12626
|
+
* this.vhQueryAutoWeb.updateEndUser({name:'Nguyễn Văn A'})
|
|
12624
12627
|
.then(rsp=>{
|
|
12625
12628
|
console.log('updateEndUser', rsp);
|
|
12626
12629
|
if(rsp.vcode === 0){
|
|
@@ -12636,6 +12639,25 @@ export declare class VhQueryAutoWeb {
|
|
|
12636
12639
|
* vcode == 11: 'not logged in
|
|
12637
12640
|
*/
|
|
12638
12641
|
updateEndUser(value: object): Promise<unknown>;
|
|
12642
|
+
/**
|
|
12643
|
+
* Hàm này dùng để xóa hoặc đặt lại điểm mới cho khách hàng
|
|
12644
|
+
* @example:
|
|
12645
|
+
* this.vhQueryAutoWeb.updateEndUser_byPoints(1000)
|
|
12646
|
+
.then(rsp=>{
|
|
12647
|
+
console.log('updateEndUser', rsp);
|
|
12648
|
+
if(rsp.vcode === 0){
|
|
12649
|
+
//-----------your code-----------
|
|
12650
|
+
}
|
|
12651
|
+
},(error:any)=>{
|
|
12652
|
+
console.log('error', error)
|
|
12653
|
+
})
|
|
12654
|
+
* @param value : object
|
|
12655
|
+
* @return Promise object => rsp ={vcode, msg, data(undefined)} / error
|
|
12656
|
+
* @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
|
|
12657
|
+
* vcode == 0: success
|
|
12658
|
+
* vcode == 11: 'not logged in
|
|
12659
|
+
*/
|
|
12660
|
+
updateEndUser_byPoints(points: number): Promise<unknown>;
|
|
12639
12661
|
/**
|
|
12640
12662
|
* Hàm này xóa email người dùng webapp (người dùng đã nhập vào webapp mới xóa được)
|
|
12641
12663
|
* @example:
|
|
@@ -17375,6 +17397,26 @@ export declare class VhQueryAutoWeb {
|
|
|
17375
17397
|
* @return Promise object => obj = {vcode, msg, data(array)}
|
|
17376
17398
|
*/
|
|
17377
17399
|
getBillsByFields(query: object, projection?: object, sort?: object, limit?: number): Promise<unknown>;
|
|
17400
|
+
/**
|
|
17401
|
+
* @example:
|
|
17402
|
+
* this.vhQueryAutoWeb.getBills_byFields_byPages({name:{$eq:'name abc'}}, {},{},0,0)
|
|
17403
|
+
.then(response=>{
|
|
17404
|
+
console.log('response', response);
|
|
17405
|
+
if(response.vcode === 0){
|
|
17406
|
+
//-----------your code-----------
|
|
17407
|
+
let bills = response.data;
|
|
17408
|
+
}
|
|
17409
|
+
},(error:any)=>{
|
|
17410
|
+
console.log('error', error)
|
|
17411
|
+
})
|
|
17412
|
+
* @param query
|
|
17413
|
+
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
17414
|
+
* @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
|
|
17415
|
+
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
17416
|
+
* @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
|
|
17417
|
+
* @return Promise object => response = {vcode, msg, data(array), limit, page, totalpages}
|
|
17418
|
+
*/
|
|
17419
|
+
getBills_byFields_byPages(query: object, projection?: object, sort?: object, limit?: number, page?: number): Promise<unknown>;
|
|
17378
17420
|
/**
|
|
17379
17421
|
* @example:
|
|
17380
17422
|
* this.vhQueryAutoWeb.getBill('5fb67fda87c0f21d484cbdf3')
|
|
@@ -18792,6 +18834,27 @@ export declare class VhBuildAutoWeb {
|
|
|
18792
18834
|
* vcode == 2: wrong projectname
|
|
18793
18835
|
*/
|
|
18794
18836
|
dynamic_getDocs_fromDatabase_byFields(colname: string, query: any, projection?: object, sort?: any, limit?: number): Promise<unknown>;
|
|
18837
|
+
/**
|
|
18838
|
+
* @example:
|
|
18839
|
+
* this.vhBuildAutoWeb.dynamic_getDocs_fromDatabase_byFields_byPages('webapp_abouts', {name:{$eq:'name abc'}}, {},{},6,1)
|
|
18840
|
+
.then(response=>{
|
|
18841
|
+
console.log('response', response);
|
|
18842
|
+
if(response.vcode === 0){
|
|
18843
|
+
//-----------your code-----------
|
|
18844
|
+
let products = response.data;
|
|
18845
|
+
}
|
|
18846
|
+
},(error:any)=>{
|
|
18847
|
+
console.log('error', error)
|
|
18848
|
+
})
|
|
18849
|
+
* @param colname
|
|
18850
|
+
* @param query
|
|
18851
|
+
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
18852
|
+
* @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
|
|
18853
|
+
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
18854
|
+
* @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
|
|
18855
|
+
* @return Promise object => response = {vcode, msg, data(array), limit, page, totalpages}
|
|
18856
|
+
*/
|
|
18857
|
+
dynamic_getDocs_fromDatabase_byFields_byPages(colname: string, query: any, projection?: object, sort?: any, limit?: number, page?: number): Promise<unknown>;
|
|
18795
18858
|
/**
|
|
18796
18859
|
* @example
|
|
18797
18860
|
* this.vhBuildAutoWeb.dynamic_getDoc_fromService('categories', '5fb67fda87c0f21d484cbdf3')
|
|
@@ -19533,7 +19596,7 @@ export declare class VhDesignAutoWeb {
|
|
|
19533
19596
|
deployWebAppsource_toBuild_byEmail(database: string, build_email: string, build_password: string): Promise<any>;
|
|
19534
19597
|
/**
|
|
19535
19598
|
* @example:
|
|
19536
|
-
* this.vhDesignAutoWeb.
|
|
19599
|
+
* this.vhDesignAutoWeb.deployWebAppsource_toMySqlHosting_byEndUser('664483e744da7a03b4d5e1a2', 'domain07.webappgiare.vn')
|
|
19537
19600
|
.then(response=>{
|
|
19538
19601
|
console.log('response', response);
|
|
19539
19602
|
if(response.vcode === 0){
|
|
@@ -19544,14 +19607,14 @@ export declare class VhDesignAutoWeb {
|
|
|
19544
19607
|
},(error:any)=>{
|
|
19545
19608
|
console.log('error', error)
|
|
19546
19609
|
})
|
|
19547
|
-
* @param
|
|
19548
|
-
* @param
|
|
19610
|
+
* @param db_webapp
|
|
19611
|
+
* @param hosting
|
|
19549
19612
|
* @return Promise object => response = {vcode, msg}
|
|
19550
19613
|
* vcode == 0: Message sent to email address successfully
|
|
19551
19614
|
* vcode == 1: Email address does not exist
|
|
19552
19615
|
* vcode == 11: 'not logged in'
|
|
19553
19616
|
*/
|
|
19554
|
-
|
|
19617
|
+
deployWebAppsource_toMySqlHosting_byEndUser(db_webapp: string, hosting: string, cloning_options: any): Promise<any>;
|
|
19555
19618
|
/**
|
|
19556
19619
|
* @example:
|
|
19557
19620
|
* this.vhDesignAutoWeb.deployWebAppsource_toMongoHosting_byEmail('nlQaKuDIMi6M7XtwmNMk', 'domain05', 'devhosting@gmail.com', '***')
|
|
@@ -20037,6 +20100,27 @@ export declare class VhDesignAutoWeb {
|
|
|
20037
20100
|
* vcode == 2: wrong projectname
|
|
20038
20101
|
*/
|
|
20039
20102
|
dynamic_getDocs_fromDatabase_byFields(colname: string, query: any, projection?: object, sort?: any, limit?: number): Promise<unknown>;
|
|
20103
|
+
/**
|
|
20104
|
+
* @example:
|
|
20105
|
+
* this.vhDesignAutoWeb.dynamic_getDocs_fromDatabase_byFields_byPages('webapp_abouts', {name:{$eq:'name abc'}}, {},{},6,1)
|
|
20106
|
+
.then(response=>{
|
|
20107
|
+
console.log('response', response);
|
|
20108
|
+
if(response.vcode === 0){
|
|
20109
|
+
//-----------your code-----------
|
|
20110
|
+
let products = response.data;
|
|
20111
|
+
}
|
|
20112
|
+
},(error:any)=>{
|
|
20113
|
+
console.log('error', error)
|
|
20114
|
+
})
|
|
20115
|
+
* @param colname
|
|
20116
|
+
* @param query
|
|
20117
|
+
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
20118
|
+
* @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
|
|
20119
|
+
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
20120
|
+
* @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
|
|
20121
|
+
* @return Promise object => response = {vcode, msg, data(array), limit, page, totalpages}
|
|
20122
|
+
*/
|
|
20123
|
+
dynamic_getDocs_fromDatabase_byFields_byPages(colname: string, query: any, projection?: object, sort?: any, limit?: number, page?: number): Promise<unknown>;
|
|
20040
20124
|
/**
|
|
20041
20125
|
* @example
|
|
20042
20126
|
* this.vhDesignAutoWeb.getDoc_fromService('categories', '5fb67fda87c0f21d484cbdf3')
|