@nomalism-com/api 0.49.31 → 0.49.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/index.cjs CHANGED
@@ -2647,6 +2647,10 @@ var Repository64 = class {
2647
2647
  const response = await this.api.get(`${this.route}csv`, { params });
2648
2648
  return response.data;
2649
2649
  }
2650
+ async findMonthlyConsumption(params) {
2651
+ const response = await this.api.get(`${this.route}monthly_consumption`, { params });
2652
+ return response.data;
2653
+ }
2650
2654
  getStockCsvUrl({
2651
2655
  date,
2652
2656
  version,
package/dist/index.js CHANGED
@@ -2614,6 +2614,10 @@ var Repository64 = class {
2614
2614
  const response = await this.api.get(`${this.route}csv`, { params });
2615
2615
  return response.data;
2616
2616
  }
2617
+ async findMonthlyConsumption(params) {
2618
+ const response = await this.api.get(`${this.route}monthly_consumption`, { params });
2619
+ return response.data;
2620
+ }
2617
2621
  getStockCsvUrl({
2618
2622
  date,
2619
2623
  version,
@@ -7,6 +7,7 @@ export default class Repository implements Nomalism.StockMovement.IRepository {
7
7
  findByProvider({ id, }: Nomalism.shared.IFindByIdNumberRequest): Promise<Nomalism.StockMovement.IFindByProviderResponse[]>;
8
8
  findByOwnerId(params: Nomalism.shared.IFindByOwnerIdRequest): Promise<Nomalism.StockMovement.IFindByOwnerIdResponse[]>;
9
9
  exportCsv(params: Nomalism.StockMovement.IExportRequest): Promise<Nomalism.StockMovement.IExportCsvResponse[]>;
10
+ findMonthlyConsumption(params: Nomalism.shared.IFindByOwnerIdRequest): Promise<Nomalism.StockMovement.IFindMonthlyConsumptionResponse[]>;
10
11
  getStockCsvUrl({ date, version, format, token, }: Nomalism.StockMovement.IExportRequest): string;
11
12
  findStockMovementPaginated(params: Nomalism.StockMovement.IFindStockMovementPaginatedRequest): Promise<Nomalism.shared.IPaginationResponse<Nomalism.StockMovement.IFindByOwnerIdResponse>>;
12
13
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nomalism-com/api",
3
3
  "description": "A nomalism API package for performing HTTP requests on API endpoints",
4
- "version": "0.49.31",
4
+ "version": "0.49.33",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -30,24 +30,24 @@
30
30
  "prepare": "husky"
31
31
  },
32
32
  "dependencies": {
33
- "@nomalism-com/types": "^0.49.41",
33
+ "@nomalism-com/types": "^0.49.43",
34
34
  "axios": "^1.20.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@eslint/js": "^10.0.1",
38
- "@swc/core": "^1.16.2",
39
- "@types/node": "^26.6.2",
38
+ "@swc/core": "^1.16.18",
39
+ "@types/node": "^26.6.5",
40
40
  "@typescript-eslint/eslint-plugin": "^8.62.0",
41
41
  "@typescript-eslint/parser": "^8.62.0",
42
- "eslint": "^10.11.0",
42
+ "eslint": "^10.12.0",
43
43
  "eslint-config-prettier": "^10.1.8",
44
44
  "eslint-plugin-simple-import-sort": "^14.0.0",
45
- "globals": "^17.12.0",
45
+ "globals": "^17.13.0",
46
46
  "husky": "^9.1.7",
47
- "lint-staged": "^17.5.1",
48
- "prettier": "^3.9.9",
47
+ "lint-staged": "^17.6.0",
48
+ "prettier": "^3.9.10",
49
49
  "tsup": "^8.5.1",
50
- "typescript-eslint": "^8.70.1"
50
+ "typescript-eslint": "^8.71.1"
51
51
  },
52
52
  "repository": {
53
53
  "type": "git",
@@ -68,7 +68,7 @@
68
68
  ]
69
69
  },
70
70
  "allowScripts": {
71
- "esbuild@0.27.7": true,
72
- "@swc/core@1.16.2": true
71
+ "esbuild": true,
72
+ "@swc/core": true
73
73
  }
74
74
  }