ionic-vhframeworks 3.1.7 → 3.2.1
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.
- package/bundles/ionic-vhframeworks.umd.js +1 -1
- package/bundles/ionic-vhframeworks.umd.js.map +1 -1
- package/bundles/ionic-vhframeworks.umd.min.js +1 -1
- package/bundles/ionic-vhframeworks.umd.min.js.map +1 -1
- package/fesm2015/ionic-vhframeworks.js.map +1 -1
- package/ionic-vhframeworks.metadata.json +1 -1
- package/lib/ionic-vhframeworks.service.d.ts +164 -94
- package/package.json +1 -1
|
@@ -4229,14 +4229,12 @@ export declare class VhQueryCloudCam {
|
|
|
4229
4229
|
startLocalStorage(): Promise<any>;
|
|
4230
4230
|
/**
|
|
4231
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
|
-
* @returns String
|
|
4233
|
-
*/
|
|
4234
|
-
getClientRTSPURL(): any;
|
|
4235
|
-
/**
|
|
4236
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
|
|
4237
|
-
*
|
|
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}
|
|
4238
4236
|
*/
|
|
4239
|
-
|
|
4237
|
+
getCloudCamServer(): Promise<any>;
|
|
4240
4238
|
createPaymentVnpay(amount: number, bankCode: string, data: any, backHref: string, fee: object, fee_details: object): any;
|
|
4241
4239
|
/**
|
|
4242
4240
|
* @example:
|
|
@@ -4537,23 +4535,32 @@ export declare class VhQueryCloudCam {
|
|
|
4537
4535
|
console.log('changeCloudCamURLbyEndUser', bool);
|
|
4538
4536
|
})
|
|
4539
4537
|
* @param licensecam
|
|
4540
|
-
* @param rtsp_transport 'tcp' or 'udp'
|
|
4541
4538
|
* @param url
|
|
4542
4539
|
* @return Promise => bool = true or false
|
|
4543
4540
|
*/
|
|
4544
|
-
changeCloudCamURLbyEndUser(licensecam: string, url: string
|
|
4541
|
+
changeCloudCamURLbyEndUser(licensecam: string, url: string): Promise<unknown>;
|
|
4545
4542
|
/**
|
|
4546
4543
|
* @example:
|
|
4547
|
-
* this.vhQueryCloudCam.addCloudCamByEndUser('rtsp://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream',
|
|
4544
|
+
* this.vhQueryCloudCam.addCloudCamByEndUser('rtsp://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream', {name:camera 3})
|
|
4548
4545
|
.then((cloudcam)=>{
|
|
4549
4546
|
console.log('addCloudCamByEndUser', cloudcam);
|
|
4550
4547
|
})
|
|
4551
4548
|
* @param url
|
|
4552
|
-
* @rtsp_transport tcp or udp
|
|
4553
4549
|
* @param data
|
|
4554
4550
|
* @return Promise => {} or null
|
|
4555
4551
|
*/
|
|
4556
|
-
addCloudCamByEndUser(url: string,
|
|
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>;
|
|
4557
4564
|
/**
|
|
4558
4565
|
* @example:
|
|
4559
4566
|
* this.vhQueryCloudCam.updateCloudCamDataByEndUser('5fb6780ca2148e09806c5b01', {name:'camera 3'})
|
|
@@ -5656,11 +5663,10 @@ export declare class VhQueryClouds {
|
|
|
5656
5663
|
console.log('changeCloudCamURLbyUser', bool);
|
|
5657
5664
|
})
|
|
5658
5665
|
* @param licensecam
|
|
5659
|
-
* @param rtsp_transport 'tcp' or 'udp'
|
|
5660
5666
|
* @param url
|
|
5661
5667
|
* @return Promise => bool = true or false
|
|
5662
5668
|
*/
|
|
5663
|
-
changeCloudCamURLbyUser(licensecam: string, url: string,
|
|
5669
|
+
changeCloudCamURLbyUser(licensecam: string, url: string, eutoken: string): Promise<unknown>;
|
|
5664
5670
|
/**
|
|
5665
5671
|
* @example:
|
|
5666
5672
|
* this.vhQueryClouds.addCloudCamByUser('rtsp://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream', 'udp', {name:camera 3},'fgsdge5etw45tw34w3w34t3')
|
|
@@ -5668,12 +5674,11 @@ export declare class VhQueryClouds {
|
|
|
5668
5674
|
console.log('addCloudCamByUser', cloudcam);
|
|
5669
5675
|
})
|
|
5670
5676
|
* @param url
|
|
5671
|
-
* @rtsp_transport 'tcp' or 'udp'
|
|
5672
5677
|
* @param data
|
|
5673
5678
|
* @param eutoken
|
|
5674
5679
|
* @return Promise => {} or null
|
|
5675
5680
|
*/
|
|
5676
|
-
addCloudCamByUser(url: string,
|
|
5681
|
+
addCloudCamByUser(url: string, data: object, eutoken: string): Promise<unknown>;
|
|
5677
5682
|
/**
|
|
5678
5683
|
* @example:
|
|
5679
5684
|
* this.vhQueryClouds.updateCloudCamDataByUser('5fb6780ca2148e09806c5b01', {name:'camera 3'},'fgsdge5etw45tw34w3w34t3)
|
|
@@ -6546,7 +6551,7 @@ export declare class VhEcommerce {
|
|
|
6546
6551
|
private getProductListShopee;
|
|
6547
6552
|
/**
|
|
6548
6553
|
* @example:
|
|
6549
|
-
* let productlistlazada = this.vhEcommerce.
|
|
6554
|
+
* let productlistlazada = this.vhEcommerce.getlocalProductListShopee('ư0e4tuiwe98rhvqw9vtqw9t7rq987r9qvwn98et98');
|
|
6550
6555
|
* @param id_shop
|
|
6551
6556
|
* @returns Promise => Array
|
|
6552
6557
|
*/
|
|
@@ -6559,9 +6564,8 @@ export declare class VhQuerySales {
|
|
|
6559
6564
|
private vhAlgorithm;
|
|
6560
6565
|
private iap2;
|
|
6561
6566
|
private platform;
|
|
6562
|
-
private
|
|
6567
|
+
private productlistsendo;
|
|
6563
6568
|
private shoplistsendo;
|
|
6564
|
-
private productdetaillistlazada;
|
|
6565
6569
|
private productlistlazada;
|
|
6566
6570
|
private shoplistlazada;
|
|
6567
6571
|
private productlisttikis;
|
|
@@ -6711,31 +6715,6 @@ export declare class VhQuerySales {
|
|
|
6711
6715
|
updateProductByXMLLazada(xml: any, access_token: string): Promise<unknown>;
|
|
6712
6716
|
/**
|
|
6713
6717
|
* @example:
|
|
6714
|
-
* let productdetaillistlazada = this.vhQuerySales.getlocalProductDetailListLazada('ư0e4tuiwe98rhvqw9vtqw9t7rq987r9qvwn98et98');
|
|
6715
|
-
* @param status
|
|
6716
|
-
* @returns
|
|
6717
|
-
*/
|
|
6718
|
-
private getlocalProductDetailListLazada;
|
|
6719
|
-
/**
|
|
6720
|
-
* @example:
|
|
6721
|
-
* this.vhQuerySales.refreshLocalProductDetailListLazadas()
|
|
6722
|
-
.then(()=>{
|
|
6723
|
-
do something.....
|
|
6724
|
-
})
|
|
6725
|
-
* Hàm này refresh giá trị mới nhất cho hàm getlocalProductDetailListLazada() trong localstorage
|
|
6726
|
-
* @return Promise => null
|
|
6727
|
-
*/
|
|
6728
|
-
private refreshLocalProductDetailListLazadas;
|
|
6729
|
-
/**
|
|
6730
|
-
* @example:
|
|
6731
|
-
this.vhQuerySales.getProductDetailListLazadas().then((list)=>{
|
|
6732
|
-
console.log('list', list);
|
|
6733
|
-
})
|
|
6734
|
-
* @returns Promise => array =[{},{},...]
|
|
6735
|
-
*/
|
|
6736
|
-
private getProductDetailListLazadas;
|
|
6737
|
-
/**
|
|
6738
|
-
* @example:
|
|
6739
6718
|
* let productlistlazada = this.vhQuerySales.getlocalProductListLazada('ư0e4tuiwe98rhvqw9vtqw9t7rq987r9qvwn98et98');
|
|
6740
6719
|
* @param id_shop
|
|
6741
6720
|
* @returns Promise => Array
|
|
@@ -6772,9 +6751,9 @@ export declare class VhQuerySales {
|
|
|
6772
6751
|
*/
|
|
6773
6752
|
getProductDetailLazada(item_idArray: any, access_token: string, id_shop: any): Promise<unknown>;
|
|
6774
6753
|
/**
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6754
|
+
* let localshoplistlazada = this.vhQuerySales.getlocalShopListLazada();
|
|
6755
|
+
* @returns
|
|
6756
|
+
*/
|
|
6778
6757
|
getlocalShopListLazada(): any;
|
|
6779
6758
|
/**
|
|
6780
6759
|
* @example:
|
|
@@ -6791,11 +6770,11 @@ export declare class VhQuerySales {
|
|
|
6791
6770
|
console.log('bool', bool)
|
|
6792
6771
|
}
|
|
6793
6772
|
})
|
|
6794
|
-
|
|
6795
|
-
|
|
6773
|
+
* @returns Promise => true or false
|
|
6774
|
+
*/
|
|
6796
6775
|
signInLazada(): Promise<unknown>;
|
|
6797
6776
|
/**
|
|
6798
|
-
|
|
6777
|
+
* @example:
|
|
6799
6778
|
this.vhQuerySales.signOutLazada('938476838whsofis').then((bool)=>{
|
|
6800
6779
|
if(bool){
|
|
6801
6780
|
console.log('bool', bool)
|
|
@@ -6813,23 +6792,40 @@ export declare class VhQuerySales {
|
|
|
6813
6792
|
}, error=>{
|
|
6814
6793
|
console.log('error', error);
|
|
6815
6794
|
})
|
|
6816
|
-
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
createMergeLazadasProduct(id_product:
|
|
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>;
|
|
6821
6815
|
/**
|
|
6822
6816
|
* @example:
|
|
6823
|
-
* this.vhQuerySales.deleteMergeLazadaProduct('5fb67fda87c0f21d484cbdf3', 'gsdfgsdg4345324534t3w')
|
|
6817
|
+
* this.vhQuerySales.deleteMergeLazadaProduct('5fb67fda87c0f21d484cbdf3', 'gsdfgsdg4345324534t3w', 'sdfgsdfgererasds3563')
|
|
6824
6818
|
.then((bool)=>{
|
|
6825
6819
|
console.log('deleteMergeLazadaProduct', bool);
|
|
6826
6820
|
}, error=>{
|
|
6827
6821
|
reject(error)
|
|
6828
6822
|
})
|
|
6829
|
-
* @param
|
|
6823
|
+
* @param id_product
|
|
6824
|
+
* @param item_id
|
|
6825
|
+
* @param SkuId
|
|
6830
6826
|
* @return Promise => bool = true or false
|
|
6831
6827
|
*/
|
|
6832
|
-
deleteMergeLazadaProduct(id_product:
|
|
6828
|
+
deleteMergeLazadaProduct(id_product: any, item_id: any, SkuId: any): Promise<unknown>;
|
|
6833
6829
|
/**
|
|
6834
6830
|
* @example:
|
|
6835
6831
|
*let created_after = new Date('2021-01-25');
|
|
@@ -6847,7 +6843,111 @@ export declare class VhQuerySales {
|
|
|
6847
6843
|
* @param access_token
|
|
6848
6844
|
* @returns
|
|
6849
6845
|
*/
|
|
6850
|
-
getSalesOrderListLazada
|
|
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.getSalesOrderDetailListLazada( 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>;
|
|
6939
|
+
/**
|
|
6940
|
+
* this.vhQuerySales.updateShopLazada('5fb6780ca2148e09806c5b01', {name:lazadashop, id_customer: ''soidfja9wfhwa})
|
|
6941
|
+
.then((bool)=>{
|
|
6942
|
+
console.log(bool);
|
|
6943
|
+
}, error=>{
|
|
6944
|
+
console.log(error);
|
|
6945
|
+
})
|
|
6946
|
+
* @param id_shop
|
|
6947
|
+
* @param data
|
|
6948
|
+
* @return Promise => bool = true or false
|
|
6949
|
+
*/
|
|
6950
|
+
updateShopLazada(id_shop: string, data: object): Promise<unknown>;
|
|
6851
6951
|
/**
|
|
6852
6952
|
* @example:
|
|
6853
6953
|
* let json = [{
|
|
@@ -6960,32 +7060,6 @@ export declare class VhQuerySales {
|
|
|
6960
7060
|
* @returns
|
|
6961
7061
|
*/
|
|
6962
7062
|
getlocalShopListSendo(): any;
|
|
6963
|
-
/**
|
|
6964
|
-
* @example:
|
|
6965
|
-
* let productdetaillistsendo = this.vhQuerySales.getlocalProductDetailListSendo('ư0e4tuiwe98rhvqw9vtqw9t7rq987r9qvwn98et98');
|
|
6966
|
-
* @param status
|
|
6967
|
-
* @returns
|
|
6968
|
-
*/
|
|
6969
|
-
private getlocalProductDetailListSendo;
|
|
6970
|
-
/**
|
|
6971
|
-
* @example:
|
|
6972
|
-
* this.vhQuerySales.refreshLocalProductDetailListSendo()
|
|
6973
|
-
.then(()=>{
|
|
6974
|
-
do something.....
|
|
6975
|
-
})
|
|
6976
|
-
* Hàm này refresh giá trị mới nhất cho hàm getlocalProductDetailListSendo() trong localstorage
|
|
6977
|
-
* @return Promise => null
|
|
6978
|
-
*/
|
|
6979
|
-
private refreshLocalProductDetailListSendo;
|
|
6980
|
-
/**
|
|
6981
|
-
* @example:
|
|
6982
|
-
* this.vhQuerySales.getProductDetailListSendo().then(()=>{
|
|
6983
|
-
do something...
|
|
6984
|
-
},error=>{
|
|
6985
|
-
})
|
|
6986
|
-
* @returns
|
|
6987
|
-
*/
|
|
6988
|
-
private getProductDetailListSendo;
|
|
6989
7063
|
/**
|
|
6990
7064
|
* @example:
|
|
6991
7065
|
* let productlistsendo = this.vhQuerySales.getlocalProductListSendo('ư0e4tuiwe98rhvqw9vtqw9t7rq987r9qvwn98et98');
|
|
@@ -7087,13 +7161,13 @@ export declare class VhQuerySales {
|
|
|
7087
7161
|
updateMergeSendosProduct(id_product: any, id: any, variant_attribute_hash: any, data: any): Promise<unknown>;
|
|
7088
7162
|
/**
|
|
7089
7163
|
* @example:
|
|
7090
|
-
* this.vhQuerySales.deleteMergeSendoProduct('5fb67fda87c0f21d484cbdf3', 'gsdfgsdg4345324534t3w')
|
|
7164
|
+
* this.vhQuerySales.deleteMergeSendoProduct('5fb67fda87c0f21d484cbdf3', 'gsdfgsdg4345324534t3w', 'jhiy87685765r575345re')
|
|
7091
7165
|
.then((bool)=>{
|
|
7092
7166
|
console.log('deleteMergeSendoProduct', bool);
|
|
7093
7167
|
}, error=>{
|
|
7094
7168
|
reject(error)
|
|
7095
7169
|
})
|
|
7096
|
-
* @param
|
|
7170
|
+
* @param id_product
|
|
7097
7171
|
* @param id: trường id trong sản phẩm sendo
|
|
7098
7172
|
* @param variant_attribute_hash: trường variant_attribute_hash trong sản phẩm sendo
|
|
7099
7173
|
* @return Promise => bool = true or false
|
|
@@ -9801,11 +9875,10 @@ export declare class VhQuerySCclient {
|
|
|
9801
9875
|
console.log('changeCloudCamURL', bool);
|
|
9802
9876
|
})
|
|
9803
9877
|
* @param licensecam
|
|
9804
|
-
* @param rtsp_transport 'tcp' or 'udp'
|
|
9805
9878
|
* @param url
|
|
9806
9879
|
* @return Promise => bool = true or false
|
|
9807
9880
|
*/
|
|
9808
|
-
changeCloudCamURL(licensecam: string, url: string
|
|
9881
|
+
changeCloudCamURL(licensecam: string, url: string): Promise<unknown>;
|
|
9809
9882
|
/**
|
|
9810
9883
|
* @example:
|
|
9811
9884
|
* this.vhQuerySecurityCam.deleteCloudCam('5fb67fda87c0f21d484cbdf3')
|
|
@@ -9834,11 +9907,10 @@ export declare class VhQuerySCclient {
|
|
|
9834
9907
|
console.log('addCloudCam', cloudcam);
|
|
9835
9908
|
})
|
|
9836
9909
|
* @param url
|
|
9837
|
-
* @rtsp_transport tcp or udp
|
|
9838
9910
|
* @param data
|
|
9839
9911
|
* @return Promise => {} or null
|
|
9840
9912
|
*/
|
|
9841
|
-
addCloudCam(url: string,
|
|
9913
|
+
addCloudCam(url: string, data: object): Promise<unknown>;
|
|
9842
9914
|
getCloudCams(): Promise<unknown>;
|
|
9843
9915
|
/**
|
|
9844
9916
|
* @example:
|
|
@@ -10464,11 +10536,10 @@ export declare class VhQuerySecurityCam {
|
|
|
10464
10536
|
console.log('changeCloudCamURLbyEndUser', bool);
|
|
10465
10537
|
})
|
|
10466
10538
|
* @param licensecam
|
|
10467
|
-
* @param rtsp_transport 'tcp' or 'udp'
|
|
10468
10539
|
* @param url
|
|
10469
10540
|
* @return Promise => bool = true or false
|
|
10470
10541
|
*/
|
|
10471
|
-
changeCloudCamURLbyEndUser(licensecam: string, url: string
|
|
10542
|
+
changeCloudCamURLbyEndUser(licensecam: string, url: string): Promise<unknown>;
|
|
10472
10543
|
/**
|
|
10473
10544
|
* @example:
|
|
10474
10545
|
* this.vhQuerySecurityCam.addCloudCamByEndUser('rtsp://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream', 'udp', {name:camera 3})
|
|
@@ -10476,11 +10547,10 @@ export declare class VhQuerySecurityCam {
|
|
|
10476
10547
|
console.log('addCloudCamByEndUser', cloudcam);
|
|
10477
10548
|
})
|
|
10478
10549
|
* @param url
|
|
10479
|
-
* @rtsp_transport tcp or udp
|
|
10480
10550
|
* @param data
|
|
10481
10551
|
* @return Promise => {} or null
|
|
10482
10552
|
*/
|
|
10483
|
-
addCloudCamByEndUser(url: string,
|
|
10553
|
+
addCloudCamByEndUser(url: string, data: object): Promise<unknown>;
|
|
10484
10554
|
/**
|
|
10485
10555
|
* @example:
|
|
10486
10556
|
* this.vhQuerySecurityCam.updateCloudCamDataByEndUser('5fb6780ca2148e09806c5b01', {name:'camera 3'})
|