@vitalfit/sdk 0.2.3 → 0.2.6
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 +48 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +28 -1
- package/dist/index.d.ts +28 -1
- package/dist/index.js +48 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1360,6 +1360,11 @@ var BillingService = class {
|
|
|
1360
1360
|
this.getInvoices = this.getInvoices.bind(this);
|
|
1361
1361
|
this.getTaxRateByBranch = this.getTaxRateByBranch.bind(this);
|
|
1362
1362
|
this.getExchangeRate = this.getExchangeRate.bind(this);
|
|
1363
|
+
this.getFiscalDocuments = this.getFiscalDocuments.bind(this);
|
|
1364
|
+
this.createFiscalDocument = this.createFiscalDocument.bind(this);
|
|
1365
|
+
this.getFiscalDocumentById = this.getFiscalDocumentById.bind(this);
|
|
1366
|
+
this.updateFiscalDocument = this.updateFiscalDocument.bind(this);
|
|
1367
|
+
this.deleteFiscalDocument = this.deleteFiscalDocument.bind(this);
|
|
1363
1368
|
}
|
|
1364
1369
|
async getTaxRateByBranch(jwt, branchId) {
|
|
1365
1370
|
const response = await this.client.get({
|
|
@@ -1448,6 +1453,46 @@ var BillingService = class {
|
|
|
1448
1453
|
});
|
|
1449
1454
|
return response;
|
|
1450
1455
|
}
|
|
1456
|
+
async getFiscalDocuments(jwt, { page = 1, limit = 10, sort = "desc", search }) {
|
|
1457
|
+
const response = await this.client.get({
|
|
1458
|
+
url: "/billing/fiscal-document-types",
|
|
1459
|
+
jwt,
|
|
1460
|
+
params: {
|
|
1461
|
+
page,
|
|
1462
|
+
limit,
|
|
1463
|
+
sort,
|
|
1464
|
+
search
|
|
1465
|
+
}
|
|
1466
|
+
});
|
|
1467
|
+
return response;
|
|
1468
|
+
}
|
|
1469
|
+
async createFiscalDocument(jwt, data) {
|
|
1470
|
+
await this.client.post({
|
|
1471
|
+
url: "/billing/fiscal-document-types",
|
|
1472
|
+
jwt,
|
|
1473
|
+
data
|
|
1474
|
+
});
|
|
1475
|
+
}
|
|
1476
|
+
async getFiscalDocumentById(jwt, id) {
|
|
1477
|
+
const response = await this.client.get({
|
|
1478
|
+
url: `/billing/fiscal-document-types/${id}`,
|
|
1479
|
+
jwt
|
|
1480
|
+
});
|
|
1481
|
+
return response;
|
|
1482
|
+
}
|
|
1483
|
+
async updateFiscalDocument(jwt, id, data) {
|
|
1484
|
+
await this.client.put({
|
|
1485
|
+
url: `/billing/fiscal-document-types/${id}`,
|
|
1486
|
+
jwt,
|
|
1487
|
+
data
|
|
1488
|
+
});
|
|
1489
|
+
}
|
|
1490
|
+
async deleteFiscalDocument(jwt, id) {
|
|
1491
|
+
await this.client.delete({
|
|
1492
|
+
url: `/billing/fiscal-document-types/${id}`,
|
|
1493
|
+
jwt
|
|
1494
|
+
});
|
|
1495
|
+
}
|
|
1451
1496
|
};
|
|
1452
1497
|
|
|
1453
1498
|
// src/services/booking.ts
|
|
@@ -1464,7 +1509,7 @@ var BookingService = class {
|
|
|
1464
1509
|
}
|
|
1465
1510
|
async bookClass(data, classID, jwt) {
|
|
1466
1511
|
await this.client.post({
|
|
1467
|
-
url: `/
|
|
1512
|
+
url: `/schedule/${classID}/book`,
|
|
1468
1513
|
jwt,
|
|
1469
1514
|
data
|
|
1470
1515
|
});
|
|
@@ -1491,7 +1536,7 @@ var BookingService = class {
|
|
|
1491
1536
|
}
|
|
1492
1537
|
async getClassBookingCount(classID, jwt) {
|
|
1493
1538
|
const response = await this.client.get({
|
|
1494
|
-
url: `/
|
|
1539
|
+
url: `/schedule/${classID}/bookings/count`,
|
|
1495
1540
|
jwt
|
|
1496
1541
|
});
|
|
1497
1542
|
return response;
|
|
@@ -2203,7 +2248,7 @@ var VitalFit = class _VitalFit {
|
|
|
2203
2248
|
return _VitalFit.instance;
|
|
2204
2249
|
}
|
|
2205
2250
|
version() {
|
|
2206
|
-
return "0.2.
|
|
2251
|
+
return "0.2.6";
|
|
2207
2252
|
}
|
|
2208
2253
|
};
|
|
2209
2254
|
// Annotate the CommonJS export names for ESM import in node:
|