ionic-vhframeworks 10.4.9 → 10.5.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.
@@ -30270,9 +30270,9 @@ export declare class VhQueryAdministrator {
30270
30270
  * @example:
30271
30271
  * let time = new Date();
30272
30272
  * time.setDate(time.getDate()-7);
30273
- * this.vhQueryAdministrator.getStores_byFields({creationdate:{$lte: new Date()}}, {},{},0)
30274
- .then((stores)=>{
30275
- console.log('getStores_byFields', stores);
30273
+ * this.vhQueryAdministrator.getshops_byFields({creationdate:{$lte: new Date()}}, {},{},0)
30274
+ .then((shops)=>{
30275
+ console.log('getshops_byFields', stores);
30276
30276
  })
30277
30277
  * @param query
30278
30278
  * @param projection — đang tìm hiểu, tạm thời để giá trị là {}
@@ -30280,21 +30280,21 @@ export declare class VhQueryAdministrator {
30280
30280
  * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
30281
30281
  * @return — Array -> array = [{},{},...]
30282
30282
  */
30283
- getStores_byFields(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
30283
+ getshops_byFields(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
30284
30284
  /**
30285
- * @example:
30286
- * let time = new Date();
30287
- * time.setDate(time.getDate()-7);
30288
- * this.vhQueryAdministrator.getAffiliaters_byFields({code:{$eq: 'A0001;}}, {},{},0)
30289
- .then((affiliaters)=>{
30290
- console.log('getAffiliaters_byFields', affiliaters);
30291
- })
30292
- * @param query
30293
- * @param projection — đang tìm hiểu, tạm thời để giá trị là {}
30294
- * @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
30295
- * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
30296
- * @return — Array -> array = [{},{},...]
30297
- */
30285
+ * @example:
30286
+ * let time = new Date();
30287
+ * time.setDate(time.getDate()-7);
30288
+ * this.vhQueryAdministrator.getAffiliaters_byFields({code:{$eq: 'A0001;}}, {},{},0)
30289
+ .then((affiliaters)=>{
30290
+ console.log('getAffiliaters_byFields', affiliaters);
30291
+ })
30292
+ * @param query
30293
+ * @param projection — đang tìm hiểu, tạm thời để giá trị là {}
30294
+ * @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
30295
+ * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
30296
+ * @return — Array -> array = [{},{},...]
30297
+ */
30298
30298
  getAffiliaters_byFields(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
30299
30299
  /**
30300
30300
  * @example:
@@ -30311,6 +30311,87 @@ export declare class VhQueryAdministrator {
30311
30311
  * @return — Array -> array = [{},{},...]
30312
30312
  */
30313
30313
  getDealers_byFields(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
30314
+ /**
30315
+ * @example:
30316
+ * let data = {
30317
+ date: new Date(),
30318
+ code: "A0001",
30319
+ name: "Giá tốt mỗi ngày",
30320
+ id_affiliater: "5fb6780ca2148e09806c5b01",
30321
+ payment_details:[{
30322
+ id_package: "store_main_package_standard_12month",
30323
+ original_price: 1980000,
30324
+ partner_price: 1980000,
30325
+ selling_price: 980000
30326
+ },{
30327
+ id_package: "store_main_package_super_pro_12month",
30328
+ original_price: 3960000,
30329
+ partner_price: 3960000,
30330
+ original_price: 3960000
30331
+ }]
30332
+ }
30333
+ * this.vhQueryAdministrator.createAffiliate(data)
30334
+ .then((affiliate)=>{
30335
+ console.log('createAffiliate', affiliate);
30336
+ },(error:any)=>{
30337
+ console.log('error', error);
30338
+ })
30339
+ * @param data : object
30340
+ * @return Promise => affiliate = {} / error
30341
+ * 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
30342
+ */
30343
+ createAffiliate(data: any): Promise<unknown>;
30344
+ /**
30345
+ * 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ọ
30346
+ * @example:
30347
+ * this.vhQueryAdministrator.getAffiliate('5fb67fda87c0f21d484cbdf3')
30348
+ .then((affiliate)=>{
30349
+ console.log('getAffiliate', affiliate);
30350
+ })
30351
+ * @param id_affiliate
30352
+ * @return Promise => affiliate ={} or null / error
30353
+ */
30354
+ getAffiliate(id_affiliate: any): Promise<unknown>;
30355
+ /**
30356
+ * @example:
30357
+ * this.vhQueryAffiliater.updateAffiliate('5fb6780ca2148e09806c5b01', {total:990000})
30358
+ .then((response)=>{
30359
+ console.log('updateAffiliate', response);
30360
+ }, error=>{
30361
+ console.log('error', error);
30362
+ })
30363
+ * @param id_affiliate
30364
+ * @param value
30365
+ * @return Promise => response = undefined / error
30366
+ */
30367
+ updateAffiliate(id_affiliate: string, value: any): Promise<unknown>;
30368
+ /**
30369
+ * @example:
30370
+ * this.vhQueryAffiliater.deleteAffiliate('5fb67fda87c0f21d484cbdf3')
30371
+ .then((response)=>{
30372
+ console.log('deleteAffiliate', response);
30373
+ }, error=>{
30374
+ console.log(error, error);
30375
+ })
30376
+ * @param id_affiliate
30377
+ * @return Promise => response = undefined / error
30378
+ */
30379
+ deleteAffiliate(id_affiliate: any): Promise<unknown>;
30380
+ /**
30381
+ * @example:
30382
+ * let time = new Date();
30383
+ * time.setDate(time.getDate()-7);
30384
+ * this.vhQueryAffiliater.getAffiliate_byFields({payment_type:{$eq:5}}, {},{},0)
30385
+ .then((affiliates)=>{
30386
+ console.log('getAffiliate_byFields', affiliates);
30387
+ })
30388
+ * @param query
30389
+ * @param projection — đang tìm hiểu, tạm thời để giá trị là {}
30390
+ * @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
30391
+ * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
30392
+ * @return — Array -> array = [{},{},...]
30393
+ */
30394
+ getAffiliate_byFields(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
30314
30395
  static ɵfac: i0.ɵɵFactoryDeclaration<VhQueryAdministrator, never>;
30315
30396
  static ɵprov: i0.ɵɵInjectableDeclaration<VhQueryAdministrator>;
30316
30397
  }
@@ -30321,6 +30402,24 @@ export declare class VhQueryAffiliater {
30321
30402
  private vhAuth;
30322
30403
  private vhAlgorithm;
30323
30404
  constructor(vhMGDB_auth: VhMGDB_auth, vhMGDB_database: VhMGDB_database, vhMGDB_rootdatabase: VhMGDB_rootdatabase, vhAuth: VhAuth, vhAlgorithm: VhAlgorithm);
30405
+ /**
30406
+ * Lấy về các shops đã đăng ký sử dụng nhưng chưa gia hạn
30407
+ * this.vhQueryAffiliater.getShops_byFree()
30408
+ .then((shops)=>{
30409
+
30410
+ })
30411
+ * @returns
30412
+ */
30413
+ getShops_byFree(): Promise<unknown>;
30414
+ /**
30415
+ * Lấy vế các shops đã thanh toán và gia hạn sử dụng
30416
+ * this.vhQueryAffiliater.getShops_byFree()
30417
+ .then((shops)=>{
30418
+
30419
+ })
30420
+ * @returns
30421
+ */
30422
+ getPayments_byShop(): Promise<unknown>;
30324
30423
  /**
30325
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ọ
30326
30425
  * @example:
@@ -30666,7 +30765,7 @@ export declare class VhQueryDealer {
30666
30765
  */
30667
30766
  getLicenseKEYs(query: any, projection?: object, sort?: object, limit?: number): Promise<unknown>;
30668
30767
  /**
30669
- * Lấy về thông tin Đại lý từ mã đại lý (dealercode)
30768
+ * Lấy về thông tin Đại lý từ mã đại lý (dealerCode)
30670
30769
  * @example:
30671
30770
  * this.vhQueryDealer.getDealer_byDealerCode()
30672
30771
  .then((dealer)=>{
@@ -30676,10 +30775,10 @@ export declare class VhQueryDealer {
30676
30775
  }, error=>{
30677
30776
  console.log(error);
30678
30777
  })
30679
- * @param dealercode
30778
+ * @param dealerCode
30680
30779
  * @returns object or null
30681
30780
  */
30682
- getDealer_byDealerCode(dealercode: any): Promise<unknown>;
30781
+ getDealer_byDealerCode(dealerCode: any): Promise<unknown>;
30683
30782
  /**
30684
30783
  * @example:
30685
30784
  * this.vhQueryDealer.getStoresAPP_byTime(starttime, endtime, '5fb67fda87c0f21d484cbdf3')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "10.4.9",
3
+ "version": "10.5.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"