ionic-vhframeworks 9.4.8 → 9.5.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.
@@ -8,7 +8,7 @@
8
8
  */
9
9
  import { OnInit, EventEmitter, PipeTransform, RendererFactory2 } from "@angular/core";
10
10
  import { Router } from "@angular/router";
11
- import { VhMGDB_auth, VhMGDB_database, VhMGDB_rootdatabase, VhMGDB_f3rdclouds, VhMGDB_image, VhMGDB_socketMongoDB, VhMGDB_paymentVNPAY, VhMGDB_clouds, VhMGDB_shopee, VhMGDB_tiki, VhMGDB_sendo, VhMGDB_lazada, VhMGDB_socketMongoDB_Sales, VhMGDB_socketFacebook, VhMGDB_pattern, VhFB_OTP } from 'vhmongo-new';
11
+ import { VhMGDB_auth, VhMGDB_database, VhMGDB_rootdatabase, VhMGDB_f3rdclouds, VhMGDB_image, VhMGDB_socketMongoDB, VhMGDB_paymentVNPAY, VhMGDB_clouds, VhMGDB_shopee, VhMGDB_tiki, VhMGDB_sendo, VhMGDB_lazada, VhMGDB_socketFacebook, VhMGDB_pattern, VhFB_OTP } from 'vhmongo-new';
12
12
  import { ImagePicker } from "@ionic-native/image-picker/ngx";
13
13
  import { WebView } from "@ionic-native/ionic-webview/ngx";
14
14
  import { Camera } from "@ionic-native/camera/ngx";
@@ -21542,7 +21542,6 @@ export declare class VhQuerySales {
21542
21542
  private vhMGDB_sendo;
21543
21543
  private vhMGDB_lazada;
21544
21544
  private vhMGDB_socketFacebook;
21545
- private vhMGDB_socketMongoDB_Sales;
21546
21545
  private vhMGDB_paymentVNPAY;
21547
21546
  private vhQuery;
21548
21547
  private vhAuth;
@@ -21603,7 +21602,7 @@ export declare class VhQuerySales {
21603
21602
  private subjectcustomer_classs;
21604
21603
  private callbacksyncopeningbill;
21605
21604
  private sync_code;
21606
- constructor(vhMGDB_auth: VhMGDB_auth, vhMGDB_rootdatabase: VhMGDB_rootdatabase, vhMGDB_database: VhMGDB_database, vhMGDB_socketMongoDB: VhMGDB_socketMongoDB, vhMGDB_tiki: VhMGDB_tiki, vhMGDB_sendo: VhMGDB_sendo, vhMGDB_lazada: VhMGDB_lazada, vhMGDB_socketFacebook: VhMGDB_socketFacebook, vhMGDB_socketMongoDB_Sales: VhMGDB_socketMongoDB_Sales, vhMGDB_paymentVNPAY: VhMGDB_paymentVNPAY, vhQuery: VhQuery, vhAuth: VhAuth, vhAlgorithm: VhAlgorithm, vhDisplayLEDService: VhDisplayLEDService, iap2: InAppPurchase2, platform: Platform);
21605
+ constructor(vhMGDB_auth: VhMGDB_auth, vhMGDB_rootdatabase: VhMGDB_rootdatabase, vhMGDB_database: VhMGDB_database, vhMGDB_socketMongoDB: VhMGDB_socketMongoDB, vhMGDB_tiki: VhMGDB_tiki, vhMGDB_sendo: VhMGDB_sendo, vhMGDB_lazada: VhMGDB_lazada, vhMGDB_socketFacebook: VhMGDB_socketFacebook, vhMGDB_paymentVNPAY: VhMGDB_paymentVNPAY, vhQuery: VhQuery, vhAuth: VhAuth, vhAlgorithm: VhAlgorithm, vhDisplayLEDService: VhDisplayLEDService, iap2: InAppPurchase2, platform: Platform);
21607
21606
  fix_loi_kieu_du_lieu_barcode(): Promise<unknown>;
21608
21607
  /**
21609
21608
  * this.vhQuerySales.fix_mot_lan_duy_nhat_inventory_null()
@@ -22730,6 +22729,16 @@ export declare class VhQuerySales {
22730
22729
  * @returns Promise bool = true or false
22731
22730
  */
22732
22731
  syncCollections_Mobile(): Promise<unknown>;
22732
+ /**
22733
+ * @example:
22734
+ this.vhQuerySales.syncCollections_Sales365_Mobile().then((bool:any)=>{
22735
+ if(bool){
22736
+ do something...
22737
+ }
22738
+ })
22739
+ * @returns Promise bool = true or false
22740
+ */
22741
+ syncCollections_Sales365_Mobile(): Promise<unknown>;
22733
22742
  /**
22734
22743
  * @example:
22735
22744
  this.vhQuerySales.syncCollections_Desktop().then((bool:any)=>{
@@ -22740,35 +22749,18 @@ export declare class VhQuerySales {
22740
22749
  * @returns Promise bool = true or false
22741
22750
  */
22742
22751
  syncCollections_Desktop(): Promise<unknown>;
22743
- private checkExpireBranch_Sales;
22744
22752
  /**
22745
- *
22746
22753
  * @example:
22747
- * this.vhQuerySales.observableSyncBills('5fb6780ca2148e09806c5b01', 5)
22748
- .subscribe((rsp)=> {
22749
- if(rsp.vcode === 0){
22750
- //-----------your code 0-----------
22751
- let bill = rsp.data;
22752
- console.log('observableSyncBills', bill);
22753
- }else if(rsp.vcode === 1){
22754
- //-----------your code 1-----------
22755
- }else if(rsp.vcode === 2){
22756
- //-----------your code 2-----------
22757
- }
22758
- },(error:any) => {
22759
- console.log(error);
22760
- })
22761
- * @param id_bill
22762
- * @param bill_type
22763
- * @returns Observable => bill hoặc null;
22764
- * @return Observable object => rsp = {vcode, message, data}
22765
- * vcode == 0: repaired bill by another device
22766
- * vcode == 1: changed bill_type by another device
22767
- * vcode == 2: deleted bill by unknown device
22768
- * @notice : nhớ đóng closeSyncOpeningBill() khi thoát trang hiện tại this.vhQueryCafe.closeSyncOpeningBill();
22754
+ this.vhQuerySales.syncCollections_Desktop().then((bool:any)=>{
22755
+ if(bool){
22756
+ do something...
22757
+ }
22758
+ })
22759
+ * @returns Promise bool = true or false
22769
22760
  */
22770
- private observableSyncBills;
22771
- private observableSyncProducts;
22761
+ syncCollections_Sales365_Desktop(): Promise<unknown>;
22762
+ private checkExpireBranch_Sales;
22763
+ private checkExpireBranch_Sales365;
22772
22764
  private initSyncCollections;
22773
22765
  /**
22774
22766
  * @example:
@@ -25899,6 +25891,64 @@ export declare class VhQuerySales {
25899
25891
  * @return Promise => package ={} or null / error
25900
25892
  */
25901
25893
  getPackage_byDealer(id_package: any): Promise<unknown>;
25894
+ /**
25895
+ * @example:
25896
+ * this.vhQuerySales.updateLiceseKEY_byDealer('5fb6780ca2148e09806c5b01', {total:990000})
25897
+ .then((response)=>{
25898
+ console.log('updateLiceseKEY_byDealer', response);
25899
+ }, error=>{
25900
+ console.log('error', error);
25901
+ })
25902
+ * @param id_dealer
25903
+ * @param id_licenseKEY
25904
+ * @param value
25905
+ * @return Promise => response = undefined / error
25906
+ */
25907
+ updateLiceseKEY_byDealer(id_dealer: string, id_licenseKEY: string, value: any): Promise<unknown>;
25908
+ /**
25909
+ * @example:
25910
+ * let time = new Date();
25911
+ * time.setDate(time.getDate()-7);
25912
+ * this.vhQuerySales.getPayments_byDealer({payment_type:{$eq:5}}, {},{},0)
25913
+ .then((payments)=>{
25914
+ console.log('getPayments_byDealer', payments);
25915
+ })
25916
+ * @param query
25917
+ * @param projection — đang tìm hiểu, tạm thời để giá trị là {}
25918
+ * @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
25919
+ * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
25920
+ * @return — Array -> array = [{},{},...]
25921
+ */
25922
+ getLiceseKEYs_byDealer(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
25923
+ /**
25924
+ * @example:
25925
+ * this.vhQuerySales.updateLiceseKEY_byStote('5fb6780ca2148e09806c5b01', {total:990000})
25926
+ .then((response)=>{
25927
+ console.log('updateLiceseKEY_byStote', response);
25928
+ }, error=>{
25929
+ console.log('error', error);
25930
+ })
25931
+ * @param id_dealer
25932
+ * @param id_licenseKEY
25933
+ * @param value
25934
+ * @return Promise => response = undefined / error
25935
+ */
25936
+ updateLiceseKEY_byStote(id_store: string, id_licenseKEY: string, value: any): Promise<unknown>;
25937
+ /**
25938
+ * @example:
25939
+ * let time = new Date();
25940
+ * time.setDate(time.getDate()-7);
25941
+ * this.vhQuerySales.getLiceseKEYs_byStote({payment_type:{$eq:5}}, {},{},0)
25942
+ .then((payments)=>{
25943
+ console.log('getLiceseKEYs_byStote', payments);
25944
+ })
25945
+ * @param query
25946
+ * @param projection — đang tìm hiểu, tạm thời để giá trị là {}
25947
+ * @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
25948
+ * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
25949
+ * @return — Array -> array = [{},{},...]
25950
+ */
25951
+ getLiceseKEYs_byStote(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
25902
25952
  private publishObservableEventPromotions;
25903
25953
  private observableLocalPromotions;
25904
25954
  /**
@@ -32824,7 +32874,6 @@ export declare class VhQuerySMS {
32824
32874
  private vhMGDB_sendo;
32825
32875
  private vhMGDB_lazada;
32826
32876
  private vhMGDB_socketFacebook;
32827
- private vhMGDB_socketMongoDB_Sales;
32828
32877
  private vhMGDB_paymentVNPAY;
32829
32878
  private vhQuery;
32830
32879
  private vhAuth;
@@ -32833,7 +32882,7 @@ export declare class VhQuerySMS {
32833
32882
  private iap2;
32834
32883
  private platform;
32835
32884
  private hwinfo;
32836
- constructor(vhMGDB_auth: VhMGDB_auth, vhMGDB_rootdatabase: VhMGDB_rootdatabase, vhMGDB_database: VhMGDB_database, vhMGDB_socketMongoDB: VhMGDB_socketMongoDB, vhMGDB_tiki: VhMGDB_tiki, vhMGDB_sendo: VhMGDB_sendo, vhMGDB_lazada: VhMGDB_lazada, vhMGDB_socketFacebook: VhMGDB_socketFacebook, vhMGDB_socketMongoDB_Sales: VhMGDB_socketMongoDB_Sales, vhMGDB_paymentVNPAY: VhMGDB_paymentVNPAY, vhQuery: VhQuery, vhAuth: VhAuth, vhAlgorithm: VhAlgorithm, vhDisplayLEDService: VhDisplayLEDService, iap2: InAppPurchase2, platform: Platform);
32885
+ constructor(vhMGDB_auth: VhMGDB_auth, vhMGDB_rootdatabase: VhMGDB_rootdatabase, vhMGDB_database: VhMGDB_database, vhMGDB_socketMongoDB: VhMGDB_socketMongoDB, vhMGDB_tiki: VhMGDB_tiki, vhMGDB_sendo: VhMGDB_sendo, vhMGDB_lazada: VhMGDB_lazada, vhMGDB_socketFacebook: VhMGDB_socketFacebook, vhMGDB_paymentVNPAY: VhMGDB_paymentVNPAY, vhQuery: VhQuery, vhAuth: VhAuth, vhAlgorithm: VhAlgorithm, vhDisplayLEDService: VhDisplayLEDService, iap2: InAppPurchase2, platform: Platform);
32837
32886
  /**
32838
32887
  * @example:
32839
32888
  * this.vhQuerySMS.updateSKHDT('5fb6780ca2148e09806c5b01', {name: 'Quảng cáo 1'})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "9.4.8",
3
+ "version": "9.5.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"