ionic-vhframeworks 3.9.0 → 3.9.3

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.
@@ -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',{})
@@ -1005,6 +1045,7 @@ export declare class VhQueryCafe {
1005
1045
  private vhQuery;
1006
1046
  private vhAuth;
1007
1047
  private vhAlgorithm;
1048
+ private restriction_main_package;
1008
1049
  private areas;
1009
1050
  private tables;
1010
1051
  private products;
@@ -1057,6 +1098,23 @@ export declare class VhQueryCafe {
1057
1098
  */
1058
1099
  constructor(vhmongo_firebase: Vhmongo_firebase, vhQuery: VhQuery, vhAuth: VhAuth, vhAlgorithm: VhAlgorithm);
1059
1100
  /**
1101
+ * @description: hàm này lấy về những hạn chế của gói main_package (khách trả phí mua gói sử dụng các chức năng CHÍNH, mỗi gói sẽ có nhưng hạn chế khác nhau về user_number, show_report_duration)
1102
+ * @example
1103
+ * this.refreshRestrictionMainPackage()
1104
+ .then((bool)=>{
1105
+ console.log('bool', bool);
1106
+ })
1107
+ * @return Promise => null/error
1108
+ */
1109
+ private refreshRestrictionMainPackage;
1110
+ /**
1111
+ * @description: hàm này lấy về những hạn chế của gói main_package trong localstorage
1112
+ * @example
1113
+ * let restriction_main_package = this.vhQueryCafe.getLocalRestrictionMainPackage();
1114
+ * @return Object => obj ={} or null
1115
+ */
1116
+ getLocalRestrictionMainPackage(): any;
1117
+ /**
1060
1118
  * @example:
1061
1119
  this.vhQueryCafe.syncCollections_Mobile().then((bool)=>{
1062
1120
  if(bool){
@@ -1076,6 +1134,7 @@ export declare class VhQueryCafe {
1076
1134
  * @returns Promise bool = true or false
1077
1135
  */
1078
1136
  syncCollections_Desktop(): Promise<unknown>;
1137
+ private checkExpireBranch_Cafe;
1079
1138
  private initSyncCollections;
1080
1139
  /**
1081
1140
  * @example:
@@ -3704,6 +3763,20 @@ export declare class VhQueryCafe {
3704
3763
  * @returns
3705
3764
  */
3706
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>;
3707
3780
  /**
3708
3781
  * VhQueryCafe: đã check
3709
3782
  * @param starttime
@@ -7327,14 +7400,14 @@ export declare class VhQuerySales {
7327
7400
  */
7328
7401
  getLocalRestrictionFacebookPackage(): any;
7329
7402
  /**
7330
- * @description: hàm này lấy về những hạn chế của gói warranty_package (khách trả phí mua gói sử dụng warranty, mỗi gói sẽ có nhưng hạn chế khác nhau về show_report_duration)
7331
- * @example
7332
- * this.refreshRestrictionWarrantyPackage()
7333
- .then((bool)=>{
7334
- console.log('bool', bool);
7335
- })
7336
- * @return Promise => null
7337
- */
7403
+ * @description: hàm này lấy về những hạn chế của gói warranty_package (khách trả phí mua gói sử dụng warranty, mỗi gói sẽ có nhưng hạn chế khác nhau về show_report_duration)
7404
+ * @example
7405
+ * this.refreshRestrictionWarrantyPackage()
7406
+ .then((bool)=>{
7407
+ console.log('bool', bool);
7408
+ })
7409
+ * @return Promise => null
7410
+ */
7338
7411
  private refreshRestrictionWarrantyPackage;
7339
7412
  /**
7340
7413
  * @description: hàm này lấy về những hạn chế của gói warranty_package trong localstorage
@@ -11395,6 +11468,9 @@ export declare class VhQuerySales {
11395
11468
  private get1stDayOfMonthArray;
11396
11469
  /**
11397
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
11398
11474
  * @example:
11399
11475
  * this.vhQuerySales.getValidityDate('2021-06-18T16:27:16.276Z')
11400
11476
  .then((validitydate)=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "3.9.0",
3
+ "version": "3.9.3",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.0.0"