ionic-vhframeworks 10.4.6 → 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",
|
|
@@ -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,
|
|
@@ -27273,6 +27294,7 @@ export declare class VhQuerySales {
|
|
|
27273
27294
|
* vcode = 1: id_licenseKEY không thuộc về Store
|
|
27274
27295
|
* vcode = 2: id_licenseKEY đã được kích hoạt trước đây
|
|
27275
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
|
|
27276
27298
|
*/
|
|
27277
27299
|
extendLicenseValidaty_byLicenseKEY(id_branch: string, id_licenseKEY: string): Promise<unknown>;
|
|
27278
27300
|
/**
|
|
@@ -30237,6 +30259,61 @@ export declare class VhQuerySales {
|
|
|
30237
30259
|
static ɵfac: i0.ɵɵFactoryDeclaration<VhQuerySales, never>;
|
|
30238
30260
|
static ɵprov: i0.ɵɵInjectableDeclaration<VhQuerySales>;
|
|
30239
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
|
+
}
|
|
30240
30317
|
export declare class VhQueryAffiliater {
|
|
30241
30318
|
private vhMGDB_auth;
|
|
30242
30319
|
private vhMGDB_database;
|
|
@@ -30255,6 +30332,76 @@ export declare class VhQueryAffiliater {
|
|
|
30255
30332
|
* @return Promise => affiliate ={} or null / error
|
|
30256
30333
|
*/
|
|
30257
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>;
|
|
30258
30405
|
static ɵfac: i0.ɵɵFactoryDeclaration<VhQueryAffiliater, never>;
|
|
30259
30406
|
static ɵprov: i0.ɵɵInjectableDeclaration<VhQueryAffiliater>;
|
|
30260
30407
|
}
|
|
@@ -30572,6 +30719,7 @@ export declare class VhQueryDealer {
|
|
|
30572
30719
|
* vcode = 1: id_licenseKEY không thuộc về Store
|
|
30573
30720
|
* vcode = 2: id_licenseKEY đã được kích hoạt trước đây
|
|
30574
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
|
|
30575
30723
|
*/
|
|
30576
30724
|
extendLicenseValidaty_byLicenseKEY(id_store: string, id_branch: string, id_licenseKEY: string): Promise<unknown>;
|
|
30577
30725
|
static ɵfac: i0.ɵɵFactoryDeclaration<VhQueryDealer, never>;
|