@nomalism-com/api 0.40.48 → 0.40.50

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.js CHANGED
@@ -10,6 +10,7 @@ var __export = (target, all) => {
10
10
  var main_exports = {};
11
11
  __export(main_exports, {
12
12
  API: () => API,
13
+ AccountCodeClass: () => accountCode_exports,
13
14
  AdminPanelClass: () => adminPanel_exports,
14
15
  BankData: () => bankData_exports,
15
16
  Channel: () => channel_exports,
@@ -43,7 +44,6 @@ __export(main_exports, {
43
44
  File: () => file_exports,
44
45
  GmailsClass: () => gmails_exports,
45
46
  GoogleFilePermission: () => googleFilePermission_exports,
46
- GoogleSheetPoolClass: () => googleSheetPool_exports,
47
47
  GoogleSheets: () => googleSheets_exports,
48
48
  GroupPermissions: () => groupPermission_exports,
49
49
  Inventario: () => inventario_exports,
@@ -3153,6 +3153,10 @@ var Repository85 = class {
3153
3153
  const response = await this.api.post(`${this.route}sync`, data);
3154
3154
  return response.data;
3155
3155
  }
3156
+ async findPurchasedOrdersSummary(params) {
3157
+ const response = await this.api.get(`${this.route}purchased_orders_summary`, { params });
3158
+ return response.data;
3159
+ }
3156
3160
  };
3157
3161
 
3158
3162
  // src/modules/document/materialEntrance.ts
@@ -4197,10 +4201,6 @@ var Repository120 = class {
4197
4201
  };
4198
4202
 
4199
4203
  // src/modules/supply/googleSheetPool.ts
4200
- var googleSheetPool_exports = {};
4201
- __export(googleSheetPool_exports, {
4202
- default: () => Repository121
4203
- });
4204
4204
  var Repository121 = class {
4205
4205
  constructor({ api, route, publicRoute }) {
4206
4206
  this.api = api;
@@ -4213,6 +4213,25 @@ var Repository121 = class {
4213
4213
  }
4214
4214
  };
4215
4215
 
4216
+ // src/modules/stock/accountCode.ts
4217
+ var accountCode_exports = {};
4218
+ __export(accountCode_exports, {
4219
+ default: () => Repository122
4220
+ });
4221
+ var Repository122 = class {
4222
+ constructor({ api, route, publicRoute }) {
4223
+ this.api = api;
4224
+ this.route = route;
4225
+ this.publicRoute = publicRoute;
4226
+ }
4227
+ async findByCode({
4228
+ code
4229
+ }) {
4230
+ const response = await this.api.get(`${this.route}${code}`);
4231
+ return response.data;
4232
+ }
4233
+ };
4234
+
4216
4235
  // src/main.ts
4217
4236
  var API = class {
4218
4237
  constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }) {
@@ -4412,6 +4431,7 @@ var API = class {
4412
4431
  this.CurrentAccount = new Repository118(getModuleParams("stock", "current_account"));
4413
4432
  this.Portal = new Repository120(getModuleParams("stock", "portal"));
4414
4433
  this.GoogleSheetPool = new Repository121(getModuleParams("stock", "google_sheet_pool"));
4434
+ this.AccountCode = new Repository122(getModuleParams("stock", "account_code"));
4415
4435
  }
4416
4436
  };
4417
4437
 
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.40.48",
4
+ "version": "0.40.50",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -23,15 +23,15 @@
23
23
  "prepack": "npm run lint && npm run build"
24
24
  },
25
25
  "dependencies": {
26
- "@nomalism-com/types": "^0.40.49",
26
+ "@nomalism-com/types": "^0.40.51",
27
27
  "axios": "^1.13.2"
28
28
  },
29
29
  "devDependencies": {
30
- "@swc/core": "^1.15.3",
31
- "@types/node": "^24.10.3",
32
- "@typescript-eslint/eslint-plugin": "^8.49.0",
33
- "@typescript-eslint/parser": "^8.49.0",
34
- "eslint": "^9.39.1",
30
+ "@swc/core": "^1.15.5",
31
+ "@types/node": "^24.10.4",
32
+ "@typescript-eslint/eslint-plugin": "^8.50.0",
33
+ "@typescript-eslint/parser": "^8.50.0",
34
+ "eslint": "^9.39.2",
35
35
  "eslint-config-prettier": "^10.1.8",
36
36
  "eslint-import-resolver-typescript": "^4.4.4",
37
37
  "eslint-plugin-prettier": "^5.5.4",