ionic-vhframeworks 3.9.1 → 3.9.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.
- package/bundles/ionic-vhframeworks.umd.js +1 -1
- package/bundles/ionic-vhframeworks.umd.js.map +1 -1
- package/bundles/ionic-vhframeworks.umd.min.js +1 -1
- package/bundles/ionic-vhframeworks.umd.min.js.map +1 -1
- package/fesm2015/ionic-vhframeworks.js.map +1 -1
- package/ionic-vhframeworks.metadata.json +1 -1
- package/lib/ionic-vhframeworks.service.d.ts +73 -15
- package/package.json +1 -1
|
@@ -158,6 +158,7 @@ export declare class VhForFirstTime {
|
|
|
158
158
|
private vhAlgorithm;
|
|
159
159
|
constructor(vhmongo_firebase: Vhmongo_firebase, vhAlgorithm: VhAlgorithm);
|
|
160
160
|
addAPPdatabase_forFirstTime(): Promise<unknown>;
|
|
161
|
+
addAPPdatabase_forFirstTime_Sales_Cafe(): Promise<unknown>;
|
|
161
162
|
private addSales_id_retail;
|
|
162
163
|
private addSales_tax;
|
|
163
164
|
private addSales_category_product;
|
|
@@ -238,6 +239,21 @@ export declare class VhAuth {
|
|
|
238
239
|
*/
|
|
239
240
|
onAuthStateChanged(): Promise<unknown>;
|
|
240
241
|
/**
|
|
242
|
+
* @example:
|
|
243
|
+
* this.vhAuth.signUpOwner_Sales('huyleduc92', '123456', '+84909925359',{})
|
|
244
|
+
.then((owner)=>{
|
|
245
|
+
console.log('signUpOwner_Sales', owner);
|
|
246
|
+
},error=>{
|
|
247
|
+
console.log('error', error);
|
|
248
|
+
})
|
|
249
|
+
* @param email
|
|
250
|
+
* @param password
|
|
251
|
+
* @param scode
|
|
252
|
+
* @param info
|
|
253
|
+
* @return Promise => owner={}
|
|
254
|
+
*/
|
|
255
|
+
signUpOwner_Sales(email: string, password: string, phoneNumber: string, info: object): Promise<unknown>;
|
|
256
|
+
/**
|
|
241
257
|
* @example:
|
|
242
258
|
* this.vhAuth.signInWithEmailAndPassword_Sales('emp11@gmail.com', '123456')
|
|
243
259
|
.then((user)=>{
|
|
@@ -261,6 +277,45 @@ export declare class VhAuth {
|
|
|
261
277
|
* @return Promise => user = {}
|
|
262
278
|
*/
|
|
263
279
|
onAuthStateChanged_Sales(): Promise<unknown>;
|
|
280
|
+
/**
|
|
281
|
+
* @example:
|
|
282
|
+
* this.vhAuth.signUpOwner_Cafe('huyleduc92', '123456', '+84909925359',{})
|
|
283
|
+
.then((owner)=>{
|
|
284
|
+
console.log('signUpOwner_Cafe', owner);
|
|
285
|
+
},error=>{
|
|
286
|
+
console.log('error', error);
|
|
287
|
+
})
|
|
288
|
+
* @param email
|
|
289
|
+
* @param password
|
|
290
|
+
* @param scode
|
|
291
|
+
* @param info
|
|
292
|
+
* @return Promise => owner={}
|
|
293
|
+
*/
|
|
294
|
+
signUpOwner_Cafe(email: string, password: string, phoneNumber: string, info: object): Promise<unknown>;
|
|
295
|
+
/**
|
|
296
|
+
* @example:
|
|
297
|
+
* this.vhAuth.signInWithEmailAndPassword_Cafe('emp11@gmail.com', '123456')
|
|
298
|
+
.then((user)=>{
|
|
299
|
+
console.log('user', user);
|
|
300
|
+
},error=>{
|
|
301
|
+
console.log('error', error);
|
|
302
|
+
})
|
|
303
|
+
* @param email
|
|
304
|
+
* @param password
|
|
305
|
+
* @return Promise => user = {}
|
|
306
|
+
*/
|
|
307
|
+
signInWithEmailAndPassword_Cafe(email: string, password: string): Promise<unknown>;
|
|
308
|
+
/**
|
|
309
|
+
* @example:
|
|
310
|
+
* this.vhAuth.onAuthStateChanged_Cafe()
|
|
311
|
+
.then((user)=>{
|
|
312
|
+
console.log('onAuthStateChanged_Cafe', user);
|
|
313
|
+
},error=>{
|
|
314
|
+
console.log('onAuthStateChanged_Cafe', error);
|
|
315
|
+
})
|
|
316
|
+
* @return Promise => user = {}
|
|
317
|
+
*/
|
|
318
|
+
onAuthStateChanged_Cafe(): Promise<unknown>;
|
|
264
319
|
/**
|
|
265
320
|
* @example:
|
|
266
321
|
* this.vhAuth.signOut()
|
|
@@ -375,21 +430,6 @@ export declare class VhAuth {
|
|
|
375
430
|
* @returns
|
|
376
431
|
*/
|
|
377
432
|
localStorageGET(name: string): any;
|
|
378
|
-
/**
|
|
379
|
-
* @example:
|
|
380
|
-
* this.vhAuth.signUpOwner_Sales('huyleduc92', '123456', '+84909925359',{})
|
|
381
|
-
.then((owner)=>{
|
|
382
|
-
console.log('signUpOwner', owner);
|
|
383
|
-
},error=>{
|
|
384
|
-
console.log('error', error);
|
|
385
|
-
})
|
|
386
|
-
* @param email
|
|
387
|
-
* @param password
|
|
388
|
-
* @param scode
|
|
389
|
-
* @param info
|
|
390
|
-
* @return Promise => owner={}
|
|
391
|
-
*/
|
|
392
|
-
signUpOwner_Sales(email: string, password: string, phoneNumber: string, info: object): Promise<unknown>;
|
|
393
433
|
/**
|
|
394
434
|
* @example:
|
|
395
435
|
* this.vhAuth.signUpOwner('huyleduc92', '123456', '+84909925359',{})
|
|
@@ -1094,6 +1134,7 @@ export declare class VhQueryCafe {
|
|
|
1094
1134
|
* @returns Promise bool = true or false
|
|
1095
1135
|
*/
|
|
1096
1136
|
syncCollections_Desktop(): Promise<unknown>;
|
|
1137
|
+
private checkExpireBranch_Cafe;
|
|
1097
1138
|
private initSyncCollections;
|
|
1098
1139
|
/**
|
|
1099
1140
|
* @example:
|
|
@@ -3722,6 +3763,20 @@ export declare class VhQueryCafe {
|
|
|
3722
3763
|
* @returns
|
|
3723
3764
|
*/
|
|
3724
3765
|
private get1stDayOfMonthArray;
|
|
3766
|
+
/**
|
|
3767
|
+
* Hàm này kiểm tra ngày tạo bill, sửa bill đã chọn có hợp lệ không
|
|
3768
|
+
* Ngày hợp lệ phải thỏa mãn:
|
|
3769
|
+
* 1. phải sau ngày cửa hàng đăng ký sử dụng phần mềm cafe viethas
|
|
3770
|
+
* 2. thuộc tháng mà trước tháng hiện tại 1 tháng
|
|
3771
|
+
* @example:
|
|
3772
|
+
* this.vhQueryCafe.getValidityDate('2021-06-18T16:27:16.276Z')
|
|
3773
|
+
.then((validitydate)=>{
|
|
3774
|
+
if(validitydate) console.log('Bạn chỉ có thể tạo/chỉnh sửa hóa đơn này từ ngày', validitydate);
|
|
3775
|
+
})
|
|
3776
|
+
* @param date (String or Date): ngày tạo bill, sửa bill
|
|
3777
|
+
* @returns Promise => validitydate = null nếu hợp lệ; validitydate != null nếu không hợp lệ, và từ ngày validitydate trở đi là có thể tạo bill và sửa bill
|
|
3778
|
+
*/
|
|
3779
|
+
getValidityDate(date: any): Promise<unknown>;
|
|
3725
3780
|
/**
|
|
3726
3781
|
* VhQueryCafe: đã check
|
|
3727
3782
|
* @param starttime
|
|
@@ -11413,6 +11468,9 @@ export declare class VhQuerySales {
|
|
|
11413
11468
|
private get1stDayOfMonthArray;
|
|
11414
11469
|
/**
|
|
11415
11470
|
* Hàm này kiểm tra ngày tạo bill, sửa bill đã chọn có hợp lệ không
|
|
11471
|
+
* Ngày hợp lệ phải thỏa mãn:
|
|
11472
|
+
* 1. phải sau ngày cửa hàng đăng ký sử dụng phần mềm sales viethas
|
|
11473
|
+
* 2. thuộc tháng mà trước tháng hiện tại 1 tháng
|
|
11416
11474
|
* @example:
|
|
11417
11475
|
* this.vhQuerySales.getValidityDate('2021-06-18T16:27:16.276Z')
|
|
11418
11476
|
.then((validitydate)=>{
|