ionic-vhframeworks 3.6.0 → 3.6.6

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,63 @@ export declare class VhEcommerce {
6537
6537
  private shopeepricecomparinglist;
6538
6538
  private callbacklazadapricecomparing;
6539
6539
  constructor(vhmongo_firebase: Vhmongo_firebase);
6540
+ /**
6541
+ * @notice : lấy thông tin vận đơn (mã code người gửi , mã code người nhận, địa chỉ người nhận...)
6542
+ * @example:
6543
+ let order_sn = '2112156RC1JN5Y';
6544
+ let access_token = '98efa569a4731bb67a8f76fed8808d66';
6545
+ let shop_id = '894793475932';
6546
+ this.vhEcommerce.getShippingDocumentShopee( 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
+ getShippingDocumentShopee(order_sn: string, access_token: string, shop_id: string): Promise<unknown>;
6557
+ /**
6558
+ * @notice : Lấy địa chỉ + thời gian lấy hàng
6559
+ * @example:
6560
+ let order_sn = '2112156RC1JN5Y';
6561
+ let access_token = '98efa569a4731bb67a8f76fed8808d66';
6562
+ let shop_id = '894793475932';
6563
+ this.vhEcommerce.getShippingParameterShopee( order_sn, access_token, shop_id).then((result)=>{
6564
+ console.log('result', result);
6565
+ },error=>{
6566
+ console.log('error', error);
6567
+ })
6568
+ * @param order_sn
6569
+ * @param access_token
6570
+ * @param shop_id
6571
+ * @returns Promise
6572
+ */
6573
+ getShippingParameterShopee(order_sn: string, access_token: string, shop_id: string): Promise<unknown>;
6574
+ /**
6575
+ * @notice : Xác nhận đã đóng gói xong
6576
+ * @example:
6577
+ * let json = {
6578
+ order_sn: "2112156RC1JN5Y",
6579
+ pickup: {
6580
+ address_id: 51363234,
6581
+ pickup_time_id: "1639731600"
6582
+ }
6583
+ }
6584
+ let access_token = '98efa569a4731bb67a8f76fed8808d66'
6585
+ let shop_id = '894793475932';
6586
+ this.vhEcommerce.confirmShippingByJSONShopee( json, access_token, shop_id).then((result)=>{
6587
+ console.log('result', result);
6588
+ },error=>{
6589
+ console.log('error', error);
6590
+ })
6591
+ * @param json
6592
+ * @param access_token
6593
+ * @param shop_id
6594
+ * @returns Promise
6595
+ */
6596
+ confirmShippingByJSONShopee(json: any, access_token: string, shop_id: string): Promise<unknown>;
6540
6597
  /**
6541
6598
  * @example:
6542
6599
  * this.vhEcommerce.observableLazadaPriceComparing('5fb6780ca2148e09806c5b01')
@@ -6940,6 +6997,58 @@ export declare class VhQuerySales {
6940
6997
  private subjectwarrantys;
6941
6998
  constructor(vhmongo_firebase: Vhmongo_firebase, vhQuery: VhQuery, vhAuth: VhAuth, vhAlgorithm: VhAlgorithm, iap2: InAppPurchase2, platform: Platform);
6942
6999
  /**------------------------TIKI Ecommerce-------------------------- */
7000
+ /**
7001
+ * @example:
7002
+ * this.vhQuerySales.GetShippingStampForDropshipTiki(code, access_token).then((result)=>{
7003
+ console.log('result', result);
7004
+ },error=>{
7005
+ console.log('error', error);
7006
+ })
7007
+ * @param code :string
7008
+ * @param access_token :string
7009
+ * @returns Promise
7010
+ */
7011
+ GetShippingStampForDropshipTiki(code: string, access_token: string): Promise<unknown>;
7012
+ /**
7013
+ * @example:
7014
+ * this.vhQuerySales.getSellerInventoriesForConfirmationTiki(access_token).then((result)=>{
7015
+ console.log('result', result);
7016
+ },error=>{
7017
+ console.log('error', error);
7018
+ })
7019
+ * @param access_token :string
7020
+ * @returns Promise
7021
+ */
7022
+ getSellerInventoriesForConfirmationTiki(access_token: string): Promise<unknown>;
7023
+ /**
7024
+ * @example:
7025
+ * this.vhQuerySales.getExpectedPickupTimesTiki(access_token).then((result)=>{
7026
+ console.log('result', result);
7027
+ },error=>{
7028
+ console.log('error', error);
7029
+ })
7030
+ * @param access_token :string
7031
+ * @returns Promise
7032
+ */
7033
+ getExpectedPickupTimesTiki(access_token: string): Promise<unknown>;
7034
+ /**
7035
+ * @example:
7036
+ * let json = {
7037
+ confirmation_status: 'seller_confirmed',
7038
+ seller_inventory_id: 237188,
7039
+ expected_pickup_time: '2021-12-10 09:00:00
7040
+ }
7041
+ * this.vhQuerySales.ConfirmEnoughStockForDropShippingByJSONTiki(code, json, access_token).then((result)=>{
7042
+ console.log('result', result);
7043
+ },error=>{
7044
+ console.log('error', error);
7045
+ })
7046
+ * @param code :string
7047
+ * @param json :object
7048
+ * @param access_token :string
7049
+ * @returns Promise
7050
+ */
7051
+ ConfirmEnoughStockForDropShippingByJSONTiki(code: string, json: any, access_token: string): Promise<unknown>;
6943
7052
  /**
6944
7053
  * 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
7054
  * @example
@@ -8793,6 +8902,76 @@ export declare class VhQuerySales {
8793
8902
  * @return Promise => array(object) = [{},{},..]
8794
8903
  */
8795
8904
  getDeliverys(): Promise<unknown>;
8905
+ /**
8906
+ * @example:
8907
+ * this.vhQuerySales.addAdss({name:name: 'Quảng cáo 1'})
8908
+ .then((ads)=>{
8909
+ console.log('addAdss', ads);
8910
+ }, error=>{
8911
+ console.log('error', error);
8912
+ })
8913
+ * @param data
8914
+ * @return Promise => object = {}
8915
+ * 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
8916
+ */
8917
+ addAdss(data: object): Promise<unknown>;
8918
+ /**
8919
+ * @example:
8920
+ * this.vhQuerySales.updateAds('5fb6780ca2148e09806c5b01', {name: 'Quảng cáo 1'})
8921
+ .then((bool)=>{
8922
+ console.log('updateAds', bool);
8923
+ }, error=>{
8924
+ console.log('error', error);
8925
+ })
8926
+ * @param id_ads
8927
+ * @param data
8928
+ * @return Promise => bool = true or false
8929
+ */
8930
+ updateAds(id_ads: string, data: object): Promise<unknown>;
8931
+ /**
8932
+ * @example:
8933
+ * this.vhQuerySales.deleteAds('5fb67fda87c0f21d484cbdf3')
8934
+ .then((bool)=>{
8935
+ console.log('deleteAds', bool);
8936
+ }, error=>{
8937
+ reject(error)
8938
+ })
8939
+ * @param id_ads
8940
+ * @return Promise => bool = true or false
8941
+ */
8942
+ deleteAds(id_ads: string): Promise<unknown>;
8943
+ /**
8944
+ * @example
8945
+ * this.vhQuerySales.getAds('5fb67fda87c0f21d484cbdf3')
8946
+ .then((ads)=>{
8947
+ console.log('getAds', ads);
8948
+ })
8949
+ * @param id_ads
8950
+ * @return false or object
8951
+ */
8952
+ getAds(id_ads: string): Promise<unknown>;
8953
+ /**
8954
+ * @example
8955
+ * this.vhQuerySales.getAdss()
8956
+ .then((adss)=>{
8957
+ console.log('getAdss', adss);
8958
+ })
8959
+ * @return array(object) = [{},{},..]
8960
+ */
8961
+ getAdss(): Promise<unknown>;
8962
+ /**
8963
+ * @example
8964
+ * this.vhQuerySales.getAdss_byFields('hjkhklf8f90we8', {quantity:{$gte:10}}, {}, {}, 0)
8965
+ .then((adss)=>{
8966
+ console.log('getAdss_byFields', adss);
8967
+ })
8968
+ * @param query
8969
+ * @param projection
8970
+ * @param sort
8971
+ * @param limit
8972
+ * @return Promise => array(object) = [{},{},..]
8973
+ */
8974
+ getAdss_byFields(query: any, projection?: object, sort?: any, limit?: number): Promise<unknown>;
8796
8975
  /**
8797
8976
  * @example:
8798
8977
  * let address = this.vhQuerySales.getlocalAddress('5fb6780ca2148e09806c5b01');
@@ -9824,7 +10003,7 @@ export declare class VhQuerySales {
9824
10003
  private getLocalAppSettingBranch;
9825
10004
  /**
9826
10005
  * @example:
9827
- this.vhQuerySales.updateAppSettingNameBranch('info_header_footer_bill',{title:'title',name:'name'})
10006
+ this.vhQuerySales.updateAppSettingNameBranch('permission_branch',{display_promotion_selling_price:true})
9828
10007
  .then((bool)=>{
9829
10008
  console.log(bool);
9830
10009
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "3.6.0",
3
+ "version": "3.6.6",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.0.0"