flit-modulo-exportacoes 2.0.67 → 2.0.68

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.
@@ -11,8 +11,6 @@ class DepartamentosElastic extends elastic_base_1.ElasticBase {
11
11
  i_id: 'asc'
12
12
  }],
13
13
  index: 'contas_departamentos',
14
- size: this.totalRegistrosFiltradosElastic,
15
- _source: Object.keys(new departamento_model_1.SourceDepartamento({})),
16
14
  query: {
17
15
  bool: {
18
16
  must: [{
@@ -25,7 +23,9 @@ class DepartamentosElastic extends elastic_base_1.ElasticBase {
25
23
  }
26
24
  }]
27
25
  }
28
- }
26
+ },
27
+ size: this.totalRegistrosFiltradosElastic,
28
+ _source: Object.keys(new departamento_model_1.SourceDepartamento({}))
29
29
  });
30
30
  }
31
31
  async getDepartamentosElastic(contaId) {
@@ -0,0 +1,7 @@
1
+ import { DadosIntegracao } from './general-models';
2
+ export declare class SourceTipoMovimentoEContador {
3
+ i_id: string;
4
+ descricao: string;
5
+ integracao: DadosIntegracao;
6
+ constructor(tipoMovimentoEContador: Partial<SourceTipoMovimentoEContador>);
7
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SourceTipoMovimentoEContador = void 0;
4
+ class SourceTipoMovimentoEContador {
5
+ i_id;
6
+ descricao;
7
+ integracao;
8
+ constructor(tipoMovimentoEContador) {
9
+ this.i_id = tipoMovimentoEContador.i_id;
10
+ this.descricao = tipoMovimentoEContador.descricao;
11
+ this.integracao = tipoMovimentoEContador.integracao;
12
+ }
13
+ }
14
+ exports.SourceTipoMovimentoEContador = SourceTipoMovimentoEContador;
@@ -0,0 +1,7 @@
1
+ import { ElasticBase } from './elastic-base';
2
+ import { SearchHit } from '@elastic/elasticsearch/lib/api/types';
3
+ import { SourceTipoMovimentoEContador } from './model/tipo-movimento-econtador-model';
4
+ export declare class TiposMovimentosEContadorElastic extends ElasticBase<SourceTipoMovimentoEContador> {
5
+ private internalGetTiposMovimentosEContadorElastic;
6
+ getTiposMovimentosEContadorElastic(contaId: string): Promise<Array<SearchHit<SourceTipoMovimentoEContador>>>;
7
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TiposMovimentosEContadorElastic = void 0;
4
+ const elastic_base_1 = require("./elastic-base");
5
+ const tipo_movimento_econtador_model_1 = require("./model/tipo-movimento-econtador-model");
6
+ class TiposMovimentosEContadorElastic extends elastic_base_1.ElasticBase {
7
+ async internalGetTiposMovimentosEContadorElastic(contaId) {
8
+ return await this.elasticClient.search({
9
+ scroll: '1m',
10
+ sort: [{
11
+ i_id: 'asc'
12
+ }],
13
+ query: {
14
+ bool: {
15
+ must: [{
16
+ match: {
17
+ excluido: false
18
+ }
19
+ }, {
20
+ match: {
21
+ i_parent_id: contaId
22
+ }
23
+ }]
24
+ }
25
+ },
26
+ index: 'contas_tiposmovimentosecontador',
27
+ size: this.totalRegistrosFiltradosElastic,
28
+ _source: Object.keys(new tipo_movimento_econtador_model_1.SourceTipoMovimentoEContador({}))
29
+ });
30
+ }
31
+ async getTiposMovimentosEContadorElastic(contaId) {
32
+ return await this.retornaTodosDadosPaginacaoElastic(await this.internalGetTiposMovimentosEContadorElastic(contaId));
33
+ }
34
+ }
35
+ exports.TiposMovimentosEContadorElastic = TiposMovimentosEContadorElastic;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flit-modulo-exportacoes",
3
- "version": "2.0.67",
3
+ "version": "2.0.68",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "directories": {