ionic-vhframeworks 9.1.2 → 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
- * this.vhQueryAutoWeb.deployWebAppsource_toBuild_byEmail('664483e744da7a03b4d5e1a2', 'domain07.webappgiare.vn')
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 build_email
12151
- * @param build_password
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
- deployWebAppsource_toMongoHosting_byEndUser(database: string, hosting: string): Promise<unknown>;
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:
@@ -12589,8 +12592,16 @@ export declare class VhQueryAutoWeb {
12589
12592
  * vcode == 4: Please reset your password
12590
12593
  */
12591
12594
  onAuthStateChangedEndUser(): Promise<any>;
12595
+ /**
12596
+ * this.vhQueryAutoWeb.getHostings_byEndUser()
12597
+ * @returns
12598
+ */
12592
12599
  getHostings_byEndUser(): Promise<any>;
12593
- addHosting_byEndUser(): Promise<any>;
12600
+ /**
12601
+ * this.vhQueryAutoWeb.createHosting_byEndUser()
12602
+ * @returns
12603
+ */
12604
+ createHosting_byEndUser(): Promise<any>;
12594
12605
  /**
12595
12606
  * @example
12596
12607
  * this.vhQueryAutoWeb.signoutEndUser();
@@ -12612,7 +12623,7 @@ export declare class VhQueryAutoWeb {
12612
12623
  /**
12613
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)
12614
12625
  * @example:
12615
- * this.vhQueryAutoWeb.updateEndUser('5fb6780ca2148e09806c5b01', {name:'Nguyễn Văn A'})
12626
+ * this.vhQueryAutoWeb.updateEndUser({name:'Nguyễn Văn A'})
12616
12627
  .then(rsp=>{
12617
12628
  console.log('updateEndUser', rsp);
12618
12629
  if(rsp.vcode === 0){
@@ -12628,6 +12639,25 @@ export declare class VhQueryAutoWeb {
12628
12639
  * vcode == 11: 'not logged in
12629
12640
  */
12630
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>;
12631
12661
  /**
12632
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)
12633
12663
  * @example:
@@ -17367,6 +17397,26 @@ export declare class VhQueryAutoWeb {
17367
17397
  * @return Promise object => obj = {vcode, msg, data(array)}
17368
17398
  */
17369
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>;
17370
17420
  /**
17371
17421
  * @example:
17372
17422
  * this.vhQueryAutoWeb.getBill('5fb67fda87c0f21d484cbdf3')
@@ -18784,6 +18834,27 @@ export declare class VhBuildAutoWeb {
18784
18834
  * vcode == 2: wrong projectname
18785
18835
  */
18786
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>;
18787
18858
  /**
18788
18859
  * @example
18789
18860
  * this.vhBuildAutoWeb.dynamic_getDoc_fromService('categories', '5fb67fda87c0f21d484cbdf3')
@@ -19525,7 +19596,7 @@ export declare class VhDesignAutoWeb {
19525
19596
  deployWebAppsource_toBuild_byEmail(database: string, build_email: string, build_password: string): Promise<any>;
19526
19597
  /**
19527
19598
  * @example:
19528
- * this.vhDesignAutoWeb.deployWebAppsource_toMongoHosting_byEndUser('664483e744da7a03b4d5e1a2', 'domain07.webappgiare.vn')
19599
+ * this.vhDesignAutoWeb.deployWebAppsource_toMySqlHosting_byEndUser('664483e744da7a03b4d5e1a2', 'domain07.webappgiare.vn')
19529
19600
  .then(response=>{
19530
19601
  console.log('response', response);
19531
19602
  if(response.vcode === 0){
@@ -19536,14 +19607,14 @@ export declare class VhDesignAutoWeb {
19536
19607
  },(error:any)=>{
19537
19608
  console.log('error', error)
19538
19609
  })
19539
- * @param email
19540
- * @param password
19610
+ * @param db_webapp
19611
+ * @param hosting
19541
19612
  * @return Promise object => response = {vcode, msg}
19542
19613
  * vcode == 0: Message sent to email address successfully
19543
19614
  * vcode == 1: Email address does not exist
19544
19615
  * vcode == 11: 'not logged in'
19545
19616
  */
19546
- deployWebAppsource_toMongoHosting_byEndUser(database: string, hosting: string): Promise<any>;
19617
+ deployWebAppsource_toMySqlHosting_byEndUser(db_webapp: string, hosting: string, cloning_options: any): Promise<any>;
19547
19618
  /**
19548
19619
  * @example:
19549
19620
  * this.vhDesignAutoWeb.deployWebAppsource_toMongoHosting_byEmail('nlQaKuDIMi6M7XtwmNMk', 'domain05', 'devhosting@gmail.com', '***')
@@ -19718,7 +19789,7 @@ export declare class VhDesignAutoWeb {
19718
19789
  */
19719
19790
  onAuthStateChangedEndUser(database: string): Promise<any>;
19720
19791
  getHostings_byEndUser(database: string): Promise<any>;
19721
- addHosting_byEndUser(hosting: string): Promise<any>;
19792
+ createHosting_byEndUser(hosting: string): Promise<any>;
19722
19793
  /**
19723
19794
  * @example
19724
19795
  * this.vhDesignAutoWeb.signoutEndUser();
@@ -20029,6 +20100,27 @@ export declare class VhDesignAutoWeb {
20029
20100
  * vcode == 2: wrong projectname
20030
20101
  */
20031
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>;
20032
20124
  /**
20033
20125
  * @example
20034
20126
  * this.vhDesignAutoWeb.getDoc_fromService('categories', '5fb67fda87c0f21d484cbdf3')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "9.1.2",
3
+ "version": "9.1.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"