npm_microservice 1.0.31 → 1.0.33

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.
package/dist/service.js CHANGED
@@ -1806,6 +1806,11 @@ var require_ClassScheduleService = __commonJS({
1806
1806
  this.module = "classScheduleService";
1807
1807
  this.service = "lms";
1808
1808
  }
1809
+ async studentPractice(filter = {}) {
1810
+ let url = CONFIG_ROUTER_SERVICE.BASE_URL + "/lms/students-practice";
1811
+ this.service = "students-practice";
1812
+ return this.request("get", url, { params: filter });
1813
+ }
1809
1814
  };
1810
1815
  module2.exports = ClassScheduleService;
1811
1816
  }
@@ -2548,6 +2553,10 @@ var require_EduTestService = __commonJS({
2548
2553
  this.service = "contact_test";
2549
2554
  return this.request("get", url, { params: filter });
2550
2555
  }
2556
+ async requestToken(data) {
2557
+ let url = CONFIG_ROUTER_SERVICE.BASE_URL + "/tests/request-token/store";
2558
+ return this.request("post", url, { data });
2559
+ }
2551
2560
  // có thể thêm method riêng cho user nếu cần
2552
2561
  };
2553
2562
  module2.exports = EduTestService;
@@ -437,5 +437,10 @@ var ClassScheduleService = class extends BaseService {
437
437
  this.module = "classScheduleService";
438
438
  this.service = "lms";
439
439
  }
440
+ async studentPractice(filter = {}) {
441
+ let url = CONFIG_ROUTER_SERVICE.BASE_URL + "/lms/students-practice";
442
+ this.service = "students-practice";
443
+ return this.request("get", url, { params: filter });
444
+ }
440
445
  };
441
446
  module.exports = ClassScheduleService;
@@ -478,6 +478,10 @@ var EduTestService = class extends BaseService {
478
478
  this.service = "contact_test";
479
479
  return this.request("get", url, { params: filter });
480
480
  }
481
+ async requestToken(data) {
482
+ let url = CONFIG_ROUTER_SERVICE.BASE_URL + "/tests/request-token/store";
483
+ return this.request("post", url, { data });
484
+ }
481
485
  // có thể thêm method riêng cho user nếu cần
482
486
  };
483
487
  module.exports = EduTestService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm_microservice",
3
- "version": "1.0.31",
3
+ "version": "1.0.33",
4
4
  "type": "commonjs",
5
5
  "main": "dist/index.js",
6
6
  "exports": {