ionic-vhframeworks 9.2.6 → 9.2.8

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.
@@ -913,6 +913,12 @@ export declare class VhAuth {
913
913
  * @return: nơi lưu trữ dữ liệu 'firebase-mongo' hoặc 'firebase'
914
914
  */
915
915
  getDBstorage(): any;
916
+ /**
917
+ * @example:
918
+ * let tplstorage = this.vhAuth.getTPLstorage();
919
+ * @return: nơi lưu trữ template 'mongo' hoặc 'file'
920
+ */
921
+ getTPLstorage(): any;
916
922
  /**
917
923
  * @example:
918
924
  * let imgstorage = this.vhAuth.getDBstorage();
@@ -946,17 +952,17 @@ export declare class VhAuth {
946
952
  * @param projectname
947
953
  * @param dbstorage: 'firebase' or 'firebase-mongo'
948
954
  * @param imgstorage: 'firebase' or 'viethas'
949
- * @param cssstorage : nơi css sẽ được lưu trữ 'local', 'database', or 'file'
955
+ * @param tplstorage : nơi css sẽ được lưu trữ 'local', 'mongo', or 'file'
950
956
  * @param dbserverversion
951
957
  * @param camserverversion
952
958
  * @param fwcode
953
959
  * @param database : tất cả database 'all' hoặc một database nào đó '4wk3JMSwSjh4kOLWOMbLbWt0Rdk2'
954
960
  * @returns void
955
961
  */
956
- initializeProject(projectname: string, dbstorage: string, imgstorage: string, cssstorage: string, dbserverversion: string, camserverversion: string, fwcode: number, database: string): any;
962
+ initializeProject(projectname: string, dbstorage: string, imgstorage: string, tplstorage: string, dbserverversion: string, camserverversion: string, fwcode: number, database: string): any;
957
963
  /**
958
964
  * @example:
959
- * this.vhAuth.initializeBuildProject('vhsales','firebase-mongo', 'viethas', 'firebase', 'research', 'research', 324852, 'all')
965
+ * this.vhAuth.initializeBuildProject('vhsales','mongo', 'viethas', 'file', 'research', 'research', 324852, 'all')
960
966
  .then(()=>{
961
967
  resolve(null);
962
968
  },error=>{
@@ -965,14 +971,14 @@ export declare class VhAuth {
965
971
  * @param projectname
966
972
  * @param dbstorage: 'firebase', 'firebase-mongo', 'mongo', or 'mysqlphp'
967
973
  * @param imgstorage: 'firebase', 'viethas' or 'hosting'
968
- * @param cssstorage : nơi css sẽ được lưu trữ 'local', 'database', or 'file'
974
+ * @param tplstorage : nơi template sẽ được lưu trữ 'mongo', or 'file'
969
975
  * @param dbserverversion
970
976
  * @param camserverversion
971
977
  * @param fwcode
972
978
  * @param database : tất cả database 'all' hoặc một database nào đó '4wk3JMSwSjh4kOLWOMbLbWt0Rdk2'
973
979
  * @returns Promise
974
980
  */
975
- initializeBuildProject(projectname: string, dbstorage: string, imgstorage: string, cssstorage: string, dbserverversion: string, camserverversion: string, fwcode: number, database: string): Promise<unknown>;
981
+ initializeBuildProject(projectname: string, dbstorage: string, imgstorage: string, tplstorage: string, dbserverversion: string, camserverversion: string, fwcode: number, database: string): Promise<unknown>;
976
982
  /**
977
983
  * @example:
978
984
  * this.vhAuth.initializeDesignProject('vhuserweb','mongo', 'viethas', 'mongo', 'research', 'research', 240...)
@@ -984,13 +990,13 @@ export declare class VhAuth {
984
990
  * @param projectname
985
991
  * @param dbstorage: 'firebase', 'firebase-mongo', or 'mongo'
986
992
  * @param imgstorage: 'firebase' or 'viethas'
987
- * @param cssstorage : nơi css sẽ được lưu trữ 'local', 'firebase', 'mongo' or 'file'
993
+ * @param tplstorage : nơi css sẽ được lưu trữ 'local', 'firebase', 'mongo' or 'file'
988
994
  * @param dbserverversion
989
995
  * @param camserverversion
990
996
  * @param fwcode
991
997
  * @returns Promise
992
998
  */
993
- initializeDesignProject(projectname: string, dbstorage: string, imgstorage: string, cssstorage: string, dbserverversion: string, camserverversion: string, fwcode: number): any;
999
+ initializeDesignProject(projectname: string, dbstorage: string, imgstorage: string, tplstorage: string, dbserverversion: string, camserverversion: string, fwcode: number): any;
994
1000
  /**
995
1001
  * @example:
996
1002
  * this.vhAuth.initializeWebAppProject('vhsales', 356842, 'all');
@@ -5289,7 +5295,7 @@ export declare class VhQueryCafe {
5289
5295
  */
5290
5296
  private getBill_details;
5291
5297
  private _getBill_details;
5292
- getBill_detail(id_bill_detail: any): any;
5298
+ private getBill_detail;
5293
5299
  /**
5294
5300
  * @example:
5295
5301
  * this.vhQueryCafe.createBill_Detail({})
@@ -18019,7 +18025,7 @@ export declare class VhQueryAutoWeb {
18019
18025
  * vcode == 0: 'success'
18020
18026
  * vcode == 11: 'not logged in'
18021
18027
  */
18022
- getBill_detail(id_bill_detail: any): Promise<unknown>;
18028
+ private getBill_detail;
18023
18029
  /**
18024
18030
  * @example:
18025
18031
  * this.vhQueryAutoWeb.deleteBill_Detail('5fb67fda87c0f21d484cbdf3')
@@ -18867,7 +18873,7 @@ export declare class VhBuildAutoWeb {
18867
18873
  */
18868
18874
  signUpWebAppOwner(email: string, password: string, phoneNumber: any, info: any): Promise<unknown>;
18869
18875
  getProjectName(): string;
18870
- getCSSstorage(): any;
18876
+ getTPLstorage(): any;
18871
18877
  getDBstorage(): any;
18872
18878
  /**
18873
18879
  * @example SET:
@@ -19469,7 +19475,26 @@ export declare class VhBuildAutoWeb {
19469
19475
  * @param id_doc
19470
19476
  * @return null or object
19471
19477
  */
19472
- static_getDoc_fromService(colname: string, id_doc: string): Promise<unknown>;
19478
+ /**
19479
+ * @example:
19480
+ * this.vhBuildAutoWeb.static_updateDoc_fromDatabase('categories', '5fb6780ca2148e09806c5b01', {name: 'Quảng cáo 1'})
19481
+ .then((rsp:any)=>{
19482
+ if(rsp.vcode === 0){
19483
+ console.log('static_updateDoc_fromDatabase succeed');
19484
+ }
19485
+ }, error=>{
19486
+ console.log('error', error);
19487
+ })
19488
+ * @param colname
19489
+ * @param id_doc
19490
+ * @param data
19491
+ * @return Promise => rsp ={vcode, msg, data(undefined)} / error
19492
+ * @notice : hàm này chỉ add được dữ liệu sau khi khách hàng hoặc nhân viên đã đăng nhập
19493
+ * vcode == 0: success
19494
+ * vcode == 11: 'not logged in
19495
+ * vcode == 2: wrong projectname
19496
+ */
19497
+ static_updateDoc_fromDatabase(colname: string, id_doc: string, value: object): Promise<unknown>;
19473
19498
  /**
19474
19499
  * @example
19475
19500
  * this.vhBuildAutoWeb.static_getDoc_fromDatabase('categories', '5fb67fda87c0f21d484cbdf3')
@@ -19482,7 +19507,7 @@ export declare class VhBuildAutoWeb {
19482
19507
  static_getDoc_fromDatabase(colname: string, id_doc: string): Promise<unknown>;
19483
19508
  /**
19484
19509
  * @example:
19485
- * this.vhBuildAutoWeb.static_getDocs_fromService_byFields_byPages('webapp_abouts', {name:{$eq:'name abc'}}, {},{},6,1)
19510
+ * this.vhBuildAutoWeb.static_getDocs_fromDatabase_byFields_byPages('webapp_abouts', {name:{$eq:'name abc'}}, {},{},6,1)
19486
19511
  .then(response=>{
19487
19512
  console.log('response', response);
19488
19513
  if(response.vcode === 0){
@@ -19500,10 +19525,10 @@ export declare class VhBuildAutoWeb {
19500
19525
  * @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
19501
19526
  * @return Promise object => response = {vcode, msg, data(array), limit, page, totalpages}
19502
19527
  */
19503
- static_getDocs_fromService_byFields_byPages(colname: string, query: any, projection?: object, sort?: any, limit?: number, page?: number): Promise<unknown>;
19528
+ static_getDocs_fromDatabase_byFields_byPages(colname: string, query: any, projection?: object, sort?: any, limit?: number, page?: number): Promise<unknown>;
19504
19529
  /**
19505
19530
  * @example:
19506
- * this.vhBuildAutoWeb.static_getDocs_fromService_byFields('webapp_abouts', {name:{$eq:'name abc'}}, {},{},6,1)
19531
+ * this.vhBuildAutoWeb.static_getDocs_fromDatabase_byFields('webapp_abouts', {name:{$eq:'name abc'}}, {},{},6,1)
19507
19532
  .then(response=>{
19508
19533
  console.log('response', response);
19509
19534
  if(response.vcode === 0){
@@ -19521,22 +19546,6 @@ export declare class VhBuildAutoWeb {
19521
19546
  * @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
19522
19547
  * @return Promise => array(object) = [{},{},..]
19523
19548
  */
19524
- static_getDocs_fromService_byFields(colname: string, query: any, projection?: object, sort?: any, limit?: number): Promise<unknown>;
19525
- /**
19526
- * @example:
19527
- * this.vhBuildAutoWeb.static_getDocs_fromDatabase_byFields('webapp_abouts', {name:{$eq:'name abc'}}, {},{},6,1)
19528
- .then(webapp_abouts=>{
19529
- console.log('static_getDocs_fromDatabase_byFields', webapp_abouts);
19530
- },(error:any)=>{
19531
- console.log('error', error)
19532
- })
19533
- * @param colname
19534
- * @param query
19535
- * @param projection — đang tìm hiểu, tạm thời để giá trị là {}
19536
- * @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
19537
- * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
19538
- * @return Promise => array(object) = [{},{},..]
19539
- */
19540
19549
  static_getDocs_fromDatabase_byFields(colname: string, query: any, projection?: object, sort?: any, limit?: number): Promise<unknown>;
19541
19550
  /**
19542
19551
  * @example:
@@ -21514,6 +21523,9 @@ export declare class VhQuerySales {
21514
21523
  })
21515
21524
  */
21516
21525
  fix_mot_lan_duy_nhat_inventory_null(): Promise<unknown>;
21526
+ private getYear;
21527
+ private getYearsArray;
21528
+ private getYearsArray_fromQuery;
21517
21529
  /**
21518
21530
  * Hàm này lấy về các trường trong phạm vi quản lý bán hàng trong cài đặt
21519
21531
  * @example:
@@ -22594,7 +22606,6 @@ export declare class VhQuerySales {
22594
22606
  */
22595
22607
  deleteMergeSendoProduct_variants(id_sub_or_product: string, id: string, variant_attribute_hash: string, id_shop: string): Promise<unknown>;
22596
22608
  getReportSales_Sendo(starttime: any, endtime: any, IDproduct: any, type?: any, IDbranch?: string): void;
22597
- fixOldVersion(type: any): false | Promise<any>;
22598
22609
  /**
22599
22610
  * @example:
22600
22611
  this.vhQuerySales.syncCollections_Mobile().then((bool:any)=>{
@@ -22616,7 +22627,6 @@ export declare class VhQuerySales {
22616
22627
  */
22617
22628
  syncCollections_Desktop(): Promise<unknown>;
22618
22629
  private checkExpireBranch_Sales;
22619
- private fixBill;
22620
22630
  /**
22621
22631
  *
22622
22632
  * @example:
@@ -25027,7 +25037,7 @@ export declare class VhQuerySales {
25027
25037
  * @param newbill_type
25028
25038
  * @return Promise => undefined
25029
25039
  */
25030
- saveBill_Billdetail(id_bill: any, newbill_type: number, billdate?: any): any;
25040
+ saveBill_Billdetail(id_bill: any, newbill_type: number): any;
25031
25041
  /**
25032
25042
  * hàm này chỉ dùng cho trường hợp bill_type 29->30 và 31
25033
25043
  * @example
@@ -25123,23 +25133,32 @@ export declare class VhQuerySales {
25123
25133
  * @return Promise => array / orror
25124
25134
  */
25125
25135
  getBill_details_byId_bill(id_bill: any): any;
25126
- getBill_detail(id_bill_detail: any): any;
25127
25136
  /**
25128
- * @example:
25129
- * let time = new Date();
25130
- * time.setDate(time.getDate()-7);
25131
- * this.vhQuerySales.getBill_details_byFields({bill_type:{$eq:1}}, {},{date:1},2)
25132
- .then((bill_details:any)=>{
25133
- console.log('getBills', bill_details);
25134
- },(error:any)=>{
25135
- console.log('error ', error);
25136
- })
25137
- * @param query
25138
- * @param projection — đang tìm hiểu, tạm thời để giá trị là {}
25139
- * @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
25140
- * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
25141
- * @return Array -> array = [{},{},...]
25142
- */
25137
+ * @example:
25138
+ * this.vhQuerySales.getBill_details_byID({id_bill:{$eq:id_bill}, bill_type:{$eq:5}}, {},{date:1},0)
25139
+ .then((bill_details)=>{
25140
+ console.log('bill_details', bill_details);
25141
+ })
25142
+ * @param query : trong query phải có query id_bill or id_product or id_subproduct....
25143
+ * @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
25144
+ * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
25145
+ * @return — Array -> array = [{},{},...]
25146
+ */
25147
+ private getBill_details_byID;
25148
+ /**
25149
+ * @example:
25150
+ * let time = new Date();
25151
+ * time.setDate(time.getDate()-7);
25152
+ * this.vhQuerySales.getBill_details_byFields({date:{$gte:time}, {bill_type:{$eq:5}}, {},{date:1},0)
25153
+ .then((bill_details)=>{
25154
+ console.log('getBill_details_byFields', bill_details);
25155
+ })
25156
+ * @param query trong query phải có date
25157
+ * @param projection — đang tìm hiểu, tạm thời để giá trị là {}
25158
+ * @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
25159
+ * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
25160
+ * @return — Array -> array = [{},{},...]
25161
+ */
25143
25162
  private getBill_details_byFields;
25144
25163
  /**
25145
25164
  * Hàm này tạo bill_code theo số thứ tự (trong ngày) của từng loại bill_type
@@ -25152,7 +25171,6 @@ export declare class VhQuerySales {
25152
25171
  * @param bill_type
25153
25172
  */
25154
25173
  createBillCode(billdate: any, bill_type: number): Promise<unknown>;
25155
- createYearColname(colname: any, billdate: any): string;
25156
25174
  /**
25157
25175
  * @example:
25158
25176
  * this.vhQuerySales.getBill('5fb67fda87c0f21d484cbdf3')
@@ -25162,21 +25180,6 @@ export declare class VhQuerySales {
25162
25180
  * @param id_bill
25163
25181
  */
25164
25182
  getBill(id_bill: any): Promise<unknown>;
25165
- /**
25166
- * @example:
25167
- * let time = new Date();
25168
- * time.setDate(time.getDate()-7);
25169
- * this.vhQuerySales.getBills({date:{$gte:time}}, {},{date:1},0)
25170
- .then((bills)=>{
25171
- console.log('getBills', bills);
25172
- })
25173
- * @param query
25174
- * @param projection — đang tìm hiểu, tạm thời để giá trị là {}
25175
- * @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
25176
- * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
25177
- * @return — Array -> array = [{},{},...]
25178
- */
25179
- private getBills;
25180
25183
  /**
25181
25184
  * @example:
25182
25185
  * let time = new Date();
@@ -25191,7 +25194,7 @@ export declare class VhQuerySales {
25191
25194
  * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
25192
25195
  * @return — Array -> array = [{},{},...]
25193
25196
  */
25194
- getBills_byFields(query: object, projection?: object, sort?: object, limit?: number): Promise<unknown>;
25197
+ getBills_byFields(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
25195
25198
  /**
25196
25199
  * @example:
25197
25200
  * this.vhQuerySales.createBill({name:'Cuối tuần vui vẻ', type:2, active:true, date_start:new Date(), date_end: new Date()})
@@ -26507,7 +26510,7 @@ export declare class VhQuerySales {
26507
26510
  * @example:
26508
26511
  * this.vhQuerySales.getReportInputOutputReturns_Detail_byTime_byIDProduct_byBillTypeArray(time['startTime'], time['endTime'], 'UTWXdaU3UDq3xq7aK77p', [1])
26509
26512
  .then((bill_details:any)=>{
26510
- console.log('vhbill_details', bill_details);
26513
+ console.log('bill_details', bill_details);
26511
26514
  })
26512
26515
  * @param starttime
26513
26516
  * @param endtime
@@ -26539,7 +26542,7 @@ export declare class VhQuerySales {
26539
26542
  * @example:
26540
26543
  * this.vhQuerySales.getReportInputOutputInventory_byEndTime_byIDProduct_allRecords(endtime, 'all')
26541
26544
  .then((bill_details:any)=>{
26542
- console.log('vhbill_details', bill_details);
26545
+ console.log('bill_details', bill_details);
26543
26546
  })
26544
26547
  * @param starttime
26545
26548
  * @param endtime
@@ -26555,7 +26558,7 @@ export declare class VhQuerySales {
26555
26558
  * @example:
26556
26559
  * this.vhQuerySales.getReportInputOutputInventory_byEndTime_byIDProduct(endtime, IDsub_or_product, IDbranch)
26557
26560
  .then((bill_details:any)=>{
26558
- console.log('vhbill_details', bill_details);
26561
+ console.log('bill_details', bill_details);
26559
26562
  })
26560
26563
  * @param starttime
26561
26564
  * @param endtime
@@ -26581,7 +26584,7 @@ export declare class VhQuerySales {
26581
26584
  * @example:
26582
26585
  * this.vhQuerySales.getReportInputOutputInventory_Detail_byEndTime_byIDProduct(endtime, 'UTWXdaU3UDq3xq7aK77p')
26583
26586
  .then((bill_details:any)=>{
26584
- console.log('vhbill_details', bill_details);
26587
+ console.log('bill_details', bill_details);
26585
26588
  })
26586
26589
  * @param starttime
26587
26590
  * @param endtime
@@ -26595,7 +26598,7 @@ export declare class VhQuerySales {
26595
26598
  * @example:
26596
26599
  * this.vhQuerySales.getReportInputOutputInventory_Detail_byTime_byIDProduct(starttime , endtime, 'UTWXdaU3UDq3xq7aK77p')
26597
26600
  .then((bill_details:any)=>{
26598
- console.log('vhbill_details', bill_details);
26601
+ console.log('bill_details', bill_details);
26599
26602
  })
26600
26603
  * @param starttime
26601
26604
  * @param endtime
@@ -26609,7 +26612,7 @@ export declare class VhQuerySales {
26609
26612
  * @example:
26610
26613
  * this.vhQuerySales.getReportInputOutput_byTime_byIDProduct(starttime , endtime, 'UTWXdaU3UDq3xq7aK77p')
26611
26614
  .then((bill_details:any)=>{
26612
- console.log('vhbill_details', bill_details);
26615
+ console.log('bill_details', bill_details);
26613
26616
  })
26614
26617
  * @param starttime
26615
26618
  * @param endtime
@@ -26626,7 +26629,7 @@ export declare class VhQuerySales {
26626
26629
  * @example:
26627
26630
  * this.vhQuerySales.getReportInputOutput_Detail_byTime_byIDProduct(starttime , endtime, 'UTWXdaU3UDq3xq7aK77p')
26628
26631
  .then((bill_details:any)=>{
26629
- console.log('vhbill_details', bill_details);
26632
+ console.log('bill_details', bill_details);
26630
26633
  })
26631
26634
  * @param starttime
26632
26635
  * @param endtime
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "9.2.6",
3
+ "version": "9.2.8",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"