flit-models 3.2.47 → 3.2.49

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.
Files changed (92) hide show
  1. package/LICENSE +21 -21
  2. package/lib/index.d.ts +1 -1
  3. package/lib/index.js +76 -76
  4. package/lib/models/api/exportar_relatorio.d.ts +38 -38
  5. package/lib/models/api/exportar_relatorio.js +29 -29
  6. package/lib/models/api/index.d.ts +3 -3
  7. package/lib/models/api/index.js +19 -19
  8. package/lib/models/api/oncall-buscar-relatorio-absenteismo/index.d.ts +25 -25
  9. package/lib/models/api/oncall-buscar-relatorio-absenteismo/index.js +17 -17
  10. package/lib/models/api/oncall-buscar-relatorio-absenteismo/relatorio_absenteismo.d.ts +60 -60
  11. package/lib/models/api/oncall-buscar-relatorio-absenteismo/relatorio_absenteismo.js +45 -45
  12. package/lib/models/api/oncall-exportar-relatorio-absenteismo/index.d.ts +8 -8
  13. package/lib/models/api/oncall-exportar-relatorio-absenteismo/index.js +2 -2
  14. package/lib/models/contas/auditoria/modificador/index.d.ts +30 -30
  15. package/lib/models/contas/auditoria/modificador/index.js +44 -44
  16. package/lib/models/contas/auditoria/modificador/modificador-fire-convert.d.ts +14 -14
  17. package/lib/models/contas/auditoria/modificador/modificador-fire-convert.js +43 -43
  18. package/lib/models/contas/cargo/cargo-fire-convert.d.ts +13 -13
  19. package/lib/models/contas/cargo/cargo-fire-convert.js +42 -42
  20. package/lib/models/contas/cargo/index.d.ts +29 -29
  21. package/lib/models/contas/cargo/index.js +45 -45
  22. package/lib/models/contas/departamento/departamento-fire-convert.d.ts +12 -12
  23. package/lib/models/contas/departamento/departamento-fire-convert.js +40 -40
  24. package/lib/models/contas/departamento/index.d.ts +27 -27
  25. package/lib/models/contas/departamento/index.js +44 -44
  26. package/lib/models/contas/escala/escala-fire-convert.d.ts +48 -48
  27. package/lib/models/contas/escala/escala-fire-convert.js +122 -122
  28. package/lib/models/contas/escala/index.d.ts +103 -103
  29. package/lib/models/contas/escala/index.js +71 -71
  30. package/lib/models/contas/excecoes.d.ts +84 -84
  31. package/lib/models/contas/excecoes.js +79 -79
  32. package/lib/models/contas/feriado/empresa-feriado-fire-convert.d.ts +13 -13
  33. package/lib/models/contas/feriado/empresa-feriado-fire-convert.js +43 -43
  34. package/lib/models/contas/feriado/empresa-feriado.d.ts +29 -29
  35. package/lib/models/contas/feriado/empresa-feriado.js +29 -29
  36. package/lib/models/contas/feriado/feriado-fire-convert.d.ts +17 -17
  37. package/lib/models/contas/feriado/feriado-fire-convert.js +66 -55
  38. package/lib/models/contas/feriado/feriado-json-convert.d.ts +18 -18
  39. package/lib/models/contas/feriado/feriado-json-convert.js +53 -52
  40. package/lib/models/contas/feriado/index.d.ts +45 -45
  41. package/lib/models/contas/feriado/index.js +56 -56
  42. package/lib/models/contas/historico_relatorios_ponto_app/historico-relatorios-ponto-app-elastic.d.ts +25 -25
  43. package/lib/models/contas/historico_relatorios_ponto_app/historico-relatorios-ponto-app-elastic.js +49 -49
  44. package/lib/models/contas/historico_relatorios_ponto_app/historico-relatorios-ponto-app-fire-convert.d.ts +24 -24
  45. package/lib/models/contas/historico_relatorios_ponto_app/historico-relatorios-ponto-app-fire-convert.js +38 -38
  46. package/lib/models/contas/historico_relatorios_ponto_app/historico_relatorios_ponto_app_logs/historico-relatorios-ponto-app-logs-fire-convert.d.ts +11 -11
  47. package/lib/models/contas/historico_relatorios_ponto_app/historico_relatorios_ponto_app_logs/historico-relatorios-ponto-app-logs-fire-convert.js +28 -28
  48. package/lib/models/contas/historico_relatorios_ponto_app/historico_relatorios_ponto_app_logs/index.d.ts +35 -35
  49. package/lib/models/contas/historico_relatorios_ponto_app/historico_relatorios_ponto_app_logs/index.js +51 -51
  50. package/lib/models/contas/historico_relatorios_ponto_app/index.d.ts +58 -58
  51. package/lib/models/contas/historico_relatorios_ponto_app/index.js +58 -58
  52. package/lib/models/contas/lancamento/index.d.ts +126 -126
  53. package/lib/models/contas/lancamento/index.js +94 -94
  54. package/lib/models/contas/lancamento/lancamento-elastic-convert.d.ts +51 -51
  55. package/lib/models/contas/lancamento/lancamento-elastic-convert.js +49 -49
  56. package/lib/models/contas/lancamento/lancamento-fire-convert.d.ts +40 -40
  57. package/lib/models/contas/lancamento/lancamento-fire-convert.js +99 -99
  58. package/lib/models/contas/lancamento/lancamento-json-convert.d.ts +41 -41
  59. package/lib/models/contas/lancamento/lancamento-json-convert.js +102 -102
  60. package/lib/models/contas/lancamento/verificacoes/verificacao-lancamento-fire-convert.d.ts +24 -24
  61. package/lib/models/contas/lancamento/verificacoes/verificacao-lancamento-fire-convert.js +80 -80
  62. package/lib/models/contas/lancamento/verificacoes/verificacao-lancamento.d.ts +55 -55
  63. package/lib/models/contas/lancamento/verificacoes/verificacao-lancamento.js +34 -34
  64. package/lib/models/contas/modelo-faixa-hora-extra/index.d.ts +94 -94
  65. package/lib/models/contas/modelo-faixa-hora-extra/index.js +58 -58
  66. package/lib/models/contas/modelo-faixa-hora-extra/modelo-faixa-hora-extra-fire-convert.d.ts +39 -39
  67. package/lib/models/contas/modelo-faixa-hora-extra/modelo-faixa-hora-extra-fire-convert.js +109 -109
  68. package/lib/models/contas/ocorrencia_frequencia/index.d.ts +30 -30
  69. package/lib/models/contas/ocorrencia_frequencia/index.js +76 -76
  70. package/lib/models/contas/parametros_compartilhados.d.ts +4 -4
  71. package/lib/models/contas/parametros_compartilhados.js +8 -8
  72. package/lib/models/contas/regimes_compensacao.d.ts +5 -5
  73. package/lib/models/contas/regimes_compensacao.js +9 -9
  74. package/lib/models/contas/solicitacoes-usuario/index.d.ts +91 -91
  75. package/lib/models/contas/solicitacoes-usuario/index.js +72 -72
  76. package/lib/models/contas/solicitacoes-usuario/solicitacoes-usuario-fire-convert.d.ts +40 -40
  77. package/lib/models/contas/solicitacoes-usuario/solicitacoes-usuario-fire-convert.js +109 -109
  78. package/lib/models/index.d.ts +13 -13
  79. package/lib/models/index.js +29 -29
  80. package/lib/models/utils/array-helpers.d.ts +3 -3
  81. package/lib/models/utils/array-helpers.js +17 -17
  82. package/lib/models/utils/boolean-helper.d.ts +3 -3
  83. package/lib/models/utils/boolean-helper.js +17 -17
  84. package/lib/models/utils/date-helper.d.ts +4 -4
  85. package/lib/models/utils/date-helper.js +21 -21
  86. package/lib/models/utils/string-helper.d.ts +5 -5
  87. package/lib/models/utils/string-helper.js +33 -33
  88. package/lib/models/utils/type-guards.d.ts +17 -17
  89. package/lib/models/utils/type-guards.js +27 -27
  90. package/lib/shared/flitModelsDependencyInjection.d.ts +24 -24
  91. package/lib/shared/flitModelsDependencyInjection.js +61 -61
  92. package/package.json +46 -46
@@ -1,60 +1,60 @@
1
- export interface RelatorioAbsenteismoDadosDiariosBase {
2
- data_hora: any;
3
- horas_previstas: any;
4
- horas_trabalhadas: any;
5
- horas_extras: any;
6
- atrasos: {
7
- porcentagem: any;
8
- horas: any;
9
- };
10
- absenteismo: {
11
- porcentagem: any;
12
- horas: any;
13
- };
14
- }
15
- export interface RelatorioAbsenteismoBase {
16
- total_horas_previstas: any;
17
- total_horas_trabalhadas: any;
18
- total_horas_extras: any;
19
- total_atrasos: {
20
- porcentagem: any;
21
- horas: any;
22
- };
23
- total_absenteismo: {
24
- porcentagem: any;
25
- horas: any;
26
- };
27
- relatorio_dados_diarios: RelatorioAbsenteismoDadosDiariosBase[];
28
- }
29
- export declare class RelatorioAbsenteismoDadosDiarios implements RelatorioAbsenteismoDadosDiariosBase {
30
- data_hora: string;
31
- horas_previstas: number;
32
- horas_trabalhadas: number;
33
- horas_extras: number;
34
- atrasos: {
35
- porcentagem: number;
36
- horas: number;
37
- };
38
- absenteismo: {
39
- porcentagem: number;
40
- horas: number;
41
- };
42
- constructor({ data_hora, horas_previstas, horas_trabalhadas, horas_extras, atrasos, absenteismo, }: RelatorioAbsenteismoDadosDiarios);
43
- }
44
- export declare class RelatorioAbsenteismo implements RelatorioAbsenteismoBase {
45
- _id: string;
46
- _usuario: any;
47
- total_horas_previstas: number;
48
- total_horas_trabalhadas: number;
49
- total_horas_extras: number;
50
- total_atrasos: {
51
- porcentagem: number;
52
- horas: number;
53
- };
54
- total_absenteismo: {
55
- porcentagem: number;
56
- horas: number;
57
- };
58
- relatorio_dados_diarios: RelatorioAbsenteismoDadosDiarios[];
59
- constructor({ _id, _usuario, total_horas_previstas, total_horas_trabalhadas, total_horas_extras, total_atrasos, total_absenteismo, relatorio_dados_diarios, }: RelatorioAbsenteismo);
60
- }
1
+ export interface RelatorioAbsenteismoDadosDiariosBase {
2
+ data_hora: any;
3
+ horas_previstas: any;
4
+ horas_trabalhadas: any;
5
+ horas_extras: any;
6
+ atrasos: {
7
+ porcentagem: any;
8
+ horas: any;
9
+ };
10
+ absenteismo: {
11
+ porcentagem: any;
12
+ horas: any;
13
+ };
14
+ }
15
+ export interface RelatorioAbsenteismoBase {
16
+ total_horas_previstas: any;
17
+ total_horas_trabalhadas: any;
18
+ total_horas_extras: any;
19
+ total_atrasos: {
20
+ porcentagem: any;
21
+ horas: any;
22
+ };
23
+ total_absenteismo: {
24
+ porcentagem: any;
25
+ horas: any;
26
+ };
27
+ relatorio_dados_diarios: RelatorioAbsenteismoDadosDiariosBase[];
28
+ }
29
+ export declare class RelatorioAbsenteismoDadosDiarios implements RelatorioAbsenteismoDadosDiariosBase {
30
+ data_hora: string;
31
+ horas_previstas: number;
32
+ horas_trabalhadas: number;
33
+ horas_extras: number;
34
+ atrasos: {
35
+ porcentagem: number;
36
+ horas: number;
37
+ };
38
+ absenteismo: {
39
+ porcentagem: number;
40
+ horas: number;
41
+ };
42
+ constructor({ data_hora, horas_previstas, horas_trabalhadas, horas_extras, atrasos, absenteismo, }: RelatorioAbsenteismoDadosDiarios);
43
+ }
44
+ export declare class RelatorioAbsenteismo implements RelatorioAbsenteismoBase {
45
+ _id: string;
46
+ _usuario: any;
47
+ total_horas_previstas: number;
48
+ total_horas_trabalhadas: number;
49
+ total_horas_extras: number;
50
+ total_atrasos: {
51
+ porcentagem: number;
52
+ horas: number;
53
+ };
54
+ total_absenteismo: {
55
+ porcentagem: number;
56
+ horas: number;
57
+ };
58
+ relatorio_dados_diarios: RelatorioAbsenteismoDadosDiarios[];
59
+ constructor({ _id, _usuario, total_horas_previstas, total_horas_trabalhadas, total_horas_extras, total_atrasos, total_absenteismo, relatorio_dados_diarios, }: RelatorioAbsenteismo);
60
+ }
@@ -1,45 +1,45 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RelatorioAbsenteismo = exports.RelatorioAbsenteismoDadosDiarios = void 0;
4
- var RelatorioAbsenteismoDadosDiarios = /** @class */ (function () {
5
- function RelatorioAbsenteismoDadosDiarios(_a) {
6
- var data_hora = _a.data_hora, horas_previstas = _a.horas_previstas, horas_trabalhadas = _a.horas_trabalhadas, horas_extras = _a.horas_extras, atrasos = _a.atrasos, absenteismo = _a.absenteismo;
7
- var _b, _c, _d, _e;
8
- this.data_hora = data_hora !== null && data_hora !== void 0 ? data_hora : null;
9
- this.horas_previstas = horas_previstas !== null && horas_previstas !== void 0 ? horas_previstas : 0;
10
- this.horas_trabalhadas = horas_trabalhadas !== null && horas_trabalhadas !== void 0 ? horas_trabalhadas : 0;
11
- this.horas_extras = horas_extras !== null && horas_extras !== void 0 ? horas_extras : 0;
12
- this.atrasos = {
13
- porcentagem: (_b = atrasos.porcentagem) !== null && _b !== void 0 ? _b : 0,
14
- horas: (_c = atrasos.horas) !== null && _c !== void 0 ? _c : 0,
15
- };
16
- this.absenteismo = {
17
- porcentagem: (_d = absenteismo.porcentagem) !== null && _d !== void 0 ? _d : 0,
18
- horas: (_e = absenteismo.horas) !== null && _e !== void 0 ? _e : 0,
19
- };
20
- }
21
- return RelatorioAbsenteismoDadosDiarios;
22
- }());
23
- exports.RelatorioAbsenteismoDadosDiarios = RelatorioAbsenteismoDadosDiarios;
24
- var RelatorioAbsenteismo = /** @class */ (function () {
25
- function RelatorioAbsenteismo(_a) {
26
- var _id = _a._id, _usuario = _a._usuario, total_horas_previstas = _a.total_horas_previstas, total_horas_trabalhadas = _a.total_horas_trabalhadas, total_horas_extras = _a.total_horas_extras, total_atrasos = _a.total_atrasos, total_absenteismo = _a.total_absenteismo, relatorio_dados_diarios = _a.relatorio_dados_diarios;
27
- var _b, _c, _d, _e;
28
- this._id = _id !== null && _id !== void 0 ? _id : '';
29
- this._usuario = _usuario !== null && _usuario !== void 0 ? _usuario : '';
30
- this.total_horas_previstas = total_horas_previstas !== null && total_horas_previstas !== void 0 ? total_horas_previstas : 0;
31
- this.total_horas_trabalhadas = total_horas_trabalhadas !== null && total_horas_trabalhadas !== void 0 ? total_horas_trabalhadas : 0;
32
- this.total_horas_extras = total_horas_extras !== null && total_horas_extras !== void 0 ? total_horas_extras : 0;
33
- this.total_atrasos = {
34
- porcentagem: (_b = total_atrasos.porcentagem) !== null && _b !== void 0 ? _b : 0,
35
- horas: (_c = total_atrasos.horas) !== null && _c !== void 0 ? _c : 0,
36
- };
37
- this.total_absenteismo = {
38
- porcentagem: (_d = total_absenteismo.porcentagem) !== null && _d !== void 0 ? _d : 0,
39
- horas: (_e = total_absenteismo.horas) !== null && _e !== void 0 ? _e : 0,
40
- };
41
- this.relatorio_dados_diarios = relatorio_dados_diarios !== null && relatorio_dados_diarios !== void 0 ? relatorio_dados_diarios : [];
42
- }
43
- return RelatorioAbsenteismo;
44
- }());
45
- exports.RelatorioAbsenteismo = RelatorioAbsenteismo;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RelatorioAbsenteismo = exports.RelatorioAbsenteismoDadosDiarios = void 0;
4
+ var RelatorioAbsenteismoDadosDiarios = /** @class */ (function () {
5
+ function RelatorioAbsenteismoDadosDiarios(_a) {
6
+ var data_hora = _a.data_hora, horas_previstas = _a.horas_previstas, horas_trabalhadas = _a.horas_trabalhadas, horas_extras = _a.horas_extras, atrasos = _a.atrasos, absenteismo = _a.absenteismo;
7
+ var _b, _c, _d, _e;
8
+ this.data_hora = data_hora !== null && data_hora !== void 0 ? data_hora : null;
9
+ this.horas_previstas = horas_previstas !== null && horas_previstas !== void 0 ? horas_previstas : 0;
10
+ this.horas_trabalhadas = horas_trabalhadas !== null && horas_trabalhadas !== void 0 ? horas_trabalhadas : 0;
11
+ this.horas_extras = horas_extras !== null && horas_extras !== void 0 ? horas_extras : 0;
12
+ this.atrasos = {
13
+ porcentagem: (_b = atrasos.porcentagem) !== null && _b !== void 0 ? _b : 0,
14
+ horas: (_c = atrasos.horas) !== null && _c !== void 0 ? _c : 0,
15
+ };
16
+ this.absenteismo = {
17
+ porcentagem: (_d = absenteismo.porcentagem) !== null && _d !== void 0 ? _d : 0,
18
+ horas: (_e = absenteismo.horas) !== null && _e !== void 0 ? _e : 0,
19
+ };
20
+ }
21
+ return RelatorioAbsenteismoDadosDiarios;
22
+ }());
23
+ exports.RelatorioAbsenteismoDadosDiarios = RelatorioAbsenteismoDadosDiarios;
24
+ var RelatorioAbsenteismo = /** @class */ (function () {
25
+ function RelatorioAbsenteismo(_a) {
26
+ var _id = _a._id, _usuario = _a._usuario, total_horas_previstas = _a.total_horas_previstas, total_horas_trabalhadas = _a.total_horas_trabalhadas, total_horas_extras = _a.total_horas_extras, total_atrasos = _a.total_atrasos, total_absenteismo = _a.total_absenteismo, relatorio_dados_diarios = _a.relatorio_dados_diarios;
27
+ var _b, _c, _d, _e;
28
+ this._id = _id !== null && _id !== void 0 ? _id : '';
29
+ this._usuario = _usuario !== null && _usuario !== void 0 ? _usuario : '';
30
+ this.total_horas_previstas = total_horas_previstas !== null && total_horas_previstas !== void 0 ? total_horas_previstas : 0;
31
+ this.total_horas_trabalhadas = total_horas_trabalhadas !== null && total_horas_trabalhadas !== void 0 ? total_horas_trabalhadas : 0;
32
+ this.total_horas_extras = total_horas_extras !== null && total_horas_extras !== void 0 ? total_horas_extras : 0;
33
+ this.total_atrasos = {
34
+ porcentagem: (_b = total_atrasos.porcentagem) !== null && _b !== void 0 ? _b : 0,
35
+ horas: (_c = total_atrasos.horas) !== null && _c !== void 0 ? _c : 0,
36
+ };
37
+ this.total_absenteismo = {
38
+ porcentagem: (_d = total_absenteismo.porcentagem) !== null && _d !== void 0 ? _d : 0,
39
+ horas: (_e = total_absenteismo.horas) !== null && _e !== void 0 ? _e : 0,
40
+ };
41
+ this.relatorio_dados_diarios = relatorio_dados_diarios !== null && relatorio_dados_diarios !== void 0 ? relatorio_dados_diarios : [];
42
+ }
43
+ return RelatorioAbsenteismo;
44
+ }());
45
+ exports.RelatorioAbsenteismo = RelatorioAbsenteismo;
@@ -1,8 +1,8 @@
1
- import { ExportarRelatorioRequest } from '../exportar_relatorio';
2
- import { OnCallBuscarRelatorioAbsenteismoRequestModel, OnCallBuscarRelatorioAbsenteismoRequestModelBase } from '../oncall-buscar-relatorio-absenteismo';
3
- export interface OnCallExportarRelatorioAbsenteismoRequestModelBase extends ExportarRelatorioRequest {
4
- query: OnCallBuscarRelatorioAbsenteismoRequestModelBase;
5
- }
6
- export interface OnCallExportarRelatorioAbsenteismoRequestModel extends ExportarRelatorioRequest {
7
- query: OnCallBuscarRelatorioAbsenteismoRequestModel;
8
- }
1
+ import { ExportarRelatorioRequest } from '../exportar_relatorio';
2
+ import { OnCallBuscarRelatorioAbsenteismoRequestModel, OnCallBuscarRelatorioAbsenteismoRequestModelBase } from '../oncall-buscar-relatorio-absenteismo';
3
+ export interface OnCallExportarRelatorioAbsenteismoRequestModelBase extends ExportarRelatorioRequest {
4
+ query: OnCallBuscarRelatorioAbsenteismoRequestModelBase;
5
+ }
6
+ export interface OnCallExportarRelatorioAbsenteismoRequestModel extends ExportarRelatorioRequest {
7
+ query: OnCallBuscarRelatorioAbsenteismoRequestModel;
8
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,30 +1,30 @@
1
- export * from './modificador-fire-convert';
2
- export declare enum EnumAuditoriaModificadorTipo {
3
- USUARIO = "USUARIO",
4
- API_ECONTADOR = "API_ECONTADOR",
5
- API_DOMINIO = "API_DOMINIO",
6
- INTERNO = "INTERNO"
7
- }
8
- export interface AuditoriaModificadorBase {
9
- id: string;
10
- ref: any;
11
- tipo: EnumAuditoriaModificadorTipo;
12
- nome: string;
13
- documento: string;
14
- email: string;
15
- }
16
- /**
17
- * Internal class auditoria doc.
18
- *
19
- * @export
20
- * @class Lancamento
21
- */
22
- export declare class AuditoriaModificador implements AuditoriaModificadorBase {
23
- id: string;
24
- ref: string;
25
- tipo: EnumAuditoriaModificadorTipo;
26
- nome: string;
27
- documento: string;
28
- email: string;
29
- constructor(lancamentoPayload: Partial<AuditoriaModificador>);
30
- }
1
+ export * from './modificador-fire-convert';
2
+ export declare enum EnumAuditoriaModificadorTipo {
3
+ USUARIO = "USUARIO",
4
+ API_ECONTADOR = "API_ECONTADOR",
5
+ API_DOMINIO = "API_DOMINIO",
6
+ INTERNO = "INTERNO"
7
+ }
8
+ export interface AuditoriaModificadorBase {
9
+ id: string;
10
+ ref: any;
11
+ tipo: EnumAuditoriaModificadorTipo;
12
+ nome: string;
13
+ documento: string;
14
+ email: string;
15
+ }
16
+ /**
17
+ * Internal class auditoria doc.
18
+ *
19
+ * @export
20
+ * @class Lancamento
21
+ */
22
+ export declare class AuditoriaModificador implements AuditoriaModificadorBase {
23
+ id: string;
24
+ ref: string;
25
+ tipo: EnumAuditoriaModificadorTipo;
26
+ nome: string;
27
+ documento: string;
28
+ email: string;
29
+ constructor(lancamentoPayload: Partial<AuditoriaModificador>);
30
+ }
@@ -1,44 +1,44 @@
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
- exports.AuditoriaModificador = exports.EnumAuditoriaModificadorTipo = void 0;
18
- __exportStar(require("./modificador-fire-convert"), exports);
19
- var EnumAuditoriaModificadorTipo;
20
- (function (EnumAuditoriaModificadorTipo) {
21
- EnumAuditoriaModificadorTipo["USUARIO"] = "USUARIO";
22
- EnumAuditoriaModificadorTipo["API_ECONTADOR"] = "API_ECONTADOR";
23
- EnumAuditoriaModificadorTipo["API_DOMINIO"] = "API_DOMINIO";
24
- EnumAuditoriaModificadorTipo["INTERNO"] = "INTERNO";
25
- })(EnumAuditoriaModificadorTipo = exports.EnumAuditoriaModificadorTipo || (exports.EnumAuditoriaModificadorTipo = {}));
26
- /**
27
- * Internal class auditoria doc.
28
- *
29
- * @export
30
- * @class Lancamento
31
- */
32
- var AuditoriaModificador = /** @class */ (function () {
33
- function AuditoriaModificador(lancamentoPayload) {
34
- var _a, _b, _c, _d, _e, _f;
35
- this.id = (_a = lancamentoPayload.id) !== null && _a !== void 0 ? _a : undefined;
36
- this.ref = (_b = lancamentoPayload.ref) !== null && _b !== void 0 ? _b : undefined;
37
- this.tipo = (_c = lancamentoPayload.tipo) !== null && _c !== void 0 ? _c : undefined;
38
- this.nome = (_d = lancamentoPayload.nome) !== null && _d !== void 0 ? _d : undefined;
39
- this.documento = (_e = lancamentoPayload.documento) !== null && _e !== void 0 ? _e : undefined;
40
- this.email = (_f = lancamentoPayload.email) !== null && _f !== void 0 ? _f : undefined;
41
- }
42
- return AuditoriaModificador;
43
- }());
44
- exports.AuditoriaModificador = AuditoriaModificador;
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
+ exports.AuditoriaModificador = exports.EnumAuditoriaModificadorTipo = void 0;
18
+ __exportStar(require("./modificador-fire-convert"), exports);
19
+ var EnumAuditoriaModificadorTipo;
20
+ (function (EnumAuditoriaModificadorTipo) {
21
+ EnumAuditoriaModificadorTipo["USUARIO"] = "USUARIO";
22
+ EnumAuditoriaModificadorTipo["API_ECONTADOR"] = "API_ECONTADOR";
23
+ EnumAuditoriaModificadorTipo["API_DOMINIO"] = "API_DOMINIO";
24
+ EnumAuditoriaModificadorTipo["INTERNO"] = "INTERNO";
25
+ })(EnumAuditoriaModificadorTipo = exports.EnumAuditoriaModificadorTipo || (exports.EnumAuditoriaModificadorTipo = {}));
26
+ /**
27
+ * Internal class auditoria doc.
28
+ *
29
+ * @export
30
+ * @class Lancamento
31
+ */
32
+ var AuditoriaModificador = /** @class */ (function () {
33
+ function AuditoriaModificador(lancamentoPayload) {
34
+ var _a, _b, _c, _d, _e, _f;
35
+ this.id = (_a = lancamentoPayload.id) !== null && _a !== void 0 ? _a : undefined;
36
+ this.ref = (_b = lancamentoPayload.ref) !== null && _b !== void 0 ? _b : undefined;
37
+ this.tipo = (_c = lancamentoPayload.tipo) !== null && _c !== void 0 ? _c : undefined;
38
+ this.nome = (_d = lancamentoPayload.nome) !== null && _d !== void 0 ? _d : undefined;
39
+ this.documento = (_e = lancamentoPayload.documento) !== null && _e !== void 0 ? _e : undefined;
40
+ this.email = (_f = lancamentoPayload.email) !== null && _f !== void 0 ? _f : undefined;
41
+ }
42
+ return AuditoriaModificador;
43
+ }());
44
+ exports.AuditoriaModificador = AuditoriaModificador;
@@ -1,14 +1,14 @@
1
- import { AuditoriaModificador, AuditoriaModificadorBase, EnumAuditoriaModificadorTipo } from '.';
2
- import { FirebaseDocumentReferenceGeneric, FirebaseDocumentSnapshotGeneric, FirebaseQueryDocumentSnapshotGeneric } from '../../../../shared/flitModelsDependencyInjection';
3
- export declare class AuditoriaModificadorFirestoreData implements AuditoriaModificadorBase {
4
- id: string;
5
- ref: FirebaseDocumentReferenceGeneric;
6
- tipo: EnumAuditoriaModificadorTipo;
7
- nome: string;
8
- documento: string;
9
- email: string;
10
- }
11
- export declare abstract class AuditoriaModificadorFireConvert {
12
- static fromFirestore(doc: FirebaseDocumentSnapshotGeneric | FirebaseQueryDocumentSnapshotGeneric): AuditoriaModificador;
13
- static toFirestore(auditoriaModificador: AuditoriaModificador): Partial<AuditoriaModificadorFirestoreData>;
14
- }
1
+ import { AuditoriaModificador, AuditoriaModificadorBase, EnumAuditoriaModificadorTipo } from '.';
2
+ import { FirebaseDocumentReferenceGeneric, FirebaseDocumentSnapshotGeneric, FirebaseQueryDocumentSnapshotGeneric } from '../../../../shared/flitModelsDependencyInjection';
3
+ export declare class AuditoriaModificadorFirestoreData implements AuditoriaModificadorBase {
4
+ id: string;
5
+ ref: FirebaseDocumentReferenceGeneric;
6
+ tipo: EnumAuditoriaModificadorTipo;
7
+ nome: string;
8
+ documento: string;
9
+ email: string;
10
+ }
11
+ export declare abstract class AuditoriaModificadorFireConvert {
12
+ static fromFirestore(doc: FirebaseDocumentSnapshotGeneric | FirebaseQueryDocumentSnapshotGeneric): AuditoriaModificador;
13
+ static toFirestore(auditoriaModificador: AuditoriaModificador): Partial<AuditoriaModificadorFirestoreData>;
14
+ }
@@ -1,43 +1,43 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AuditoriaModificadorFireConvert = exports.AuditoriaModificadorFirestoreData = void 0;
4
- var lodash_1 = require("lodash");
5
- var _1 = require(".");
6
- var flitModelsDependencyInjection_1 = require("../../../../shared/flitModelsDependencyInjection");
7
- var string_helper_1 = require("../../../utils/string-helper");
8
- var AuditoriaModificadorFirestoreData = /** @class */ (function () {
9
- function AuditoriaModificadorFirestoreData() {
10
- }
11
- return AuditoriaModificadorFirestoreData;
12
- }());
13
- exports.AuditoriaModificadorFirestoreData = AuditoriaModificadorFirestoreData;
14
- var AuditoriaModificadorFireConvert = /** @class */ (function () {
15
- function AuditoriaModificadorFireConvert() {
16
- }
17
- AuditoriaModificadorFireConvert.fromFirestore = function (doc) {
18
- var _a, _b, _c, _d, _e;
19
- var docData = ((_a = doc.data()) !== null && _a !== void 0 ? _a : {});
20
- return new _1.AuditoriaModificador({
21
- id: (_b = docData.id) !== null && _b !== void 0 ? _b : null,
22
- ref: (_d = (_c = docData.ref) === null || _c === void 0 ? void 0 : _c.path) !== null && _d !== void 0 ? _d : null,
23
- tipo: (_e = docData.tipo) !== null && _e !== void 0 ? _e : null,
24
- nome: string_helper_1.StringHelper.trim(docData.nome, null),
25
- documento: string_helper_1.StringHelper.check(docData.documento, null),
26
- email: string_helper_1.StringHelper.lower(docData.email, null),
27
- });
28
- };
29
- AuditoriaModificadorFireConvert.toFirestore = function (auditoriaModificador) {
30
- var _a, _b, _c;
31
- var auditoriaModificadorFire = {
32
- id: (_a = auditoriaModificador.id) !== null && _a !== void 0 ? _a : null,
33
- ref: (_b = flitModelsDependencyInjection_1.FlitModelsDependencyInjection.DocumentReferenceFromPath(auditoriaModificador.ref)) !== null && _b !== void 0 ? _b : null,
34
- tipo: (_c = auditoriaModificador.tipo) !== null && _c !== void 0 ? _c : null,
35
- nome: string_helper_1.StringHelper.trim(auditoriaModificador.nome, null),
36
- documento: string_helper_1.StringHelper.check(auditoriaModificador.documento, null),
37
- email: string_helper_1.StringHelper.lower(auditoriaModificador.email, null),
38
- };
39
- return (0, lodash_1.omitBy)(auditoriaModificadorFire, lodash_1.isUndefined);
40
- };
41
- return AuditoriaModificadorFireConvert;
42
- }());
43
- exports.AuditoriaModificadorFireConvert = AuditoriaModificadorFireConvert;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuditoriaModificadorFireConvert = exports.AuditoriaModificadorFirestoreData = void 0;
4
+ var lodash_1 = require("lodash");
5
+ var _1 = require(".");
6
+ var flitModelsDependencyInjection_1 = require("../../../../shared/flitModelsDependencyInjection");
7
+ var string_helper_1 = require("../../../utils/string-helper");
8
+ var AuditoriaModificadorFirestoreData = /** @class */ (function () {
9
+ function AuditoriaModificadorFirestoreData() {
10
+ }
11
+ return AuditoriaModificadorFirestoreData;
12
+ }());
13
+ exports.AuditoriaModificadorFirestoreData = AuditoriaModificadorFirestoreData;
14
+ var AuditoriaModificadorFireConvert = /** @class */ (function () {
15
+ function AuditoriaModificadorFireConvert() {
16
+ }
17
+ AuditoriaModificadorFireConvert.fromFirestore = function (doc) {
18
+ var _a, _b, _c, _d, _e;
19
+ var docData = ((_a = doc.data()) !== null && _a !== void 0 ? _a : {});
20
+ return new _1.AuditoriaModificador({
21
+ id: (_b = docData.id) !== null && _b !== void 0 ? _b : null,
22
+ ref: (_d = (_c = docData.ref) === null || _c === void 0 ? void 0 : _c.path) !== null && _d !== void 0 ? _d : null,
23
+ tipo: (_e = docData.tipo) !== null && _e !== void 0 ? _e : null,
24
+ nome: string_helper_1.StringHelper.trim(docData.nome, null),
25
+ documento: string_helper_1.StringHelper.check(docData.documento, null),
26
+ email: string_helper_1.StringHelper.lower(docData.email, null),
27
+ });
28
+ };
29
+ AuditoriaModificadorFireConvert.toFirestore = function (auditoriaModificador) {
30
+ var _a, _b, _c;
31
+ var auditoriaModificadorFire = {
32
+ id: (_a = auditoriaModificador.id) !== null && _a !== void 0 ? _a : null,
33
+ ref: (_b = flitModelsDependencyInjection_1.FlitModelsDependencyInjection.DocumentReferenceFromPath(auditoriaModificador.ref)) !== null && _b !== void 0 ? _b : null,
34
+ tipo: (_c = auditoriaModificador.tipo) !== null && _c !== void 0 ? _c : null,
35
+ nome: string_helper_1.StringHelper.trim(auditoriaModificador.nome, null),
36
+ documento: string_helper_1.StringHelper.check(auditoriaModificador.documento, null),
37
+ email: string_helper_1.StringHelper.lower(auditoriaModificador.email, null),
38
+ };
39
+ return (0, lodash_1.omitBy)(auditoriaModificadorFire, lodash_1.isUndefined);
40
+ };
41
+ return AuditoriaModificadorFireConvert;
42
+ }());
43
+ exports.AuditoriaModificadorFireConvert = AuditoriaModificadorFireConvert;
@@ -1,13 +1,13 @@
1
- import { Cargo, CargoBase } from '.';
2
- import { FirebaseDocumentSnapshotGeneric, FirebaseTimestampGeneric } from '../../../shared/flitModelsDependencyInjection';
3
- export declare class CargoFirestoreData implements CargoBase {
4
- cbo: string;
5
- data_atualizacao_doc: FirebaseTimestampGeneric;
6
- data_criacao_doc: FirebaseTimestampGeneric;
7
- excluido: boolean;
8
- nome: string;
9
- }
10
- export declare abstract class CargoFireConvert {
11
- static fromFirestore(doc: FirebaseDocumentSnapshotGeneric | FirebaseDocumentSnapshotGeneric): Cargo;
12
- static toFirestore(cargo: Cargo): Partial<CargoFirestoreData>;
13
- }
1
+ import { Cargo, CargoBase } from '.';
2
+ import { FirebaseDocumentSnapshotGeneric, FirebaseTimestampGeneric } from '../../../shared/flitModelsDependencyInjection';
3
+ export declare class CargoFirestoreData implements CargoBase {
4
+ cbo: string;
5
+ data_atualizacao_doc: FirebaseTimestampGeneric;
6
+ data_criacao_doc: FirebaseTimestampGeneric;
7
+ excluido: boolean;
8
+ nome: string;
9
+ }
10
+ export declare abstract class CargoFireConvert {
11
+ static fromFirestore(doc: FirebaseDocumentSnapshotGeneric | FirebaseDocumentSnapshotGeneric): Cargo;
12
+ static toFirestore(cargo: Cargo): Partial<CargoFirestoreData>;
13
+ }
@@ -1,42 +1,42 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CargoFireConvert = exports.CargoFirestoreData = void 0;
4
- var lodash_1 = require("lodash");
5
- var _1 = require(".");
6
- var flitModelsDependencyInjection_1 = require("../../../shared/flitModelsDependencyInjection");
7
- var CargoFirestoreData = /** @class */ (function () {
8
- function CargoFirestoreData() {
9
- }
10
- return CargoFirestoreData;
11
- }());
12
- exports.CargoFirestoreData = CargoFirestoreData;
13
- var CargoFireConvert = /** @class */ (function () {
14
- function CargoFireConvert() {
15
- }
16
- CargoFireConvert.fromFirestore = function (doc) {
17
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
18
- var docData = ((_a = doc.data()) !== null && _a !== void 0 ? _a : {});
19
- return new _1.Cargo({
20
- _id: (_b = doc.id) !== null && _b !== void 0 ? _b : null,
21
- _path: (_c = doc.ref.path) !== null && _c !== void 0 ? _c : null,
22
- cbo: (_d = docData.cbo) !== null && _d !== void 0 ? _d : null,
23
- data_atualizacao_doc: (_f = (_e = docData.data_atualizacao_doc) === null || _e === void 0 ? void 0 : _e.toDate()) !== null && _f !== void 0 ? _f : null,
24
- data_criacao_doc: (_h = (_g = docData.data_criacao_doc) === null || _g === void 0 ? void 0 : _g.toDate()) !== null && _h !== void 0 ? _h : null,
25
- excluido: (_j = docData.excluido) !== null && _j !== void 0 ? _j : false,
26
- nome: (_k = docData.nome) !== null && _k !== void 0 ? _k : null,
27
- });
28
- };
29
- CargoFireConvert.toFirestore = function (cargo) {
30
- var _a, _b, _c, _d, _e;
31
- var cargoFire = {
32
- cbo: (_a = cargo.cbo) !== null && _a !== void 0 ? _a : null,
33
- data_atualizacao_doc: (_b = flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(cargo.data_atualizacao_doc)) !== null && _b !== void 0 ? _b : null,
34
- data_criacao_doc: (_c = flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(cargo.data_criacao_doc)) !== null && _c !== void 0 ? _c : null,
35
- excluido: (_d = cargo.excluido) !== null && _d !== void 0 ? _d : false,
36
- nome: (_e = cargo.nome) !== null && _e !== void 0 ? _e : null,
37
- };
38
- return (0, lodash_1.omitBy)(cargoFire, lodash_1.isUndefined);
39
- };
40
- return CargoFireConvert;
41
- }());
42
- exports.CargoFireConvert = CargoFireConvert;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CargoFireConvert = exports.CargoFirestoreData = void 0;
4
+ var lodash_1 = require("lodash");
5
+ var _1 = require(".");
6
+ var flitModelsDependencyInjection_1 = require("../../../shared/flitModelsDependencyInjection");
7
+ var CargoFirestoreData = /** @class */ (function () {
8
+ function CargoFirestoreData() {
9
+ }
10
+ return CargoFirestoreData;
11
+ }());
12
+ exports.CargoFirestoreData = CargoFirestoreData;
13
+ var CargoFireConvert = /** @class */ (function () {
14
+ function CargoFireConvert() {
15
+ }
16
+ CargoFireConvert.fromFirestore = function (doc) {
17
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
18
+ var docData = ((_a = doc.data()) !== null && _a !== void 0 ? _a : {});
19
+ return new _1.Cargo({
20
+ _id: (_b = doc.id) !== null && _b !== void 0 ? _b : null,
21
+ _path: (_c = doc.ref.path) !== null && _c !== void 0 ? _c : null,
22
+ cbo: (_d = docData.cbo) !== null && _d !== void 0 ? _d : null,
23
+ data_atualizacao_doc: (_f = (_e = docData.data_atualizacao_doc) === null || _e === void 0 ? void 0 : _e.toDate()) !== null && _f !== void 0 ? _f : null,
24
+ data_criacao_doc: (_h = (_g = docData.data_criacao_doc) === null || _g === void 0 ? void 0 : _g.toDate()) !== null && _h !== void 0 ? _h : null,
25
+ excluido: (_j = docData.excluido) !== null && _j !== void 0 ? _j : false,
26
+ nome: (_k = docData.nome) !== null && _k !== void 0 ? _k : null,
27
+ });
28
+ };
29
+ CargoFireConvert.toFirestore = function (cargo) {
30
+ var _a, _b, _c, _d, _e;
31
+ var cargoFire = {
32
+ cbo: (_a = cargo.cbo) !== null && _a !== void 0 ? _a : null,
33
+ data_atualizacao_doc: (_b = flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(cargo.data_atualizacao_doc)) !== null && _b !== void 0 ? _b : null,
34
+ data_criacao_doc: (_c = flitModelsDependencyInjection_1.FlitModelsDependencyInjection.TimestampFromDate(cargo.data_criacao_doc)) !== null && _c !== void 0 ? _c : null,
35
+ excluido: (_d = cargo.excluido) !== null && _d !== void 0 ? _d : false,
36
+ nome: (_e = cargo.nome) !== null && _e !== void 0 ? _e : null,
37
+ };
38
+ return (0, lodash_1.omitBy)(cargoFire, lodash_1.isUndefined);
39
+ };
40
+ return CargoFireConvert;
41
+ }());
42
+ exports.CargoFireConvert = CargoFireConvert;