@tagsamurai/fats-api-services 1.0.3-alpha.86 → 1.0.3-alpha.88

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.
@@ -1502,18 +1502,18 @@ const AccountingServices = {
1502
1502
  },
1503
1503
  // Account Code API Services
1504
1504
  getAccountCodeList: (params) => {
1505
- return AccountCodeAPI.get("/account-code", { params });
1505
+ return AccountCodeAPI.get("", { params });
1506
1506
  },
1507
1507
  deleteAccountCode: (id) => {
1508
- return AccountCodeAPI.delete("/account-code", {
1508
+ return AccountCodeAPI.delete("", {
1509
1509
  data: { id }
1510
1510
  });
1511
1511
  },
1512
1512
  createNewAccountCode: (body) => {
1513
- return AccountCodeAPI.post("/account-code", body);
1513
+ return AccountCodeAPI.post("", body);
1514
1514
  },
1515
1515
  editAccountCode: (body, id) => {
1516
- return AccountCodeAPI.put("/account-code/" + id, body);
1516
+ return AccountCodeAPI.put(`/${id}`, body);
1517
1517
  }
1518
1518
  };
1519
1519
  const API$p = createAxiosInstance({
@@ -1510,18 +1510,18 @@ System.register(["axios"], function(exports, module) {
1510
1510
  },
1511
1511
  // Account Code API Services
1512
1512
  getAccountCodeList: (params) => {
1513
- return AccountCodeAPI.get("/account-code", { params });
1513
+ return AccountCodeAPI.get("", { params });
1514
1514
  },
1515
1515
  deleteAccountCode: (id) => {
1516
- return AccountCodeAPI.delete("/account-code", {
1516
+ return AccountCodeAPI.delete("", {
1517
1517
  data: { id }
1518
1518
  });
1519
1519
  },
1520
1520
  createNewAccountCode: (body) => {
1521
- return AccountCodeAPI.post("/account-code", body);
1521
+ return AccountCodeAPI.post("", body);
1522
1522
  },
1523
1523
  editAccountCode: (body, id) => {
1524
- return AccountCodeAPI.put("/account-code/" + id, body);
1524
+ return AccountCodeAPI.put(`/${id}`, body);
1525
1525
  }
1526
1526
  });
1527
1527
  const API$p = createAxiosInstance({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tagsamurai/fats-api-services",
3
- "version": "1.0.3-alpha.86",
3
+ "version": "1.0.3-alpha.88",
4
4
  "author": "developer.tagsamurai",
5
5
  "description": "Fixed Asset Tag Samurai Services Library",
6
6
  "module": "./api-services.es.js",
@@ -2,6 +2,7 @@ export type AccountCodeList = {
2
2
  _id: string;
3
3
  code: string;
4
4
  name: string;
5
+ totalAssets?: number;
5
6
  };
6
7
  export interface DeprecitationGroupDropdown {
7
8
  _id: string;