@nomalism-com/api 0.40.48 → 0.40.49

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,
@@ -4197,10 +4197,6 @@ var Repository120 = class {
4197
4197
  };
4198
4198
 
4199
4199
  // src/modules/supply/googleSheetPool.ts
4200
- var googleSheetPool_exports = {};
4201
- __export(googleSheetPool_exports, {
4202
- default: () => Repository121
4203
- });
4204
4200
  var Repository121 = class {
4205
4201
  constructor({ api, route, publicRoute }) {
4206
4202
  this.api = api;
@@ -4213,6 +4209,25 @@ var Repository121 = class {
4213
4209
  }
4214
4210
  };
4215
4211
 
4212
+ // src/modules/stock/accountCode.ts
4213
+ var accountCode_exports = {};
4214
+ __export(accountCode_exports, {
4215
+ default: () => Repository122
4216
+ });
4217
+ var Repository122 = class {
4218
+ constructor({ api, route, publicRoute }) {
4219
+ this.api = api;
4220
+ this.route = route;
4221
+ this.publicRoute = publicRoute;
4222
+ }
4223
+ async findByCode({
4224
+ code
4225
+ }) {
4226
+ const response = await this.api.get(`${this.route}${code}`);
4227
+ return response.data;
4228
+ }
4229
+ };
4230
+
4216
4231
  // src/main.ts
4217
4232
  var API = class {
4218
4233
  constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }) {
@@ -4412,6 +4427,7 @@ var API = class {
4412
4427
  this.CurrentAccount = new Repository118(getModuleParams("stock", "current_account"));
4413
4428
  this.Portal = new Repository120(getModuleParams("stock", "portal"));
4414
4429
  this.GoogleSheetPool = new Repository121(getModuleParams("stock", "google_sheet_pool"));
4430
+ this.AccountCode = new Repository122(getModuleParams("stock", "account_code"));
4415
4431
  }
4416
4432
  };
4417
4433
 
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.49",
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.50",
27
27
  "axios": "^1.13.2"
28
28
  },
29
29
  "devDependencies": {
30
- "@swc/core": "^1.15.3",
31
- "@types/node": "^24.10.3",
30
+ "@swc/core": "^1.15.4",
31
+ "@types/node": "^24.10.4",
32
32
  "@typescript-eslint/eslint-plugin": "^8.49.0",
33
33
  "@typescript-eslint/parser": "^8.49.0",
34
- "eslint": "^9.39.1",
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",