ionic-vhframeworks 10.2.3 → 10.2.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.
@@ -8,7 +8,7 @@
8
8
  */
9
9
  import { OnInit, EventEmitter, PipeTransform, RendererFactory2 } from "@angular/core";
10
10
  import { Router } from "@angular/router";
11
- import { VhMGDB_auth, VhMGDB_database, VhMGDB_rootdatabase, VhMGDB_f3rdclouds, VhMGDB_image, VhMGDB_socketMongoDB, VhMGDB_paymentVNPAY, VhMGDB_clouds, VhMGDB_shopee, VhMGDB_tiki, VhMGDB_sendo, VhMGDB_lazada, VhMGDB_socketFacebook, VhMGDB_pattern, VhFB_OTP } from 'vhmongo-new';
11
+ import { VhMGDB_auth, VhMGDB_database, VhMGDB_rootdatabase, VhMGDB_f3rdclouds, VhMGDB_image, VhMGDB_socketMongoDB, VhMGDB_paymentVNPAY, VhMGDB_clouds, VhMGDB_shopee, VhMGDB_tiki, VhMGDB_sendo, VhMGDB_lazada, VhMGDB_tiktok, VhMGDB_socketFacebook, VhMGDB_pattern, VhFB_OTP } from 'vhmongo-new';
12
12
  import { ImagePicker } from "@ionic-native/image-picker/ngx";
13
13
  import { WebView } from "@ionic-native/ionic-webview/ngx";
14
14
  import { Camera } from "@ionic-native/camera/ngx";
@@ -5701,6 +5701,19 @@ export declare class VhQueryCafe {
5701
5701
  * @return Promise => object = {} or null
5702
5702
  */
5703
5703
  createBill_Billdetail(bill: any, bill_details: any): any;
5704
+ /**
5705
+ * @example
5706
+ * this.vhQueryCafe.changeBill_toInvoice_byMinvoice(id_bill,invoiceSeries)
5707
+ .then((rsp)=>{
5708
+ //-----------your code here-----------
5709
+ },(error:any)=>{
5710
+ console.log('error', error)
5711
+ })
5712
+ * @param id_bill
5713
+ * @param invoiceSeries
5714
+ * @returns Promise => {vcode, msg, data(array)}
5715
+ */
5716
+ changeBill_toInvoice_byMinvoice(id_bill: string, invoiceSeries: string): Promise<any>;
5704
5717
  /**
5705
5718
  * hàm này chỉ dùng cho trường hợp bill_type 5->1, 29->3031, 36->1, 42->40, 43->41, 52->50, 53->51
5706
5719
  * @example
@@ -11933,6 +11946,9 @@ export declare class VhEcommerce {
11933
11946
  private vhMGDB_socketMongoDB;
11934
11947
  private vhMGDB_database;
11935
11948
  private vhMGDB_shopee;
11949
+ private vhMGDB_tiktok;
11950
+ private productlisttiktoks;
11951
+ private shoplisttiktok;
11936
11952
  private productlistshopees;
11937
11953
  private shoplistshopee;
11938
11954
  private lazadapricecomparinglist;
@@ -11940,7 +11956,7 @@ export declare class VhEcommerce {
11940
11956
  private sendopricecomparinglist;
11941
11957
  private shopeepricecomparinglist;
11942
11958
  private callbacklazadapricecomparing;
11943
- constructor(vhMGDB_auth: VhMGDB_auth, vhMGDB_socketMongoDB: VhMGDB_socketMongoDB, vhMGDB_database: VhMGDB_database, vhMGDB_shopee: VhMGDB_shopee);
11959
+ constructor(vhMGDB_auth: VhMGDB_auth, vhMGDB_socketMongoDB: VhMGDB_socketMongoDB, vhMGDB_database: VhMGDB_database, vhMGDB_shopee: VhMGDB_shopee, vhMGDB_tiktok: VhMGDB_tiktok);
11944
11960
  /**
11945
11961
  * @example:
11946
11962
  * let backHref = http://localhost:4200/dashboard/overview';
@@ -11952,6 +11968,69 @@ export declare class VhEcommerce {
11952
11968
  * @returns Promise => true or false
11953
11969
  */
11954
11970
  signInTiktok(id_branch: string, backHref: string): Promise<unknown>;
11971
+ /**
11972
+ * @example:
11973
+ * let id_branch = this.vhQuerySales.getDefaultBranch()._id;
11974
+ * this.vhEcommerce.getProductListTiktok(id_branch).then(()=>{
11975
+ do something...
11976
+ },(error:any)=>{
11977
+ })
11978
+ * @returns
11979
+ */
11980
+ private getProductListTiktok;
11981
+ private getProductListTiktoks;
11982
+ /**
11983
+ * @example:
11984
+ * let id_branch = this.vhQuerySales.getDefaultBranch()._id;
11985
+ * this.vhEcommerce.refreshLocalProductListTiktok(id_branch)
11986
+ .then(()=>{
11987
+ do something.....
11988
+ })
11989
+ * Hàm này refresh giá trị mới nhất cho hàm getProductListTiktok() trong localstorage
11990
+ * @return Promise => null
11991
+ */
11992
+ refreshLocalProductListTiktok(id_branch: string, shop_id?: string): any;
11993
+ /**
11994
+ * let localshoplisttiktok = this.vhEcommerce.getlocalShopListTiktok();
11995
+ * @returns
11996
+ */
11997
+ getlocalShopListTiktok(): any;
11998
+ /**
11999
+ * @example:
12000
+ *let time_from = new Date('2021-10-28');
12001
+ * let time_to = new Date('2021-10-30');
12002
+ * this.vhEcommerce.getSalesOrderListTiktok(time_from, time_to, shop_cipher, app_key, access_token, id_shop)
12003
+ .then((result)=>{
12004
+ console.log('result', result);
12005
+ },(error:any)=>{
12006
+ console.log('error', error);
12007
+ })
12008
+ * @param time_from
12009
+ * @param time_to
12010
+ * @param shop_cipher
12011
+ * @param app_key
12012
+ * @param access_token
12013
+ * @param id_shop
12014
+ * @returns
12015
+ */
12016
+ getSalesOrderListTiktok(time_from: any, time_to: any, shop_cipher: string, app_key: string, access_token: string, id_shop: string): Promise<unknown>;
12017
+ /**
12018
+ * Hàm này lấy về chi tiết của một hóa đơn
12019
+ * @example
12020
+ * this.vhEcommerce.getSalesOrderDetailTiktok('14424213387', '403754acaafc4564a16c19faa32d73c8', 'gsdr3454u54w34tfq')
12021
+ .then((salesorderdetail)=>{
12022
+ console.log('getSalesOrderDetailTiktok', salesorderdetail);
12023
+ },(error:any)=>{
12024
+ console.log('error', error);
12025
+ })
12026
+ * @param id
12027
+ * @param shop_cipher
12028
+ * @param app_key
12029
+ * @param access_token
12030
+ * @param id_shop
12031
+ * @returns Promise => obj ={} or null
12032
+ */
12033
+ getSalesOrderDetailTiktok(id: string, shop_cipher: string, app_key: string, access_token: string, id_shop: any): Promise<unknown>;
11955
12034
  /**
11956
12035
  * @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...)
11957
12036
  * @example:
@@ -12100,7 +12179,7 @@ export declare class VhEcommerce {
12100
12179
  .then(()=>{
12101
12180
  do something.....
12102
12181
  })
12103
- * Hàm này refresh giá trị mới nhất cho hàm getProductListSendo() trong localstorage
12182
+ * Hàm này refresh giá trị mới nhất cho hàm getProductListShopee() trong localstorage
12104
12183
  * @return Promise => null
12105
12184
  */
12106
12185
  refreshLocalProductListShopee(id_branch: string, shop_id?: string): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "10.2.3",
3
+ "version": "10.2.6",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"