flit-modulo-exportacoes 2.0.26 → 2.0.28

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.
@@ -2,9 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ElasticBase = void 0;
4
4
  class ElasticBase {
5
- elasticClient;
6
- totalRegistrosFiltradosElastic = 500;
7
5
  constructor(elasticClient) {
6
+ this.totalRegistrosFiltradosElastic = 500;
8
7
  this.elasticClient = elasticClient;
9
8
  }
10
9
  async searchScrollObjectElastic(scrollId) {
package/dist/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { Client } from '@elastic/elasticsearch';
2
2
  import { SearchHit } from '@elastic/elasticsearch/lib/api/types';
3
3
  import { PayloadExportacaoPadrao, TipoEventoExportacao, TiposEventosExportacaoArquivo, TiposEventosExportar, ValoresEventosExportacao, ValorEventoExportacao, ValorEventoExportacaoFalta } from './models';
4
- export * from './export-barrel';
5
4
  export declare function validarDadosPayload({ fn, data, validarCampoReferencia }: {
6
5
  fn: () => Array<string>;
7
6
  data: PayloadExportacaoPadrao;
package/dist/index.js CHANGED
@@ -1,18 +1,4 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
3
  exports.processarTiposEventosExportar = exports.retornaValorEvento = exports.calcularValoresExportacao = exports.validarDadosPayload = void 0;
18
4
  const contas_elastic_1 = require("./dao/contas-elastic");
@@ -23,7 +9,6 @@ const utils_1 = require("flit-calcular-jornada/dist/lib/helpers/utils");
23
9
  const parametrosHorasNoturnas_model_1 = require("flit-calcular-jornada/dist/lib/models/parametrosHorasNoturnas.model");
24
10
  const utils_2 = require("./utils");
25
11
  const models_1 = require("./models");
26
- __exportStar(require("./export-barrel"), exports);
27
12
  function validarCampo({ campo, fieldName, fn }) {
28
13
  if ((!campo) || (campo.length <= 0)) {
29
14
  fn().push(`${fieldName} não informada.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flit-modulo-exportacoes",
3
- "version": "2.0.26",
3
+ "version": "2.0.28",
4
4
  "description": "",
5
5
  "main": "dist/lib/index.js",
6
6
  "directories": {
@@ -12,12 +12,14 @@
12
12
  "types": "dist/lib/index.d.ts",
13
13
  "prepublish": "npm run build",
14
14
  "dependencies": {
15
- "moment": "^2.29.4"
15
+ "moment": "^2.29.4",
16
+ "flit-calcular-jornada": "latest"
17
+ },
18
+ "peerDependencies": {
19
+ "@elastic/elasticsearch": "^8"
16
20
  },
17
21
  "devDependencies": {
18
- "@elastic/elasticsearch": "^8.9.0",
19
22
  "@types/luxon": "^3.3.1",
20
- "flit-calcular-jornada": "^2.1.17",
21
23
  "prettier": "^3.0.1",
22
24
  "tsc-alias": "^1.8.7",
23
25
  "typescript": "^5.1.6"
@@ -1,3 +0,0 @@
1
- export * from './models';
2
- export * from './utils';
3
- export * from './eventos-exportacoes-model';
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./models"), exports);
18
- __exportStar(require("./utils"), exports);
19
- __exportStar(require("./eventos-exportacoes-model"), exports);