ionic-vhframeworks 2.9.9 → 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.
@@ -4227,7 +4227,7 @@ export declare class VhQueryCloudCam {
4227
4227
  private callbackCollectionUpdate;
4228
4228
  private callbackCollectionDelete;
4229
4229
  startLocalStorage(): Promise<any>;
4230
- createPaymentVnpay(amount: number, bankCode: string, data: any, backHref: string, bill: object, bill_details: object): any;
4230
+ createPaymentVnpay(amount: number, bankCode: string, data: any, backHref: string, fee: object, fee_details: object): any;
4231
4231
  /**
4232
4232
  * @example:
4233
4233
  * this.vhQueryCloudCam.getDiscountFromCode('VIETHAS')
@@ -4386,11 +4386,53 @@ export declare class VhQueryCloudCam {
4386
4386
  * @return Promise => array(object) = [{},{},..]
4387
4387
  */
4388
4388
  getCameras(): Promise<unknown>;
4389
+ /**
4390
+ * @example
4391
+ * this.vhQueryCloudCam.getFee_detailsByFields({date:{$gte:starttime, $lte:endtime}}, {}, {date:1},0)
4392
+ .then((fee_details)=>{
4393
+ console.log('getFee_detailsByFields', fee_details);
4394
+ })
4395
+ * @return Promise => array(object) = [{},{},..]
4396
+ */
4397
+ getFee_detailsByFields(query: any, projection?: object, sort?: any, limit?: number): Promise<unknown>;
4398
+ /**
4399
+ * @example
4400
+ * this.vhQueryCloudCam.getFeesByFields({date:{$gte:starttime, $lte:endtime}}, {}, {date:1},0)
4401
+ .then((fees)=>{
4402
+ console.log('getFees', fees);
4403
+ })
4404
+ * @return Promise => array(object) = [{},{},..]
4405
+ */
4406
+ getFeesByFields(query: any, projection?: object, sort?: any, limit?: number): Promise<unknown>;
4407
+ /**
4408
+ * @example
4409
+ * this.vhQueryCloudCam.getFee(id_fee)
4410
+ .then((fee)=>{
4411
+ console.log('getFee', fee);
4412
+ })
4413
+ * @return Promise => obj ={} or null
4414
+ */
4415
+ getFee(id_fee: string): Promise<unknown>;
4416
+ /**
4417
+ * @example
4418
+ * this.vhQueryCloudCam.getFee_Details(id_fee:string)
4419
+ .then((fee_details)=>{
4420
+ console.log('getFee_Details', fee_details);
4421
+ })
4422
+ * @return Promise => array(object) = [{},{},..]
4423
+ */
4424
+ getFee_Details(id_fee: string): Promise<unknown>;
4425
+ /**
4426
+ * this.vhQueryCloudCam.importUtoken('fasofu9afu0aw9etuf9wierrq973r89y239t82yewfuifw7ewfyuw9')
4427
+ * @param utoken
4428
+ * @return Void
4429
+ */
4430
+ importUtoken(utoken: string): void;
4389
4431
  getLocalEUtoken(): any;
4390
4432
  private getEUtokenfromDatabase;
4391
4433
  /**
4392
4434
  * @example:
4393
- * this.vhQueryCloudCam.checkExpiredUtoken('89wt79w8qb987r9q08r7qv983457qhKAJJDCHXibuqw89r8q20398tyrg9qw3')
4435
+ * this.vhQueryCloudCam.checkExpiredUtoken()
4394
4436
  .then((bool)=>{
4395
4437
  if(bool){
4396
4438
  do something....
@@ -4399,7 +4441,7 @@ export declare class VhQueryCloudCam {
4399
4441
  * @param utoken
4400
4442
  * @returns Promise => true or false
4401
4443
  */
4402
- checkExpiredUtoken(utoken: string): Promise<any>;
4444
+ checkExpiredUtoken(): Promise<any>;
4403
4445
  /**
4404
4446
  * @example:
4405
4447
  * let cloudcam = this.vhQueryCloudCam.getlocalCloudCam('5fb6780ca2148e09806c5b01');
@@ -5358,7 +5400,7 @@ export declare class VhQueryClouds {
5358
5400
  private callbackCollectionUpdate;
5359
5401
  private callbackCollectionDelete;
5360
5402
  startLocalStorage(): Promise<any>;
5361
- createPaymentVnpay(amount: number, bankCode: string, data: any, backHref: string, bill: object, bill_details: object): any;
5403
+ createPaymentVnpay(amount: number, bankCode: string, data: any, backHref: string, fee: object, fee_details: object): any;
5362
5404
  /**
5363
5405
  * @example:
5364
5406
  * this.vhQueryClouds.getDiscountFromCode('VIETHAS')
@@ -6519,13 +6561,13 @@ export declare class VhQuerySales {
6519
6561
  */
6520
6562
  private getProductListTikis;
6521
6563
  /**
6522
- * let localshoplistlazada = this.vhQuerySales.getlocalShopListLazada();
6564
+ * let localshoplisttiki = this.vhQuerySales.getlocalShopListTiki();
6523
6565
  * @returns
6524
6566
  */
6525
6567
  getlocalShopListTiki(): any;
6526
6568
  /**
6527
6569
  * @example:
6528
- this.vhQuerySales.getShopListLazada().then((array)=>{
6570
+ this.vhQuerySales.getShopListTiki().then((array)=>{
6529
6571
  console.log('array', array);
6530
6572
  })
6531
6573
  * @returns Promise => array =[{},{},...]
@@ -6553,12 +6595,40 @@ export declare class VhQuerySales {
6553
6595
  */
6554
6596
  signOutTiki(id_shop: string): Promise<unknown>;
6555
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
+ /**
6556
6626
  * @example:
6557
6627
  * let productdetaillistlazada = this.vhQuerySales.getlocalProductDetailListLazada('ư0e4tuiwe98rhvqw9vtqw9t7rq987r9qvwn98et98');
6558
6628
  * @param status
6559
6629
  * @returns
6560
6630
  */
6561
- getlocalProductDetailListLazada(id_shop: any): any[];
6631
+ private getlocalProductDetailListLazada;
6562
6632
  /**
6563
6633
  * @example:
6564
6634
  * this.vhQuerySales.refreshLocalProductDetailListLazadas()
@@ -6568,7 +6638,7 @@ export declare class VhQuerySales {
6568
6638
  * Hàm này refresh giá trị mới nhất cho hàm getlocalProductDetailListLazada() trong localstorage
6569
6639
  * @return Promise => null
6570
6640
  */
6571
- refreshLocalProductDetailListLazadas(): any;
6641
+ private refreshLocalProductDetailListLazadas;
6572
6642
  /**
6573
6643
  * @example:
6574
6644
  this.vhQuerySales.getProductDetailListLazadas().then((list)=>{
@@ -6661,6 +6731,24 @@ export declare class VhQuerySales {
6661
6731
  * @return Promise => bool = true or false
6662
6732
  */
6663
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>;
6664
6752
  /**
6665
6753
  * @example:
6666
6754
  * let json = [{
@@ -6723,26 +6811,63 @@ export declare class VhQuerySales {
6723
6811
  * @param status
6724
6812
  * @returns
6725
6813
  */
6726
- 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[];
6727
6841
  /**
6728
6842
  * @example:
6729
- * this.vhQuerySales.refreshLocalProductDetailListSendo()
6843
+ * this.vhQuerySales.refreshLocalProductListSendo()
6730
6844
  .then(()=>{
6731
6845
  do something.....
6732
6846
  })
6733
- * 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
6734
6848
  * @return Promise => null
6735
6849
  */
6736
- refreshLocalProductDetailListSendo(): any;
6850
+ refreshLocalProductListSendo(): any;
6737
6851
  /**
6738
6852
  * @example:
6739
- * this.vhQuerySales.getProductDetailListSendo().then(()=>{
6853
+ * this.vhQuerySales.getProductListSendo().then(()=>{
6740
6854
  do something...
6741
6855
  },error=>{
6742
6856
  })
6743
6857
  * @returns
6744
6858
  */
6745
- 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>;
6746
6871
  /**
6747
6872
  * @example:
6748
6873
  this.vhQuerySales.signInSendo('09384tni0qw8t9q90g', '938476838whsofis', {name: sendo 1}).then((obj)=>{
@@ -10101,7 +10226,7 @@ export declare class VhQuerySecurityCam {
10101
10226
  * @param utoken
10102
10227
  * @returns Promise => true or false
10103
10228
  */
10104
- checkExpiredUtoken(utoken: string): Promise<any>;
10229
+ checkExpiredUtoken(): Promise<any>;
10105
10230
  /**
10106
10231
  * @example:
10107
10232
  * this.vhQuerySecurityCam.changeCloudCamEnableCLPRbyEndUser('5fb6780ca2148e09806c5b01', false)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "2.9.9",
3
+ "version": "3.0.3",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.0.0"