ionic-vhframeworks 10.5.0 → 10.5.1

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.
@@ -30267,20 +30267,21 @@ export declare class VhQueryAdministrator {
30267
30267
  private vhAlgorithm;
30268
30268
  constructor(vhMGDB_auth: VhMGDB_auth, vhMGDB_database: VhMGDB_database, vhMGDB_rootdatabase: VhMGDB_rootdatabase, vhAuth: VhAuth, vhAlgorithm: VhAlgorithm);
30269
30269
  /**
30270
- * @example:
30271
- * let time = new Date();
30272
- * time.setDate(time.getDate()-7);
30273
- * this.vhQueryAdministrator.getshops_byFields({creationdate:{$lte: new Date()}}, {},{},0)
30274
- .then((shops)=>{
30275
- console.log('getshops_byFields', stores);
30276
- })
30277
- * @param query
30278
- * @param projection — đang tìm hiểu, tạm thời để giá trị là {}
30279
- * @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
30280
- * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
30281
- * @return — Array -> array = [{},{},...]
30282
- */
30283
- getshops_byFields(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
30270
+ * @description: Lấy về tất cả các cửa hàng (shops) đã đăng ký vào hệ thống phần mềm, theo thời gian
30271
+ * @example:
30272
+ * let starttime = new Date('2022-03-13T05:24:00');
30273
+ * let endtime = new Date();
30274
+ * this.VhQueryAdministrator.getShops_byTime(starttime, endtime')
30275
+ .then(result=>{
30276
+ console.log('result', result);
30277
+ }, error=>{
30278
+ console.log('error', error);
30279
+ })
30280
+ * @param starttime
30281
+ * @param endtime
30282
+ * @returns Promise Array
30283
+ */
30284
+ getShops_byTime(starttime: any, endtime: any): Promise<unknown>;
30284
30285
  /**
30285
30286
  * @example:
30286
30287
  * let time = new Date();
@@ -30413,7 +30414,7 @@ export declare class VhQueryAffiliater {
30413
30414
  getShops_byFree(): Promise<unknown>;
30414
30415
  /**
30415
30416
  * Lấy vế các shops đã thanh toán và gia hạn sử dụng
30416
- * this.vhQueryAffiliater.getShops_byFree()
30417
+ * this.vhQueryAffiliater.getPayments_byShop()
30417
30418
  .then((shops)=>{
30418
30419
 
30419
30420
  })
@@ -30421,86 +30422,15 @@ export declare class VhQueryAffiliater {
30421
30422
  */
30422
30423
  getPayments_byShop(): Promise<unknown>;
30423
30424
  /**
30424
- * Hàm lấy về thông tin, giá cả các gói phần mềm mà các affiliater muốn bán cho khách của họ
30425
+ * Hàm lấy về thông tin, giá cả các gói phần mềm mà sales365 ủy quyền cho các affiliater bán cho khách của họ
30425
30426
  * @example:
30426
- * this.vhQueryAffiliater.getAffiliate('5fb67fda87c0f21d484cbdf3')
30427
+ * this.vhQueryAffiliater.getAffiliate()
30427
30428
  .then((affiliate)=>{
30428
30429
  console.log('getAffiliate', affiliate);
30429
30430
  })
30430
- * @param id_affiliate
30431
30431
  * @return Promise => affiliate ={} or null / error
30432
30432
  */
30433
- getAffiliate(id_affiliate: any): Promise<unknown>;
30434
- /**
30435
- * @example:
30436
- * let data = {
30437
- date: new Date(),
30438
- code: "A0001",
30439
- name: "Giá tốt mỗi ngày",
30440
- id_affiliater: "5fb6780ca2148e09806c5b01",
30441
- payment_details:[{
30442
- id_package: "store_main_package_standard_12month",
30443
- original_price: 1980000,
30444
- partner_price: 1980000,
30445
- selling_price: 980000
30446
- },{
30447
- id_package: "store_main_package_super_pro_12month",
30448
- original_price: 3960000,
30449
- partner_price: 3960000,
30450
- original_price: 3960000
30451
- }]
30452
- }
30453
- * this.vhQueryAffiliater.createAffiliate(data)
30454
- .then((affiliate)=>{
30455
- console.log('createAffiliate', affiliate);
30456
- },(error:any)=>{
30457
- console.log('error', error);
30458
- })
30459
- * @param data : object
30460
- * @return Promise => affiliate = {} / error
30461
- * Luu ý: chỉ có 2 trường hợp, hoặc là thêm thành công, hoặc là báo lỗi error
30462
- */
30463
- createAffiliate(data: any): Promise<unknown>;
30464
- /**
30465
- * @example:
30466
- * this.vhQueryAffiliater.updateAffiliate('5fb6780ca2148e09806c5b01', {total:990000})
30467
- .then((response)=>{
30468
- console.log('updateAffiliate', response);
30469
- }, error=>{
30470
- console.log('error', error);
30471
- })
30472
- * @param id_affiliate
30473
- * @param value
30474
- * @return Promise => response = undefined / error
30475
- */
30476
- updateAffiliate(id_affiliate: string, value: any): Promise<unknown>;
30477
- /**
30478
- * @example:
30479
- * this.vhQueryAffiliater.deleteAffiliate('5fb67fda87c0f21d484cbdf3')
30480
- .then((response)=>{
30481
- console.log('deleteAffiliate', response);
30482
- }, error=>{
30483
- console.log(error, error);
30484
- })
30485
- * @param id_affiliate
30486
- * @return Promise => response = undefined / error
30487
- */
30488
- deleteAffiliate(id_affiliate: any): Promise<unknown>;
30489
- /**
30490
- * @example:
30491
- * let time = new Date();
30492
- * time.setDate(time.getDate()-7);
30493
- * this.vhQueryAffiliater.getAffiliate_byFields({payment_type:{$eq:5}}, {},{},0)
30494
- .then((affiliates)=>{
30495
- console.log('getAffiliate_byFields', affiliates);
30496
- })
30497
- * @param query
30498
- * @param projection — đang tìm hiểu, tạm thời để giá trị là {}
30499
- * @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
30500
- * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
30501
- * @return — Array -> array = [{},{},...]
30502
- */
30503
- getAffiliate_byFields(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
30433
+ getAffiliate(): Promise<unknown>;
30504
30434
  static ɵfac: i0.ɵɵFactoryDeclaration<VhQueryAffiliater, never>;
30505
30435
  static ɵprov: i0.ɵɵInjectableDeclaration<VhQueryAffiliater>;
30506
30436
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "10.5.0",
3
+ "version": "10.5.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"