ionic-vhframeworks 10.5.1 → 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,6 +30280,21 @@ 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;
|
|
30283
|
+
/**
|
|
30284
|
+
* @example:
|
|
30285
|
+
* let time = new Date();
|
|
30286
|
+
* time.setDate(time.getDate()-7);
|
|
30287
|
+
* this.vhQuerySales.getAffiliate_byFields({payment_type:{$eq:5}}, {},{},0)
|
|
30288
|
+
.then((affiliates)=>{
|
|
30289
|
+
console.log('getAffiliate_byFields', affiliates);
|
|
30290
|
+
})
|
|
30291
|
+
* @param query
|
|
30292
|
+
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
30293
|
+
* @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
|
|
30294
|
+
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
30295
|
+
* @return — Array -> array = [{},{},...]
|
|
30296
|
+
*/
|
|
30297
|
+
getAffiliate_byFields(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
|
|
30259
30298
|
static ɵfac: i0.ɵɵFactoryDeclaration<VhQuerySales, never>;
|
|
30260
30299
|
static ɵprov: i0.ɵɵInjectableDeclaration<VhQuerySales>;
|
|
30261
30300
|
}
|
|
@@ -30355,7 +30394,7 @@ export declare class VhQueryAdministrator {
|
|
|
30355
30394
|
getAffiliate(id_affiliate: any): Promise<unknown>;
|
|
30356
30395
|
/**
|
|
30357
30396
|
* @example:
|
|
30358
|
-
* this.
|
|
30397
|
+
* this.vhQueryAdministrator.updateAffiliate('5fb6780ca2148e09806c5b01', {total:990000})
|
|
30359
30398
|
.then((response)=>{
|
|
30360
30399
|
console.log('updateAffiliate', response);
|
|
30361
30400
|
}, error=>{
|
|
@@ -30368,7 +30407,7 @@ export declare class VhQueryAdministrator {
|
|
|
30368
30407
|
updateAffiliate(id_affiliate: string, value: any): Promise<unknown>;
|
|
30369
30408
|
/**
|
|
30370
30409
|
* @example:
|
|
30371
|
-
* this.
|
|
30410
|
+
* this.vhQueryAdministrator.deleteAffiliate('5fb67fda87c0f21d484cbdf3')
|
|
30372
30411
|
.then((response)=>{
|
|
30373
30412
|
console.log('deleteAffiliate', response);
|
|
30374
30413
|
}, error=>{
|
|
@@ -30382,7 +30421,7 @@ export declare class VhQueryAdministrator {
|
|
|
30382
30421
|
* @example:
|
|
30383
30422
|
* let time = new Date();
|
|
30384
30423
|
* time.setDate(time.getDate()-7);
|
|
30385
|
-
* this.
|
|
30424
|
+
* this.vhQueryAdministrator.getAffiliate_byFields({payment_type:{$eq:5}}, {},{},0)
|
|
30386
30425
|
.then((affiliates)=>{
|
|
30387
30426
|
console.log('getAffiliate_byFields', affiliates);
|
|
30388
30427
|
})
|