@vitalfit/sdk 0.4.0 → 0.4.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.
package/dist/index.cjs CHANGED
@@ -474,6 +474,7 @@ var UserService = class {
474
474
  this.resendActivateOtp = this.resendActivateOtp.bind(this);
475
475
  this.UpgradePassword = this.UpgradePassword.bind(this);
476
476
  this.blockUser = this.blockUser.bind(this);
477
+ this.unblockUser = this.unblockUser.bind(this);
477
478
  this.enrollFace = this.enrollFace.bind(this);
478
479
  this.createMedicalProfile = this.createMedicalProfile.bind(this);
479
480
  this.getMedicalProfile = this.getMedicalProfile.bind(this);
@@ -591,6 +592,12 @@ var UserService = class {
591
592
  data
592
593
  });
593
594
  }
595
+ async unblockUser(userId, jwt) {
596
+ await this.client.put({
597
+ url: `/user/${userId}/unblock`,
598
+ jwt
599
+ });
600
+ }
594
601
  async enrollFace(jwt, photo) {
595
602
  const formData = new FormData();
596
603
  formData.append("selfie", photo);
@@ -1990,6 +1997,7 @@ var ReportService = class {
1990
1997
  this.financialSummary = this.financialSummary.bind(this);
1991
1998
  this.salesByDemography = this.salesByDemography.bind(this);
1992
1999
  this.churnRateKPI = this.churnRateKPI.bind(this);
2000
+ this.rfmAnalysis = this.rfmAnalysis.bind(this);
1993
2001
  }
1994
2002
  async mostUsedServices(jwt, start, end) {
1995
2003
  const response = await this.client.get({
@@ -2348,6 +2356,14 @@ var ReportService = class {
2348
2356
  });
2349
2357
  return response;
2350
2358
  }
2359
+ async rfmAnalysis(jwt, branchId) {
2360
+ const response = await this.client.get({
2361
+ url: "/reports/analysis/rfm",
2362
+ jwt,
2363
+ params: branchId ? { branch_id: branchId } : void 0
2364
+ });
2365
+ return response;
2366
+ }
2351
2367
  };
2352
2368
 
2353
2369
  // src/services/staff.ts
@@ -2856,7 +2872,7 @@ var VitalFit = class _VitalFit {
2856
2872
  return _VitalFit.instance;
2857
2873
  }
2858
2874
  version() {
2859
- return "0.4.0";
2875
+ return "0.4.1";
2860
2876
  }
2861
2877
  };
2862
2878
  // Annotate the CommonJS export names for ESM import in node: