ionic-vhframeworks 3.9.1 → 3.9.4

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',{})
@@ -1060,13 +1100,13 @@ export declare class VhQueryCafe {
1060
1100
  /**
1061
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)
1062
1102
  * @example
1063
- * this.refreshRestrictionMainPackage()
1103
+ * this.refreshLocalRestrictionMainPackage()
1064
1104
  .then((bool)=>{
1065
1105
  console.log('bool', bool);
1066
1106
  })
1067
1107
  * @return Promise => null/error
1068
1108
  */
1069
- private refreshRestrictionMainPackage;
1109
+ refreshLocalRestrictionMainPackage(): Promise<unknown>;
1070
1110
  /**
1071
1111
  * @description: hàm này lấy về những hạn chế của gói main_package trong localstorage
1072
1112
  * @example
@@ -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
@@ -7296,13 +7351,13 @@ export declare class VhQuerySales {
7296
7351
  /**
7297
7352
  * @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)
7298
7353
  * @example
7299
- * this.refreshRestrictionMainPackage()
7354
+ * this.refreshLocalRestrictionMainPackage()
7300
7355
  .then((bool)=>{
7301
7356
  console.log('bool', bool);
7302
7357
  })
7303
7358
  * @return Promise => null/error
7304
7359
  */
7305
- private refreshRestrictionMainPackage;
7360
+ refreshLocalRestrictionMainPackage(): Promise<unknown>;
7306
7361
  /**
7307
7362
  * @description: hàm này lấy về những hạn chế của gói main_package trong localstorage
7308
7363
  * @example
@@ -7313,13 +7368,13 @@ export declare class VhQuerySales {
7313
7368
  /**
7314
7369
  * @description: hàm này lấy về những hạn chế của gói ecommerce_package (khách trả phí mua gói sử dụng TMĐT, mỗi gói sẽ có nhưng hạn chế khác nhau về shop_number, show_report_duration)
7315
7370
  * @example
7316
- * this.refreshRestrictionEcommercePackage()
7371
+ * this.refreshLocalRestrictionEcommercePackage()
7317
7372
  .then((bool)=>{
7318
7373
  console.log('bool', bool);
7319
7374
  })
7320
7375
  * @return Promise => null/error
7321
7376
  */
7322
- private refreshRestrictionEcommercePackage;
7377
+ refreshLocalRestrictionEcommercePackage(): Promise<unknown>;
7323
7378
  /**
7324
7379
  * @description: hàm này lấy về những hạn chế của gói ecommerce_package trong localstorage
7325
7380
  * @example
@@ -7330,13 +7385,13 @@ export declare class VhQuerySales {
7330
7385
  /**
7331
7386
  * @description: hàm này lấy về những hạn chế của gói facebook_package (khách trả phí mua gói sử dụng facebook, mỗi gói sẽ có nhưng hạn chế khác nhau về fanpage_number, show_report_duration)
7332
7387
  * @example
7333
- * this.refreshRestrictionFacebookPackage()
7388
+ * this.refreshLocalRestrictionFacebookPackage()
7334
7389
  .then((bool)=>{
7335
7390
  console.log('bool', bool);
7336
7391
  })
7337
7392
  * @return Promise => null
7338
7393
  */
7339
- private refreshRestrictionFacebookPackage;
7394
+ refreshLocalRestrictionFacebookPackage(): Promise<unknown>;
7340
7395
  /**
7341
7396
  * @description: hàm này lấy về những hạn chế của gói facebook_package trong localstorage
7342
7397
  * @example
@@ -7347,13 +7402,13 @@ export declare class VhQuerySales {
7347
7402
  /**
7348
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)
7349
7404
  * @example
7350
- * this.refreshRestrictionWarrantyPackage()
7405
+ * this.refreshLocalRestrictionWarrantyPackage()
7351
7406
  .then((bool)=>{
7352
7407
  console.log('bool', bool);
7353
7408
  })
7354
7409
  * @return Promise => null
7355
7410
  */
7356
- private refreshRestrictionWarrantyPackage;
7411
+ refreshLocalRestrictionWarrantyPackage(): Promise<unknown>;
7357
7412
  /**
7358
7413
  * @description: hàm này lấy về những hạn chế của gói warranty_package trong localstorage
7359
7414
  * @example
@@ -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)=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "3.9.1",
3
+ "version": "3.9.4",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.0.0"