@linkiez/jcm-library 7.1.0 → 8.0.0
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/models/arquivo/arquivo.d.ts +1 -1
- package/dist/models/arquivo/arquivo.js +1 -1
- package/dist/models/bank/bank-import.d.ts +10 -10
- package/dist/models/bank/bank-import.js +12 -12
- package/dist/models/bank/bank-reconciliation.d.ts +12 -12
- package/dist/models/bank/bank-reconciliation.js +13 -13
- package/dist/models/bank/bank-report.d.ts +26 -26
- package/dist/models/bank/bank-report.js +33 -33
- package/dist/models/bank/bank-transaction.d.ts +10 -10
- package/dist/models/bank/bank-transaction.js +9 -9
- package/dist/models/bank/bank.d.ts +3 -3
- package/dist/models/bank/bank.js +4 -4
- package/dist/models/contato/contato.d.ts +2 -2
- package/dist/models/contato/contato.js +2 -2
- package/dist/models/empresa/empresa.d.ts +6 -6
- package/dist/models/empresa/empresa.js +6 -6
- package/dist/models/financial/boleto-remittance.d.ts +9 -9
- package/dist/models/financial/boleto-remittance.js +9 -9
- package/dist/models/financial/boleto-return.d.ts +7 -7
- package/dist/models/financial/boleto-return.js +7 -7
- package/dist/models/financial/financial-account.d.ts +5 -5
- package/dist/models/financial/financial-account.js +5 -5
- package/dist/models/financial/financial-import.d.ts +14 -14
- package/dist/models/financial/financial-import.js +16 -16
- package/dist/models/form-site/form-site.d.ts +1 -1
- package/dist/models/form-site/form-site.js +1 -1
- package/dist/models/fornecedor/fornecedor.d.ts +3 -3
- package/dist/models/fornecedor/fornecedor.js +3 -3
- package/dist/models/lista-generica/lista-generica.d.ts +7 -7
- package/dist/models/lista-generica/lista-generica.js +11 -11
- package/dist/models/login/login.d.ts +1 -1
- package/dist/models/login/login.js +1 -1
- package/dist/models/marketing-campaign/campaign-event.d.ts +1 -1
- package/dist/models/marketing-campaign/campaign-event.js +1 -1
- package/dist/models/marketing-campaign/campaign-recipient.d.ts +1 -1
- package/dist/models/marketing-campaign/campaign-recipient.js +1 -1
- package/dist/models/marketing-campaign/campaign-recurrence-rule.d.ts +1 -1
- package/dist/models/marketing-campaign/campaign-recurrence-rule.js +1 -1
- package/dist/models/marketing-campaign/campaign.d.ts +1 -1
- package/dist/models/marketing-campaign/campaign.js +1 -1
- package/dist/models/marketing-campaign/whatsapp-opt-in.d.ts +1 -1
- package/dist/models/marketing-campaign/whatsapp-opt-in.js +1 -1
- package/dist/models/operador/operador.d.ts +3 -3
- package/dist/models/operador/operador.js +3 -3
- package/dist/models/orcamento/orcamento.d.ts +9 -9
- package/dist/models/orcamento/orcamento.js +9 -9
- package/dist/models/ordem-producao/ordem-producao.d.ts +9 -9
- package/dist/models/ordem-producao/ordem-producao.js +9 -9
- package/dist/models/pedido-compra/pedido-compra.d.ts +6 -6
- package/dist/models/pedido-compra/pedido-compra.js +6 -6
- package/dist/models/pessoa/pessoa.d.ts +13 -13
- package/dist/models/pessoa/pessoa.js +13 -13
- package/dist/models/produto/produto.d.ts +2 -2
- package/dist/models/produto/produto.js +2 -2
- package/dist/models/rir/rir.d.ts +6 -6
- package/dist/models/rir/rir.js +6 -6
- package/dist/models/rnc/rnc.d.ts +2 -2
- package/dist/models/rnc/rnc.js +2 -2
- package/dist/models/usuario/usuario.d.ts +3 -3
- package/dist/models/usuario/usuario.js +3 -3
- package/dist/models/vendatiny/vendatiny.d.ts +2 -2
- package/dist/models/vendatiny/vendatiny.js +2 -2
- package/dist/models/vendedor/vendedor.d.ts +3 -3
- package/dist/models/vendedor/vendedor.js +3 -3
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { IPedidoCompra, IPedidoCompraItem } from "../../interfaces/pedido-compra/ipedido-compra.js";
|
|
2
|
-
import {
|
|
2
|
+
import { CArquivo } from "../arquivo/arquivo.js";
|
|
3
3
|
import { BaseModel } from "../common/base-model.js";
|
|
4
4
|
import { cContato } from "../contato/contato.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { CEmpresa } from "../empresa/empresa.js";
|
|
6
|
+
import { CFornecedor } from "../fornecedor/fornecedor.js";
|
|
7
7
|
import { CProduto } from "../produto/produto.js";
|
|
8
8
|
import { RIR } from "../rir/rir.js";
|
|
9
9
|
export declare class PedidoCompra extends BaseModel implements IPedidoCompra {
|
|
@@ -21,11 +21,11 @@ export declare class PedidoCompra extends BaseModel implements IPedidoCompra {
|
|
|
21
21
|
createdAt: Date;
|
|
22
22
|
updatedAt: Date;
|
|
23
23
|
deletedAt: Date;
|
|
24
|
-
fornecedor:
|
|
25
|
-
empresa:
|
|
24
|
+
fornecedor: CFornecedor;
|
|
25
|
+
empresa: CEmpresa;
|
|
26
26
|
contatos: cContato[];
|
|
27
27
|
pedido_compra_items: PedidoCompraItem[];
|
|
28
|
-
files:
|
|
28
|
+
files: CArquivo[];
|
|
29
29
|
percentual_entregue: number;
|
|
30
30
|
constructor(pedidoCompra?: Partial<IPedidoCompra>);
|
|
31
31
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CArquivo } from "../arquivo/arquivo.js";
|
|
2
2
|
import { BaseModel } from "../common/base-model.js";
|
|
3
3
|
import { cContato } from "../contato/contato.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { CEmpresa } from "../empresa/empresa.js";
|
|
5
|
+
import { CFornecedor } from "../fornecedor/fornecedor.js";
|
|
6
6
|
import { CProduto } from "../produto/produto.js";
|
|
7
7
|
import { RIR } from "../rir/rir.js";
|
|
8
8
|
export class PedidoCompra extends BaseModel {
|
|
@@ -32,16 +32,16 @@ export class PedidoCompra extends BaseModel {
|
|
|
32
32
|
this.updatedAt = this.parseDate(pedidoCompra?.updatedAt);
|
|
33
33
|
this.deletedAt = this.parseDate(pedidoCompra?.deletedAt);
|
|
34
34
|
this.fornecedor = pedidoCompra?.fornecedor
|
|
35
|
-
? new
|
|
35
|
+
? new CFornecedor(pedidoCompra.fornecedor)
|
|
36
36
|
: undefined;
|
|
37
37
|
this.empresa = pedidoCompra?.empresa
|
|
38
|
-
? new
|
|
38
|
+
? new CEmpresa(pedidoCompra.empresa)
|
|
39
39
|
: undefined;
|
|
40
40
|
this.contatos = this.toTypedArray(pedidoCompra?.contatos, cContato);
|
|
41
41
|
this.pedido_compra_items = pedidoCompra?.pedido_compra_items
|
|
42
42
|
? pedidoCompra.pedido_compra_items.map((item) => new PedidoCompraItem(item))
|
|
43
43
|
: [];
|
|
44
|
-
this.files = this.toTypedArray(pedidoCompra?.files,
|
|
44
|
+
this.files = this.toTypedArray(pedidoCompra?.files, CArquivo);
|
|
45
45
|
this.percentual_entregue = pedidoCompra?.percentual_entregue || 0;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { IArquivoAvatar } from "../../interfaces/arquivo/iarquivo.js";
|
|
2
2
|
import { IPessoa } from "../../interfaces/pessoa/ipessoa.js";
|
|
3
|
-
import {
|
|
3
|
+
import { CArquivo } from "../arquivo/arquivo.js";
|
|
4
4
|
import { BaseModel } from "../common/base-model.js";
|
|
5
5
|
import { cContato } from "../contato/contato.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
export declare class
|
|
6
|
+
import { CEmpresa } from "../empresa/empresa.js";
|
|
7
|
+
import { CFornecedor } from "../fornecedor/fornecedor.js";
|
|
8
|
+
import { COperador } from "../operador/operador.js";
|
|
9
|
+
import { CUsuario } from "../usuario/usuario.js";
|
|
10
|
+
import { CVendedor } from "../vendedor/vendedor.js";
|
|
11
|
+
export declare class CPessoa extends BaseModel implements IPessoa {
|
|
12
12
|
id: number;
|
|
13
13
|
nome: string;
|
|
14
14
|
razao_social: string;
|
|
@@ -31,12 +31,12 @@ export declare class cPessoa extends BaseModel implements IPessoa {
|
|
|
31
31
|
updatedAt: Date;
|
|
32
32
|
createdAt: Date;
|
|
33
33
|
contatos: cContato[];
|
|
34
|
-
files:
|
|
35
|
-
fornecedor:
|
|
36
|
-
operador:
|
|
37
|
-
usuario:
|
|
38
|
-
vendedor:
|
|
39
|
-
empresa:
|
|
34
|
+
files: CArquivo[];
|
|
35
|
+
fornecedor: CFornecedor;
|
|
36
|
+
operador: COperador;
|
|
37
|
+
usuario: CUsuario;
|
|
38
|
+
vendedor: CVendedor;
|
|
39
|
+
empresa: CEmpresa;
|
|
40
40
|
id_avatar_file?: number;
|
|
41
41
|
avatarFile?: IArquivoAvatar;
|
|
42
42
|
constructor(pessoa?: Partial<IPessoa>);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CArquivo } from "../arquivo/arquivo.js";
|
|
2
2
|
import { BaseModel } from "../common/base-model.js";
|
|
3
3
|
import { cContato } from "../contato/contato.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
export class
|
|
4
|
+
import { CEmpresa } from "../empresa/empresa.js";
|
|
5
|
+
import { CFornecedor } from "../fornecedor/fornecedor.js";
|
|
6
|
+
import { COperador } from "../operador/operador.js";
|
|
7
|
+
import { CUsuario } from "../usuario/usuario.js";
|
|
8
|
+
import { CVendedor } from "../vendedor/vendedor.js";
|
|
9
|
+
export class CPessoa extends BaseModel {
|
|
10
10
|
constructor(pessoa) {
|
|
11
11
|
super();
|
|
12
12
|
this.contatos = [];
|
|
@@ -38,16 +38,16 @@ export class cPessoa extends BaseModel {
|
|
|
38
38
|
this.updatedAt = this.parseDate(pessoa?.updatedAt);
|
|
39
39
|
this.createdAt = this.parseDate(pessoa?.createdAt);
|
|
40
40
|
this.contatos = this.toTypedArray(pessoa?.contatos, cContato);
|
|
41
|
-
this.files = this.toTypedArray(pessoa?.files,
|
|
41
|
+
this.files = this.toTypedArray(pessoa?.files, CArquivo);
|
|
42
42
|
this.id_avatar_file = this.toNumber(pessoa?.id_avatar_file);
|
|
43
43
|
this.avatarFile = pessoa?.avatarFile ?? undefined;
|
|
44
44
|
this.fornecedor = pessoa.fornecedor
|
|
45
|
-
? new
|
|
45
|
+
? new CFornecedor(pessoa.fornecedor)
|
|
46
46
|
: undefined;
|
|
47
|
-
this.operador = pessoa.operador ? new
|
|
48
|
-
this.usuario = pessoa.usuario ? new
|
|
49
|
-
this.vendedor = pessoa.vendedor ? new
|
|
50
|
-
this.empresa = pessoa.empresa ? new
|
|
47
|
+
this.operador = pessoa.operador ? new COperador(pessoa.operador) : undefined;
|
|
48
|
+
this.usuario = pessoa.usuario ? new CUsuario(pessoa.usuario) : undefined;
|
|
49
|
+
this.vendedor = pessoa.vendedor ? new CVendedor(pessoa.vendedor) : undefined;
|
|
50
|
+
this.empresa = pessoa.empresa ? new CEmpresa(pessoa.empresa) : undefined;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
//# sourceMappingURL=pessoa.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IProduto } from "../../interfaces/produto/iproduto.js";
|
|
2
2
|
import { TNullableDateLike } from "../../utils/date.js";
|
|
3
|
-
import {
|
|
3
|
+
import { CArquivo } from "../arquivo/arquivo.js";
|
|
4
4
|
import { BaseModel } from "../common/base-model.js";
|
|
5
5
|
import { PedidoCompraItem } from "../pedido-compra/pedido-compra.js";
|
|
6
6
|
export declare class CProduto extends BaseModel implements IProduto {
|
|
@@ -13,7 +13,7 @@ export declare class CProduto extends BaseModel implements IProduto {
|
|
|
13
13
|
updatedAt: Date;
|
|
14
14
|
createdAt: Date;
|
|
15
15
|
deletedAt: Date;
|
|
16
|
-
files:
|
|
16
|
+
files: CArquivo[];
|
|
17
17
|
preco: number;
|
|
18
18
|
atualizacao: TNullableDateLike;
|
|
19
19
|
constructor(produto?: Partial<IProduto>);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CArquivo } from "../arquivo/arquivo.js";
|
|
2
2
|
import { BaseModel } from "../common/base-model.js";
|
|
3
3
|
import { PedidoCompraItem } from "../pedido-compra/pedido-compra.js";
|
|
4
4
|
export class CProduto extends BaseModel {
|
|
@@ -20,7 +20,7 @@ export class CProduto extends BaseModel {
|
|
|
20
20
|
this.updatedAt = this.parseDate(produto?.updatedAt);
|
|
21
21
|
this.deletedAt = this.parseDate(produto?.deletedAt);
|
|
22
22
|
this.createdAt = this.parseDate(produto?.createdAt);
|
|
23
|
-
this.files = this.toTypedArray(produto?.files,
|
|
23
|
+
this.files = this.toTypedArray(produto?.files, CArquivo);
|
|
24
24
|
this.preco = this.toNumber(produto?.preco);
|
|
25
25
|
this.atualizacao =
|
|
26
26
|
this.parseDate(produto?.atualizacao) || produto?.atualizacao;
|
package/dist/models/rir/rir.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IRIR } from "../../interfaces/rir/irir.js";
|
|
2
|
-
import {
|
|
2
|
+
import { CArquivo } from "../arquivo/arquivo.js";
|
|
3
3
|
import { BaseModel } from "../common/base-model.js";
|
|
4
|
-
import {
|
|
4
|
+
import { COperador } from "../operador/operador.js";
|
|
5
5
|
import { OrdemProducaoItem } from "../ordem-producao/ordem-producao.js";
|
|
6
6
|
import { PedidoCompraItem } from "../pedido-compra/pedido-compra.js";
|
|
7
|
-
import {
|
|
7
|
+
import { CPessoa } from "../pessoa/pessoa.js";
|
|
8
8
|
import { CProduto } from "../produto/produto.js";
|
|
9
9
|
export declare class RIR extends BaseModel implements IRIR {
|
|
10
10
|
id: number;
|
|
@@ -15,14 +15,14 @@ export declare class RIR extends BaseModel implements IRIR {
|
|
|
15
15
|
nfe: string | null;
|
|
16
16
|
nfe_data: Date | string;
|
|
17
17
|
cliente: boolean;
|
|
18
|
-
pessoa:
|
|
18
|
+
pessoa: CPessoa;
|
|
19
19
|
id_pessoa: number;
|
|
20
20
|
recebido_data: Date | string;
|
|
21
|
-
operador:
|
|
21
|
+
operador: COperador;
|
|
22
22
|
id_operador: number;
|
|
23
23
|
conferido: boolean | null;
|
|
24
24
|
observacoes: string | null;
|
|
25
|
-
files:
|
|
25
|
+
files: CArquivo[];
|
|
26
26
|
pedido_compra_item: PedidoCompraItem | null;
|
|
27
27
|
id_pedido_compra_item: number;
|
|
28
28
|
ordem_producao_items: OrdemProducaoItem[];
|
package/dist/models/rir/rir.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CArquivo } from "../arquivo/arquivo.js";
|
|
2
2
|
import { BaseModel } from "../common/base-model.js";
|
|
3
|
-
import {
|
|
3
|
+
import { COperador } from "../operador/operador.js";
|
|
4
4
|
import { OrdemProducaoItem } from "../ordem-producao/ordem-producao.js";
|
|
5
5
|
import { PedidoCompraItem } from "../pedido-compra/pedido-compra.js";
|
|
6
|
-
import {
|
|
6
|
+
import { CPessoa } from "../pessoa/pessoa.js";
|
|
7
7
|
import { CProduto } from "../produto/produto.js";
|
|
8
8
|
export class RIR extends BaseModel {
|
|
9
9
|
constructor(rir) {
|
|
@@ -31,14 +31,14 @@ export class RIR extends BaseModel {
|
|
|
31
31
|
this.nfe = rir?.nfe;
|
|
32
32
|
this.nfe_data = this.parseDate(rir?.nfe_data);
|
|
33
33
|
this.cliente = rir?.cliente || false;
|
|
34
|
-
this.pessoa = rir?.pessoa ? new
|
|
34
|
+
this.pessoa = rir?.pessoa ? new CPessoa(rir.pessoa) : undefined;
|
|
35
35
|
this.id_pessoa = this.toNumber(rir?.id_pessoa);
|
|
36
36
|
this.recebido_data = this.parseDate(rir?.recebido_data);
|
|
37
|
-
this.operador = rir?.operador ? new
|
|
37
|
+
this.operador = rir?.operador ? new COperador(rir.operador) : undefined;
|
|
38
38
|
this.id_operador = this.toNumber(rir?.id_operador);
|
|
39
39
|
this.conferido = rir?.conferido ? !!rir.conferido : false;
|
|
40
40
|
this.observacoes = rir?.observacoes;
|
|
41
|
-
this.files = this.toTypedArray(rir?.files,
|
|
41
|
+
this.files = this.toTypedArray(rir?.files, CArquivo);
|
|
42
42
|
this.pedido_compra_item = rir?.pedido_compra_item
|
|
43
43
|
? new PedidoCompraItem(rir.pedido_compra_item)
|
|
44
44
|
: undefined;
|
package/dist/models/rnc/rnc.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { IRNC, IRNCItem } from "../../interfaces/rnc/irnc.js";
|
|
|
3
3
|
import { BaseModel } from "../common/base-model.js";
|
|
4
4
|
import { OrdemProducaoItem } from "../ordem-producao/ordem-producao.js";
|
|
5
5
|
import { CProduto } from "../produto/produto.js";
|
|
6
|
-
import {
|
|
6
|
+
import { CUsuario } from "../usuario/usuario.js";
|
|
7
7
|
export declare class RNC extends BaseModel implements IRNC {
|
|
8
8
|
id: number;
|
|
9
9
|
uId?: string;
|
|
@@ -19,7 +19,7 @@ export declare class RNC extends BaseModel implements IRNC {
|
|
|
19
19
|
acao_contencao: string;
|
|
20
20
|
acao_corretiva: string;
|
|
21
21
|
acao_preventiva: string;
|
|
22
|
-
responsavel_analise:
|
|
22
|
+
responsavel_analise: CUsuario;
|
|
23
23
|
responsavel_analise_id: number;
|
|
24
24
|
rnc_items: RNCItem[];
|
|
25
25
|
eficacia: "Sim" | "Não" | null;
|
package/dist/models/rnc/rnc.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseModel } from "../common/base-model.js";
|
|
2
2
|
import { OrdemProducaoItem } from "../ordem-producao/ordem-producao.js";
|
|
3
3
|
import { CProduto } from "../produto/produto.js";
|
|
4
|
-
import {
|
|
4
|
+
import { CUsuario } from "../usuario/usuario.js";
|
|
5
5
|
export class RNC extends BaseModel {
|
|
6
6
|
constructor(rnc) {
|
|
7
7
|
super();
|
|
@@ -27,7 +27,7 @@ export class RNC extends BaseModel {
|
|
|
27
27
|
this.acao_contencao = rnc?.acao_contencao;
|
|
28
28
|
this.acao_corretiva = rnc?.acao_corretiva;
|
|
29
29
|
this.acao_preventiva = rnc?.acao_preventiva;
|
|
30
|
-
this.responsavel_analise = this.extractProperty(rnc, "responsavel_analise",
|
|
30
|
+
this.responsavel_analise = this.extractProperty(rnc, "responsavel_analise", CUsuario);
|
|
31
31
|
this.responsavel_analise_id = this.toNumber(rnc?.responsavel_analise_id);
|
|
32
32
|
this.rnc_items = this.toTypedArray(rnc?.rnc_items, RNCItem);
|
|
33
33
|
this.eficacia = rnc?.eficacia;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IUsuario, IUsuarioAcesso } from "../../interfaces/usuario/iusuario.js";
|
|
2
2
|
import { BaseModel } from "../common/base-model.js";
|
|
3
|
-
import {
|
|
4
|
-
export declare class
|
|
3
|
+
import { CPessoa } from "../pessoa/pessoa.js";
|
|
4
|
+
export declare class CUsuario extends BaseModel implements IUsuario {
|
|
5
5
|
id: number;
|
|
6
6
|
email: string;
|
|
7
7
|
senha: string;
|
|
@@ -10,7 +10,7 @@ export declare class cUsuario extends BaseModel implements IUsuario {
|
|
|
10
10
|
updatedAt: Date;
|
|
11
11
|
createdAt: Date;
|
|
12
12
|
id_pessoa: number;
|
|
13
|
-
pessoa:
|
|
13
|
+
pessoa: CPessoa;
|
|
14
14
|
empresaIds: number[];
|
|
15
15
|
acesso: IUsuarioAcesso;
|
|
16
16
|
schema: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseModel } from "../common/base-model.js";
|
|
2
|
-
import {
|
|
3
|
-
export class
|
|
2
|
+
import { CPessoa } from "../pessoa/pessoa.js";
|
|
3
|
+
export class CUsuario extends BaseModel {
|
|
4
4
|
constructor(usuario) {
|
|
5
5
|
super();
|
|
6
6
|
this.empresaIds = [];
|
|
@@ -18,7 +18,7 @@ export class cUsuario extends BaseModel {
|
|
|
18
18
|
this.updatedAt = this.parseDate(usuario?.updatedAt);
|
|
19
19
|
this.createdAt = this.parseDate(usuario?.createdAt);
|
|
20
20
|
this.id_pessoa = this.toNumber(usuario?.id_pessoa);
|
|
21
|
-
this.pessoa = usuario?.pessoa ? new
|
|
21
|
+
this.pessoa = usuario?.pessoa ? new CPessoa(usuario.pessoa) : undefined;
|
|
22
22
|
this.empresaIds = usuario?.empresaIds ?? [];
|
|
23
23
|
this.acesso = usuario?.acesso;
|
|
24
24
|
this.schema = usuario?.schema;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IVendaTiny } from "../../interfaces/vendatiny/ivendatiny.js";
|
|
2
2
|
import { BaseModel } from "../common/base-model.js";
|
|
3
|
-
import {
|
|
3
|
+
import { CEmpresa } from "../empresa/empresa.js";
|
|
4
4
|
import { Orcamento } from "../orcamento/orcamento.js";
|
|
5
5
|
import { OrdemProducao } from "../ordem-producao/ordem-producao.js";
|
|
6
6
|
export declare class VendaTiny extends BaseModel implements IVendaTiny {
|
|
@@ -16,7 +16,7 @@ export declare class VendaTiny extends BaseModel implements IVendaTiny {
|
|
|
16
16
|
orcamento: Orcamento;
|
|
17
17
|
ordem_producao: OrdemProducao;
|
|
18
18
|
id_empresa: number;
|
|
19
|
-
empresa:
|
|
19
|
+
empresa: CEmpresa;
|
|
20
20
|
constructor(vendaTiny?: Partial<IVendaTiny>);
|
|
21
21
|
}
|
|
22
22
|
export { VendaTiny as cVendaTiny };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseModel } from "../common/base-model.js";
|
|
2
|
-
import {
|
|
2
|
+
import { CEmpresa } from "../empresa/empresa.js";
|
|
3
3
|
import { Orcamento } from "../orcamento/orcamento.js";
|
|
4
4
|
import { OrdemProducao } from "../ordem-producao/ordem-producao.js";
|
|
5
5
|
export class VendaTiny extends BaseModel {
|
|
@@ -26,7 +26,7 @@ export class VendaTiny extends BaseModel {
|
|
|
26
26
|
? new Orcamento(vendaTiny.orcamento)
|
|
27
27
|
: undefined;
|
|
28
28
|
this.empresa = vendaTiny?.empresa
|
|
29
|
-
? new
|
|
29
|
+
? new CEmpresa(vendaTiny.empresa)
|
|
30
30
|
: undefined;
|
|
31
31
|
this.id_empresa = this.toNumber(vendaTiny?.id_empresa);
|
|
32
32
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { IVendedor } from "../../interfaces/vendedor/ivendedor.js";
|
|
2
2
|
import { BaseModel } from "../common/base-model.js";
|
|
3
|
-
import {
|
|
4
|
-
export declare class
|
|
3
|
+
import { CPessoa } from "../pessoa/pessoa.js";
|
|
4
|
+
export declare class CVendedor extends BaseModel implements IVendedor {
|
|
5
5
|
id: number;
|
|
6
6
|
deletedAt: Date;
|
|
7
7
|
updatedAt: Date;
|
|
8
8
|
createdAt: Date;
|
|
9
9
|
id_pessoa: number;
|
|
10
|
-
pessoa:
|
|
10
|
+
pessoa: CPessoa;
|
|
11
11
|
constructor(vendedor?: Partial<IVendedor>);
|
|
12
12
|
}
|
|
13
13
|
//# sourceMappingURL=vendedor.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseModel } from "../common/base-model.js";
|
|
2
|
-
import {
|
|
3
|
-
export class
|
|
2
|
+
import { CPessoa } from "../pessoa/pessoa.js";
|
|
3
|
+
export class CVendedor extends BaseModel {
|
|
4
4
|
constructor(vendedor) {
|
|
5
5
|
super();
|
|
6
6
|
if (!vendedor) {
|
|
@@ -13,7 +13,7 @@ export class cVendedor extends BaseModel {
|
|
|
13
13
|
this.updatedAt = this.parseDate(vendedor?.updatedAt);
|
|
14
14
|
this.createdAt = this.parseDate(vendedor?.createdAt);
|
|
15
15
|
this.id_pessoa = this.toNumber(vendedor?.id_pessoa);
|
|
16
|
-
this.pessoa = vendedor?.pessoa ? new
|
|
16
|
+
this.pessoa = vendedor?.pessoa ? new CPessoa(vendedor.pessoa) : undefined;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
//# sourceMappingURL=vendedor.js.map
|