ionic-vhframeworks 3.5.9 → 3.6.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.
@@ -6537,6 +6537,46 @@ export declare class VhEcommerce {
6537
6537
  private shopeepricecomparinglist;
6538
6538
  private callbacklazadapricecomparing;
6539
6539
  constructor(vhmongo_firebase: Vhmongo_firebase);
6540
+ /**
6541
+ * @notice : Lấy địa chỉ + thời gian lấy hàng
6542
+ * @example:
6543
+ let order_sn = '2112156RC1JN5Y';
6544
+ let access_token = '98efa569a4731bb67a8f76fed8808d66';
6545
+ let shop_id = '894793475932';
6546
+ this.vhEcommerce.getShippingParameterShopee( order_sn, access_token, shop_id).then((result)=>{
6547
+ console.log('result', result);
6548
+ },error=>{
6549
+ console.log('error', error);
6550
+ })
6551
+ * @param order_sn
6552
+ * @param access_token
6553
+ * @param shop_id
6554
+ * @returns Promise
6555
+ */
6556
+ getShippingParameterShopee(order_sn: string, access_token: string, shop_id: string): Promise<unknown>;
6557
+ /**
6558
+ * @notice : Xác nhận đã đóng gói xong
6559
+ * @example:
6560
+ * let json = {
6561
+ order_sn: "2112156RC1JN5Y",
6562
+ pickup: {
6563
+ address_id: 51363234,
6564
+ pickup_time_id: "1639731600"
6565
+ }
6566
+ }
6567
+ let access_token = '98efa569a4731bb67a8f76fed8808d66'
6568
+ let shop_id = '894793475932';
6569
+ this.vhEcommerce.confirmShippingByJSONShopee( json, access_token, shop_id).then((result)=>{
6570
+ console.log('result', result);
6571
+ },error=>{
6572
+ console.log('error', error);
6573
+ })
6574
+ * @param json
6575
+ * @param access_token
6576
+ * @param shop_id
6577
+ * @returns Promise
6578
+ */
6579
+ confirmShippingByJSONShopee(json: any, access_token: string, shop_id: string): Promise<unknown>;
6540
6580
  /**
6541
6581
  * @example:
6542
6582
  * this.vhEcommerce.observableLazadaPriceComparing('5fb6780ca2148e09806c5b01')
@@ -6940,6 +6980,46 @@ export declare class VhQuerySales {
6940
6980
  private subjectwarrantys;
6941
6981
  constructor(vhmongo_firebase: Vhmongo_firebase, vhQuery: VhQuery, vhAuth: VhAuth, vhAlgorithm: VhAlgorithm, iap2: InAppPurchase2, platform: Platform);
6942
6982
  /**------------------------TIKI Ecommerce-------------------------- */
6983
+ /**
6984
+ * @example:
6985
+ * this.vhQuerySales.getSellerInventoriesForConfirmationTiki(access_token).then((result)=>{
6986
+ console.log('result', result);
6987
+ },error=>{
6988
+ console.log('error', error);
6989
+ })
6990
+ * @param access_token :string
6991
+ * @returns Promise
6992
+ */
6993
+ getSellerInventoriesForConfirmationTiki(access_token: string): Promise<unknown>;
6994
+ /**
6995
+ * @example:
6996
+ * this.vhQuerySales.getExpectedPickupTimesTiki(access_token).then((result)=>{
6997
+ console.log('result', result);
6998
+ },error=>{
6999
+ console.log('error', error);
7000
+ })
7001
+ * @param access_token :string
7002
+ * @returns Promise
7003
+ */
7004
+ getExpectedPickupTimesTiki(access_token: string): Promise<unknown>;
7005
+ /**
7006
+ * @example:
7007
+ * let json = {
7008
+ confirmation_status: 'seller_confirmed',
7009
+ seller_inventory_id: 237188,
7010
+ expected_pickup_time: '2021-12-10 09:00:00
7011
+ }
7012
+ * this.vhQuerySales.ConfirmEnoughStockForDropShippingByJSONTiki(code, json, access_token).then((result)=>{
7013
+ console.log('result', result);
7014
+ },error=>{
7015
+ console.log('error', error);
7016
+ })
7017
+ * @param code :string
7018
+ * @param json :object
7019
+ * @param access_token :string
7020
+ * @returns Promise
7021
+ */
7022
+ ConfirmEnoughStockForDropShippingByJSONTiki(code: string, json: any, access_token: string): Promise<unknown>;
6943
7023
  /**
6944
7024
  * Hàm này lấy về mảng các đơn hàng (salesorder) được lưu trong database viethas (ko phải database tiki)
6945
7025
  * @example
@@ -7217,6 +7297,30 @@ export declare class VhQuerySales {
7217
7297
  * @returns Bool => true or false
7218
7298
  */
7219
7299
  updateProductByXMLLazada(xml: any, access_token: string): Promise<unknown>;
7300
+ /**
7301
+ * @example:
7302
+ * this.vhQuerySales.setStatusPackedLazada( order_item_ids, access_token).then((result)=>{
7303
+ console.log('result', result);
7304
+ },error=>{
7305
+ console.log('error', error);
7306
+ })
7307
+ * @param order_item_ids : array
7308
+ * @param access_token :string
7309
+ * @returns Promise
7310
+ */
7311
+ setStatusPackedLazada(order_item_ids: any, access_token: string): Promise<unknown>;
7312
+ /**
7313
+ * @example:
7314
+ * this.vhQuerySales.setStatusReadyToShipLazada( order_item_ids, access_token).then((result)=>{
7315
+ console.log('result', result);
7316
+ },error=>{
7317
+ console.log('error', error);
7318
+ })
7319
+ * @param order_item_ids : array
7320
+ * @param access_token :string
7321
+ * @returns Promise
7322
+ */
7323
+ setStatusReadyToShipLazada(order_item_ids: any, tracking_number: string, access_token: string): Promise<unknown>;
7220
7324
  /**
7221
7325
  * @example:
7222
7326
  * let productlistlazada = this.vhQuerySales.getlocalProductListLazada('ư0e4tuiwe98rhvqw9vtqw9t7rq987r9qvwn98et98');
@@ -7510,6 +7614,21 @@ export declare class VhQuerySales {
7510
7614
  * @returns
7511
7615
  */
7512
7616
  updateByJSONSendo(json: any, token: string): Promise<unknown>;
7617
+ /**
7618
+ * @example:
7619
+ * this.vhQuerySales.updateOrderStatusSendo(order_number, order_status, cancel_order_reason, token)
7620
+ .then((bool)=>{
7621
+ console.log(bool);
7622
+ }, error=>{
7623
+ console.log(error);
7624
+ })
7625
+ * @param order_number
7626
+ * @param order_status
7627
+ * @param cancel_order_reason
7628
+ * @param token
7629
+ * @returns Promise => bool = true or false
7630
+ */
7631
+ updateOrderStatusSendo(order_number: string, order_status: number, cancel_order_reason: string, token: string): Promise<unknown>;
7513
7632
  /**
7514
7633
  * @example:
7515
7634
  * let order_date_from = new Date('2021-01-1');
@@ -7812,6 +7931,7 @@ export declare class VhQuerySales {
7812
7931
  * @returns Promise bool = true or false
7813
7932
  */
7814
7933
  syncCollections_Desktop(): Promise<unknown>;
7934
+ private fixBill;
7815
7935
  private initSyncCollections;
7816
7936
  /**
7817
7937
  * @example:
@@ -8753,6 +8873,76 @@ export declare class VhQuerySales {
8753
8873
  * @return Promise => array(object) = [{},{},..]
8754
8874
  */
8755
8875
  getDeliverys(): Promise<unknown>;
8876
+ /**
8877
+ * @example:
8878
+ * this.vhQuerySales.addAdss({name:name: 'Quảng cáo 1'})
8879
+ .then((ads)=>{
8880
+ console.log('addAdss', ads);
8881
+ }, error=>{
8882
+ console.log('error', error);
8883
+ })
8884
+ * @param data
8885
+ * @return Promise => object = {}
8886
+ * 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
8887
+ */
8888
+ addAdss(data: object): Promise<unknown>;
8889
+ /**
8890
+ * @example:
8891
+ * this.vhQuerySales.updateAds('5fb6780ca2148e09806c5b01', {name: 'Quảng cáo 1'})
8892
+ .then((bool)=>{
8893
+ console.log('updateAds', bool);
8894
+ }, error=>{
8895
+ console.log('error', error);
8896
+ })
8897
+ * @param id_ads
8898
+ * @param data
8899
+ * @return Promise => bool = true or false
8900
+ */
8901
+ updateAds(id_ads: string, data: object): Promise<unknown>;
8902
+ /**
8903
+ * @example:
8904
+ * this.vhQuerySales.deleteAds('5fb67fda87c0f21d484cbdf3')
8905
+ .then((bool)=>{
8906
+ console.log('deleteAds', bool);
8907
+ }, error=>{
8908
+ reject(error)
8909
+ })
8910
+ * @param id_ads
8911
+ * @return Promise => bool = true or false
8912
+ */
8913
+ deleteAds(id_ads: string): Promise<unknown>;
8914
+ /**
8915
+ * @example
8916
+ * this.vhQuerySales.getAds('5fb67fda87c0f21d484cbdf3')
8917
+ .then((ads)=>{
8918
+ console.log('getAds', ads);
8919
+ })
8920
+ * @param id_ads
8921
+ * @return false or object
8922
+ */
8923
+ getAds(id_ads: string): Promise<unknown>;
8924
+ /**
8925
+ * @example
8926
+ * this.vhQuerySales.getAdss()
8927
+ .then((adss)=>{
8928
+ console.log('getAdss', adss);
8929
+ })
8930
+ * @return array(object) = [{},{},..]
8931
+ */
8932
+ getAdss(): Promise<unknown>;
8933
+ /**
8934
+ * @example
8935
+ * this.vhQuerySales.getAdss_byFields('hjkhklf8f90we8', {quantity:{$gte:10}}, {}, {}, 0)
8936
+ .then((adss)=>{
8937
+ console.log('getAdss_byFields', adss);
8938
+ })
8939
+ * @param query
8940
+ * @param projection
8941
+ * @param sort
8942
+ * @param limit
8943
+ * @return Promise => array(object) = [{},{},..]
8944
+ */
8945
+ getAdss_byFields(query: any, projection?: object, sort?: any, limit?: number): Promise<unknown>;
8756
8946
  /**
8757
8947
  * @example:
8758
8948
  * let address = this.vhQuerySales.getlocalAddress('5fb6780ca2148e09806c5b01');
@@ -9784,7 +9974,7 @@ export declare class VhQuerySales {
9784
9974
  private getLocalAppSettingBranch;
9785
9975
  /**
9786
9976
  * @example:
9787
- this.vhQuerySales.updateAppSettingNameBranch('info_header_footer_bill',{title:'title',name:'name'})
9977
+ this.vhQuerySales.updateAppSettingNameBranch('permission_branch',{display_promotion_selling_price:true})
9788
9978
  .then((bool)=>{
9789
9979
  console.log(bool);
9790
9980
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "3.5.9",
3
+ "version": "3.6.4",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.0.0"