ionic-vhframeworks 10.5.0 → 10.5.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.
|
@@ -1002,6 +1002,30 @@ export declare class VhAuth {
|
|
|
1002
1002
|
*/
|
|
1003
1003
|
onAuthStateChanged_Sales365_byDealer(): Promise<unknown>;
|
|
1004
1004
|
/**
|
|
1005
|
+
* @example:
|
|
1006
|
+
* this.vhAuth.signInWithEmailAndPassword_Sales365_byAdmin('emp11@gmail.com', '123456')
|
|
1007
|
+
.then((user)=>{
|
|
1008
|
+
console.log('signInWithEmailAndPassword_Sales365_byAdmin', user);
|
|
1009
|
+
},(error:any)=>{
|
|
1010
|
+
console.log('error', error);
|
|
1011
|
+
})
|
|
1012
|
+
* @param email
|
|
1013
|
+
* @param password
|
|
1014
|
+
* @return Promise => user = {}
|
|
1015
|
+
*/
|
|
1016
|
+
signInWithEmailAndPassword_Sales365_byAdmin(email: string, password: string): Promise<unknown>;
|
|
1017
|
+
/**
|
|
1018
|
+
* @example:
|
|
1019
|
+
* this.vhAuth.onAuthStateChanged_Sales365_byAdmin()
|
|
1020
|
+
.then((user)=>{
|
|
1021
|
+
console.log('onAuthStateChanged_Sales365_byDealer', user);
|
|
1022
|
+
},(error:any)=>{
|
|
1023
|
+
console.log('error', error);
|
|
1024
|
+
})
|
|
1025
|
+
* @return Promise => user = {}
|
|
1026
|
+
*/
|
|
1027
|
+
onAuthStateChanged_Sales365_byAdmin(): Promise<unknown>;
|
|
1028
|
+
/**
|
|
1005
1029
|
* @example:
|
|
1006
1030
|
* this.vhAuth.signUpOwner_Cafe('huyleduc92', '123456', '+84909925359',{})
|
|
1007
1031
|
.then((owner)=>{
|
|
@@ -30256,23 +30280,13 @@ export declare class VhQuerySales {
|
|
|
30256
30280
|
* this.vhQuerySales.writeBill_BillDetails_toDisplayLEDScreens(bill, bill_details);
|
|
30257
30281
|
*/
|
|
30258
30282
|
writeBill_BillDetails_toDisplayLEDScreens(bill: any, bill_details: any): void;
|
|
30259
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VhQuerySales, never>;
|
|
30260
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<VhQuerySales>;
|
|
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
30283
|
/**
|
|
30270
30284
|
* @example:
|
|
30271
30285
|
* let time = new Date();
|
|
30272
30286
|
* time.setDate(time.getDate()-7);
|
|
30273
|
-
* this.
|
|
30274
|
-
.then((
|
|
30275
|
-
console.log('
|
|
30287
|
+
* this.vhQuerySales.getAffiliate_byFields({payment_type:{$eq:5}}, {},{},0)
|
|
30288
|
+
.then((affiliates)=>{
|
|
30289
|
+
console.log('getAffiliate_byFields', affiliates);
|
|
30276
30290
|
})
|
|
30277
30291
|
* @param query
|
|
30278
30292
|
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
@@ -30280,7 +30294,33 @@ export declare class VhQueryAdministrator {
|
|
|
30280
30294
|
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
30281
30295
|
* @return — Array -> array = [{},{},...]
|
|
30282
30296
|
*/
|
|
30283
|
-
|
|
30297
|
+
getAffiliate_byFields(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
|
|
30298
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VhQuerySales, never>;
|
|
30299
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<VhQuerySales>;
|
|
30300
|
+
}
|
|
30301
|
+
export declare class VhQueryAdministrator {
|
|
30302
|
+
private vhMGDB_auth;
|
|
30303
|
+
private vhMGDB_database;
|
|
30304
|
+
private vhMGDB_rootdatabase;
|
|
30305
|
+
private vhAuth;
|
|
30306
|
+
private vhAlgorithm;
|
|
30307
|
+
constructor(vhMGDB_auth: VhMGDB_auth, vhMGDB_database: VhMGDB_database, vhMGDB_rootdatabase: VhMGDB_rootdatabase, vhAuth: VhAuth, vhAlgorithm: VhAlgorithm);
|
|
30308
|
+
/**
|
|
30309
|
+
* @description: Lấy về tất cả các cửa hàng (shops) đã đăng ký vào hệ thống phần mềm, theo thời gian
|
|
30310
|
+
* @example:
|
|
30311
|
+
* let starttime = new Date('2022-03-13T05:24:00');
|
|
30312
|
+
* let endtime = new Date();
|
|
30313
|
+
* this.VhQueryAdministrator.getShops_byTime(starttime, endtime')
|
|
30314
|
+
.then(result=>{
|
|
30315
|
+
console.log('result', result);
|
|
30316
|
+
}, error=>{
|
|
30317
|
+
console.log('error', error);
|
|
30318
|
+
})
|
|
30319
|
+
* @param starttime
|
|
30320
|
+
* @param endtime
|
|
30321
|
+
* @returns Promise Array
|
|
30322
|
+
*/
|
|
30323
|
+
getShops_byTime(starttime: any, endtime: any): Promise<unknown>;
|
|
30284
30324
|
/**
|
|
30285
30325
|
* @example:
|
|
30286
30326
|
* let time = new Date();
|
|
@@ -30354,7 +30394,7 @@ export declare class VhQueryAdministrator {
|
|
|
30354
30394
|
getAffiliate(id_affiliate: any): Promise<unknown>;
|
|
30355
30395
|
/**
|
|
30356
30396
|
* @example:
|
|
30357
|
-
* this.
|
|
30397
|
+
* this.vhQueryAdministrator.updateAffiliate('5fb6780ca2148e09806c5b01', {total:990000})
|
|
30358
30398
|
.then((response)=>{
|
|
30359
30399
|
console.log('updateAffiliate', response);
|
|
30360
30400
|
}, error=>{
|
|
@@ -30367,7 +30407,7 @@ export declare class VhQueryAdministrator {
|
|
|
30367
30407
|
updateAffiliate(id_affiliate: string, value: any): Promise<unknown>;
|
|
30368
30408
|
/**
|
|
30369
30409
|
* @example:
|
|
30370
|
-
* this.
|
|
30410
|
+
* this.vhQueryAdministrator.deleteAffiliate('5fb67fda87c0f21d484cbdf3')
|
|
30371
30411
|
.then((response)=>{
|
|
30372
30412
|
console.log('deleteAffiliate', response);
|
|
30373
30413
|
}, error=>{
|
|
@@ -30381,7 +30421,7 @@ export declare class VhQueryAdministrator {
|
|
|
30381
30421
|
* @example:
|
|
30382
30422
|
* let time = new Date();
|
|
30383
30423
|
* time.setDate(time.getDate()-7);
|
|
30384
|
-
* this.
|
|
30424
|
+
* this.vhQueryAdministrator.getAffiliate_byFields({payment_type:{$eq:5}}, {},{},0)
|
|
30385
30425
|
.then((affiliates)=>{
|
|
30386
30426
|
console.log('getAffiliate_byFields', affiliates);
|
|
30387
30427
|
})
|
|
@@ -30413,7 +30453,7 @@ export declare class VhQueryAffiliater {
|
|
|
30413
30453
|
getShops_byFree(): Promise<unknown>;
|
|
30414
30454
|
/**
|
|
30415
30455
|
* Lấy vế các shops đã thanh toán và gia hạn sử dụng
|
|
30416
|
-
* this.vhQueryAffiliater.
|
|
30456
|
+
* this.vhQueryAffiliater.getPayments_byShop()
|
|
30417
30457
|
.then((shops)=>{
|
|
30418
30458
|
|
|
30419
30459
|
})
|
|
@@ -30421,86 +30461,15 @@ export declare class VhQueryAffiliater {
|
|
|
30421
30461
|
*/
|
|
30422
30462
|
getPayments_byShop(): Promise<unknown>;
|
|
30423
30463
|
/**
|
|
30424
|
-
* Hàm lấy về thông tin, giá cả các gói phần mềm mà các affiliater
|
|
30464
|
+
* Hàm lấy về thông tin, giá cả các gói phần mềm mà sales365 ủy quyền cho các affiliater bán cho khách của họ
|
|
30425
30465
|
* @example:
|
|
30426
|
-
* this.vhQueryAffiliater.getAffiliate(
|
|
30466
|
+
* this.vhQueryAffiliater.getAffiliate()
|
|
30427
30467
|
.then((affiliate)=>{
|
|
30428
30468
|
console.log('getAffiliate', affiliate);
|
|
30429
30469
|
})
|
|
30430
|
-
* @param id_affiliate
|
|
30431
30470
|
* @return Promise => affiliate ={} or null / error
|
|
30432
30471
|
*/
|
|
30433
|
-
getAffiliate(
|
|
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>;
|
|
30472
|
+
getAffiliate(): Promise<unknown>;
|
|
30504
30473
|
static ɵfac: i0.ɵɵFactoryDeclaration<VhQueryAffiliater, never>;
|
|
30505
30474
|
static ɵprov: i0.ɵɵInjectableDeclaration<VhQueryAffiliater>;
|
|
30506
30475
|
}
|