sim-node-lib 0.0.64 → 0.0.65

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.
@@ -0,0 +1,5 @@
1
+ export declare class AllProdutos {
2
+ codigo_produto: string | number;
3
+ nome_produto: string | number;
4
+ constructor(codigo_produto: string | number, nome_produto: string | number);
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AllProdutos = void 0;
4
+ class AllProdutos {
5
+ constructor(codigo_produto, nome_produto) {
6
+ this.codigo_produto = codigo_produto;
7
+ this.nome_produto = nome_produto;
8
+ }
9
+ }
10
+ exports.AllProdutos = AllProdutos;
@@ -0,0 +1,8 @@
1
+ export declare class VendaItem {
2
+ produto: Produto;
3
+ constructor(produto: Produto);
4
+ }
5
+ export declare class Produto {
6
+ id_produto_erp: string | number;
7
+ constructor(id_produto_erp: string | number);
8
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Produto = exports.VendaItem = void 0;
4
+ class VendaItem {
5
+ constructor(produto) {
6
+ this.produto = produto;
7
+ }
8
+ }
9
+ exports.VendaItem = VendaItem;
10
+ class Produto {
11
+ constructor(id_produto_erp) {
12
+ this.id_produto_erp = id_produto_erp;
13
+ }
14
+ }
15
+ exports.Produto = Produto;
@@ -0,0 +1,5 @@
1
+ import { AllProdutos } from '../Models/AllProdutos';
2
+ import { VendaItem } from '../Models/IVendaItem';
3
+ export declare class CombustivelService {
4
+ ehCombustivel(combustiveis: AllProdutos[], item: VendaItem): AllProdutos | undefined;
5
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CombustivelService = void 0;
4
+ class CombustivelService {
5
+ ehCombustivel(combustiveis, item) {
6
+ return combustiveis.find(function (o) {
7
+ return o.codigo_produto.toString() === item.produto.id_produto_erp.toString();
8
+ });
9
+ }
10
+ }
11
+ exports.CombustivelService = CombustivelService;
package/dist/index.d.ts CHANGED
@@ -9,3 +9,4 @@ export { PromiseHelper } from './Helpers/PromiseHelper';
9
9
  export { StringHelper } from './Helpers/StringHelper';
10
10
  export { AxiosModel } from './Models/AxiosModel';
11
11
  export { AxiosService } from './Services/AxiosService';
12
+ export { CombustivelService } from './Services/CombustivelService';
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AxiosService = exports.AxiosModel = exports.StringHelper = exports.PromiseHelper = exports.NumberHelper = exports.HashHelper = exports.DateHelper = exports.CryptHelper = exports.PubSubHandlerAction = exports.GooglePubSubSubscription = exports.GooglePubSubPublish = void 0;
3
+ exports.CombustivelService = exports.AxiosService = exports.AxiosModel = exports.StringHelper = exports.PromiseHelper = exports.NumberHelper = exports.HashHelper = exports.DateHelper = exports.CryptHelper = exports.PubSubHandlerAction = exports.GooglePubSubSubscription = exports.GooglePubSubPublish = void 0;
4
4
  var GooglePubSubPublish_1 = require("./Class/GooglePubSubPublish");
5
5
  Object.defineProperty(exports, "GooglePubSubPublish", { enumerable: true, get: function () { return GooglePubSubPublish_1.GooglePubSubPublish; } });
6
6
  var GooglePubSubSubscription_1 = require("./Class/GooglePubSubSubscription");
@@ -23,3 +23,5 @@ var AxiosModel_1 = require("./Models/AxiosModel");
23
23
  Object.defineProperty(exports, "AxiosModel", { enumerable: true, get: function () { return AxiosModel_1.AxiosModel; } });
24
24
  var AxiosService_1 = require("./Services/AxiosService");
25
25
  Object.defineProperty(exports, "AxiosService", { enumerable: true, get: function () { return AxiosService_1.AxiosService; } });
26
+ var CombustivelService_1 = require("./Services/CombustivelService");
27
+ Object.defineProperty(exports, "CombustivelService", { enumerable: true, get: function () { return CombustivelService_1.CombustivelService; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sim-node-lib",
3
- "version": "0.0.64",
3
+ "version": "0.0.65",
4
4
  "description": "Library from SIMLabs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",