ionic-vhframeworks 10.3.0 → 10.3.2

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.
@@ -12036,6 +12036,51 @@ export declare class VhEcommerce {
12036
12036
  * @returns Promise => obj ={} or null
12037
12037
  */
12038
12038
  getSalesOrderDetailTiktok(id: string, shop_cipher: string, app_key: string, access_token: string, id_shop: any): Promise<unknown>;
12039
+ /**
12040
+ * 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 tiktok)
12041
+ * @example
12042
+ * this.vhEcommerce.getSalesOrderTiktok_fromViethas( ['14424213387','14424273835'], '403754acaafc4564a16c19faa32d73c8')
12043
+ .then((array:any)=>{
12044
+ console.log('array', array);
12045
+ },(error:any)=>{
12046
+ console.log('error', error);
12047
+ })
12048
+ * @param ids : là mảng các id của các order
12049
+ * @param id_shop
12050
+ * @returns Promise => Array(object or null)
12051
+ */
12052
+ getSalesOrderTiktok_fromViethas(ids: any, id_shop: string): Promise<unknown>;
12053
+ /**
12054
+ * Hàm này cập nhật các đơn hàng (salesorder) được lưu trong database viethas (ko phải database tiktok), lưu ý các order_sn đc lấy từ tiktok server về
12055
+ * @example:
12056
+ * this.vhEcommerce.updateSalesOrderTiktok('5fb67fda87c0f21d484cbdf3', 'gsdfgsdg4345324534t3w', {check:true})
12057
+ .then((bool:any)=>{
12058
+ console.log('updateSalesOrderTiktok', bool);
12059
+ }, error=>{
12060
+ reject(error)
12061
+ })
12062
+ * @param id_shop
12063
+ * @param id
12064
+ * @param data
12065
+ * @return Promise => bool = true or false
12066
+ */
12067
+ updateSalesOrderTiktok(id_shop: string, id: string, data: object): Promise<unknown>;
12068
+ /**
12069
+ * Hàm này cập nhật các đơn hàng (salesorder) được lưu trong database viethas (ko phải database tiktok), lưu ý các order_sn đc import từ file ngoài vào (excel, csv...)
12070
+ * @example:
12071
+ * this.vhEcommerce.updateSalesOrderTiktok_byFile(['144242133871', '14424213387'], {check:true}, 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJTdG9yZUlkIjoiNTczNjciLCJVc2VyTmFtZSI6IiIsIlN0b3JlU3RhdHVzIjoiMiIsIlNob3BUeXBlIjoiMCIsIlN0b3JlTGV2ZWwiOiIzIiwiZXhwIjoxNjMzODE3MzIwLCJpc3MiOiI1NzM2NyIsImF1ZCI6IjU3MzY3In0.9S18n7EuG7XxbZVm9kjUBozJVjx2_EZRNAn38wBUaDs', '403754acaafc4564a16c19faa32d73c8')
12072
+ .then((array:any)=>{
12073
+ console.log('updateSalesOrderTiktok_byFile', array);
12074
+ }, error=>{
12075
+ console.log(error)
12076
+ })
12077
+ * @param ids : là mảng các id của các order
12078
+ * @param data
12079
+ * @param access_token
12080
+ * @param id_shop
12081
+ * @return Promise => Array(bool) = [true or false,,...]
12082
+ */
12083
+ updateSalesOrderTiktok_byFile(ids: any, data: object, shop_cipher: string, app_key: string, access_token: string, id_shop: string): Promise<unknown>;
12039
12084
  /**
12040
12085
  * Tạo liên kết sản phẩm trên phần mềm quản lý bán hàng sales viethas và sản phẩm trên sàn tiktok
12041
12086
  * @example:
@@ -26484,7 +26529,21 @@ export declare class VhQuerySales {
26484
26529
  * @param invoiceSeries
26485
26530
  * @returns Promise => {vcode, msg, data(array)}
26486
26531
  */
26487
- changeBill_toInvoice_byMinvoice(id_bill: string, invoiceSeries: string): Promise<any>;
26532
+ private changeBill_toInvoice_byMinvoice1;
26533
+ /**
26534
+ * @example
26535
+ * this.vhQuerySales.changeTiktok_toInvoice_byMinvoice(order,invoiceSeries)
26536
+ .then((rsp)=>{
26537
+ //-----------your code here-----------
26538
+ },(error:any)=>{
26539
+ console.log('error', error)
26540
+ })
26541
+ * @param order : hóa đơn lấy từ tiktok về
26542
+ * @param invoiceSeries : ký hiệu hóa đơn
26543
+ * @returns Promise => {vcode, msg, data(array)}
26544
+ */
26545
+ private changeTiktok_toInvoice_byMinvoice;
26546
+ private changeTiktok_toInvoice_byMinvoice1;
26488
26547
  /**
26489
26548
  * 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
26490
26549
  * @example
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "10.3.0",
3
+ "version": "10.3.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"