@cristian-israel/giganet_lib_conecta 1.0.13 → 1.0.14

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/index.d.mts CHANGED
@@ -1,6 +1,8 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model, Optional, Sequelize as Sequelize$1, Attributes } from 'sequelize';
3
3
  import * as mongoose from 'mongoose';
4
+ import { Model as Model$1, InferSchemaType } from 'mongoose';
5
+ import * as bson from 'bson';
4
6
 
5
7
  interface XmlNfseAttributes {
6
8
  id: number;
@@ -35798,6 +35800,380 @@ declare class IXCSoftService {
35798
35800
  }[K];
35799
35801
  }
35800
35802
 
35803
+ declare const schemas: {
35804
+ tags: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
35805
+ cor: string;
35806
+ nome: string;
35807
+ empresa: any;
35808
+ _id?: any;
35809
+ id_criador?: any;
35810
+ }, any, unknown, any>;
35811
+ atendimentos: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
35812
+ status: string;
35813
+ date: NativeDate;
35814
+ update: NativeDate;
35815
+ updatedAt: NativeDate;
35816
+ descricao: string;
35817
+ id_cliente: any;
35818
+ setor: string;
35819
+ protocolo: string;
35820
+ id_atendente: any;
35821
+ canal: string;
35822
+ id_user: any;
35823
+ tags: string[];
35824
+ inicio: NativeDate;
35825
+ fim: NativeDate;
35826
+ id_atendimento: any;
35827
+ usuarios_acompanhar: string[];
35828
+ canal_cliente: string;
35829
+ canal_id: any;
35830
+ data_fixacao: NativeDate;
35831
+ operacoes: mongoose.Types.DocumentArray<{
35832
+ date: NativeDate;
35833
+ tipo: string;
35834
+ departamento: any;
35835
+ atendente: any;
35836
+ departamentoDestino?: any;
35837
+ atendenteDestino?: any;
35838
+ tempoDeDuracao?: number | null | undefined;
35839
+ endDate?: NativeDate | null | undefined;
35840
+ }, mongoose.Types.Subdocument<bson.ObjectId, unknown, {
35841
+ date: NativeDate;
35842
+ tipo: string;
35843
+ departamento: any;
35844
+ atendente: any;
35845
+ departamentoDestino?: any;
35846
+ atendenteDestino?: any;
35847
+ tempoDeDuracao?: number | null | undefined;
35848
+ endDate?: NativeDate | null | undefined;
35849
+ }, {}, {}> & {
35850
+ date: NativeDate;
35851
+ tipo: string;
35852
+ departamento: any;
35853
+ atendente: any;
35854
+ departamentoDestino?: any;
35855
+ atendenteDestino?: any;
35856
+ tempoDeDuracao?: number | null | undefined;
35857
+ endDate?: NativeDate | null | undefined;
35858
+ }>;
35859
+ }, mongoose.Document<unknown, {}, {
35860
+ status: string;
35861
+ date: NativeDate;
35862
+ update: NativeDate;
35863
+ updatedAt: NativeDate;
35864
+ descricao: string;
35865
+ id_cliente: any;
35866
+ setor: string;
35867
+ protocolo: string;
35868
+ id_atendente: any;
35869
+ canal: string;
35870
+ id_user: any;
35871
+ tags: string[];
35872
+ inicio: NativeDate;
35873
+ fim: NativeDate;
35874
+ id_atendimento: any;
35875
+ usuarios_acompanhar: string[];
35876
+ canal_cliente: string;
35877
+ canal_id: any;
35878
+ data_fixacao: NativeDate;
35879
+ operacoes: mongoose.Types.DocumentArray<{
35880
+ date: NativeDate;
35881
+ tipo: string;
35882
+ departamento: any;
35883
+ atendente: any;
35884
+ departamentoDestino?: any;
35885
+ atendenteDestino?: any;
35886
+ tempoDeDuracao?: number | null | undefined;
35887
+ endDate?: NativeDate | null | undefined;
35888
+ }, mongoose.Types.Subdocument<bson.ObjectId, unknown, {
35889
+ date: NativeDate;
35890
+ tipo: string;
35891
+ departamento: any;
35892
+ atendente: any;
35893
+ departamentoDestino?: any;
35894
+ atendenteDestino?: any;
35895
+ tempoDeDuracao?: number | null | undefined;
35896
+ endDate?: NativeDate | null | undefined;
35897
+ }, {}, {}> & {
35898
+ date: NativeDate;
35899
+ tipo: string;
35900
+ departamento: any;
35901
+ atendente: any;
35902
+ departamentoDestino?: any;
35903
+ atendenteDestino?: any;
35904
+ tempoDeDuracao?: number | null | undefined;
35905
+ endDate?: NativeDate | null | undefined;
35906
+ }>;
35907
+ }, {
35908
+ id: string;
35909
+ }, mongoose.DefaultSchemaOptions> & Omit<{
35910
+ status: string;
35911
+ date: NativeDate;
35912
+ update: NativeDate;
35913
+ updatedAt: NativeDate;
35914
+ descricao: string;
35915
+ id_cliente: any;
35916
+ setor: string;
35917
+ protocolo: string;
35918
+ id_atendente: any;
35919
+ canal: string;
35920
+ id_user: any;
35921
+ tags: string[];
35922
+ inicio: NativeDate;
35923
+ fim: NativeDate;
35924
+ id_atendimento: any;
35925
+ usuarios_acompanhar: string[];
35926
+ canal_cliente: string;
35927
+ canal_id: any;
35928
+ data_fixacao: NativeDate;
35929
+ operacoes: mongoose.Types.DocumentArray<{
35930
+ date: NativeDate;
35931
+ tipo: string;
35932
+ departamento: any;
35933
+ atendente: any;
35934
+ departamentoDestino?: any;
35935
+ atendenteDestino?: any;
35936
+ tempoDeDuracao?: number | null | undefined;
35937
+ endDate?: NativeDate | null | undefined;
35938
+ }, mongoose.Types.Subdocument<bson.ObjectId, unknown, {
35939
+ date: NativeDate;
35940
+ tipo: string;
35941
+ departamento: any;
35942
+ atendente: any;
35943
+ departamentoDestino?: any;
35944
+ atendenteDestino?: any;
35945
+ tempoDeDuracao?: number | null | undefined;
35946
+ endDate?: NativeDate | null | undefined;
35947
+ }, {}, {}> & {
35948
+ date: NativeDate;
35949
+ tipo: string;
35950
+ departamento: any;
35951
+ atendente: any;
35952
+ departamentoDestino?: any;
35953
+ atendenteDestino?: any;
35954
+ tempoDeDuracao?: number | null | undefined;
35955
+ endDate?: NativeDate | null | undefined;
35956
+ }>;
35957
+ } & {
35958
+ _id: mongoose.Types.ObjectId;
35959
+ } & {
35960
+ __v: number;
35961
+ }, "id"> & {
35962
+ id: string;
35963
+ }, unknown, mongoose.FlattenMaps<{
35964
+ status: string;
35965
+ date: NativeDate;
35966
+ update: NativeDate;
35967
+ updatedAt: NativeDate;
35968
+ descricao: string;
35969
+ id_cliente: any;
35970
+ setor: string;
35971
+ protocolo: string;
35972
+ id_atendente: any;
35973
+ canal: string;
35974
+ id_user: any;
35975
+ tags: string[];
35976
+ inicio: NativeDate;
35977
+ fim: NativeDate;
35978
+ id_atendimento: any;
35979
+ usuarios_acompanhar: string[];
35980
+ canal_cliente: string;
35981
+ canal_id: any;
35982
+ data_fixacao: NativeDate;
35983
+ operacoes: mongoose.Types.DocumentArray<{
35984
+ date: NativeDate;
35985
+ tipo: string;
35986
+ departamento: any;
35987
+ atendente: any;
35988
+ departamentoDestino?: any;
35989
+ atendenteDestino?: any;
35990
+ tempoDeDuracao?: number | null | undefined;
35991
+ endDate?: NativeDate | null | undefined;
35992
+ }, mongoose.Types.Subdocument<bson.ObjectId, unknown, {
35993
+ date: NativeDate;
35994
+ tipo: string;
35995
+ departamento: any;
35996
+ atendente: any;
35997
+ departamentoDestino?: any;
35998
+ atendenteDestino?: any;
35999
+ tempoDeDuracao?: number | null | undefined;
36000
+ endDate?: NativeDate | null | undefined;
36001
+ }, {}, {}> & {
36002
+ date: NativeDate;
36003
+ tipo: string;
36004
+ departamento: any;
36005
+ atendente: any;
36006
+ departamentoDestino?: any;
36007
+ atendenteDestino?: any;
36008
+ tempoDeDuracao?: number | null | undefined;
36009
+ endDate?: NativeDate | null | undefined;
36010
+ }>;
36011
+ }> & {
36012
+ _id: mongoose.Types.ObjectId;
36013
+ } & {
36014
+ __v: number;
36015
+ }>;
36016
+ atendimentos_mensagens: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
36017
+ updatedAt: NativeDate;
36018
+ data: NativeDate;
36019
+ tipo: string;
36020
+ mensagem: any;
36021
+ destinatario: string;
36022
+ createdAt: NativeDate;
36023
+ tipoDestinatario: string;
36024
+ canalComunicacao: string;
36025
+ id_rota: any;
36026
+ id_atend: any;
36027
+ envioForaJanela24h: any;
36028
+ statusEnvio: any;
36029
+ visivelParaContato: any;
36030
+ }, mongoose.Document<unknown, {}, {
36031
+ updatedAt: NativeDate;
36032
+ data: NativeDate;
36033
+ tipo: string;
36034
+ mensagem: any;
36035
+ destinatario: string;
36036
+ createdAt: NativeDate;
36037
+ tipoDestinatario: string;
36038
+ canalComunicacao: string;
36039
+ id_rota: any;
36040
+ id_atend: any;
36041
+ envioForaJanela24h: any;
36042
+ statusEnvio: any;
36043
+ visivelParaContato: any;
36044
+ }, {
36045
+ id: string;
36046
+ }, mongoose.DefaultSchemaOptions> & Omit<{
36047
+ updatedAt: NativeDate;
36048
+ data: NativeDate;
36049
+ tipo: string;
36050
+ mensagem: any;
36051
+ destinatario: string;
36052
+ createdAt: NativeDate;
36053
+ tipoDestinatario: string;
36054
+ canalComunicacao: string;
36055
+ id_rota: any;
36056
+ id_atend: any;
36057
+ envioForaJanela24h: any;
36058
+ statusEnvio: any;
36059
+ visivelParaContato: any;
36060
+ } & {
36061
+ _id: mongoose.Types.ObjectId;
36062
+ } & {
36063
+ __v: number;
36064
+ }, "id"> & {
36065
+ id: string;
36066
+ }, unknown, mongoose.FlattenMaps<{
36067
+ updatedAt: NativeDate;
36068
+ data: NativeDate;
36069
+ tipo: string;
36070
+ mensagem: any;
36071
+ destinatario: string;
36072
+ createdAt: NativeDate;
36073
+ tipoDestinatario: string;
36074
+ canalComunicacao: string;
36075
+ id_rota: any;
36076
+ id_atend: any;
36077
+ envioForaJanela24h: any;
36078
+ statusEnvio: any;
36079
+ visivelParaContato: any;
36080
+ }> & {
36081
+ _id: mongoose.Types.ObjectId;
36082
+ } & {
36083
+ __v: number;
36084
+ }>;
36085
+ clientes: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
36086
+ id: number;
36087
+ status: string;
36088
+ updatedAt: NativeDate;
36089
+ fantasia: string;
36090
+ endereco: string;
36091
+ latitude: number;
36092
+ longitude: number;
36093
+ token: string;
36094
+ id_cliente: any;
36095
+ nome: string;
36096
+ ultima_atualizacao: string;
36097
+ cliente: any;
36098
+ id_filial: string;
36099
+ cpf_cnpj: string;
36100
+ __v: number;
36101
+ prospect: any;
36102
+ chaves: string[];
36103
+ }, mongoose.Document<unknown, {}, {
36104
+ id: number;
36105
+ status: string;
36106
+ updatedAt: NativeDate;
36107
+ fantasia: string;
36108
+ endereco: string;
36109
+ latitude: number;
36110
+ longitude: number;
36111
+ token: string;
36112
+ id_cliente: any;
36113
+ nome: string;
36114
+ ultima_atualizacao: string;
36115
+ cliente: any;
36116
+ id_filial: string;
36117
+ cpf_cnpj: string;
36118
+ __v: number;
36119
+ prospect: any;
36120
+ chaves: string[];
36121
+ }, {}, mongoose.DefaultSchemaOptions> & {
36122
+ id: number;
36123
+ status: string;
36124
+ updatedAt: NativeDate;
36125
+ fantasia: string;
36126
+ endereco: string;
36127
+ latitude: number;
36128
+ longitude: number;
36129
+ token: string;
36130
+ id_cliente: any;
36131
+ nome: string;
36132
+ ultima_atualizacao: string;
36133
+ cliente: any;
36134
+ id_filial: string;
36135
+ cpf_cnpj: string;
36136
+ __v: number;
36137
+ prospect: any;
36138
+ chaves: string[];
36139
+ } & {
36140
+ _id: mongoose.Types.ObjectId;
36141
+ } & {
36142
+ __v: number;
36143
+ }, unknown, mongoose.FlattenMaps<{
36144
+ id: number;
36145
+ status: string;
36146
+ updatedAt: NativeDate;
36147
+ fantasia: string;
36148
+ endereco: string;
36149
+ latitude: number;
36150
+ longitude: number;
36151
+ token: string;
36152
+ id_cliente: any;
36153
+ nome: string;
36154
+ ultima_atualizacao: string;
36155
+ cliente: any;
36156
+ id_filial: string;
36157
+ cpf_cnpj: string;
36158
+ __v: number;
36159
+ prospect: any;
36160
+ chaves: string[];
36161
+ }> & {
36162
+ _id: mongoose.Types.ObjectId;
36163
+ }>;
36164
+ usuarios: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
36165
+ status: string;
36166
+ email: string;
36167
+ tipo: string;
36168
+ nome: string;
36169
+ _id?: any;
36170
+ }, any, unknown, any>;
36171
+ };
36172
+
36173
+ type OPASuiteModels = {
36174
+ [K in keyof typeof schemas]: Model$1<InferSchemaType<(typeof schemas)[K]>>;
36175
+ };
36176
+
35801
36177
  type MongoConnectionConfig = {
35802
36178
  host: string;
35803
36179
  port: number;
@@ -35819,13 +36195,9 @@ declare class OPASuiteService {
35819
36195
  /** Retorna Mongoose connection */
35820
36196
  getConnection(): mongoose.Connection;
35821
36197
  /** Retorna collections tipadas */
35822
- get collections(): {
35823
- tags: mongoose.Model<any, {}, {}, {}, any, any, any>;
35824
- atendimentos: mongoose.Model<any, {}, {}, {}, any, any, any>;
35825
- atendimentos_mensagens: mongoose.Model<any, {}, {}, {}, any, any, any>;
35826
- clientes: mongoose.Model<any, {}, {}, {}, any, any, any>;
35827
- usuarios: mongoose.Model<any, {}, {}, {}, any, any, any>;
35828
- };
36198
+ get collections(): OPASuiteModels;
36199
+ /** Retorna uma collection específica tipada */
36200
+ getCollection<K extends keyof OPASuiteModels>(key: K): OPASuiteModels[K];
35829
36201
  }
35830
36202
 
35831
36203
  type LogLevel = "INFO" | "ERROR" | "WARN";
package/dist/index.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import * as Sequelize from 'sequelize';
2
2
  import { Model, Optional, Sequelize as Sequelize$1, Attributes } from 'sequelize';
3
3
  import * as mongoose from 'mongoose';
4
+ import { Model as Model$1, InferSchemaType } from 'mongoose';
5
+ import * as bson from 'bson';
4
6
 
5
7
  interface XmlNfseAttributes {
6
8
  id: number;
@@ -35798,6 +35800,380 @@ declare class IXCSoftService {
35798
35800
  }[K];
35799
35801
  }
35800
35802
 
35803
+ declare const schemas: {
35804
+ tags: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
35805
+ cor: string;
35806
+ nome: string;
35807
+ empresa: any;
35808
+ _id?: any;
35809
+ id_criador?: any;
35810
+ }, any, unknown, any>;
35811
+ atendimentos: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
35812
+ status: string;
35813
+ date: NativeDate;
35814
+ update: NativeDate;
35815
+ updatedAt: NativeDate;
35816
+ descricao: string;
35817
+ id_cliente: any;
35818
+ setor: string;
35819
+ protocolo: string;
35820
+ id_atendente: any;
35821
+ canal: string;
35822
+ id_user: any;
35823
+ tags: string[];
35824
+ inicio: NativeDate;
35825
+ fim: NativeDate;
35826
+ id_atendimento: any;
35827
+ usuarios_acompanhar: string[];
35828
+ canal_cliente: string;
35829
+ canal_id: any;
35830
+ data_fixacao: NativeDate;
35831
+ operacoes: mongoose.Types.DocumentArray<{
35832
+ date: NativeDate;
35833
+ tipo: string;
35834
+ departamento: any;
35835
+ atendente: any;
35836
+ departamentoDestino?: any;
35837
+ atendenteDestino?: any;
35838
+ tempoDeDuracao?: number | null | undefined;
35839
+ endDate?: NativeDate | null | undefined;
35840
+ }, mongoose.Types.Subdocument<bson.ObjectId, unknown, {
35841
+ date: NativeDate;
35842
+ tipo: string;
35843
+ departamento: any;
35844
+ atendente: any;
35845
+ departamentoDestino?: any;
35846
+ atendenteDestino?: any;
35847
+ tempoDeDuracao?: number | null | undefined;
35848
+ endDate?: NativeDate | null | undefined;
35849
+ }, {}, {}> & {
35850
+ date: NativeDate;
35851
+ tipo: string;
35852
+ departamento: any;
35853
+ atendente: any;
35854
+ departamentoDestino?: any;
35855
+ atendenteDestino?: any;
35856
+ tempoDeDuracao?: number | null | undefined;
35857
+ endDate?: NativeDate | null | undefined;
35858
+ }>;
35859
+ }, mongoose.Document<unknown, {}, {
35860
+ status: string;
35861
+ date: NativeDate;
35862
+ update: NativeDate;
35863
+ updatedAt: NativeDate;
35864
+ descricao: string;
35865
+ id_cliente: any;
35866
+ setor: string;
35867
+ protocolo: string;
35868
+ id_atendente: any;
35869
+ canal: string;
35870
+ id_user: any;
35871
+ tags: string[];
35872
+ inicio: NativeDate;
35873
+ fim: NativeDate;
35874
+ id_atendimento: any;
35875
+ usuarios_acompanhar: string[];
35876
+ canal_cliente: string;
35877
+ canal_id: any;
35878
+ data_fixacao: NativeDate;
35879
+ operacoes: mongoose.Types.DocumentArray<{
35880
+ date: NativeDate;
35881
+ tipo: string;
35882
+ departamento: any;
35883
+ atendente: any;
35884
+ departamentoDestino?: any;
35885
+ atendenteDestino?: any;
35886
+ tempoDeDuracao?: number | null | undefined;
35887
+ endDate?: NativeDate | null | undefined;
35888
+ }, mongoose.Types.Subdocument<bson.ObjectId, unknown, {
35889
+ date: NativeDate;
35890
+ tipo: string;
35891
+ departamento: any;
35892
+ atendente: any;
35893
+ departamentoDestino?: any;
35894
+ atendenteDestino?: any;
35895
+ tempoDeDuracao?: number | null | undefined;
35896
+ endDate?: NativeDate | null | undefined;
35897
+ }, {}, {}> & {
35898
+ date: NativeDate;
35899
+ tipo: string;
35900
+ departamento: any;
35901
+ atendente: any;
35902
+ departamentoDestino?: any;
35903
+ atendenteDestino?: any;
35904
+ tempoDeDuracao?: number | null | undefined;
35905
+ endDate?: NativeDate | null | undefined;
35906
+ }>;
35907
+ }, {
35908
+ id: string;
35909
+ }, mongoose.DefaultSchemaOptions> & Omit<{
35910
+ status: string;
35911
+ date: NativeDate;
35912
+ update: NativeDate;
35913
+ updatedAt: NativeDate;
35914
+ descricao: string;
35915
+ id_cliente: any;
35916
+ setor: string;
35917
+ protocolo: string;
35918
+ id_atendente: any;
35919
+ canal: string;
35920
+ id_user: any;
35921
+ tags: string[];
35922
+ inicio: NativeDate;
35923
+ fim: NativeDate;
35924
+ id_atendimento: any;
35925
+ usuarios_acompanhar: string[];
35926
+ canal_cliente: string;
35927
+ canal_id: any;
35928
+ data_fixacao: NativeDate;
35929
+ operacoes: mongoose.Types.DocumentArray<{
35930
+ date: NativeDate;
35931
+ tipo: string;
35932
+ departamento: any;
35933
+ atendente: any;
35934
+ departamentoDestino?: any;
35935
+ atendenteDestino?: any;
35936
+ tempoDeDuracao?: number | null | undefined;
35937
+ endDate?: NativeDate | null | undefined;
35938
+ }, mongoose.Types.Subdocument<bson.ObjectId, unknown, {
35939
+ date: NativeDate;
35940
+ tipo: string;
35941
+ departamento: any;
35942
+ atendente: any;
35943
+ departamentoDestino?: any;
35944
+ atendenteDestino?: any;
35945
+ tempoDeDuracao?: number | null | undefined;
35946
+ endDate?: NativeDate | null | undefined;
35947
+ }, {}, {}> & {
35948
+ date: NativeDate;
35949
+ tipo: string;
35950
+ departamento: any;
35951
+ atendente: any;
35952
+ departamentoDestino?: any;
35953
+ atendenteDestino?: any;
35954
+ tempoDeDuracao?: number | null | undefined;
35955
+ endDate?: NativeDate | null | undefined;
35956
+ }>;
35957
+ } & {
35958
+ _id: mongoose.Types.ObjectId;
35959
+ } & {
35960
+ __v: number;
35961
+ }, "id"> & {
35962
+ id: string;
35963
+ }, unknown, mongoose.FlattenMaps<{
35964
+ status: string;
35965
+ date: NativeDate;
35966
+ update: NativeDate;
35967
+ updatedAt: NativeDate;
35968
+ descricao: string;
35969
+ id_cliente: any;
35970
+ setor: string;
35971
+ protocolo: string;
35972
+ id_atendente: any;
35973
+ canal: string;
35974
+ id_user: any;
35975
+ tags: string[];
35976
+ inicio: NativeDate;
35977
+ fim: NativeDate;
35978
+ id_atendimento: any;
35979
+ usuarios_acompanhar: string[];
35980
+ canal_cliente: string;
35981
+ canal_id: any;
35982
+ data_fixacao: NativeDate;
35983
+ operacoes: mongoose.Types.DocumentArray<{
35984
+ date: NativeDate;
35985
+ tipo: string;
35986
+ departamento: any;
35987
+ atendente: any;
35988
+ departamentoDestino?: any;
35989
+ atendenteDestino?: any;
35990
+ tempoDeDuracao?: number | null | undefined;
35991
+ endDate?: NativeDate | null | undefined;
35992
+ }, mongoose.Types.Subdocument<bson.ObjectId, unknown, {
35993
+ date: NativeDate;
35994
+ tipo: string;
35995
+ departamento: any;
35996
+ atendente: any;
35997
+ departamentoDestino?: any;
35998
+ atendenteDestino?: any;
35999
+ tempoDeDuracao?: number | null | undefined;
36000
+ endDate?: NativeDate | null | undefined;
36001
+ }, {}, {}> & {
36002
+ date: NativeDate;
36003
+ tipo: string;
36004
+ departamento: any;
36005
+ atendente: any;
36006
+ departamentoDestino?: any;
36007
+ atendenteDestino?: any;
36008
+ tempoDeDuracao?: number | null | undefined;
36009
+ endDate?: NativeDate | null | undefined;
36010
+ }>;
36011
+ }> & {
36012
+ _id: mongoose.Types.ObjectId;
36013
+ } & {
36014
+ __v: number;
36015
+ }>;
36016
+ atendimentos_mensagens: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
36017
+ updatedAt: NativeDate;
36018
+ data: NativeDate;
36019
+ tipo: string;
36020
+ mensagem: any;
36021
+ destinatario: string;
36022
+ createdAt: NativeDate;
36023
+ tipoDestinatario: string;
36024
+ canalComunicacao: string;
36025
+ id_rota: any;
36026
+ id_atend: any;
36027
+ envioForaJanela24h: any;
36028
+ statusEnvio: any;
36029
+ visivelParaContato: any;
36030
+ }, mongoose.Document<unknown, {}, {
36031
+ updatedAt: NativeDate;
36032
+ data: NativeDate;
36033
+ tipo: string;
36034
+ mensagem: any;
36035
+ destinatario: string;
36036
+ createdAt: NativeDate;
36037
+ tipoDestinatario: string;
36038
+ canalComunicacao: string;
36039
+ id_rota: any;
36040
+ id_atend: any;
36041
+ envioForaJanela24h: any;
36042
+ statusEnvio: any;
36043
+ visivelParaContato: any;
36044
+ }, {
36045
+ id: string;
36046
+ }, mongoose.DefaultSchemaOptions> & Omit<{
36047
+ updatedAt: NativeDate;
36048
+ data: NativeDate;
36049
+ tipo: string;
36050
+ mensagem: any;
36051
+ destinatario: string;
36052
+ createdAt: NativeDate;
36053
+ tipoDestinatario: string;
36054
+ canalComunicacao: string;
36055
+ id_rota: any;
36056
+ id_atend: any;
36057
+ envioForaJanela24h: any;
36058
+ statusEnvio: any;
36059
+ visivelParaContato: any;
36060
+ } & {
36061
+ _id: mongoose.Types.ObjectId;
36062
+ } & {
36063
+ __v: number;
36064
+ }, "id"> & {
36065
+ id: string;
36066
+ }, unknown, mongoose.FlattenMaps<{
36067
+ updatedAt: NativeDate;
36068
+ data: NativeDate;
36069
+ tipo: string;
36070
+ mensagem: any;
36071
+ destinatario: string;
36072
+ createdAt: NativeDate;
36073
+ tipoDestinatario: string;
36074
+ canalComunicacao: string;
36075
+ id_rota: any;
36076
+ id_atend: any;
36077
+ envioForaJanela24h: any;
36078
+ statusEnvio: any;
36079
+ visivelParaContato: any;
36080
+ }> & {
36081
+ _id: mongoose.Types.ObjectId;
36082
+ } & {
36083
+ __v: number;
36084
+ }>;
36085
+ clientes: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
36086
+ id: number;
36087
+ status: string;
36088
+ updatedAt: NativeDate;
36089
+ fantasia: string;
36090
+ endereco: string;
36091
+ latitude: number;
36092
+ longitude: number;
36093
+ token: string;
36094
+ id_cliente: any;
36095
+ nome: string;
36096
+ ultima_atualizacao: string;
36097
+ cliente: any;
36098
+ id_filial: string;
36099
+ cpf_cnpj: string;
36100
+ __v: number;
36101
+ prospect: any;
36102
+ chaves: string[];
36103
+ }, mongoose.Document<unknown, {}, {
36104
+ id: number;
36105
+ status: string;
36106
+ updatedAt: NativeDate;
36107
+ fantasia: string;
36108
+ endereco: string;
36109
+ latitude: number;
36110
+ longitude: number;
36111
+ token: string;
36112
+ id_cliente: any;
36113
+ nome: string;
36114
+ ultima_atualizacao: string;
36115
+ cliente: any;
36116
+ id_filial: string;
36117
+ cpf_cnpj: string;
36118
+ __v: number;
36119
+ prospect: any;
36120
+ chaves: string[];
36121
+ }, {}, mongoose.DefaultSchemaOptions> & {
36122
+ id: number;
36123
+ status: string;
36124
+ updatedAt: NativeDate;
36125
+ fantasia: string;
36126
+ endereco: string;
36127
+ latitude: number;
36128
+ longitude: number;
36129
+ token: string;
36130
+ id_cliente: any;
36131
+ nome: string;
36132
+ ultima_atualizacao: string;
36133
+ cliente: any;
36134
+ id_filial: string;
36135
+ cpf_cnpj: string;
36136
+ __v: number;
36137
+ prospect: any;
36138
+ chaves: string[];
36139
+ } & {
36140
+ _id: mongoose.Types.ObjectId;
36141
+ } & {
36142
+ __v: number;
36143
+ }, unknown, mongoose.FlattenMaps<{
36144
+ id: number;
36145
+ status: string;
36146
+ updatedAt: NativeDate;
36147
+ fantasia: string;
36148
+ endereco: string;
36149
+ latitude: number;
36150
+ longitude: number;
36151
+ token: string;
36152
+ id_cliente: any;
36153
+ nome: string;
36154
+ ultima_atualizacao: string;
36155
+ cliente: any;
36156
+ id_filial: string;
36157
+ cpf_cnpj: string;
36158
+ __v: number;
36159
+ prospect: any;
36160
+ chaves: string[];
36161
+ }> & {
36162
+ _id: mongoose.Types.ObjectId;
36163
+ }>;
36164
+ usuarios: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
36165
+ status: string;
36166
+ email: string;
36167
+ tipo: string;
36168
+ nome: string;
36169
+ _id?: any;
36170
+ }, any, unknown, any>;
36171
+ };
36172
+
36173
+ type OPASuiteModels = {
36174
+ [K in keyof typeof schemas]: Model$1<InferSchemaType<(typeof schemas)[K]>>;
36175
+ };
36176
+
35801
36177
  type MongoConnectionConfig = {
35802
36178
  host: string;
35803
36179
  port: number;
@@ -35819,13 +36195,9 @@ declare class OPASuiteService {
35819
36195
  /** Retorna Mongoose connection */
35820
36196
  getConnection(): mongoose.Connection;
35821
36197
  /** Retorna collections tipadas */
35822
- get collections(): {
35823
- tags: mongoose.Model<any, {}, {}, {}, any, any, any>;
35824
- atendimentos: mongoose.Model<any, {}, {}, {}, any, any, any>;
35825
- atendimentos_mensagens: mongoose.Model<any, {}, {}, {}, any, any, any>;
35826
- clientes: mongoose.Model<any, {}, {}, {}, any, any, any>;
35827
- usuarios: mongoose.Model<any, {}, {}, {}, any, any, any>;
35828
- };
36198
+ get collections(): OPASuiteModels;
36199
+ /** Retorna uma collection específica tipada */
36200
+ getCollection<K extends keyof OPASuiteModels>(key: K): OPASuiteModels[K];
35829
36201
  }
35830
36202
 
35831
36203
  type LogLevel = "INFO" | "ERROR" | "WARN";
package/dist/index.js CHANGED
@@ -91534,6 +91534,11 @@ var OPASuiteService = class _OPASuiteService {
91534
91534
  this.notInitialized();
91535
91535
  return this.connection.collections;
91536
91536
  }
91537
+ /** Retorna uma collection específica tipada */
91538
+ getCollection(key) {
91539
+ this.notInitialized();
91540
+ return this.connection.collections[key];
91541
+ }
91537
91542
  };
91538
91543
  // Annotate the CommonJS export names for ESM import in node:
91539
91544
  0 && (module.exports = {
package/dist/index.mjs CHANGED
@@ -90722,6 +90722,11 @@ var OPASuiteService = class _OPASuiteService {
90722
90722
  this.notInitialized();
90723
90723
  return this.connection.collections;
90724
90724
  }
90725
+ /** Retorna uma collection específica tipada */
90726
+ getCollection(key) {
90727
+ this.notInitialized();
90728
+ return this.connection.collections[key];
90729
+ }
90725
90730
  };
90726
90731
  export {
90727
90732
  AcsActionDevice,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cristian-israel/giganet_lib_conecta",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "Database Connector Layer",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",