ionic-vhframeworks 3.0.2 → 3.0.3

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.
@@ -6561,13 +6561,13 @@ export declare class VhQuerySales {
6561
6561
  */
6562
6562
  private getProductListTikis;
6563
6563
  /**
6564
- * let localshoplistlazada = this.vhQuerySales.getlocalShopListLazada();
6564
+ * let localshoplisttiki = this.vhQuerySales.getlocalShopListTiki();
6565
6565
  * @returns
6566
6566
  */
6567
6567
  getlocalShopListTiki(): any;
6568
6568
  /**
6569
6569
  * @example:
6570
- this.vhQuerySales.getShopListLazada().then((array)=>{
6570
+ this.vhQuerySales.getShopListTiki().then((array)=>{
6571
6571
  console.log('array', array);
6572
6572
  })
6573
6573
  * @returns Promise => array =[{},{},...]
@@ -6595,12 +6595,40 @@ export declare class VhQuerySales {
6595
6595
  */
6596
6596
  signOutTiki(id_shop: string): Promise<unknown>;
6597
6597
  /**
6598
+ * @example:
6599
+ * this.vhQuerySales.createMergeTikisProduct('5fb6780ca2148e09806c5b01',[{},{}])
6600
+ .then((tikisproduct)=>{
6601
+ console.log('createMergeTikisProduct', tikisproduct);
6602
+ }, error=>{
6603
+ console.log('error', error);
6604
+ })
6605
+ * @param id_product
6606
+ * @param tikiproductArray
6607
+ * @return Promise => array = [{},{},..]
6608
+ * 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
6609
+ */
6610
+ createMergeTikisProduct(id_product: any, tikiproductArray: any): Promise<unknown>;
6611
+ /**
6612
+ * @example:
6613
+ * this.vhQuerySales.deleteMergeTikiProduct('5fb67fda87c0f21d484cbdf3', 'gsdfgsdg4345324534t3w')
6614
+ .then((bool)=>{
6615
+ console.log('deleteMergeTikiProduct', bool);
6616
+ }, error=>{
6617
+ reject(error)
6618
+ })
6619
+ * @param id_product
6620
+ * @param id_tikiproduct
6621
+ * @return Promise => bool = true or false
6622
+ */
6623
+ deleteMergeTikiProduct(id_product: string, id_tikiproduct: string): Promise<unknown>;
6624
+ /**----------------------LAZADA ECOMMERCE--------------- */
6625
+ /**
6598
6626
  * @example:
6599
6627
  * let productdetaillistlazada = this.vhQuerySales.getlocalProductDetailListLazada('ư0e4tuiwe98rhvqw9vtqw9t7rq987r9qvwn98et98');
6600
6628
  * @param status
6601
6629
  * @returns
6602
6630
  */
6603
- getlocalProductDetailListLazada(id_shop: any): any[];
6631
+ private getlocalProductDetailListLazada;
6604
6632
  /**
6605
6633
  * @example:
6606
6634
  * this.vhQuerySales.refreshLocalProductDetailListLazadas()
@@ -6610,7 +6638,7 @@ export declare class VhQuerySales {
6610
6638
  * Hàm này refresh giá trị mới nhất cho hàm getlocalProductDetailListLazada() trong localstorage
6611
6639
  * @return Promise => null
6612
6640
  */
6613
- refreshLocalProductDetailListLazadas(): any;
6641
+ private refreshLocalProductDetailListLazadas;
6614
6642
  /**
6615
6643
  * @example:
6616
6644
  this.vhQuerySales.getProductDetailListLazadas().then((list)=>{
@@ -6703,6 +6731,24 @@ export declare class VhQuerySales {
6703
6731
  * @return Promise => bool = true or false
6704
6732
  */
6705
6733
  deleteMergeLazadaProduct(id_product: string, id_lazadaproduct: string): Promise<unknown>;
6734
+ /**
6735
+ * @example:
6736
+ *let created_after = new Date('2021-01-25');
6737
+ let created_before = new Date('2021-06-30');
6738
+ let access_token = '50000601506bKRvdjv16d01472hspFZdjp3qWxFJdNhveuVAezlxvCMt08WkxBrr';
6739
+ let id_shop = '100035896';
6740
+ this.vhQuerySales.getSalesOrderListLazada( created_after.toISOString(), created_before.toISOString(), access_token, id_shop)
6741
+ .then((result)=>{
6742
+ console.log('result', result);
6743
+ },error=>{
6744
+ console.log('error', error);
6745
+ })
6746
+ * @param created_after
6747
+ * @param created_before
6748
+ * @param access_token
6749
+ * @returns
6750
+ */
6751
+ getSalesOrderListLazada(created_after: string, created_before: string, access_token: string, id_shop: string): Promise<unknown>;
6706
6752
  /**
6707
6753
  * @example:
6708
6754
  * let json = [{
@@ -6765,26 +6811,63 @@ export declare class VhQuerySales {
6765
6811
  * @param status
6766
6812
  * @returns
6767
6813
  */
6768
- getlocalProductDetailListSendo(id_shop: any): any[];
6814
+ private getlocalProductDetailListSendo;
6815
+ /**
6816
+ * @example:
6817
+ * this.vhQuerySales.refreshLocalProductDetailListSendo()
6818
+ .then(()=>{
6819
+ do something.....
6820
+ })
6821
+ * Hàm này refresh giá trị mới nhất cho hàm getlocalProductDetailListSendo() trong localstorage
6822
+ * @return Promise => null
6823
+ */
6824
+ private refreshLocalProductDetailListSendo;
6825
+ /**
6826
+ * @example:
6827
+ * this.vhQuerySales.getProductDetailListSendo().then(()=>{
6828
+ do something...
6829
+ },error=>{
6830
+ })
6831
+ * @returns
6832
+ */
6833
+ private getProductDetailListSendo;
6834
+ /**
6835
+ * @example:
6836
+ * let productlistsendo = this.vhQuerySales.getlocalProductListSendo('ư0e4tuiwe98rhvqw9vtqw9t7rq987r9qvwn98et98');
6837
+ * @param status
6838
+ * @returns
6839
+ */
6840
+ getlocalProductListSendo(id_shop: any): any[];
6769
6841
  /**
6770
6842
  * @example:
6771
- * this.vhQuerySales.refreshLocalProductDetailListSendo()
6843
+ * this.vhQuerySales.refreshLocalProductListSendo()
6772
6844
  .then(()=>{
6773
6845
  do something.....
6774
6846
  })
6775
- * Hàm này refresh giá trị mới nhất cho hàm getlocalProductDetailListSendo() trong localstorage
6847
+ * Hàm này refresh giá trị mới nhất cho hàm getProductListSendo() trong localstorage
6776
6848
  * @return Promise => null
6777
6849
  */
6778
- refreshLocalProductDetailListSendo(): any;
6850
+ refreshLocalProductListSendo(): any;
6779
6851
  /**
6780
6852
  * @example:
6781
- * this.vhQuerySales.getProductDetailListSendo().then(()=>{
6853
+ * this.vhQuerySales.getProductListSendo().then(()=>{
6782
6854
  do something...
6783
6855
  },error=>{
6784
6856
  })
6785
6857
  * @returns
6786
6858
  */
6787
- private getProductDetailListSendo;
6859
+ private getProductListSendo;
6860
+ /**
6861
+ * @example:
6862
+ * this.vhQuerySales.getProductDetailSendo(['13857630'], 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJTdG9yZUlkIjoiNTczNjciLCJVc2VyTmFtZSI6IiIsIlN0b3JlU3RhdHVzIjoiMiIsIlNob3BUeXBlIjoiMCIsIlN0b3JlTGV2ZWwiOiIzIiwiZXhwIjoxNjMzNjU1ODMxLCJpc3MiOiI1NzM2NyIsImF1ZCI6IjU3MzY3In0.qM6gqpf3758JrSsTL2JlDOoD-TFS1VVaGkL6ixaI_lw', '403754acaafc4564a16c19faa32d73c8').then((productdetail)=>{
6863
+ console.log('productdetail', productdetail);
6864
+ },error=>{
6865
+ })
6866
+ * @param idArray
6867
+ * @param token
6868
+ * @returns
6869
+ */
6870
+ getProductDetailSendo(idArray: any, token: string, id_shop: any): Promise<unknown>;
6788
6871
  /**
6789
6872
  * @example:
6790
6873
  this.vhQuerySales.signInSendo('09384tni0qw8t9q90g', '938476838whsofis', {name: sendo 1}).then((obj)=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.0.0"