ionic-vhframeworks 10.4.67 → 10.5.0
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",
|
|
@@ -24459,6 +24478,7 @@ export declare class VhQuerySales {
|
|
|
24459
24478
|
* let product = {
|
|
24460
24479
|
allow_sell: true,
|
|
24461
24480
|
brand: "OEM",
|
|
24481
|
+
tax: 0,
|
|
24462
24482
|
id_category: "vTr90aYfhDqSCyuRh4DR",
|
|
24463
24483
|
img: "image link",
|
|
24464
24484
|
manysize: false,
|
|
@@ -24480,6 +24500,7 @@ export declare class VhQuerySales {
|
|
|
24480
24500
|
* let product = {
|
|
24481
24501
|
allow_sell: true,
|
|
24482
24502
|
brand: "OEM",
|
|
24503
|
+
tax: 0,
|
|
24483
24504
|
id_category: "vTr90aYfhDqSCyuRh4DR",
|
|
24484
24505
|
img: "image link",
|
|
24485
24506
|
manysize: true,
|
|
@@ -30238,6 +30259,142 @@ export declare class VhQuerySales {
|
|
|
30238
30259
|
static ɵfac: i0.ɵɵFactoryDeclaration<VhQuerySales, never>;
|
|
30239
30260
|
static ɵprov: i0.ɵɵInjectableDeclaration<VhQuerySales>;
|
|
30240
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.getshops_byFields({creationdate:{$lte: new Date()}}, {},{},0)
|
|
30274
|
+
.then((shops)=>{
|
|
30275
|
+
console.log('getshops_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
|
+
getshops_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({code:{$eq: 'A0001;}}, {},{},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
|
+
/**
|
|
30315
|
+
* @example:
|
|
30316
|
+
* let data = {
|
|
30317
|
+
date: new Date(),
|
|
30318
|
+
code: "A0001",
|
|
30319
|
+
name: "Giá tốt mỗi ngày",
|
|
30320
|
+
id_affiliater: "5fb6780ca2148e09806c5b01",
|
|
30321
|
+
payment_details:[{
|
|
30322
|
+
id_package: "store_main_package_standard_12month",
|
|
30323
|
+
original_price: 1980000,
|
|
30324
|
+
partner_price: 1980000,
|
|
30325
|
+
selling_price: 980000
|
|
30326
|
+
},{
|
|
30327
|
+
id_package: "store_main_package_super_pro_12month",
|
|
30328
|
+
original_price: 3960000,
|
|
30329
|
+
partner_price: 3960000,
|
|
30330
|
+
original_price: 3960000
|
|
30331
|
+
}]
|
|
30332
|
+
}
|
|
30333
|
+
* this.vhQueryAdministrator.createAffiliate(data)
|
|
30334
|
+
.then((affiliate)=>{
|
|
30335
|
+
console.log('createAffiliate', affiliate);
|
|
30336
|
+
},(error:any)=>{
|
|
30337
|
+
console.log('error', error);
|
|
30338
|
+
})
|
|
30339
|
+
* @param data : object
|
|
30340
|
+
* @return Promise => affiliate = {} / error
|
|
30341
|
+
* 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
|
|
30342
|
+
*/
|
|
30343
|
+
createAffiliate(data: any): Promise<unknown>;
|
|
30344
|
+
/**
|
|
30345
|
+
* Hàm lấy về thông tin, giá cả các gói phần mềm mà các affiliater muốn bán cho khách của họ
|
|
30346
|
+
* @example:
|
|
30347
|
+
* this.vhQueryAdministrator.getAffiliate('5fb67fda87c0f21d484cbdf3')
|
|
30348
|
+
.then((affiliate)=>{
|
|
30349
|
+
console.log('getAffiliate', affiliate);
|
|
30350
|
+
})
|
|
30351
|
+
* @param id_affiliate
|
|
30352
|
+
* @return Promise => affiliate ={} or null / error
|
|
30353
|
+
*/
|
|
30354
|
+
getAffiliate(id_affiliate: any): Promise<unknown>;
|
|
30355
|
+
/**
|
|
30356
|
+
* @example:
|
|
30357
|
+
* this.vhQueryAffiliater.updateAffiliate('5fb6780ca2148e09806c5b01', {total:990000})
|
|
30358
|
+
.then((response)=>{
|
|
30359
|
+
console.log('updateAffiliate', response);
|
|
30360
|
+
}, error=>{
|
|
30361
|
+
console.log('error', error);
|
|
30362
|
+
})
|
|
30363
|
+
* @param id_affiliate
|
|
30364
|
+
* @param value
|
|
30365
|
+
* @return Promise => response = undefined / error
|
|
30366
|
+
*/
|
|
30367
|
+
updateAffiliate(id_affiliate: string, value: any): Promise<unknown>;
|
|
30368
|
+
/**
|
|
30369
|
+
* @example:
|
|
30370
|
+
* this.vhQueryAffiliater.deleteAffiliate('5fb67fda87c0f21d484cbdf3')
|
|
30371
|
+
.then((response)=>{
|
|
30372
|
+
console.log('deleteAffiliate', response);
|
|
30373
|
+
}, error=>{
|
|
30374
|
+
console.log(error, error);
|
|
30375
|
+
})
|
|
30376
|
+
* @param id_affiliate
|
|
30377
|
+
* @return Promise => response = undefined / error
|
|
30378
|
+
*/
|
|
30379
|
+
deleteAffiliate(id_affiliate: any): Promise<unknown>;
|
|
30380
|
+
/**
|
|
30381
|
+
* @example:
|
|
30382
|
+
* let time = new Date();
|
|
30383
|
+
* time.setDate(time.getDate()-7);
|
|
30384
|
+
* this.vhQueryAffiliater.getAffiliate_byFields({payment_type:{$eq:5}}, {},{},0)
|
|
30385
|
+
.then((affiliates)=>{
|
|
30386
|
+
console.log('getAffiliate_byFields', affiliates);
|
|
30387
|
+
})
|
|
30388
|
+
* @param query
|
|
30389
|
+
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
30390
|
+
* @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
|
|
30391
|
+
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
30392
|
+
* @return — Array -> array = [{},{},...]
|
|
30393
|
+
*/
|
|
30394
|
+
getAffiliate_byFields(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
|
|
30395
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VhQueryAdministrator, never>;
|
|
30396
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<VhQueryAdministrator>;
|
|
30397
|
+
}
|
|
30241
30398
|
export declare class VhQueryAffiliater {
|
|
30242
30399
|
private vhMGDB_auth;
|
|
30243
30400
|
private vhMGDB_database;
|
|
@@ -30245,6 +30402,24 @@ export declare class VhQueryAffiliater {
|
|
|
30245
30402
|
private vhAuth;
|
|
30246
30403
|
private vhAlgorithm;
|
|
30247
30404
|
constructor(vhMGDB_auth: VhMGDB_auth, vhMGDB_database: VhMGDB_database, vhMGDB_rootdatabase: VhMGDB_rootdatabase, vhAuth: VhAuth, vhAlgorithm: VhAlgorithm);
|
|
30405
|
+
/**
|
|
30406
|
+
* Lấy về các shops đã đăng ký sử dụng nhưng chưa gia hạn
|
|
30407
|
+
* this.vhQueryAffiliater.getShops_byFree()
|
|
30408
|
+
.then((shops)=>{
|
|
30409
|
+
|
|
30410
|
+
})
|
|
30411
|
+
* @returns
|
|
30412
|
+
*/
|
|
30413
|
+
getShops_byFree(): Promise<unknown>;
|
|
30414
|
+
/**
|
|
30415
|
+
* Lấy vế các shops đã thanh toán và gia hạn sử dụng
|
|
30416
|
+
* this.vhQueryAffiliater.getShops_byFree()
|
|
30417
|
+
.then((shops)=>{
|
|
30418
|
+
|
|
30419
|
+
})
|
|
30420
|
+
* @returns
|
|
30421
|
+
*/
|
|
30422
|
+
getPayments_byShop(): Promise<unknown>;
|
|
30248
30423
|
/**
|
|
30249
30424
|
* Hàm lấy về thông tin, giá cả các gói phần mềm mà các affiliater muốn bán cho khách của họ
|
|
30250
30425
|
* @example:
|
|
@@ -30256,6 +30431,76 @@ export declare class VhQueryAffiliater {
|
|
|
30256
30431
|
* @return Promise => affiliate ={} or null / error
|
|
30257
30432
|
*/
|
|
30258
30433
|
getAffiliate(id_affiliate: any): Promise<unknown>;
|
|
30434
|
+
/**
|
|
30435
|
+
* @example:
|
|
30436
|
+
* let data = {
|
|
30437
|
+
date: new Date(),
|
|
30438
|
+
code: "A0001",
|
|
30439
|
+
name: "Giá tốt mỗi ngày",
|
|
30440
|
+
id_affiliater: "5fb6780ca2148e09806c5b01",
|
|
30441
|
+
payment_details:[{
|
|
30442
|
+
id_package: "store_main_package_standard_12month",
|
|
30443
|
+
original_price: 1980000,
|
|
30444
|
+
partner_price: 1980000,
|
|
30445
|
+
selling_price: 980000
|
|
30446
|
+
},{
|
|
30447
|
+
id_package: "store_main_package_super_pro_12month",
|
|
30448
|
+
original_price: 3960000,
|
|
30449
|
+
partner_price: 3960000,
|
|
30450
|
+
original_price: 3960000
|
|
30451
|
+
}]
|
|
30452
|
+
}
|
|
30453
|
+
* this.vhQueryAffiliater.createAffiliate(data)
|
|
30454
|
+
.then((affiliate)=>{
|
|
30455
|
+
console.log('createAffiliate', affiliate);
|
|
30456
|
+
},(error:any)=>{
|
|
30457
|
+
console.log('error', error);
|
|
30458
|
+
})
|
|
30459
|
+
* @param data : object
|
|
30460
|
+
* @return Promise => affiliate = {} / error
|
|
30461
|
+
* 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
|
|
30462
|
+
*/
|
|
30463
|
+
createAffiliate(data: any): Promise<unknown>;
|
|
30464
|
+
/**
|
|
30465
|
+
* @example:
|
|
30466
|
+
* this.vhQueryAffiliater.updateAffiliate('5fb6780ca2148e09806c5b01', {total:990000})
|
|
30467
|
+
.then((response)=>{
|
|
30468
|
+
console.log('updateAffiliate', response);
|
|
30469
|
+
}, error=>{
|
|
30470
|
+
console.log('error', error);
|
|
30471
|
+
})
|
|
30472
|
+
* @param id_affiliate
|
|
30473
|
+
* @param value
|
|
30474
|
+
* @return Promise => response = undefined / error
|
|
30475
|
+
*/
|
|
30476
|
+
updateAffiliate(id_affiliate: string, value: any): Promise<unknown>;
|
|
30477
|
+
/**
|
|
30478
|
+
* @example:
|
|
30479
|
+
* this.vhQueryAffiliater.deleteAffiliate('5fb67fda87c0f21d484cbdf3')
|
|
30480
|
+
.then((response)=>{
|
|
30481
|
+
console.log('deleteAffiliate', response);
|
|
30482
|
+
}, error=>{
|
|
30483
|
+
console.log(error, error);
|
|
30484
|
+
})
|
|
30485
|
+
* @param id_affiliate
|
|
30486
|
+
* @return Promise => response = undefined / error
|
|
30487
|
+
*/
|
|
30488
|
+
deleteAffiliate(id_affiliate: any): Promise<unknown>;
|
|
30489
|
+
/**
|
|
30490
|
+
* @example:
|
|
30491
|
+
* let time = new Date();
|
|
30492
|
+
* time.setDate(time.getDate()-7);
|
|
30493
|
+
* this.vhQueryAffiliater.getAffiliate_byFields({payment_type:{$eq:5}}, {},{},0)
|
|
30494
|
+
.then((affiliates)=>{
|
|
30495
|
+
console.log('getAffiliate_byFields', affiliates);
|
|
30496
|
+
})
|
|
30497
|
+
* @param query
|
|
30498
|
+
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
30499
|
+
* @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
|
|
30500
|
+
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
30501
|
+
* @return — Array -> array = [{},{},...]
|
|
30502
|
+
*/
|
|
30503
|
+
getAffiliate_byFields(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
|
|
30259
30504
|
static ɵfac: i0.ɵɵFactoryDeclaration<VhQueryAffiliater, never>;
|
|
30260
30505
|
static ɵprov: i0.ɵɵInjectableDeclaration<VhQueryAffiliater>;
|
|
30261
30506
|
}
|
|
@@ -30520,7 +30765,7 @@ export declare class VhQueryDealer {
|
|
|
30520
30765
|
*/
|
|
30521
30766
|
getLicenseKEYs(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
|
|
30522
30767
|
/**
|
|
30523
|
-
* Lấy về thông tin Đại lý từ mã đại lý (
|
|
30768
|
+
* Lấy về thông tin Đại lý từ mã đại lý (dealerCode)
|
|
30524
30769
|
* @example:
|
|
30525
30770
|
* this.vhQueryDealer.getDealer_byDealerCode()
|
|
30526
30771
|
.then((dealer)=>{
|
|
@@ -30530,10 +30775,10 @@ export declare class VhQueryDealer {
|
|
|
30530
30775
|
}, error=>{
|
|
30531
30776
|
console.log(error);
|
|
30532
30777
|
})
|
|
30533
|
-
* @param
|
|
30778
|
+
* @param dealerCode
|
|
30534
30779
|
* @returns object or null
|
|
30535
30780
|
*/
|
|
30536
|
-
getDealer_byDealerCode(
|
|
30781
|
+
getDealer_byDealerCode(dealerCode: any): Promise<unknown>;
|
|
30537
30782
|
/**
|
|
30538
30783
|
* @example:
|
|
30539
30784
|
* this.vhQueryDealer.getStoresAPP_byTime(starttime, endtime, '5fb67fda87c0f21d484cbdf3')
|