ionic-vhframeworks 10.9.9 → 10.10.0

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.
@@ -1082,6 +1082,33 @@ export declare class VhAuth {
1082
1082
  signUpOwner_Sales365(email: string, password: string, phoneNumber: string, info: any): Promise<unknown> | null;
1083
1083
  /**
1084
1084
  * @example:
1085
+ * this.vhAuth.signUpOwner_XprinterPOS_Lite('huyleduc92@gmail.com', 'Vh123456', '+84909925359',{}, 'a8f2c91d7ab8821')
1086
+ .then((rsp:any)=>{
1087
+ if(rsp.vcode === 0){
1088
+ //Nếu số đt, email và hwid đã được đăng ký thành công
1089
+ }else if(rsp.vcode === 1){
1090
+ //thông báo trùng số đt
1091
+ }else if(rsp.vcode === 2){
1092
+ //thông báo trùng email
1093
+ }else if(rsp.vcode === 3){
1094
+ //thông báo số điện thoại sai định dạng
1095
+ }
1096
+ })
1097
+ * @param email
1098
+ * @param password
1099
+ * @param phoneNumber
1100
+ * @param info
1101
+ * @param hwid
1102
+ * @return Promise object => rsp = {vcode, message}
1103
+ * vcode === 0: phoneNumber, email và hwid đã được đăng ký thành công
1104
+ * vcode === 1: Hiện thị ra thông báo cho người dùng biết rằng số điện thoại của họ đã được đăng ký sử dụng trước đây, nên giờ ko dùng đc nữa, phải dùng số đt khác
1105
+ * vcode === 2: Hiện thị ra thông báo cho người dùng biết rằng email của họ đã được đăng ký sử dụng trước đây, nên giờ ko dùng đc nữa, phải dùng email khác
1106
+ * vcode === 3: Hiện thị ra thông báo cho người dùng biết rằng phần mềm XpriterPOS-Lite đã được đăng ký trên máy POS này trước đây rồi
1107
+ * @notice : nhớ kiểm tra email đúng cú pháp và chuỗi trước @gmail.com có chiều dài lớn hơn bằng 6 thì nút "Đồng ý" mới sáng lên
1108
+ */
1109
+ signUpOwner_XprinterPOS_Lite(email: string, password: string, phoneNumber: string, info: any, hwid: string): Promise<unknown> | null;
1110
+ /**
1111
+ * @example:
1085
1112
  * this.vhAuth.signUpOwner_Sales('huyleduc92', '123456', '+84909925359',{})
1086
1113
  .then((owner)=>{
1087
1114
  console.log('signUpOwner_Sales', owner);
@@ -1224,6 +1251,49 @@ export declare class VhAuth {
1224
1251
  * @return Promise => user = {}
1225
1252
  */
1226
1253
  onAuthStateChanged_Sales365(): Promise<unknown>;
1254
+ /**
1255
+ * @example:
1256
+ * this.vhAuth.signInWithEmailAndPassword_XprinterPOS_Lite('emp11@gmail.com', '123456', 'a8f2c91d7ab8821')
1257
+ .then((res)=>{
1258
+ if(rsp.vcode === 0){
1259
+ //Đăng nhập thành công
1260
+ this.vhQuerySales.refreshLocalBranchs()
1261
+ .then(()=>{
1262
+ do something.....
1263
+ console.log('res', res);
1264
+ })
1265
+ }else if(rsp.vcode === 1){
1266
+ //thông báo máy POS này đã được đăng ký sử dụng rồi
1267
+ }
1268
+ },(error:any)=>{
1269
+ console.log('error', error);
1270
+ })
1271
+ * @param email
1272
+ * @param password
1273
+ * @param hwid
1274
+ * @return Promise => res = {}
1275
+ */
1276
+ signInWithEmailAndPassword_XprinterPOS_Lite(email: string, password: string, hwid: string): Promise<unknown>;
1277
+ /**
1278
+ * @example:
1279
+ * this.vhAuth.onAuthStateChanged_XprinterPOS_Lite('a8f2c91d7ab8821')
1280
+ .then((res)=>{
1281
+ if(rsp.vcode === 0){
1282
+ //Đăng nhập thành công
1283
+ this.vhQuerySales.refreshLocalBranchs()
1284
+ .then(()=>{
1285
+ do something.....
1286
+ console.log('res', res);
1287
+ })
1288
+ }else if(rsp.vcode === 1){
1289
+ //thông báo máy POS này đã được đăng ký sử dụng rồi
1290
+ }
1291
+ },(error:any)=>{
1292
+ console.log('onAuthStateChanged_XprinterPOS_Lite', error);
1293
+ })
1294
+ * @return Promise => res = {}
1295
+ */
1296
+ onAuthStateChanged_XprinterPOS_Lite(hwid: string): Promise<unknown>;
1227
1297
  /**
1228
1298
  * @example:
1229
1299
  * this.vhAuth.signInWithEmailAndPassword_Sales365_byAffiliater('emp11@gmail.com', '123456')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "10.9.9",
3
+ "version": "10.10.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"