sim-node-lib 0.3.12 → 0.3.13
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/Enums/ActionEnum.d.ts +5 -0
- package/dist/Enums/ActionEnum.js +9 -0
- package/dist/Enums/MathOperationsEnum.d.ts +6 -0
- package/dist/Enums/MathOperationsEnum.js +10 -0
- package/dist/Enums/ResponsavelConcessaoEnum.d.ts +5 -0
- package/dist/Enums/ResponsavelConcessaoEnum.js +9 -0
- package/dist/Enums/SituacaoEnum.d.ts +6 -0
- package/dist/Enums/SituacaoEnum.js +10 -0
- package/dist/Enums/TipoClienteEnum.d.ts +4 -0
- package/dist/Enums/TipoClienteEnum.js +8 -0
- package/dist/Enums/TipoDescontoEnum.d.ts +5 -0
- package/dist/Enums/TipoDescontoEnum.js +9 -0
- package/dist/Enums/TipoOrigemEnum.d.ts +8 -0
- package/dist/Enums/TipoOrigemEnum.js +12 -0
- package/dist/Enums/index.d.ts +6 -0
- package/dist/Enums/index.js +6 -0
- package/dist/Models/VendaFormaPagamentoReduzida.d.ts +5 -0
- package/dist/Models/VendaFormaPagamentoReduzida.js +10 -0
- package/dist/Models/VendaItemReduzido.d.ts +4 -2
- package/dist/Models/VendaItemReduzido.js +3 -2
- package/dist/Models/VendaOrigem.d.ts +7 -0
- package/dist/Models/VendaOrigem.js +11 -0
- package/dist/Models/VendaReduzida.d.ts +24 -0
- package/dist/Models/VendaReduzida.js +27 -0
- package/dist/Services/CombustivelService.js +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +9 -1
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActionEnum = void 0;
|
|
4
|
+
var ActionEnum;
|
|
5
|
+
(function (ActionEnum) {
|
|
6
|
+
ActionEnum["INSERT"] = "I";
|
|
7
|
+
ActionEnum["UPDATE"] = "U";
|
|
8
|
+
ActionEnum["DELETE"] = "D";
|
|
9
|
+
})(ActionEnum = exports.ActionEnum || (exports.ActionEnum = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MathOperationsEnum = void 0;
|
|
4
|
+
var MathOperationsEnum;
|
|
5
|
+
(function (MathOperationsEnum) {
|
|
6
|
+
MathOperationsEnum["add"] = "+";
|
|
7
|
+
MathOperationsEnum["subtract"] = "-";
|
|
8
|
+
MathOperationsEnum["multiply"] = "*";
|
|
9
|
+
MathOperationsEnum["divide"] = "/";
|
|
10
|
+
})(MathOperationsEnum = exports.MathOperationsEnum || (exports.MathOperationsEnum = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResponsavelConcessaoEnum = void 0;
|
|
4
|
+
var ResponsavelConcessaoEnum;
|
|
5
|
+
(function (ResponsavelConcessaoEnum) {
|
|
6
|
+
ResponsavelConcessaoEnum["sim"] = "SIM";
|
|
7
|
+
ResponsavelConcessaoEnum["pdvOffline"] = "PDV-OFFLINE";
|
|
8
|
+
ResponsavelConcessaoEnum["pdvRegraDiferenciada"] = "PDV-REGRA-DIFERENCIADA";
|
|
9
|
+
})(ResponsavelConcessaoEnum = exports.ResponsavelConcessaoEnum || (exports.ResponsavelConcessaoEnum = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SituacaoEnum = void 0;
|
|
4
|
+
var SituacaoEnum;
|
|
5
|
+
(function (SituacaoEnum) {
|
|
6
|
+
SituacaoEnum["inicializada"] = "Inicializada";
|
|
7
|
+
SituacaoEnum["pendente"] = "Pendente";
|
|
8
|
+
SituacaoEnum["cancelada"] = "Cancelada";
|
|
9
|
+
SituacaoEnum["finalizada"] = "Finalizada";
|
|
10
|
+
})(SituacaoEnum = exports.SituacaoEnum || (exports.SituacaoEnum = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TipoClienteEnum = void 0;
|
|
4
|
+
var TipoClienteEnum;
|
|
5
|
+
(function (TipoClienteEnum) {
|
|
6
|
+
TipoClienteEnum["Rede"] = "R";
|
|
7
|
+
TipoClienteEnum["Franquia"] = "F";
|
|
8
|
+
})(TipoClienteEnum = exports.TipoClienteEnum || (exports.TipoClienteEnum = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TipoDescontoEnum = void 0;
|
|
4
|
+
var TipoDescontoEnum;
|
|
5
|
+
(function (TipoDescontoEnum) {
|
|
6
|
+
TipoDescontoEnum["valorFixo"] = "F";
|
|
7
|
+
TipoDescontoEnum["porcentagem"] = "P";
|
|
8
|
+
TipoDescontoEnum["descrescimoValor"] = "D";
|
|
9
|
+
})(TipoDescontoEnum = exports.TipoDescontoEnum || (exports.TipoDescontoEnum = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TipoOrigemEnum = void 0;
|
|
4
|
+
var TipoOrigemEnum;
|
|
5
|
+
(function (TipoOrigemEnum) {
|
|
6
|
+
TipoOrigemEnum["Sorteio"] = "sorteio";
|
|
7
|
+
TipoOrigemEnum["Promocao"] = "promocao";
|
|
8
|
+
TipoOrigemEnum["GrupoDesconto"] = "grupo_desconto";
|
|
9
|
+
TipoOrigemEnum["PDVOffline"] = "pdf_offline";
|
|
10
|
+
TipoOrigemEnum["Abono"] = "abono";
|
|
11
|
+
TipoOrigemEnum["SemDesconto"] = "sem_desconto";
|
|
12
|
+
})(TipoOrigemEnum = exports.TipoOrigemEnum || (exports.TipoOrigemEnum = {}));
|
package/dist/Enums/index.d.ts
CHANGED
|
@@ -2,9 +2,15 @@ export * from './CargoEnum';
|
|
|
2
2
|
export * from './ExceptionsCodesEnum';
|
|
3
3
|
export * from './ExceptionsMessagesEnum';
|
|
4
4
|
export * from './LogTypeEnum';
|
|
5
|
+
export * from './MathOperationsEnum';
|
|
5
6
|
export * from './NotificacaoTipo';
|
|
6
7
|
export * from './PubSubActionEnum';
|
|
7
8
|
export * from './PubSubTableEnum';
|
|
9
|
+
export * from './ResponsavelConcessaoEnum';
|
|
10
|
+
export * from './SituacaoEnum';
|
|
8
11
|
export * from './TagNameEnum';
|
|
12
|
+
export * from './TipoClienteEnum';
|
|
9
13
|
export * from './TipoCondicaoEnum';
|
|
14
|
+
export * from './TipoDescontoEnum';
|
|
10
15
|
export * from './TipoOperadorEnum';
|
|
16
|
+
export * from './TipoOrigemEnum';
|
package/dist/Enums/index.js
CHANGED
|
@@ -18,9 +18,15 @@ __exportStar(require("./CargoEnum"), exports);
|
|
|
18
18
|
__exportStar(require("./ExceptionsCodesEnum"), exports);
|
|
19
19
|
__exportStar(require("./ExceptionsMessagesEnum"), exports);
|
|
20
20
|
__exportStar(require("./LogTypeEnum"), exports);
|
|
21
|
+
__exportStar(require("./MathOperationsEnum"), exports);
|
|
21
22
|
__exportStar(require("./NotificacaoTipo"), exports);
|
|
22
23
|
__exportStar(require("./PubSubActionEnum"), exports);
|
|
23
24
|
__exportStar(require("./PubSubTableEnum"), exports);
|
|
25
|
+
__exportStar(require("./ResponsavelConcessaoEnum"), exports);
|
|
26
|
+
__exportStar(require("./SituacaoEnum"), exports);
|
|
24
27
|
__exportStar(require("./TagNameEnum"), exports);
|
|
28
|
+
__exportStar(require("./TipoClienteEnum"), exports);
|
|
25
29
|
__exportStar(require("./TipoCondicaoEnum"), exports);
|
|
30
|
+
__exportStar(require("./TipoDescontoEnum"), exports);
|
|
26
31
|
__exportStar(require("./TipoOperadorEnum"), exports);
|
|
32
|
+
__exportStar(require("./TipoOrigemEnum"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VendaFormaPagamentoReduzida = void 0;
|
|
4
|
+
class VendaFormaPagamentoReduzida {
|
|
5
|
+
constructor(codFormaPagamento, valor) {
|
|
6
|
+
this.codFormaPagamento = codFormaPagamento;
|
|
7
|
+
this.valor = valor;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.VendaFormaPagamentoReduzida = VendaFormaPagamentoReduzida;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { VendaOrigem } from "./VendaOrigem";
|
|
1
2
|
export declare class VendaItemReduzido {
|
|
2
|
-
|
|
3
|
+
idProduto: string;
|
|
3
4
|
quantidade: number;
|
|
4
5
|
valorUnitario: number;
|
|
5
6
|
uniMedida: string;
|
|
6
7
|
valorDescontoUnitario?: number | undefined;
|
|
7
|
-
|
|
8
|
+
origem?: VendaOrigem | undefined;
|
|
9
|
+
constructor(idProduto: string, quantidade: number, valorUnitario: number, uniMedida: string, valorDescontoUnitario?: number | undefined, origem?: VendaOrigem | undefined);
|
|
8
10
|
}
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VendaItemReduzido = void 0;
|
|
4
4
|
class VendaItemReduzido {
|
|
5
|
-
constructor(
|
|
6
|
-
this.
|
|
5
|
+
constructor(idProduto, quantidade, valorUnitario, uniMedida, valorDescontoUnitario, origem) {
|
|
6
|
+
this.idProduto = idProduto;
|
|
7
7
|
this.quantidade = quantidade;
|
|
8
8
|
this.valorUnitario = valorUnitario;
|
|
9
9
|
this.uniMedida = uniMedida;
|
|
10
10
|
this.valorDescontoUnitario = valorDescontoUnitario;
|
|
11
|
+
this.origem = origem;
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
exports.VendaItemReduzido = VendaItemReduzido;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VendaOrigem = void 0;
|
|
4
|
+
class VendaOrigem {
|
|
5
|
+
constructor(descricao, tipo, identificador) {
|
|
6
|
+
this.descricao = descricao;
|
|
7
|
+
this.tipo = tipo;
|
|
8
|
+
this.identificador = identificador;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.VendaOrigem = VendaOrigem;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { VendaFormaPagamentoReduzida } from './VendaFormaPagamentoReduzida';
|
|
2
|
+
import { VendaItemReduzido } from './VendaItemReduzido';
|
|
3
|
+
export declare class VendaReduzida {
|
|
4
|
+
idVenda: string;
|
|
5
|
+
situacao: string;
|
|
6
|
+
dataVenda: string;
|
|
7
|
+
horaVenda: string;
|
|
8
|
+
valorTotal: number;
|
|
9
|
+
formaPagamento: VendaFormaPagamentoReduzida[];
|
|
10
|
+
idGrupoDesconto: string;
|
|
11
|
+
idGrupoDescontoErp: string;
|
|
12
|
+
tipo: string;
|
|
13
|
+
cnpj: string;
|
|
14
|
+
uf: string;
|
|
15
|
+
idEmpresa: string;
|
|
16
|
+
itens: VendaItemReduzido[];
|
|
17
|
+
identificadorVoucher: string;
|
|
18
|
+
linkDocumentoFiscal?: string | undefined;
|
|
19
|
+
valorDesconto?: number | undefined;
|
|
20
|
+
numDocumento?: string | undefined;
|
|
21
|
+
idCliente?: string | undefined;
|
|
22
|
+
cupom?: string | undefined;
|
|
23
|
+
constructor(idVenda: string, situacao: string, dataVenda: string, horaVenda: string, valorTotal: number, formaPagamento: VendaFormaPagamentoReduzida[], idGrupoDesconto: string, idGrupoDescontoErp: string, tipo: string, cnpj: string, uf: string, idEmpresa: string, itens: VendaItemReduzido[], identificadorVoucher: string, linkDocumentoFiscal?: string | undefined, valorDesconto?: number | undefined, numDocumento?: string | undefined, idCliente?: string | undefined, cupom?: string | undefined);
|
|
24
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VendaReduzida = void 0;
|
|
4
|
+
class VendaReduzida {
|
|
5
|
+
constructor(idVenda, situacao, dataVenda, horaVenda, valorTotal, formaPagamento, idGrupoDesconto, idGrupoDescontoErp, tipo, cnpj, uf, idEmpresa, itens, identificadorVoucher, linkDocumentoFiscal, valorDesconto, numDocumento, idCliente, cupom) {
|
|
6
|
+
this.idVenda = idVenda;
|
|
7
|
+
this.situacao = situacao;
|
|
8
|
+
this.dataVenda = dataVenda;
|
|
9
|
+
this.horaVenda = horaVenda;
|
|
10
|
+
this.valorTotal = valorTotal;
|
|
11
|
+
this.formaPagamento = formaPagamento;
|
|
12
|
+
this.idGrupoDesconto = idGrupoDesconto;
|
|
13
|
+
this.idGrupoDescontoErp = idGrupoDescontoErp;
|
|
14
|
+
this.tipo = tipo;
|
|
15
|
+
this.cnpj = cnpj;
|
|
16
|
+
this.uf = uf;
|
|
17
|
+
this.idEmpresa = idEmpresa;
|
|
18
|
+
this.itens = itens;
|
|
19
|
+
this.identificadorVoucher = identificadorVoucher;
|
|
20
|
+
this.linkDocumentoFiscal = linkDocumentoFiscal;
|
|
21
|
+
this.valorDesconto = valorDesconto;
|
|
22
|
+
this.numDocumento = numDocumento;
|
|
23
|
+
this.idCliente = idCliente;
|
|
24
|
+
this.cupom = cupom;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.VendaReduzida = VendaReduzida;
|
|
@@ -9,7 +9,7 @@ class CombustivelService {
|
|
|
9
9
|
}
|
|
10
10
|
ehCombustivelV2(combustiveis, item) {
|
|
11
11
|
return combustiveis.find(function (o) {
|
|
12
|
-
return o.codigo_produto.toString() === item.
|
|
12
|
+
return o.codigo_produto.toString() === item.idProduto.toString();
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
15
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -12,5 +12,9 @@ export { UpdateUtil } from './Helpers/UpdateUtil';
|
|
|
12
12
|
export { AxiosModel } from './Models/AxiosModel';
|
|
13
13
|
export { PriceToConsult } from './Models/PriceToConsult';
|
|
14
14
|
export { PriceToSale } from './Models/PriceToSale';
|
|
15
|
+
export { VendaFormaPagamentoReduzida } from './Models/VendaFormaPagamentoReduzida';
|
|
16
|
+
export { VendaItemReduzido } from './Models/VendaItemReduzido';
|
|
17
|
+
export { VendaOrigem } from './Models/VendaOrigem';
|
|
18
|
+
export { VendaReduzida } from './Models/VendaReduzida';
|
|
15
19
|
export { AxiosService } from './Services/AxiosService';
|
|
16
20
|
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.PriceToConsult = exports.AxiosModel = exports.UpdateUtil = exports.StringHelper = exports.PromiseHelper = exports.NumberHelper = exports.HashHelper = exports.DateHelper = exports.CryptHelper = exports.PubSubHandlerAction = exports.GooglePubSubSubscription = exports.GooglePubSubPublish = exports.GooglePubSubCreateSubscription = void 0;
|
|
3
|
+
exports.CombustivelService = exports.AxiosService = exports.VendaReduzida = exports.VendaOrigem = exports.VendaItemReduzido = exports.VendaFormaPagamentoReduzida = exports.PriceToSale = exports.PriceToConsult = exports.AxiosModel = exports.UpdateUtil = exports.StringHelper = exports.PromiseHelper = exports.NumberHelper = exports.HashHelper = exports.DateHelper = exports.CryptHelper = exports.PubSubHandlerAction = exports.GooglePubSubSubscription = exports.GooglePubSubPublish = exports.GooglePubSubCreateSubscription = void 0;
|
|
4
4
|
var GooglePubSubCreateSubscription_1 = require("./Class/GooglePubSubCreateSubscription");
|
|
5
5
|
Object.defineProperty(exports, "GooglePubSubCreateSubscription", { enumerable: true, get: function () { return GooglePubSubCreateSubscription_1.GooglePubSubCreateSubscription; } });
|
|
6
6
|
var GooglePubSubPublish_1 = require("./Class/GooglePubSubPublish");
|
|
@@ -29,6 +29,14 @@ var PriceToConsult_1 = require("./Models/PriceToConsult");
|
|
|
29
29
|
Object.defineProperty(exports, "PriceToConsult", { enumerable: true, get: function () { return PriceToConsult_1.PriceToConsult; } });
|
|
30
30
|
var PriceToSale_1 = require("./Models/PriceToSale");
|
|
31
31
|
Object.defineProperty(exports, "PriceToSale", { enumerable: true, get: function () { return PriceToSale_1.PriceToSale; } });
|
|
32
|
+
var VendaFormaPagamentoReduzida_1 = require("./Models/VendaFormaPagamentoReduzida");
|
|
33
|
+
Object.defineProperty(exports, "VendaFormaPagamentoReduzida", { enumerable: true, get: function () { return VendaFormaPagamentoReduzida_1.VendaFormaPagamentoReduzida; } });
|
|
34
|
+
var VendaItemReduzido_1 = require("./Models/VendaItemReduzido");
|
|
35
|
+
Object.defineProperty(exports, "VendaItemReduzido", { enumerable: true, get: function () { return VendaItemReduzido_1.VendaItemReduzido; } });
|
|
36
|
+
var VendaOrigem_1 = require("./Models/VendaOrigem");
|
|
37
|
+
Object.defineProperty(exports, "VendaOrigem", { enumerable: true, get: function () { return VendaOrigem_1.VendaOrigem; } });
|
|
38
|
+
var VendaReduzida_1 = require("./Models/VendaReduzida");
|
|
39
|
+
Object.defineProperty(exports, "VendaReduzida", { enumerable: true, get: function () { return VendaReduzida_1.VendaReduzida; } });
|
|
32
40
|
var AxiosService_1 = require("./Services/AxiosService");
|
|
33
41
|
Object.defineProperty(exports, "AxiosService", { enumerable: true, get: function () { return AxiosService_1.AxiosService; } });
|
|
34
42
|
var CombustivelService_1 = require("./Services/CombustivelService");
|