@vitalfit/sdk 0.2.2 → 0.2.3
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 +15 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1571,6 +1571,7 @@ var ReportService = class {
|
|
|
1571
1571
|
this.activityHeatmap = this.activityHeatmap.bind(this);
|
|
1572
1572
|
this.classOccupancyChart = this.classOccupancyChart.bind(this);
|
|
1573
1573
|
this.financialSummary = this.financialSummary.bind(this);
|
|
1574
|
+
this.salesByDemography = this.salesByDemography.bind(this);
|
|
1574
1575
|
}
|
|
1575
1576
|
async mostUsedServices(jwt, start, end) {
|
|
1576
1577
|
const response = await this.client.get({
|
|
@@ -1894,6 +1895,19 @@ var ReportService = class {
|
|
|
1894
1895
|
});
|
|
1895
1896
|
return response;
|
|
1896
1897
|
}
|
|
1898
|
+
async salesByDemography(jwt, branchId, dimension, start, end) {
|
|
1899
|
+
const response = await this.client.get({
|
|
1900
|
+
url: "/reports/charts/sales-by-demographics",
|
|
1901
|
+
jwt,
|
|
1902
|
+
params: {
|
|
1903
|
+
dimension,
|
|
1904
|
+
...start ? { start } : {},
|
|
1905
|
+
...end ? { end } : {},
|
|
1906
|
+
...branchId ? { branch_id: branchId } : {}
|
|
1907
|
+
}
|
|
1908
|
+
});
|
|
1909
|
+
return response;
|
|
1910
|
+
}
|
|
1897
1911
|
};
|
|
1898
1912
|
|
|
1899
1913
|
// src/services/staff.ts
|
|
@@ -2189,7 +2203,7 @@ var VitalFit = class _VitalFit {
|
|
|
2189
2203
|
return _VitalFit.instance;
|
|
2190
2204
|
}
|
|
2191
2205
|
version() {
|
|
2192
|
-
return "0.2.
|
|
2206
|
+
return "0.2.3";
|
|
2193
2207
|
}
|
|
2194
2208
|
};
|
|
2195
2209
|
// Annotate the CommonJS export names for ESM import in node:
|