ionic-vhframeworks 3.9.5 → 3.9.8

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.
@@ -404,6 +404,15 @@ export declare class VhAuth {
404
404
  * @returns
405
405
  */
406
406
  initializeProject(projectname: string, dbstorage: string, dbserverversion: string, camserverversion: string, fwcode: number, database: string): any;
407
+ /**
408
+ * @example:
409
+ * this.vhAuth.initializeWebAppProject('vhsales', 394637, 'all');
410
+ * @param projectname
411
+ * @param fwcode
412
+ * @param database : tất cả database 'all' hoặc một database nào đó '4wk3JMSwSjh4kOLWOMbLbWt0Rdk2'
413
+ * @returns
414
+ */
415
+ initializeWebAppProject(projectname: string, fwcode: number, database: string): any;
407
416
  /**
408
417
  * @example:
409
418
  * this.vhAuth.runOnMGDBServerVersion();
@@ -1100,7 +1109,7 @@ export declare class VhQueryCafe {
1100
1109
  /**
1101
1110
  * @description: hàm này lấy về những hạn chế của gói main_package (khách trả phí mua gói sử dụng các chức năng CHÍNH, mỗi gói sẽ có nhưng hạn chế khác nhau về user_number, show_report_duration)
1102
1111
  * @example
1103
- * this.refreshLocalRestrictionMainPackage()
1112
+ * this.vhQueryCafe.refreshLocalRestrictionMainPackage()
1104
1113
  .then((bool)=>{
1105
1114
  console.log('bool', bool);
1106
1115
  })
@@ -3319,11 +3328,6 @@ export declare class VhQueryCafe {
3319
3328
  /**
3320
3329
  * @example:
3321
3330
  * this.vhQueryCafe.createPaymentVnpay(10000, 'Thanh toan hoa don so A7TG2004, vao luc: 2021-11-19 13:11:27', 'o0wEpPDhR8QiGDkp2hLG', 'http://localhost:4200/')
3322
- .then((response)=>{
3323
- console.log('createPaymentVnpay', response);
3324
- }, error=>{
3325
- console.log('error', error);
3326
- })
3327
3331
  * @param amount
3328
3332
  * @param orderDescription (lưu ý chữ không dấu)
3329
3333
  * @param id_payment
@@ -7553,9 +7557,9 @@ export declare class VhQuerySales {
7553
7557
  /**
7554
7558
  * @description: hàm này lấy về những hạn chế của gói main_package (khách trả phí mua gói sử dụng các chức năng CHÍNH, mỗi gói sẽ có nhưng hạn chế khác nhau về user_number, show_report_duration)
7555
7559
  * @example
7556
- * this.refreshLocalRestrictionMainPackage()
7557
- .then((bool)=>{
7558
- console.log('bool', bool);
7560
+ * this.vhQuerySales.refreshLocalRestrictionMainPackage()
7561
+ .then(()=>{
7562
+ let restriction_main_package = this.vhQuerySales.getLocalRestrictionMainPackage();
7559
7563
  })
7560
7564
  * @return Promise => null/error
7561
7565
  */
@@ -7570,7 +7574,7 @@ export declare class VhQuerySales {
7570
7574
  /**
7571
7575
  * @description: hàm này lấy về những hạn chế của gói ecommerce_package (khách trả phí mua gói sử dụng TMĐT, mỗi gói sẽ có nhưng hạn chế khác nhau về shop_number, show_report_duration)
7572
7576
  * @example
7573
- * this.refreshLocalRestrictionEcommercePackage()
7577
+ * this.vhQuerySales.refreshLocalRestrictionEcommercePackage()
7574
7578
  .then((bool)=>{
7575
7579
  console.log('bool', bool);
7576
7580
  })
@@ -7587,7 +7591,7 @@ export declare class VhQuerySales {
7587
7591
  /**
7588
7592
  * @description: hàm này lấy về những hạn chế của gói facebook_package (khách trả phí mua gói sử dụng facebook, mỗi gói sẽ có nhưng hạn chế khác nhau về fanpage_number, show_report_duration)
7589
7593
  * @example
7590
- * this.refreshLocalRestrictionFacebookPackage()
7594
+ * this.vhQuerySales.refreshLocalRestrictionFacebookPackage()
7591
7595
  .then((bool)=>{
7592
7596
  console.log('bool', bool);
7593
7597
  })
@@ -10494,11 +10498,6 @@ export declare class VhQuerySales {
10494
10498
  /**
10495
10499
  * @example:
10496
10500
  * this.vhQuerySales.createPaymentVnpay(10000, 'Thanh toan hoa don so A7TG2004, vao luc: 2021-11-19 13:11:27', 'o0wEpPDhR8QiGDkp2hLG', 'http://localhost:4200/')
10497
- .then((response)=>{
10498
- console.log('createPaymentVnpay', response);
10499
- }, error=>{
10500
- console.log('error', error);
10501
- })
10502
10501
  * @param amount
10503
10502
  * @param orderDescription (lưu ý chữ không dấu)
10504
10503
  * @param id_payment
@@ -14475,7 +14474,7 @@ export declare class VhQuerySmhome {
14475
14474
  addComponent(data: object): Promise<unknown>;
14476
14475
  /**
14477
14476
  * @example:
14478
- * this.VhQuerySmhome.updateComponent('5fb6780ca2148e09806c5b01', {quantity:400})
14477
+ * this.vhQuerySmhome.updateComponent('5fb6780ca2148e09806c5b01', {quantity:400})
14479
14478
  .then((bool)=>{
14480
14479
  console.log('updateComponent', bool);
14481
14480
  })
@@ -14486,7 +14485,7 @@ export declare class VhQuerySmhome {
14486
14485
  updateComponent(id_component: string, data: object): Promise<unknown>;
14487
14486
  /**
14488
14487
  * @example:
14489
- * this.VhQuerySmhome.deleteComponent('5fb67fda87c0f21d484cbdf3')
14488
+ * this.vhQuerySmhome.deleteComponent('5fb67fda87c0f21d484cbdf3')
14490
14489
  .then((bool)=>{
14491
14490
  console.log('deleteComponent', bool);
14492
14491
  })
@@ -14496,7 +14495,7 @@ export declare class VhQuerySmhome {
14496
14495
  deleteComponent(id_component: string): Promise<unknown>;
14497
14496
  /**
14498
14497
  * @example
14499
- * this.VhQuerySmhome.getComponent('5fb67fda87c0f21d484cbdf3')
14498
+ * this.vhQuerySmhome.getComponent('5fb67fda87c0f21d484cbdf3')
14500
14499
  .then((component)=>{
14501
14500
  console.log('getComponent', component);
14502
14501
  })
@@ -14506,13 +14505,78 @@ export declare class VhQuerySmhome {
14506
14505
  getComponent(id_component: string): Promise<unknown>;
14507
14506
  /**
14508
14507
  * @example
14509
- * this.VhQuerySmhome.getComponents()
14508
+ * this.vhQuerySmhome.getComponents()
14510
14509
  .then((components)=>{
14511
14510
  console.log('getComponents', components);
14512
14511
  })
14513
14512
  * @return Promise => array(object) = [{},{},..]
14514
14513
  */
14515
14514
  getComponents(): Promise<unknown>;
14515
+ /**
14516
+ * @example:
14517
+ * let data = {
14518
+ * name: 'TCL',
14519
+ * code_type: 10,
14520
+ * type: 1
14521
+ * }
14522
+ * this.vhQuerySmhome.addIRManufacturer_byID('5fb6780ca2148e09806c5b01', data)
14523
+ .then((IRmanufacturer)=>{
14524
+ console.log('addIRManufacturer', IRmanufacturer);
14525
+ },error=>{
14526
+ console.log('error', error);
14527
+ })
14528
+ * @param id_IRmanufacturer
14529
+ * @param data : {}
14530
+ * @return Promise => obj = {} /error
14531
+ * Luu ý: chỉ có 2 trường hợp, hoặc là thêm thành công, hoặc là báo lỗi error
14532
+ */
14533
+ addIRManufacturer_byID(id_IRmanufacturer: string, data: object): Promise<unknown>;
14534
+ /**
14535
+ * @example:
14536
+ * this.vhQuerySmhome.updateIRManufacturer('5fb6780ca2148e09806c5b01', {code_type: 9})
14537
+ .then(()=>{
14538
+ console.log('updateIRManufacturer');
14539
+ }, error=>{
14540
+ console.log('error');
14541
+ })
14542
+ * @param id_IRmanufacturer
14543
+ * @param value : {}
14544
+ * @return Promise => response = undefined / error
14545
+ */
14546
+ updateIRManufacturer(id_IRmanufacturer: string, value: object): Promise<unknown>;
14547
+ /**
14548
+ * @example:
14549
+ * this.vhQuerySmhome.deleteIRManufacturer('5fb67fda87c0f21d484cbdf3')
14550
+ .then(()=>{
14551
+ console.log('deleteIRManufacturer');
14552
+ })
14553
+ * @param id_IRmanufacturer
14554
+ * @return Promise => response = undefined / error
14555
+ */
14556
+ deleteIRManufacturer(id_IRmanufacturer: string): Promise<unknown>;
14557
+ /**
14558
+ * @example
14559
+ * this.vhQuerySmhome.getIRManufacturer('5fb67fda87c0f21d484cbdf3')
14560
+ .then((IRmanufacturer)=>{
14561
+ console.log('getIRManufacturer', IRmanufacturer);
14562
+ },error=>{
14563
+ console.log('error', error);
14564
+ })
14565
+ * @param id_IRmanufacturer
14566
+ * @return Promise => response ={} or null / error
14567
+ */
14568
+ getIRManufacturer(id_IRmanufacturer: string): Promise<unknown>;
14569
+ /**
14570
+ * @example
14571
+ * this.vhQuerySmhome.getIRManufacturers(1)
14572
+ .then((IRmanufacturers)=>{
14573
+ console.log('getIRManufacturers', IRmanufacturers);
14574
+ }, error=>{
14575
+ console.log(error, error);
14576
+ })
14577
+ * @return Promise => array(object) = [{},{},..]
14578
+ */
14579
+ getIRManufacturers(type: number): Promise<unknown>;
14516
14580
  private publishObservableEventIcons;
14517
14581
  private observableLocalIcons;
14518
14582
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "3.9.5",
3
+ "version": "3.9.8",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.0.0"