ionic-vhframeworks 10.4.5 → 10.4.8
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.
|
@@ -218,6 +218,18 @@ export declare class VhAlgorithm {
|
|
|
218
218
|
* @returns true: nếu ngày trên bill trùng với ngày của thiết bị; false: nếu ngày trên bill khác với ngày của thiết bị
|
|
219
219
|
*/
|
|
220
220
|
isToday(date: any): boolean;
|
|
221
|
+
/**
|
|
222
|
+
* Hàm lấy thời điểm bắt đầu (00:00:00.000) của một ngày bất kỳ như sau
|
|
223
|
+
* @param date
|
|
224
|
+
* @returns
|
|
225
|
+
*/
|
|
226
|
+
getStartOfDay(date: Date | string): Date;
|
|
227
|
+
/**
|
|
228
|
+
* Hàm lấy thời điểm kết thúc của một ngày bất kỳ (tức là 23:59:59.999)
|
|
229
|
+
* @param date
|
|
230
|
+
* @returns
|
|
231
|
+
*/
|
|
232
|
+
getEndOfDay(date: Date | string): Date;
|
|
221
233
|
/**
|
|
222
234
|
* @example SET:
|
|
223
235
|
* localStorageSET('local_name', {a=1, b='hai'});
|
|
@@ -3604,6 +3616,7 @@ export declare class VhQueryCafe {
|
|
|
3604
3616
|
* let product = {
|
|
3605
3617
|
allow_sell: true,
|
|
3606
3618
|
brand: "OEM",
|
|
3619
|
+
tax: 0,
|
|
3607
3620
|
id_category: "vTr90aYfhDqSCyuRh4DR",
|
|
3608
3621
|
img: "image link",
|
|
3609
3622
|
manysize: false,
|
|
@@ -3625,6 +3638,7 @@ export declare class VhQueryCafe {
|
|
|
3625
3638
|
* let product = {
|
|
3626
3639
|
allow_sell: true,
|
|
3627
3640
|
brand: "OEM",
|
|
3641
|
+
tax: 0,
|
|
3628
3642
|
id_category: "vTr90aYfhDqSCyuRh4DR",
|
|
3629
3643
|
img: "image link",
|
|
3630
3644
|
manysize: true,
|
|
@@ -14656,6 +14670,7 @@ export declare class VhQueryAutoWeb {
|
|
|
14656
14670
|
* let product = {
|
|
14657
14671
|
allow_sell: true,
|
|
14658
14672
|
brand: "OEM",
|
|
14673
|
+
tax: 0,
|
|
14659
14674
|
id_categorys: ["vTr90aYfhDqSCyuRh4DR"],
|
|
14660
14675
|
img: "image link",
|
|
14661
14676
|
manysize: false,
|
|
@@ -14677,6 +14692,7 @@ export declare class VhQueryAutoWeb {
|
|
|
14677
14692
|
* let product = {
|
|
14678
14693
|
allow_sell: true,
|
|
14679
14694
|
brand: "OEM",
|
|
14695
|
+
tax: 0,
|
|
14680
14696
|
id_categorys: ["vTr90aYfhDqSCyuRh4DR"],
|
|
14681
14697
|
img: "image link",
|
|
14682
14698
|
manysize: true,
|
|
@@ -14985,6 +15001,7 @@ export declare class VhQueryAutoWeb {
|
|
|
14985
15001
|
* let food = {
|
|
14986
15002
|
allow_sell: true,
|
|
14987
15003
|
brand: "OEM",
|
|
15004
|
+
tax: 0,
|
|
14988
15005
|
id_category: "vTr90aYfhDqSCyuRh4DR",
|
|
14989
15006
|
img: "image link",
|
|
14990
15007
|
manysize: false,
|
|
@@ -15006,6 +15023,7 @@ export declare class VhQueryAutoWeb {
|
|
|
15006
15023
|
* let food = {
|
|
15007
15024
|
allow_sell: true,
|
|
15008
15025
|
brand: "OEM",
|
|
15026
|
+
tax: 0,
|
|
15009
15027
|
id_category: "vTr90aYfhDqSCyuRh4DR",
|
|
15010
15028
|
img: "image link",
|
|
15011
15029
|
manysize: true,
|
|
@@ -15150,6 +15168,7 @@ export declare class VhQueryAutoWeb {
|
|
|
15150
15168
|
serial_number:"123456",
|
|
15151
15169
|
imei: "1r2r5f2g4h5vf2g5",
|
|
15152
15170
|
brand_name: "XPRINTER",
|
|
15171
|
+
tax: 0,
|
|
15153
15172
|
model_number: "XP-420B-USB",
|
|
15154
15173
|
material: "ABS",
|
|
15155
15174
|
Certification: "CCC, CE, FCC, RoHS, KC, SAA, BIS, BSMI",
|
|
@@ -21186,6 +21205,26 @@ export declare class VhEinvoice {
|
|
|
21186
21205
|
*/
|
|
21187
21206
|
getTypeInvoiceSeries_byMinvoice(taxcode: string, token: string, Type?: number): Promise<any>;
|
|
21188
21207
|
/**
|
|
21208
|
+
* Xem in hoá đơn thông qua id của hoá đơn và keyApi tích hợp từ đối tác
|
|
21209
|
+
* @example
|
|
21210
|
+
* this.vhEinvoice.getPrintInvoice_byMinvoice(taxcode, token, params)
|
|
21211
|
+
.then(()=>{
|
|
21212
|
+
//-----------your code here-----------
|
|
21213
|
+
},(error:any)=>{
|
|
21214
|
+
console.log('error', error)
|
|
21215
|
+
})
|
|
21216
|
+
* @param taxcode
|
|
21217
|
+
* @param token
|
|
21218
|
+
* @param params:
|
|
21219
|
+
* Ý nghĩa params:
|
|
21220
|
+
* {id: '3a06a343-ff4d-21cd-fe31-2c5a0824636f'} : Xem in hoá đơn thông qua id của hoá đơn
|
|
21221
|
+
* id: ID hóa đơn do M-Invoice trả về
|
|
21222
|
+
* {keyApi: '720rv2222Q'} : Xem in hoá đơn thông qua thông qua keyApi tích hợp từ đối tác
|
|
21223
|
+
* keyApi: Key tích hợp từ đối tác truyền sang
|
|
21224
|
+
* @returns Promise => {"code": "00", "message": "Thành công"}
|
|
21225
|
+
*/
|
|
21226
|
+
getPrintInvoice_byMinvoice(taxcode: string, token: string, params: any): Promise<any>;
|
|
21227
|
+
/**
|
|
21189
21228
|
* Hàm tra cứu mã số thuế
|
|
21190
21229
|
* @example
|
|
21191
21230
|
* this.vhEinvoice.searchTaxCodeV2_byMinvoice(tax)
|
|
@@ -21199,7 +21238,7 @@ export declare class VhEinvoice {
|
|
|
21199
21238
|
*/
|
|
21200
21239
|
searchTaxCodeV2_byMinvoice(tax: string): Promise<any>;
|
|
21201
21240
|
/**
|
|
21202
|
-
*
|
|
21241
|
+
* Lấy thông tin hoá đơn thông qua id hóa đơn hoặc keyApi tích hợp từ đối tác
|
|
21203
21242
|
* @example
|
|
21204
21243
|
* this.vhEinvoice.getInfoInvoice_byMinvoice(taxcode, token, params)
|
|
21205
21244
|
.then(()=>{
|
|
@@ -24439,6 +24478,7 @@ export declare class VhQuerySales {
|
|
|
24439
24478
|
* let product = {
|
|
24440
24479
|
allow_sell: true,
|
|
24441
24480
|
brand: "OEM",
|
|
24481
|
+
tax: 0,
|
|
24442
24482
|
id_category: "vTr90aYfhDqSCyuRh4DR",
|
|
24443
24483
|
img: "image link",
|
|
24444
24484
|
manysize: false,
|
|
@@ -24460,6 +24500,7 @@ export declare class VhQuerySales {
|
|
|
24460
24500
|
* let product = {
|
|
24461
24501
|
allow_sell: true,
|
|
24462
24502
|
brand: "OEM",
|
|
24503
|
+
tax: 0,
|
|
24463
24504
|
id_category: "vTr90aYfhDqSCyuRh4DR",
|
|
24464
24505
|
img: "image link",
|
|
24465
24506
|
manysize: true,
|
|
@@ -27253,6 +27294,7 @@ export declare class VhQuerySales {
|
|
|
27253
27294
|
* vcode = 1: id_licenseKEY không thuộc về Store
|
|
27254
27295
|
* vcode = 2: id_licenseKEY đã được kích hoạt trước đây
|
|
27255
27296
|
* vcode = 3: id_licenseKEY đã bị vô hiệu hóa trước đây
|
|
27297
|
+
* vcode = 4: id_licenseKEY không kích hoạt được do khác loại gói đang dùng
|
|
27256
27298
|
*/
|
|
27257
27299
|
extendLicenseValidaty_byLicenseKEY(id_branch: string, id_licenseKEY: string): Promise<unknown>;
|
|
27258
27300
|
/**
|
|
@@ -30217,6 +30259,61 @@ export declare class VhQuerySales {
|
|
|
30217
30259
|
static ɵfac: i0.ɵɵFactoryDeclaration<VhQuerySales, never>;
|
|
30218
30260
|
static ɵprov: i0.ɵɵInjectableDeclaration<VhQuerySales>;
|
|
30219
30261
|
}
|
|
30262
|
+
export declare class VhQueryAdministrator {
|
|
30263
|
+
private vhMGDB_auth;
|
|
30264
|
+
private vhMGDB_database;
|
|
30265
|
+
private vhMGDB_rootdatabase;
|
|
30266
|
+
private vhAuth;
|
|
30267
|
+
private vhAlgorithm;
|
|
30268
|
+
constructor(vhMGDB_auth: VhMGDB_auth, vhMGDB_database: VhMGDB_database, vhMGDB_rootdatabase: VhMGDB_rootdatabase, vhAuth: VhAuth, vhAlgorithm: VhAlgorithm);
|
|
30269
|
+
/**
|
|
30270
|
+
* @example:
|
|
30271
|
+
* let time = new Date();
|
|
30272
|
+
* time.setDate(time.getDate()-7);
|
|
30273
|
+
* this.vhQueryAdministrator.getStores_byFields({creationdate:{$lte: new Date()}}, {},{},0)
|
|
30274
|
+
.then((stores)=>{
|
|
30275
|
+
console.log('getStores_byFields', stores);
|
|
30276
|
+
})
|
|
30277
|
+
* @param query
|
|
30278
|
+
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
30279
|
+
* @param sort — null hoặc {}:không sắp xếp; {date:1}: sắp xếp theo ASC; {date:-1}: sắp xếp theo DESC
|
|
30280
|
+
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
30281
|
+
* @return — Array -> array = [{},{},...]
|
|
30282
|
+
*/
|
|
30283
|
+
getStores_byFields(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
|
|
30284
|
+
/**
|
|
30285
|
+
* @example:
|
|
30286
|
+
* let time = new Date();
|
|
30287
|
+
* time.setDate(time.getDate()-7);
|
|
30288
|
+
* this.vhQueryAdministrator.getAffiliaters_byFields({creationdate:{$lte: new Date()}}, {},{},0)
|
|
30289
|
+
.then((affiliaters)=>{
|
|
30290
|
+
console.log('getAffiliaters_byFields', affiliaters);
|
|
30291
|
+
})
|
|
30292
|
+
* @param query
|
|
30293
|
+
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
30294
|
+
* @param sort — null hoặc {}:không sắp xếp; {date:1}: sắp xếp theo ASC; {date:-1}: sắp xếp theo DESC
|
|
30295
|
+
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
30296
|
+
* @return — Array -> array = [{},{},...]
|
|
30297
|
+
*/
|
|
30298
|
+
getAffiliaters_byFields(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
|
|
30299
|
+
/**
|
|
30300
|
+
* @example:
|
|
30301
|
+
* let time = new Date();
|
|
30302
|
+
* time.setDate(time.getDate()-7);
|
|
30303
|
+
* this.vhQueryAdministrator.getDealers_byFields({creationdate:{$lte: new Date()}}, {},{},0)
|
|
30304
|
+
.then((dealers)=>{
|
|
30305
|
+
console.log('getDealers_byFields', dealers);
|
|
30306
|
+
})
|
|
30307
|
+
* @param query
|
|
30308
|
+
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
30309
|
+
* @param sort — null hoặc {}:không sắp xếp; {date:1}: sắp xếp theo ASC; {date:-1}: sắp xếp theo DESC
|
|
30310
|
+
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
30311
|
+
* @return — Array -> array = [{},{},...]
|
|
30312
|
+
*/
|
|
30313
|
+
getDealers_byFields(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
|
|
30314
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VhQueryAdministrator, never>;
|
|
30315
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<VhQueryAdministrator>;
|
|
30316
|
+
}
|
|
30220
30317
|
export declare class VhQueryAffiliater {
|
|
30221
30318
|
private vhMGDB_auth;
|
|
30222
30319
|
private vhMGDB_database;
|
|
@@ -30235,6 +30332,76 @@ export declare class VhQueryAffiliater {
|
|
|
30235
30332
|
* @return Promise => affiliate ={} or null / error
|
|
30236
30333
|
*/
|
|
30237
30334
|
getAffiliate(id_affiliate: any): Promise<unknown>;
|
|
30335
|
+
/**
|
|
30336
|
+
* @example:
|
|
30337
|
+
* let data = {
|
|
30338
|
+
date: new Date(),
|
|
30339
|
+
code: "A0001",
|
|
30340
|
+
name: "Giá tốt mỗi ngày",
|
|
30341
|
+
id_affiliater: "5fb6780ca2148e09806c5b01",
|
|
30342
|
+
payment_details:[{
|
|
30343
|
+
id_package: "store_main_package_standard_12month",
|
|
30344
|
+
original_price: 1980000,
|
|
30345
|
+
partner_price: 1980000,
|
|
30346
|
+
selling_price: 980000
|
|
30347
|
+
},{
|
|
30348
|
+
id_package: "store_main_package_super_pro_12month",
|
|
30349
|
+
original_price: 3960000,
|
|
30350
|
+
partner_price: 3960000,
|
|
30351
|
+
original_price: 3960000
|
|
30352
|
+
}]
|
|
30353
|
+
}
|
|
30354
|
+
* this.vhQueryAffiliater.createAffiliate(data)
|
|
30355
|
+
.then((affiliate)=>{
|
|
30356
|
+
console.log('createAffiliate', affiliate);
|
|
30357
|
+
},(error:any)=>{
|
|
30358
|
+
console.log('error', error);
|
|
30359
|
+
})
|
|
30360
|
+
* @param data : object
|
|
30361
|
+
* @return Promise => affiliate = {} / error
|
|
30362
|
+
* 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
|
|
30363
|
+
*/
|
|
30364
|
+
createAffiliate(data: any): Promise<unknown>;
|
|
30365
|
+
/**
|
|
30366
|
+
* @example:
|
|
30367
|
+
* this.vhQueryAffiliater.updateAffiliate('5fb6780ca2148e09806c5b01', {total:990000})
|
|
30368
|
+
.then((response)=>{
|
|
30369
|
+
console.log('updateAffiliate', response);
|
|
30370
|
+
}, error=>{
|
|
30371
|
+
console.log('error', error);
|
|
30372
|
+
})
|
|
30373
|
+
* @param id_affiliate
|
|
30374
|
+
* @param value
|
|
30375
|
+
* @return Promise => response = undefined / error
|
|
30376
|
+
*/
|
|
30377
|
+
updateAffiliate(id_affiliate: string, value: any): Promise<unknown>;
|
|
30378
|
+
/**
|
|
30379
|
+
* @example:
|
|
30380
|
+
* this.vhQueryAffiliater.deleteAffiliate('5fb67fda87c0f21d484cbdf3')
|
|
30381
|
+
.then((response)=>{
|
|
30382
|
+
console.log('deleteAffiliate', response);
|
|
30383
|
+
}, error=>{
|
|
30384
|
+
console.log(error, error);
|
|
30385
|
+
})
|
|
30386
|
+
* @param id_affiliate
|
|
30387
|
+
* @return Promise => response = undefined / error
|
|
30388
|
+
*/
|
|
30389
|
+
deleteAffiliate(id_affiliate: any): Promise<unknown>;
|
|
30390
|
+
/**
|
|
30391
|
+
* @example:
|
|
30392
|
+
* let time = new Date();
|
|
30393
|
+
* time.setDate(time.getDate()-7);
|
|
30394
|
+
* this.vhQueryAffiliater.getAffiliate_byFields({payment_type:{$eq:5}}, {},{},0)
|
|
30395
|
+
.then((affiliates)=>{
|
|
30396
|
+
console.log('getAffiliate_byFields', affiliates);
|
|
30397
|
+
})
|
|
30398
|
+
* @param query
|
|
30399
|
+
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
30400
|
+
* @param sort — null hoặc {}:không sắp xếp; {date:1}: sắp xếp theo ASC; {date:-1}: sắp xếp theo DESC
|
|
30401
|
+
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
30402
|
+
* @return — Array -> array = [{},{},...]
|
|
30403
|
+
*/
|
|
30404
|
+
getAffiliate_byFields(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
|
|
30238
30405
|
static ɵfac: i0.ɵɵFactoryDeclaration<VhQueryAffiliater, never>;
|
|
30239
30406
|
static ɵprov: i0.ɵɵInjectableDeclaration<VhQueryAffiliater>;
|
|
30240
30407
|
}
|
|
@@ -30552,6 +30719,7 @@ export declare class VhQueryDealer {
|
|
|
30552
30719
|
* vcode = 1: id_licenseKEY không thuộc về Store
|
|
30553
30720
|
* vcode = 2: id_licenseKEY đã được kích hoạt trước đây
|
|
30554
30721
|
* vcode = 3: id_licenseKEY đã bị vô hiệu hóa trước đây
|
|
30722
|
+
* vcode = 4: id_licenseKEY không kích hoạt được do khác loại gói đang dùng
|
|
30555
30723
|
*/
|
|
30556
30724
|
extendLicenseValidaty_byLicenseKEY(id_store: string, id_branch: string, id_licenseKEY: string): Promise<unknown>;
|
|
30557
30725
|
static ɵfac: i0.ɵɵFactoryDeclaration<VhQueryDealer, never>;
|