bdpformulas 1.0.2 → 1.0.4

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/build/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import Auxiliar from './strategies/pecuary/anexo.strategy';
2
2
  import Context from "./context";
3
- export { Auxiliar, Context };
3
+ import * as schemas from './models/schemas';
4
+ export { Auxiliar, Context, schemas };
package/build/index.js CHANGED
@@ -1,10 +1,35 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
27
  };
5
28
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Context = exports.Auxiliar = void 0;
29
+ exports.schemas = exports.Context = exports.Auxiliar = void 0;
7
30
  const anexo_strategy_1 = __importDefault(require("./strategies/pecuary/anexo.strategy"));
8
31
  exports.Auxiliar = anexo_strategy_1.default;
9
32
  const context_1 = __importDefault(require("./context"));
10
33
  exports.Context = context_1.default;
34
+ const schemas = __importStar(require("./models/schemas"));
35
+ exports.schemas = schemas;
@@ -0,0 +1,2 @@
1
+ import { AuxiliarSchemaType } from "./pecuary/auxiliar.schema";
2
+ export { AuxiliarSchemaType };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -41,7 +41,6 @@ class Auxiliar {
41
41
  execute(data) {
42
42
  data.PropiedadesGanaderas.forEach((item) => {
43
43
  item.Total = 0;
44
- console.log('Rubros', item.Rubros);
45
44
  item.Rubros.forEach((rubro) => {
46
45
  if (rubro.PrecioCabezaBalance > 0)
47
46
  rubro.Total = parseFloat(rubro.CantidadCabezas) * parseFloat(rubro.PrecioCabezaBalance);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bdpformulas",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",