flit-models 3.4.12 → 3.4.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.
@@ -23,7 +23,10 @@ export declare enum Telas {
23
23
  SOLICITACOES_COLABS = "SOLICITACOES_COLABS",
24
24
  EXPORTAR_DADOS = "EXPORTAR_DADOS",
25
25
  IMPORTAR_MARCACOES = "IMPORTAR_MARCACOES",
26
+ IA_ESTRATEGICA = "IA_ESTRATEGICA",
26
27
  AUDITOR_IA_MARCACOES = "AUDITOR_IA_MARCACOES",
28
+ FERIAS_FOLGAS = "FERIAS_FOLGAS",
29
+ GESTAO_ESCALAS = "GESTAO_ESCALAS",
27
30
  FOLHA_PONTO = "FOLHA_PONTO",
28
31
  RELATORIOS_PONTO = "RELATORIOS_PONTO",
29
32
  RELATORIOS_SALDOS = "RELATORIOS_SALDOS",
@@ -58,5 +61,5 @@ export declare class Perfil implements PerfilBase {
58
61
  modificador?: AuditoriaModificador;
59
62
  nome: string;
60
63
  telas: Telas[];
61
- constructor(perfilPayload: Partial<Perfil>);
64
+ constructor(perfilPayload?: Partial<Perfil>);
62
65
  }
@@ -47,9 +47,12 @@ var Telas;
47
47
  Telas["IMPORTAR_MARCACOES"] = "IMPORTAR_MARCACOES";
48
48
  // Frequência -->
49
49
  // <-- Segurança
50
+ Telas["IA_ESTRATEGICA"] = "IA_ESTRATEGICA";
50
51
  Telas["AUDITOR_IA_MARCACOES"] = "AUDITOR_IA_MARCACOES";
52
+ Telas["FERIAS_FOLGAS"] = "FERIAS_FOLGAS";
53
+ Telas["GESTAO_ESCALAS"] = "GESTAO_ESCALAS";
51
54
  // Segurança -->
52
- // #region Relatorios
55
+ // <-- Relatorios
53
56
  Telas["FOLHA_PONTO"] = "FOLHA_PONTO";
54
57
  Telas["RELATORIOS_PONTO"] = "RELATORIOS_PONTO";
55
58
  Telas["RELATORIOS_SALDOS"] = "RELATORIOS_SALDOS";
@@ -57,7 +60,7 @@ var Telas;
57
60
  Telas["RELATORIOS_USUARIOS"] = "RELATORIOS_USUARIOS";
58
61
  Telas["RELATORIOS_ABSENTEISMO"] = "RELATORIOS_ABSENTEISMO";
59
62
  Telas["RELATORIOS_ARQUIVOS_GERADOS"] = "RELATORIOS_ARQUIVOS_GERADOS";
60
- // #endregion
63
+ // Relatorios -->
61
64
  // <-- Outros
62
65
  Telas["PARAMETROS_GERAIS"] = "PARAMETROS_GERAIS";
63
66
  Telas["ACESSOS"] = "ACESSOS";
@@ -66,58 +69,11 @@ var Telas;
66
69
  Telas["INTEGRACAO_API_FLIT"] = "INTEGRACAO_API_FLIT";
67
70
  // Outros -->
68
71
  })(Telas = exports.Telas || (exports.Telas = {}));
69
- exports.TODAS_TELAS = [
70
- // <-- Favoritos
71
- Telas.INICIO,
72
- Telas.DASHBOARD,
73
- // Favoritos -->
74
- // <-- Cadastros
75
- Telas.CADASTROS_GERAIS,
76
- Telas.CADASTROS_EMPRESAS,
77
- Telas.CADASTROS_CARGOS,
78
- Telas.CADASTROS_DEPARTAMENTOS,
79
- Telas.CADASTROS_PERIMETROS,
80
- Telas.CADASTROS_OCORRENCIAS,
81
- Telas.CADASTROS_FAIXAS_HORAS_EXTRAS,
82
- Telas.CADASTROS_ESCALAS,
83
- Telas.CADASTROS_COLABORADORES,
84
- Telas.CADASTROS_FERIADOS,
85
- Telas.CADASTROS_DISPOSITIVOS,
86
- // <-- Cadastros já em novo formato
87
- // Cadastros já em novo formato -->
88
- // Cadastros -->
89
- // <-- Frequência
90
- Telas.EXCECOES,
91
- Telas.LISTAGEM_MARCACOES,
92
- Telas.LANCAMENTOS,
93
- Telas.SOLICITACOES_COLABS,
94
- Telas.AJUSTAR_JORNADAS,
95
- Telas.EXPORTAR_DADOS,
96
- Telas.IMPORTAR_MARCACOES,
97
- // Frequência -->
98
- // #region Relatorios
99
- Telas.FOLHA_PONTO,
100
- Telas.RELATORIOS_PONTO,
101
- Telas.RELATORIOS_SALDOS,
102
- Telas.RELATORIOS_SALDOS_ACUMULADOS,
103
- Telas.RELATORIOS_USUARIOS,
104
- Telas.RELATORIOS_ABSENTEISMO,
105
- Telas.RELATORIOS_ARQUIVOS_GERADOS,
106
- // #endregion
107
- // <-- Segurança
108
- Telas.AUDITOR_IA_MARCACOES,
109
- // Segurança -->
110
- // <-- Outros
111
- Telas.PARAMETROS_GERAIS,
112
- Telas.ACESSOS,
113
- Telas.AUDITORIA,
114
- Telas.INTEGRACAO_ECONTADOR_ALTERDATA,
115
- Telas.INTEGRACAO_API_FLIT,
116
- // Outros -->
117
- ];
72
+ exports.TODAS_TELAS = Object.values(Telas);
118
73
  var Perfil = /** @class */ (function () {
119
74
  // #endregion
120
75
  function Perfil(perfilPayload) {
76
+ if (perfilPayload === void 0) { perfilPayload = {}; }
121
77
  var _a, _b, _c;
122
78
  this.cargos_ref = Array.isArray(perfilPayload.cargos_ref)
123
79
  ? perfilPayload.cargos_ref
@@ -18,6 +18,11 @@ export declare enum UsuarioEnumParametrosTipoHorarioNoturno {
18
18
  PECUARIA = "PECUARIA",
19
19
  CUSTOMIZADO = "CUSTOMIZADO"
20
20
  }
21
+ export interface IAEstrategicaConfiguracao {
22
+ enviar_relatorio_whatsapp: boolean;
23
+ enviar_relatorio_email: boolean;
24
+ ativo: boolean;
25
+ }
21
26
  export declare const UsuarioStatusArray: {
22
27
  label: string;
23
28
  key: UsuarioStatus;
@@ -45,14 +50,14 @@ export declare class Usuario {
45
50
  perimetros?: any[];
46
51
  perfil?: any;
47
52
  };
48
- cargo_ref: string;
49
- esocial_categoria_de_trabalhador_ref: string;
50
- conta_ref: string;
51
- departamento_ref: string;
52
- empresa_ref: string;
53
- escala_ref: string;
54
- perimetros_refs: string[];
55
- perfil_ref: string;
53
+ cargo_ref?: string;
54
+ esocial_categoria_de_trabalhador_ref?: string;
55
+ conta_ref?: string;
56
+ departamento_ref?: string;
57
+ empresa_ref?: string;
58
+ escala_ref?: string;
59
+ perimetros_refs?: string[];
60
+ perfil_ref?: string;
56
61
  admissao: Date;
57
62
  ativo: boolean;
58
63
  avatar_atualizacao: Date;
@@ -86,6 +91,7 @@ export declare class Usuario {
86
91
  status_data_fim: Date;
87
92
  status_programado: UsuarioStatusProgramado;
88
93
  telefone: string;
94
+ ia_estrategica_configuracao?: IAEstrategicaConfiguracao;
89
95
  modificador: Partial<AuditoriaModificadorBase>;
90
96
  constructor(usuarioPayload: Usuario);
91
97
  }
@@ -50,7 +50,7 @@ exports.UsuarioStatusArray = [
50
50
  ];
51
51
  var Usuario = /** @class */ (function () {
52
52
  function Usuario(usuarioPayload) {
53
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21;
53
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22;
54
54
  this._id = (_a = usuarioPayload._id) !== null && _a !== void 0 ? _a : undefined;
55
55
  this._path = (_b = usuarioPayload._path) !== null && _b !== void 0 ? _b : undefined;
56
56
  // Inicializa internos
@@ -112,6 +112,8 @@ var Usuario = /** @class */ (function () {
112
112
  this.status_data_ini = (_19 = usuarioPayload.status_data_ini) !== null && _19 !== void 0 ? _19 : undefined;
113
113
  this.status_programado = (_20 = usuarioPayload.status_programado) !== null && _20 !== void 0 ? _20 : undefined;
114
114
  this.telefone = (_21 = usuarioPayload.telefone) !== null && _21 !== void 0 ? _21 : undefined;
115
+ this.ia_estrategica_configuracao =
116
+ (_22 = usuarioPayload.ia_estrategica_configuracao) !== null && _22 !== void 0 ? _22 : undefined;
115
117
  }
116
118
  return Usuario;
117
119
  }());
@@ -1,4 +1,4 @@
1
- import { UsuarioBeneficios, UsuarioTipoIntegracao, UsuarioParametros, UsuarioStatus, Usuario, UsuarioBase } from '.';
1
+ import { UsuarioBeneficios, UsuarioTipoIntegracao, UsuarioParametros, UsuarioStatus, Usuario, UsuarioBase, IAEstrategicaConfiguracao } from '.';
2
2
  import { AuditoriaModificadorFirestoreData } from '../auditoria/modificador';
3
3
  import { Endereco } from '../shared';
4
4
  export declare class UsuarioElasticSource implements UsuarioBase {
@@ -8,30 +8,46 @@ export declare class UsuarioElasticSource implements UsuarioBase {
8
8
  i_path?: string;
9
9
  i_type_sync?: string;
10
10
  i_updated?: string;
11
- esocial_categoria_de_trabalhador_ref: {
11
+ esocial_categoria_de_trabalhador_ref?: Partial<{
12
+ i_id: string;
12
13
  i_path: string;
13
- };
14
- conta_ref: {
14
+ [key: string]: any;
15
+ }>;
16
+ conta_ref?: Partial<{
17
+ i_id: string;
15
18
  i_path: string;
16
- };
17
- perimetros_refs: {
19
+ [key: string]: any;
20
+ }>;
21
+ perimetros_refs?: Partial<{
22
+ i_id: string;
18
23
  i_path: string;
19
- }[];
20
- cargo_ref: {
24
+ [key: string]: any;
25
+ }[]>;
26
+ cargo_ref?: Partial<{
27
+ i_id: string;
21
28
  i_path: string;
22
- };
23
- departamento_ref: {
29
+ [key: string]: any;
30
+ }>;
31
+ departamento_ref?: Partial<{
32
+ i_id: string;
24
33
  i_path: string;
25
- };
26
- empresa_ref: {
34
+ [key: string]: any;
35
+ }>;
36
+ empresa_ref?: Partial<{
37
+ i_id: string;
27
38
  i_path: string;
28
- };
29
- escala_ref: {
39
+ [key: string]: any;
40
+ }>;
41
+ escala_ref?: Partial<{
42
+ i_id: string;
30
43
  i_path: string;
31
- };
32
- perfil_ref: {
44
+ [key: string]: any;
45
+ }>;
46
+ perfil_ref?: Partial<{
47
+ i_id: string;
33
48
  i_path: string;
34
- };
49
+ [key: string]: any;
50
+ }>;
35
51
  admissao: string;
36
52
  ativo: boolean;
37
53
  avatar_atualizacao: string;
@@ -77,6 +93,7 @@ export declare class UsuarioElasticSource implements UsuarioBase {
77
93
  tipo: 'Ativo' | 'Demitido';
78
94
  };
79
95
  telefone: string;
96
+ ia_estrategica_configuracao?: IAEstrategicaConfiguracao;
80
97
  modificador: Partial<AuditoriaModificadorFirestoreData>;
81
98
  }
82
99
  export declare abstract class UsuarioElasticConvert {
@@ -17,7 +17,7 @@ var UsuarioElasticConvert = /** @class */ (function () {
17
17
  function UsuarioElasticConvert() {
18
18
  }
19
19
  UsuarioElasticConvert.fromElastic = function (doc) {
20
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25;
20
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28;
21
21
  var docData = doc;
22
22
  return new _1.Usuario({
23
23
  _id: (_a = doc === null || doc === void 0 ? void 0 : doc.i_id) !== null && _a !== void 0 ? _a : null,
@@ -142,14 +142,21 @@ var UsuarioElasticConvert = /** @class */ (function () {
142
142
  }
143
143
  : null,
144
144
  telefone: string_helper_1.StringHelper.trim(docData.telefone, null) || null,
145
+ ia_estrategica_configuracao: (docData === null || docData === void 0 ? void 0 : docData.ia_estrategica_configuracao)
146
+ ? {
147
+ ativo: boolean_helper_1.BooleanHelper.check((_12 = docData.ia_estrategica_configuracao) === null || _12 === void 0 ? void 0 : _12.ativo, false),
148
+ enviar_relatorio_email: boolean_helper_1.BooleanHelper.check((_13 = docData.ia_estrategica_configuracao) === null || _13 === void 0 ? void 0 : _13.enviar_relatorio_email, false),
149
+ enviar_relatorio_whatsapp: boolean_helper_1.BooleanHelper.check((_14 = docData.ia_estrategica_configuracao) === null || _14 === void 0 ? void 0 : _14.enviar_relatorio_whatsapp, false),
150
+ }
151
+ : undefined,
145
152
  modificador: docData.modificador
146
153
  ? (0, lodash_1.omitBy)({
147
- id: (_14 = (_13 = (_12 = docData.modificador) === null || _12 === void 0 ? void 0 : _12.ref) === null || _13 === void 0 ? void 0 : _13.id) !== null && _14 !== void 0 ? _14 : null,
148
- ref: (_17 = (_16 = (_15 = docData.modificador) === null || _15 === void 0 ? void 0 : _15.ref) === null || _16 === void 0 ? void 0 : _16.path) !== null && _17 !== void 0 ? _17 : null,
149
- tipo: (_19 = (_18 = docData.modificador) === null || _18 === void 0 ? void 0 : _18.tipo) !== null && _19 !== void 0 ? _19 : null,
150
- nome: (_21 = (_20 = docData.modificador) === null || _20 === void 0 ? void 0 : _20.nome) !== null && _21 !== void 0 ? _21 : null,
151
- documento: (_23 = (_22 = docData.modificador) === null || _22 === void 0 ? void 0 : _22.documento) !== null && _23 !== void 0 ? _23 : null,
152
- email: (_25 = (_24 = docData.modificador) === null || _24 === void 0 ? void 0 : _24.email) !== null && _25 !== void 0 ? _25 : null,
154
+ id: (_17 = (_16 = (_15 = docData.modificador) === null || _15 === void 0 ? void 0 : _15.ref) === null || _16 === void 0 ? void 0 : _16.id) !== null && _17 !== void 0 ? _17 : null,
155
+ ref: (_20 = (_19 = (_18 = docData.modificador) === null || _18 === void 0 ? void 0 : _18.ref) === null || _19 === void 0 ? void 0 : _19.path) !== null && _20 !== void 0 ? _20 : null,
156
+ tipo: (_22 = (_21 = docData.modificador) === null || _21 === void 0 ? void 0 : _21.tipo) !== null && _22 !== void 0 ? _22 : null,
157
+ nome: (_24 = (_23 = docData.modificador) === null || _23 === void 0 ? void 0 : _23.nome) !== null && _24 !== void 0 ? _24 : null,
158
+ documento: (_26 = (_25 = docData.modificador) === null || _25 === void 0 ? void 0 : _25.documento) !== null && _26 !== void 0 ? _26 : null,
159
+ email: (_28 = (_27 = docData.modificador) === null || _27 === void 0 ? void 0 : _27.email) !== null && _28 !== void 0 ? _28 : null,
153
160
  }, lodash_1.isUndefined)
154
161
  : undefined,
155
162
  });
@@ -1,4 +1,4 @@
1
- import { UsuarioBeneficios, UsuarioTipoIntegracao, UsuarioParametros, UsuarioStatus, Usuario, UsuarioBase } from '.';
1
+ import { UsuarioBeneficios, UsuarioTipoIntegracao, UsuarioParametros, UsuarioStatus, Usuario, UsuarioBase, IAEstrategicaConfiguracao } from '.';
2
2
  import { FirebaseDocumentReferenceGeneric, FirebaseDocumentSnapshotGeneric, FirebaseQueryDocumentSnapshotGeneric, FirebaseTimestampGeneric } from '../../../shared/flitModelsDependencyInjection';
3
3
  import { AuditoriaModificadorFirestoreData } from '../auditoria/modificador';
4
4
  import { Endereco } from '../shared';
@@ -54,6 +54,7 @@ export declare class UsuarioFirestoreData implements UsuarioBase {
54
54
  tipo: 'Ativo' | 'Demitido';
55
55
  };
56
56
  telefone: string;
57
+ ia_estrategica_configuracao?: IAEstrategicaConfiguracao;
57
58
  modificador: AuditoriaModificadorFirestoreData;
58
59
  }
59
60
  export declare abstract class UsuarioFireConvert {
@@ -16,7 +16,7 @@ var UsuarioFireConvert = /** @class */ (function () {
16
16
  function UsuarioFireConvert() {
17
17
  }
18
18
  UsuarioFireConvert.fromFirestore = function (doc) {
19
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39;
19
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42;
20
20
  var d = ((_a = doc.data()) !== null && _a !== void 0 ? _a : {});
21
21
  return new _1.Usuario({
22
22
  _id: (_b = doc === null || doc === void 0 ? void 0 : doc.id) !== null && _b !== void 0 ? _b : null,
@@ -136,14 +136,21 @@ var UsuarioFireConvert = /** @class */ (function () {
136
136
  }
137
137
  : null,
138
138
  telefone: string_helper_1.StringHelper.trim(d.telefone, null),
139
+ ia_estrategica_configuracao: (d === null || d === void 0 ? void 0 : d.ia_estrategica_configuracao)
140
+ ? {
141
+ ativo: boolean_helper_1.BooleanHelper.check((_26 = d.ia_estrategica_configuracao) === null || _26 === void 0 ? void 0 : _26.ativo, false),
142
+ enviar_relatorio_email: boolean_helper_1.BooleanHelper.check((_27 = d.ia_estrategica_configuracao) === null || _27 === void 0 ? void 0 : _27.enviar_relatorio_email, false),
143
+ enviar_relatorio_whatsapp: boolean_helper_1.BooleanHelper.check((_28 = d.ia_estrategica_configuracao) === null || _28 === void 0 ? void 0 : _28.enviar_relatorio_whatsapp, false),
144
+ }
145
+ : undefined,
139
146
  modificador: d.modificador
140
147
  ? (0, lodash_1.omitBy)({
141
- id: (_28 = (_27 = (_26 = d.modificador) === null || _26 === void 0 ? void 0 : _26.ref) === null || _27 === void 0 ? void 0 : _27.id) !== null && _28 !== void 0 ? _28 : null,
142
- ref: (_31 = (_30 = (_29 = d.modificador) === null || _29 === void 0 ? void 0 : _29.ref) === null || _30 === void 0 ? void 0 : _30.path) !== null && _31 !== void 0 ? _31 : null,
143
- tipo: (_33 = (_32 = d.modificador) === null || _32 === void 0 ? void 0 : _32.tipo) !== null && _33 !== void 0 ? _33 : null,
144
- nome: (_35 = (_34 = d.modificador) === null || _34 === void 0 ? void 0 : _34.nome) !== null && _35 !== void 0 ? _35 : null,
145
- documento: (_37 = (_36 = d.modificador) === null || _36 === void 0 ? void 0 : _36.documento) !== null && _37 !== void 0 ? _37 : null,
146
- email: (_39 = (_38 = d.modificador) === null || _38 === void 0 ? void 0 : _38.email) !== null && _39 !== void 0 ? _39 : null,
148
+ id: (_31 = (_30 = (_29 = d.modificador) === null || _29 === void 0 ? void 0 : _29.ref) === null || _30 === void 0 ? void 0 : _30.id) !== null && _31 !== void 0 ? _31 : null,
149
+ ref: (_34 = (_33 = (_32 = d.modificador) === null || _32 === void 0 ? void 0 : _32.ref) === null || _33 === void 0 ? void 0 : _33.path) !== null && _34 !== void 0 ? _34 : null,
150
+ tipo: (_36 = (_35 = d.modificador) === null || _35 === void 0 ? void 0 : _35.tipo) !== null && _36 !== void 0 ? _36 : null,
151
+ nome: (_38 = (_37 = d.modificador) === null || _37 === void 0 ? void 0 : _37.nome) !== null && _38 !== void 0 ? _38 : null,
152
+ documento: (_40 = (_39 = d.modificador) === null || _39 === void 0 ? void 0 : _39.documento) !== null && _40 !== void 0 ? _40 : null,
153
+ email: (_42 = (_41 = d.modificador) === null || _41 === void 0 ? void 0 : _41.email) !== null && _42 !== void 0 ? _42 : null,
147
154
  }, lodash_1.isUndefined)
148
155
  : undefined,
149
156
  });
@@ -1,4 +1,4 @@
1
- import { UsuarioBeneficios, UsuarioTipoIntegracao, UsuarioParametros, UsuarioStatus, Usuario, UsuarioBase } from '.';
1
+ import { UsuarioBeneficios, UsuarioTipoIntegracao, UsuarioParametros, UsuarioStatus, Usuario, UsuarioBase, IAEstrategicaConfiguracao } from '.';
2
2
  import { AuditoriaModificadorFirestoreData } from '../auditoria/modificador';
3
3
  import { Endereco } from '../shared';
4
4
  export declare class UsuarioJsonData implements UsuarioBase {
@@ -55,6 +55,7 @@ export declare class UsuarioJsonData implements UsuarioBase {
55
55
  tipo: 'Ativo' | 'Demitido';
56
56
  };
57
57
  telefone: string;
58
+ ia_estrategica_configuracao: IAEstrategicaConfiguracao;
58
59
  modificador: AuditoriaModificadorFirestoreData;
59
60
  }
60
61
  export declare abstract class UsuarioJsonConvert {
@@ -17,7 +17,7 @@ var UsuarioJsonConvert = /** @class */ (function () {
17
17
  function UsuarioJsonConvert() {
18
18
  }
19
19
  UsuarioJsonConvert.toJson = function (usuario) {
20
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38;
20
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41;
21
21
  var usuarioJson = {
22
22
  _id: (_a = usuario === null || usuario === void 0 ? void 0 : usuario._id) !== null && _a !== void 0 ? _a : null,
23
23
  _path: (_b = usuario === null || usuario === void 0 ? void 0 : usuario._path) !== null && _b !== void 0 ? _b : null,
@@ -141,14 +141,21 @@ var UsuarioJsonConvert = /** @class */ (function () {
141
141
  }
142
142
  : null,
143
143
  telefone: string_helper_1.StringHelper.trim(usuario.telefone, null) || null,
144
+ ia_estrategica_configuracao: (usuario === null || usuario === void 0 ? void 0 : usuario.ia_estrategica_configuracao)
145
+ ? {
146
+ ativo: boolean_helper_1.BooleanHelper.check((_25 = usuario.ia_estrategica_configuracao) === null || _25 === void 0 ? void 0 : _25.ativo, false),
147
+ enviar_relatorio_email: boolean_helper_1.BooleanHelper.check((_26 = usuario.ia_estrategica_configuracao) === null || _26 === void 0 ? void 0 : _26.enviar_relatorio_email, false),
148
+ enviar_relatorio_whatsapp: boolean_helper_1.BooleanHelper.check((_27 = usuario.ia_estrategica_configuracao) === null || _27 === void 0 ? void 0 : _27.enviar_relatorio_whatsapp, false),
149
+ }
150
+ : undefined,
144
151
  modificador: usuario.modificador
145
152
  ? (0, lodash_1.omitBy)({
146
- id: (_27 = (_26 = (_25 = usuario.modificador) === null || _25 === void 0 ? void 0 : _25.ref) === null || _26 === void 0 ? void 0 : _26.id) !== null && _27 !== void 0 ? _27 : null,
147
- ref: (_30 = (_29 = (_28 = usuario.modificador) === null || _28 === void 0 ? void 0 : _28.ref) === null || _29 === void 0 ? void 0 : _29.path) !== null && _30 !== void 0 ? _30 : null,
148
- tipo: (_32 = (_31 = usuario.modificador) === null || _31 === void 0 ? void 0 : _31.tipo) !== null && _32 !== void 0 ? _32 : null,
149
- nome: (_34 = (_33 = usuario.modificador) === null || _33 === void 0 ? void 0 : _33.nome) !== null && _34 !== void 0 ? _34 : null,
150
- documento: (_36 = (_35 = usuario.modificador) === null || _35 === void 0 ? void 0 : _35.documento) !== null && _36 !== void 0 ? _36 : null,
151
- email: (_38 = (_37 = usuario.modificador) === null || _37 === void 0 ? void 0 : _37.email) !== null && _38 !== void 0 ? _38 : null,
153
+ id: (_30 = (_29 = (_28 = usuario.modificador) === null || _28 === void 0 ? void 0 : _28.ref) === null || _29 === void 0 ? void 0 : _29.id) !== null && _30 !== void 0 ? _30 : null,
154
+ ref: (_33 = (_32 = (_31 = usuario.modificador) === null || _31 === void 0 ? void 0 : _31.ref) === null || _32 === void 0 ? void 0 : _32.path) !== null && _33 !== void 0 ? _33 : null,
155
+ tipo: (_35 = (_34 = usuario.modificador) === null || _34 === void 0 ? void 0 : _34.tipo) !== null && _35 !== void 0 ? _35 : null,
156
+ nome: (_37 = (_36 = usuario.modificador) === null || _36 === void 0 ? void 0 : _36.nome) !== null && _37 !== void 0 ? _37 : null,
157
+ documento: (_39 = (_38 = usuario.modificador) === null || _38 === void 0 ? void 0 : _38.documento) !== null && _39 !== void 0 ? _39 : null,
158
+ email: (_41 = (_40 = usuario.modificador) === null || _40 === void 0 ? void 0 : _40.email) !== null && _41 !== void 0 ? _41 : null,
152
159
  }, lodash_1.isUndefined)
153
160
  : undefined,
154
161
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flit-models",
3
- "version": "3.4.12",
3
+ "version": "3.4.13",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",