sim-node-lib 0.0.92 → 0.0.94

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,16 @@
1
+ import { Empresa, Grupo, Item, Preco } from './PriceToSale';
2
+ export declare class PriceToConsult {
3
+ grupo: Grupo;
4
+ dados: Dados[];
5
+ constructor(grupo: Grupo, dados: Dados[]);
6
+ }
7
+ export declare class Dados {
8
+ empresa: Empresa;
9
+ itens: Itens[];
10
+ constructor(empresa: Empresa, itens: Itens[]);
11
+ }
12
+ export declare class Itens {
13
+ itens: Item;
14
+ precos: Preco[];
15
+ constructor(itens: Item, precos: Preco[]);
16
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Itens = exports.Dados = exports.PriceToConsult = void 0;
4
+ class PriceToConsult {
5
+ constructor(grupo, dados) {
6
+ this.grupo = grupo;
7
+ this.dados = dados;
8
+ }
9
+ }
10
+ exports.PriceToConsult = PriceToConsult;
11
+ class Dados {
12
+ constructor(empresa, itens) {
13
+ this.empresa = empresa;
14
+ this.itens = itens;
15
+ }
16
+ }
17
+ exports.Dados = Dados;
18
+ class Itens {
19
+ constructor(itens, precos) {
20
+ this.itens = itens;
21
+ this.precos = precos;
22
+ }
23
+ }
24
+ exports.Itens = Itens;
@@ -10,14 +10,14 @@ export declare class Grupo {
10
10
  constructor(codigo: string, descricao: string);
11
11
  }
12
12
  export declare class Empresa {
13
- codigo: string;
13
+ cnpj: string;
14
14
  key: string;
15
15
  descricao: string;
16
16
  cidade: string;
17
17
  estado: string;
18
18
  latitude: string;
19
19
  longitude: string;
20
- constructor(codigo: string, key: string, descricao: string, cidade: string, estado: string, latitude: string, longitude: string);
20
+ constructor(cnpj: string, key: string, descricao: string, cidade: string, estado: string, latitude: string, longitude: string);
21
21
  }
22
22
  export declare class Preco {
23
23
  item: Item;
@@ -25,7 +25,9 @@ export declare class Preco {
25
25
  preco_final: number;
26
26
  desconto: number;
27
27
  origem: Origem;
28
- constructor(item: Item, preco_base: number, preco_final: number, desconto: number, origem: Origem);
28
+ ordem: number;
29
+ aplicavel?: boolean | undefined;
30
+ constructor(item: Item, preco_base: number, preco_final: number, desconto: number, origem: Origem, ordem: number, aplicavel?: boolean | undefined);
29
31
  }
30
32
  export declare class Item {
31
33
  codigo_erp: string;
@@ -17,8 +17,8 @@ class Grupo {
17
17
  }
18
18
  exports.Grupo = Grupo;
19
19
  class Empresa {
20
- constructor(codigo, key, descricao, cidade, estado, latitude, longitude) {
21
- this.codigo = codigo;
20
+ constructor(cnpj, key, descricao, cidade, estado, latitude, longitude) {
21
+ this.cnpj = cnpj;
22
22
  this.key = key;
23
23
  this.descricao = descricao;
24
24
  this.cidade = cidade;
@@ -29,12 +29,14 @@ class Empresa {
29
29
  }
30
30
  exports.Empresa = Empresa;
31
31
  class Preco {
32
- constructor(item, preco_base, preco_final, desconto, origem) {
32
+ constructor(item, preco_base, preco_final, desconto, origem, ordem, aplicavel) {
33
33
  this.item = item;
34
34
  this.preco_base = preco_base;
35
35
  this.preco_final = preco_final;
36
36
  this.desconto = desconto;
37
37
  this.origem = origem;
38
+ this.ordem = ordem;
39
+ this.aplicavel = aplicavel;
38
40
  }
39
41
  }
40
42
  exports.Preco = Preco;
package/dist/index.d.ts CHANGED
@@ -8,6 +8,7 @@ export { NumberHelper } from './Helpers/NumberHelper';
8
8
  export { PromiseHelper } from './Helpers/PromiseHelper';
9
9
  export { StringHelper } from './Helpers/StringHelper';
10
10
  export { AxiosModel } from './Models/AxiosModel';
11
+ export { PriceToConsult } from './Models/PriceToConsult';
11
12
  export { PriceToSale } from './Models/PriceToSale';
12
13
  export { AxiosService } from './Services/AxiosService';
13
14
  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.CombustivelService = exports.AxiosService = exports.PriceToSale = 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.PriceToSale = exports.PriceToConsult = 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");
@@ -21,6 +21,8 @@ var StringHelper_1 = require("./Helpers/StringHelper");
21
21
  Object.defineProperty(exports, "StringHelper", { enumerable: true, get: function () { return StringHelper_1.StringHelper; } });
22
22
  var AxiosModel_1 = require("./Models/AxiosModel");
23
23
  Object.defineProperty(exports, "AxiosModel", { enumerable: true, get: function () { return AxiosModel_1.AxiosModel; } });
24
+ var PriceToConsult_1 = require("./Models/PriceToConsult");
25
+ Object.defineProperty(exports, "PriceToConsult", { enumerable: true, get: function () { return PriceToConsult_1.PriceToConsult; } });
24
26
  var PriceToSale_1 = require("./Models/PriceToSale");
25
27
  Object.defineProperty(exports, "PriceToSale", { enumerable: true, get: function () { return PriceToSale_1.PriceToSale; } });
26
28
  var AxiosService_1 = require("./Services/AxiosService");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sim-node-lib",
3
- "version": "0.0.92",
3
+ "version": "0.0.94",
4
4
  "description": "Library from SIMLabs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",