ionic-vhframeworks 3.1.5 → 3.1.9

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.
@@ -4227,6 +4227,14 @@ export declare class VhQueryCloudCam {
4227
4227
  private callbackCollectionUpdate;
4228
4228
  private callbackCollectionDelete;
4229
4229
  startLocalStorage(): Promise<any>;
4230
+ /**
4231
+ * lấy về clientRTSPURL cộng với rtspID nhận từ Cloudcam Box, APP sẽ đăng ký camera này lên Clouds, nếu thành công sẽ nhận đc licensecam
4232
+ * lấy về serverRTSPURL, APP gửi serverRTSPURL cho Cloudcam Box, Box dùng send video của từng camera lên RTSP Server
4233
+ * lấy về _id truyền vô hàm addCloudCamBoxByEndUser để đăng ký camera này lên Clouds
4234
+ * mỗi lần đăng ký một camera lên Clouds là dùng hàm getCloudCamServer() để lấy thông tin đăng ký lại
4235
+ * @returns Promise Object => obj = {clientRTSPURL, serverRTSPURL, _id}
4236
+ */
4237
+ getCloudCamServer(): Promise<any>;
4230
4238
  createPaymentVnpay(amount: number, bankCode: string, data: any, backHref: string, fee: object, fee_details: object): any;
4231
4239
  /**
4232
4240
  * @example:
@@ -4522,7 +4530,7 @@ export declare class VhQueryCloudCam {
4522
4530
  changeCloudCamEnableActiveByEndUser(licensecam: string, active: boolean): Promise<unknown>;
4523
4531
  /**
4524
4532
  * @example:
4525
- * this.vhQueryCloudCam.changeCloudCamURLbyEndUser('5fb6780ca2148e09806c5b01', 'rtsp://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream')
4533
+ * this.vhQueryCloudCam.changeCloudCamURLbyEndUser('5fb6780ca2148e09806c5b01', 'rtsp://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream', 'udp')
4526
4534
  .then((bool)=>{
4527
4535
  console.log('changeCloudCamURLbyEndUser', bool);
4528
4536
  })
@@ -4542,6 +4550,17 @@ export declare class VhQueryCloudCam {
4542
4550
  * @return Promise => {} or null
4543
4551
  */
4544
4552
  addCloudCamByEndUser(url: string, data: object): Promise<unknown>;
4553
+ /**
4554
+ * @example:
4555
+ * this.vhQueryCloudCam.addCloudCamBoxByEndUser('rtsp://127.0.0.1:20306/hessdalen03.stream', {name:camera 3}, 'jlsdjfoasi09asf0u90')
4556
+ .then((cloudcam)=>{
4557
+ console.log('addCloudCamBoxByEndUser', cloudcam);
4558
+ })
4559
+ * @param url
4560
+ * @param data
4561
+ * @return Promise => {} or null
4562
+ */
4563
+ addCloudCamBoxByEndUser(url: string, data: object, id_cloudcamserver: string): Promise<unknown>;
4545
4564
  /**
4546
4565
  * @example:
4547
4566
  * this.vhQueryCloudCam.updateCloudCamDataByEndUser('5fb6780ca2148e09806c5b01', {name:'camera 3'})
@@ -5639,7 +5658,7 @@ export declare class VhQueryClouds {
5639
5658
  changeCloudCamEnableActiveByUser(licensecam: string, active: boolean, eutoken: string): Promise<unknown>;
5640
5659
  /**
5641
5660
  * @example:
5642
- * this.vhQueryClouds.changeCloudCamURLbyUser('5fb6780ca2148e09806c5b01', 'rtsp://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream','fgsdge5etw45tw34w3w34t3)
5661
+ * this.vhQueryClouds.changeCloudCamURLbyUser('5fb6780ca2148e09806c5b01', 'rtsp://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream','udp', 'fgsdge5etw45tw34w3w34t3)
5643
5662
  .then((bool)=>{
5644
5663
  console.log('changeCloudCamURLbyUser', bool);
5645
5664
  })
@@ -5650,7 +5669,7 @@ export declare class VhQueryClouds {
5650
5669
  changeCloudCamURLbyUser(licensecam: string, url: string, eutoken: string): Promise<unknown>;
5651
5670
  /**
5652
5671
  * @example:
5653
- * this.vhQueryClouds.addCloudCamByUser('rtsp://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream', {name:camera 3},'fgsdge5etw45tw34w3w34t3')
5672
+ * this.vhQueryClouds.addCloudCamByUser('rtsp://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream', 'udp', {name:camera 3},'fgsdge5etw45tw34w3w34t3')
5654
5673
  .then((cloudcam)=>{
5655
5674
  console.log('addCloudCamByUser', cloudcam);
5656
5675
  })
@@ -6532,7 +6551,7 @@ export declare class VhEcommerce {
6532
6551
  private getProductListShopee;
6533
6552
  /**
6534
6553
  * @example:
6535
- * let productlistlazada = this.vhEcommerce.getlocalProductListLazada('ư0e4tuiwe98rhvqw9vtqw9t7rq987r9qvwn98et98');
6554
+ * let productlistlazada = this.vhEcommerce.getlocalProductListShopee('ư0e4tuiwe98rhvqw9vtqw9t7rq987r9qvwn98et98');
6536
6555
  * @param id_shop
6537
6556
  * @returns Promise => Array
6538
6557
  */
@@ -6545,9 +6564,8 @@ export declare class VhQuerySales {
6545
6564
  private vhAlgorithm;
6546
6565
  private iap2;
6547
6566
  private platform;
6548
- private productdetaillistsendo;
6567
+ private productlistsendo;
6549
6568
  private shoplistsendo;
6550
- private productdetaillistlazada;
6551
6569
  private productlistlazada;
6552
6570
  private shoplistlazada;
6553
6571
  private productlisttikis;
@@ -6697,31 +6715,6 @@ export declare class VhQuerySales {
6697
6715
  updateProductByXMLLazada(xml: any, access_token: string): Promise<unknown>;
6698
6716
  /**
6699
6717
  * @example:
6700
- * let productdetaillistlazada = this.vhQuerySales.getlocalProductDetailListLazada('ư0e4tuiwe98rhvqw9vtqw9t7rq987r9qvwn98et98');
6701
- * @param status
6702
- * @returns
6703
- */
6704
- private getlocalProductDetailListLazada;
6705
- /**
6706
- * @example:
6707
- * this.vhQuerySales.refreshLocalProductDetailListLazadas()
6708
- .then(()=>{
6709
- do something.....
6710
- })
6711
- * Hàm này refresh giá trị mới nhất cho hàm getlocalProductDetailListLazada() trong localstorage
6712
- * @return Promise => null
6713
- */
6714
- private refreshLocalProductDetailListLazadas;
6715
- /**
6716
- * @example:
6717
- this.vhQuerySales.getProductDetailListLazadas().then((list)=>{
6718
- console.log('list', list);
6719
- })
6720
- * @returns Promise => array =[{},{},...]
6721
- */
6722
- private getProductDetailListLazadas;
6723
- /**
6724
- * @example:
6725
6718
  * let productlistlazada = this.vhQuerySales.getlocalProductListLazada('ư0e4tuiwe98rhvqw9vtqw9t7rq987r9qvwn98et98');
6726
6719
  * @param id_shop
6727
6720
  * @returns Promise => Array
@@ -6758,9 +6751,9 @@ export declare class VhQuerySales {
6758
6751
  */
6759
6752
  getProductDetailLazada(item_idArray: any, access_token: string, id_shop: any): Promise<unknown>;
6760
6753
  /**
6761
- * let localshoplistlazada = this.vhQuerySales.getlocalShopListLazada();
6762
- * @returns
6763
- */
6754
+ * let localshoplistlazada = this.vhQuerySales.getlocalShopListLazada();
6755
+ * @returns
6756
+ */
6764
6757
  getlocalShopListLazada(): any;
6765
6758
  /**
6766
6759
  * @example:
@@ -6777,11 +6770,11 @@ export declare class VhQuerySales {
6777
6770
  console.log('bool', bool)
6778
6771
  }
6779
6772
  })
6780
- * @returns Promise => true or false
6781
- */
6773
+ * @returns Promise => true or false
6774
+ */
6782
6775
  signInLazada(): Promise<unknown>;
6783
6776
  /**
6784
- * @example:
6777
+ * @example:
6785
6778
  this.vhQuerySales.signOutLazada('938476838whsofis').then((bool)=>{
6786
6779
  if(bool){
6787
6780
  console.log('bool', bool)
@@ -6799,23 +6792,40 @@ export declare class VhQuerySales {
6799
6792
  }, error=>{
6800
6793
  console.log('error', error);
6801
6794
  })
6802
- * @param data
6803
- * @return Promise => array = [{},{},..]
6804
- * 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
6805
- */
6806
- createMergeLazadasProduct(id_product: any, lazadaproductArray: any): Promise<unknown>;
6795
+ * @param data
6796
+ * @return Promise => array = [{},{},..]
6797
+ * 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
6798
+ */
6799
+ createMergeLazadasProduct(id_product: string, lazadaproductArray: any): Promise<unknown>;
6800
+ /**
6801
+ * @example:
6802
+ * this.vhQuerySales.updateMergeLazadasProduct('5fb6780ca2148e09806c5b01', '435f34tf34f3243fdf', '13123135654', {quantity:400})
6803
+ .then((bool)=>{
6804
+ console.log('updateMergeLazadasProduct', bool);
6805
+ }, error=>{
6806
+ console.log('error', error);
6807
+ })
6808
+ * @param id_product
6809
+ * @param item_id: trường id trong sản phẩm lazada
6810
+ * @param SkuId: trường SkuId trong sản phẩm lazada
6811
+ * @param data
6812
+ * @returns Promise => true or false
6813
+ */
6814
+ updateMergeLazadasProduct(id_product: any, item_id: any, SkuId: any, data: any): Promise<unknown>;
6807
6815
  /**
6808
6816
  * @example:
6809
- * this.vhQuerySales.deleteMergeLazadaProduct('5fb67fda87c0f21d484cbdf3', 'gsdfgsdg4345324534t3w')
6817
+ * this.vhQuerySales.deleteMergeLazadaProduct('5fb67fda87c0f21d484cbdf3', 'gsdfgsdg4345324534t3w', 'sdfgsdfgererasds3563')
6810
6818
  .then((bool)=>{
6811
6819
  console.log('deleteMergeLazadaProduct', bool);
6812
6820
  }, error=>{
6813
6821
  reject(error)
6814
6822
  })
6815
- * @param id_subproduct
6823
+ * @param id_product
6824
+ * @param item_id
6825
+ * @param SkuId
6816
6826
  * @return Promise => bool = true or false
6817
6827
  */
6818
- deleteMergeLazadaProduct(id_product: string, id_lazadaproduct: string): Promise<unknown>;
6828
+ deleteMergeLazadaProduct(id_product: any, item_id: any, SkuId: any): Promise<unknown>;
6819
6829
  /**
6820
6830
  * @example:
6821
6831
  *let created_after = new Date('2021-01-25');
@@ -6833,7 +6843,99 @@ export declare class VhQuerySales {
6833
6843
  * @param access_token
6834
6844
  * @returns
6835
6845
  */
6836
- getSalesOrderListLazada(created_after: string, created_before: string, access_token: string, id_shop: string): Promise<unknown>;
6846
+ private getSalesOrderListLazada;
6847
+ /**
6848
+ * @example:
6849
+ *let created_after = new Date('2021-01-25');
6850
+ let created_before = new Date('2021-06-30');
6851
+ let access_token = '50000601506bKRvdjv16d01472hspFZdjp3qWxFJdNhveuVAezlxvCMt08WkxBrr';
6852
+ let id_shop = '100035896';
6853
+ this.vhQuerySales.getSalesOrderListLazada( created_after.toISOString(), created_before.toISOString(), access_token, id_shop)
6854
+ .then((result)=>{
6855
+ console.log('result', result);
6856
+ },error=>{
6857
+ console.log('error', error);
6858
+ })
6859
+ * @param created_after
6860
+ * @param created_before
6861
+ * @param access_token
6862
+ * @returns
6863
+ */
6864
+ getSalesOrderDetailListLazada(created_after: string, created_before: string, access_token: string, id_shop: string): Promise<unknown>;
6865
+ /**
6866
+ * 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 sendo)
6867
+ * @example
6868
+ * this.vhQuerySales.getSalesOrderLazada_fromViethas( ['14424213387','14424273835'], '403754acaafc4564a16c19faa32d73c8')
6869
+ .then((array)=>{
6870
+ console.log('array', array);
6871
+ },error=>{
6872
+ console.log('error', error);
6873
+ })
6874
+ * @param order_idArray
6875
+ * @param id_shop
6876
+ * @returns Promise => Array(object or null)
6877
+ */
6878
+ getSalesOrderLazada_fromViethas(order_idArray: any, id_shop: string): Promise<unknown>;
6879
+ /**
6880
+ * @example:
6881
+ * let order_date_from = new Date('2021-01-1');
6882
+ let order_date_to = new Date('2021-06-30');
6883
+ let id_shop = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9';
6884
+ this.vhQuerySales.getSalesOrderDetailListLazada_fromViethas( order_date_from, order_date_to, id_shop).then((result)=>{
6885
+ console.log('result', result);
6886
+ },error=>{
6887
+ console.log('error', error);
6888
+ })
6889
+ * @param order_date_from
6890
+ * @param order_date_to
6891
+ * @param id_shop
6892
+ * @returns Promise Array
6893
+ */
6894
+ getSalesOrderDetailListLazada_fromViethas(order_date_from: string, order_date_to: string, id_shop: string): Promise<unknown>;
6895
+ /**
6896
+ * Hàm này cập nhật các đơn hàng (salesorder) được lưu trong database viethas (ko phải database lazada), lưu ý các order_id đc lấy từ lazada server về
6897
+ * @example:
6898
+ * this.vhQuerySales.updateSalesOrderLazada('5fb67fda87c0f21d484cbdf3', 'gsdfgsdg4345324534t3w', {check:true})
6899
+ .then((bool)=>{
6900
+ console.log('updateSalesOrderLazada', bool);
6901
+ }, error=>{
6902
+ reject(error)
6903
+ })
6904
+ * @param id_shop
6905
+ * @param order_id
6906
+ * @param data
6907
+ * @return Promise => bool = true or false
6908
+ */
6909
+ updateSalesOrderLazada(id_shop: string, order_id: string, data: object): Promise<unknown>;
6910
+ /**
6911
+ * Hàm này cập nhật các đơn hàng (salesorder) được lưu trong database viethas (ko phải database lazada), lưu ý các order_id đc import từ file ngoài vào (excel, csv...)
6912
+ * @example:
6913
+ * this.vhQuerySales.updateSalesOrderLazada_byFile(['144242133871', '14424213387'], {check:true}, 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJTdG9yZUlkIjoiNTczNjciLCJVc2VyTmFtZSI6IiIsIlN0b3JlU3RhdHVzIjoiMiIsIlNob3BUeXBlIjoiMCIsIlN0b3JlTGV2ZWwiOiIzIiwiZXhwIjoxNjMzODE3MzIwLCJpc3MiOiI1NzM2NyIsImF1ZCI6IjU3MzY3In0.9S18n7EuG7XxbZVm9kjUBozJVjx2_EZRNAn38wBUaDs', '403754acaafc4564a16c19faa32d73c8')
6914
+ .then((array)=>{
6915
+ console.log('updateSalesOrderLazada_byFile', array);
6916
+ }, error=>{
6917
+ console.log(error)
6918
+ })
6919
+ * @param order_idArray
6920
+ * @param data
6921
+ * @param token
6922
+ * @param id_shop
6923
+ * @return Promise => Array(bool) = [true or false,,...]
6924
+ */
6925
+ updateSalesOrderLazada_byFile(order_idArray: any, data: object, token: string, id_shop: string): Promise<unknown>;
6926
+ /**
6927
+ * Hàm này lấy về khách hàng đã được gán cho mỗi shop(id_shop) trước đây, nếu trước đây chưa gán thì lấy về giá trị null
6928
+ * @example:
6929
+ * this.vhQuerySales.getShopPartner('5fb67fda87c0f21d484cbdf3')
6930
+ .then((customer)=>{
6931
+ console.log('getShopPartner', customer);
6932
+ }, error=>{
6933
+ reject(error)
6934
+ })
6935
+ * @param id_shop
6936
+ * @returns Promise => object(customer) or null
6937
+ */
6938
+ getShopPartner(id_shop: string): Promise<unknown>;
6837
6939
  /**
6838
6940
  * @example:
6839
6941
  * let json = [{
@@ -6946,32 +7048,6 @@ export declare class VhQuerySales {
6946
7048
  * @returns
6947
7049
  */
6948
7050
  getlocalShopListSendo(): any;
6949
- /**
6950
- * @example:
6951
- * let productdetaillistsendo = this.vhQuerySales.getlocalProductDetailListSendo('ư0e4tuiwe98rhvqw9vtqw9t7rq987r9qvwn98et98');
6952
- * @param status
6953
- * @returns
6954
- */
6955
- private getlocalProductDetailListSendo;
6956
- /**
6957
- * @example:
6958
- * this.vhQuerySales.refreshLocalProductDetailListSendo()
6959
- .then(()=>{
6960
- do something.....
6961
- })
6962
- * Hàm này refresh giá trị mới nhất cho hàm getlocalProductDetailListSendo() trong localstorage
6963
- * @return Promise => null
6964
- */
6965
- private refreshLocalProductDetailListSendo;
6966
- /**
6967
- * @example:
6968
- * this.vhQuerySales.getProductDetailListSendo().then(()=>{
6969
- do something...
6970
- },error=>{
6971
- })
6972
- * @returns
6973
- */
6974
- private getProductDetailListSendo;
6975
7051
  /**
6976
7052
  * @example:
6977
7053
  * let productlistsendo = this.vhQuerySales.getlocalProductListSendo('ư0e4tuiwe98rhvqw9vtqw9t7rq987r9qvwn98et98');
@@ -7073,13 +7149,13 @@ export declare class VhQuerySales {
7073
7149
  updateMergeSendosProduct(id_product: any, id: any, variant_attribute_hash: any, data: any): Promise<unknown>;
7074
7150
  /**
7075
7151
  * @example:
7076
- * this.vhQuerySales.deleteMergeSendoProduct('5fb67fda87c0f21d484cbdf3', 'gsdfgsdg4345324534t3w')
7152
+ * this.vhQuerySales.deleteMergeSendoProduct('5fb67fda87c0f21d484cbdf3', 'gsdfgsdg4345324534t3w', 'jhiy87685765r575345re')
7077
7153
  .then((bool)=>{
7078
7154
  console.log('deleteMergeSendoProduct', bool);
7079
7155
  }, error=>{
7080
7156
  reject(error)
7081
7157
  })
7082
- * @param id_subproduct
7158
+ * @param id_product
7083
7159
  * @param id: trường id trong sản phẩm sendo
7084
7160
  * @param variant_attribute_hash: trường variant_attribute_hash trong sản phẩm sendo
7085
7161
  * @return Promise => bool = true or false
@@ -9782,7 +9858,7 @@ export declare class VhQuerySCclient {
9782
9858
  changeCloudCamEnableActive(licensecam: string, active: boolean): Promise<unknown>;
9783
9859
  /**
9784
9860
  * @example:
9785
- * this.vhQuerySecurityCam.changeCloudCamURL('5fb6780ca2148e09806c5b01', 'rtsp://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream')
9861
+ * this.vhQuerySecurityCam.changeCloudCamURL('5fb6780ca2148e09806c5b01', 'udp', 'rtsp://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream')
9786
9862
  .then((bool)=>{
9787
9863
  console.log('changeCloudCamURL', bool);
9788
9864
  })
@@ -9814,7 +9890,7 @@ export declare class VhQuerySCclient {
9814
9890
  updateCloudCam(licensecam: string, data: object): Promise<unknown>;
9815
9891
  /**
9816
9892
  * @example:
9817
- * this.vhQuerySecurityCam.addCloudCam('rtsp://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream', {name:camera 3})
9893
+ * this.vhQuerySecurityCam.addCloudCam('rtsp://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream', 'udp', {name:camera 3})
9818
9894
  .then((cloudcam)=>{
9819
9895
  console.log('addCloudCam', cloudcam);
9820
9896
  })
@@ -10443,7 +10519,7 @@ export declare class VhQuerySecurityCam {
10443
10519
  changeCloudCamEnableActiveByEndUser(licensecam: string, active: boolean): Promise<unknown>;
10444
10520
  /**
10445
10521
  * @example:
10446
- * this.vhQuerySecurityCam.changeCloudCamURLbyEndUser('5fb6780ca2148e09806c5b01', 'rtsp://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream')
10522
+ * this.vhQuerySecurityCam.changeCloudCamURLbyEndUser('5fb6780ca2148e09806c5b01', 'rtsp://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream', 'udp')
10447
10523
  .then((bool)=>{
10448
10524
  console.log('changeCloudCamURLbyEndUser', bool);
10449
10525
  })
@@ -10454,7 +10530,7 @@ export declare class VhQuerySecurityCam {
10454
10530
  changeCloudCamURLbyEndUser(licensecam: string, url: string): Promise<unknown>;
10455
10531
  /**
10456
10532
  * @example:
10457
- * this.vhQuerySecurityCam.addCloudCamByEndUser('rtsp://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream', {name:camera 3})
10533
+ * this.vhQuerySecurityCam.addCloudCamByEndUser('rtsp://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream', 'udp', {name:camera 3})
10458
10534
  .then((cloudcam)=>{
10459
10535
  console.log('addCloudCamByEndUser', cloudcam);
10460
10536
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "3.1.5",
3
+ "version": "3.1.9",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.0.0"