ionic-vhframeworks 3.3.4 → 3.3.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.
@@ -6568,6 +6568,39 @@ export declare class VhEcommerce {
6568
6568
  * @returns Promise => Array
6569
6569
  */
6570
6570
  getlocalProductListShopee(id_shop: any): any;
6571
+ /**
6572
+ * @example:
6573
+ *let time_from = new Date('2021-10-28');
6574
+ let time_to = new Date('2021-10-30');
6575
+ let access_token = '4675cdb029b82eccb4a2a7e00b766a10';
6576
+ let id_shop = '29976825';
6577
+ this.vhEcommerce.getSalesOrderListShopee(time_from, time_to, access_token, id_shop)
6578
+ .then((result)=>{
6579
+ console.log('result', result);
6580
+ },error=>{
6581
+ console.log('error', error);
6582
+ })
6583
+ * @param created_after
6584
+ * @param created_before
6585
+ * @param access_token
6586
+ * @returns
6587
+ */
6588
+ getSalesOrderListShopee(time_from: any, time_to: any, access_token: string, id_shop: string): Promise<unknown>;
6589
+ /**
6590
+ * @example:
6591
+ * this.vhQuerySales.addMergeShopeesProduct_model('5fb6780ca2148e09806c5b01','tf3452345234', [{},{}], 'hjhjrtyur56u53')
6592
+ .then((bool)=>{
6593
+ console.log('addMergeShopeesProduct_model', bool);
6594
+ }, error=>{
6595
+ console.log('error', error);
6596
+ })
6597
+ * @param id_product
6598
+ * @param item_id
6599
+ * @param modelArray : [{SkuId1,..},{SkuId2,..}]
6600
+ * @param id_shop
6601
+ * @return Promise => boolean true or false
6602
+ */
6603
+ addMergeShopeesProduct_model(product: any, item_id: string, modelArray: any, id_shop: string, id_branch: any): Promise<unknown>;
6571
6604
  }
6572
6605
  export declare class VhQuerySales {
6573
6606
  private vhmongo_firebase;
@@ -6661,6 +6694,8 @@ export declare class VhQuerySales {
6661
6694
  */
6662
6695
  updateSalesOrderTiki_byFile(codeArray: any, data: object, token: string, id_shop: string): Promise<unknown>;
6663
6696
  /**
6697
+ * @notic : hàm này không thể cập nhật vô getlocalProductListTiki, do đó sau khi dùng hàm updateProductByJSONTiki xong thì dùng thêm hàm getProductByIdTiki
6698
+ * với các sản phẩm vừa cập nhật, lúc đó những gì vừa thay đổi mới đc cập nhật vô getlocalProductListTiki
6664
6699
  * @example:
6665
6700
  * let json = {
6666
6701
  "product_id" : "51509850",
@@ -6684,14 +6719,14 @@ export declare class VhQuerySales {
6684
6719
  /**
6685
6720
  * Cập nhập hàng loạt sản phẩm
6686
6721
  * @example:
6687
- * let json = {
6688
- "data": [
6689
- {
6690
- "product_id": 112059614,
6691
- "status": 3
6692
- }
6693
- ]
6694
- }
6722
+ * let json ={
6723
+ data: [
6724
+ {
6725
+ product_id: 112059614,
6726
+ status: 3
6727
+ }
6728
+ ]
6729
+ }
6695
6730
  let access_token = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJTdG9yZUlkIjoiODUyMjU5IiwiVXNlck5hbWUiOiIiLCJTdG9yZVN0YXR1cyI6IjIiLCJTaG9wVHlwZSI6IjEiLCJTdG9yZUxldmVsIjoiMCIsImV4cCI6MTYzMDAxMzM1NCwiaXNzIjoiODUyMjU5IiwiYXVkIjoiODUyMjU5In0.CYoBo-4tMOFrQXBZyw4ZvxKz0YOPU9IsWoRjIQtslis'
6696
6731
  this.vhQuerySales.updateProductsByJSONTiki( json, access_token).then((result)=>{
6697
6732
  console.log('result', result);
@@ -6709,7 +6744,7 @@ export declare class VhQuerySales {
6709
6744
  let created_to_date = new Date('2021-06-30');
6710
6745
  let access_token = '50000601506bKRvdjv16d01472hspFZdjp3qWxFJdNhveuVAezlxvCMt08WkxBrr';
6711
6746
  let id_shop = '100035896';
6712
- this.vhQuerySales.getSalesOrderListTiki( created_from_date.toISOString(), created_to_date.toISOString(), access_token, id_shop)
6747
+ this.vhQuerySales.getSalesOrderListTiki( created_from_date, created_to_date, access_token, id_shop)
6713
6748
  .then((result)=>{
6714
6749
  console.log('result', result);
6715
6750
  },error=>{
@@ -6721,13 +6756,28 @@ export declare class VhQuerySales {
6721
6756
  * @param id_shop
6722
6757
  * @returns
6723
6758
  */
6724
- getSalesOrderListTiki(created_from_date: string, created_to_date: string, access_token: string, id_shop: string): Promise<unknown>;
6759
+ getSalesOrderListTiki(created_from_date: any, created_to_date: any, access_token: string, id_shop: string): Promise<unknown>;
6725
6760
  /**
6726
- * @example:
6727
- * let productlisttiki = this.vhQuerySales.getlocalProductListTiki('ư0e4tuiwe98rhvqw9vtqw9t7rq987r9qvwn98et98');
6728
- * @param id_shop
6729
- * @returns
6730
- */
6761
+ * Hàm này lấy về chi tiết của một hóa đơn
6762
+ * @example
6763
+ * this.vhQuerySales.getSalesOrderDetailTiki('14424213387', '403754acaafc4564a16c19faa32d73c8', 'gsdr3454u54w34tfq')
6764
+ .then((salesorderdetail)=>{
6765
+ console.log('salesorderdetail', salesorderdetail);
6766
+ },error=>{
6767
+ console.log('error', error);
6768
+ })
6769
+ * @param order_id
6770
+ * @param access_token
6771
+ * @param id_shop
6772
+ * @returns Promise => obj ={} or null
6773
+ */
6774
+ getSalesOrderDetailTiki(code: string, access_token: string, id_shop: any): Promise<unknown>;
6775
+ /**
6776
+ * @example:
6777
+ * let productlisttiki = this.vhQuerySales.getlocalProductListTiki('ư0e4tuiwe98rhvqw9vtqw9t7rq987r9qvwn98et98');
6778
+ * @param id_shop
6779
+ * @returns
6780
+ */
6731
6781
  getlocalProductListTiki(id_shop: any): any;
6732
6782
  /**
6733
6783
  * @example:
@@ -6749,7 +6799,15 @@ export declare class VhQuerySales {
6749
6799
  private getProductListTikis;
6750
6800
  /**
6751
6801
  * @example:
6752
- this.vhQuerySales.getHiddenProductListTiki().then((list)=>{
6802
+ this.vhQuerySales.getProductByIdTiki(access_token, product_id, id_shop).then((producttiki)=>{
6803
+ console.log('producttiki', producttiki);
6804
+ })
6805
+ * @returns Promise => object ={} or null
6806
+ */
6807
+ getProductByIdTiki(access_token: string, product_id: string, id_shop: string): Promise<unknown>;
6808
+ /**
6809
+ * @example:
6810
+ this.vhQuerySales.getHiddenProductListTiki(access_token).then((list)=>{
6753
6811
  console.log('list', list);
6754
6812
  })
6755
6813
  * @returns Promise => array =[{},{},...]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "3.3.4",
3
+ "version": "3.3.8",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.0.0"