@cristian-israel/giganet_lib_conecta 1.0.85 → 1.0.87
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 +531 -14
- package/dist/index.d.ts +531 -14
- package/dist/index.js +469 -23
- package/dist/index.mjs +468 -23
- package/package.json +69 -68
package/dist/index.d.mts
CHANGED
|
@@ -10953,9 +10953,197 @@ declare class MonthlyFeesForClientResource {
|
|
|
10953
10953
|
generate(data: MonthlyFeesForClientInput): Promise<MonthlyFeesForClientResponse>;
|
|
10954
10954
|
}
|
|
10955
10955
|
|
|
10956
|
+
interface VeiculosDespesasInput {
|
|
10957
|
+
gerar_contas_apagar?: "S" | "N";
|
|
10958
|
+
id_apagar?: number;
|
|
10959
|
+
id_veiculo: number;
|
|
10960
|
+
placa_info?: string;
|
|
10961
|
+
id_condutor?: number;
|
|
10962
|
+
id_filial?: number;
|
|
10963
|
+
data: string;
|
|
10964
|
+
tipo_despesa_lista: number;
|
|
10965
|
+
tipo: string;
|
|
10966
|
+
classificacao_infracao?: string;
|
|
10967
|
+
descricao?: string;
|
|
10968
|
+
quantidade_litros: number;
|
|
10969
|
+
valor_litro: number;
|
|
10970
|
+
valor: number;
|
|
10971
|
+
kilometragem?: number;
|
|
10972
|
+
observacao?: string;
|
|
10973
|
+
status_contas_apagar?: string;
|
|
10974
|
+
centro_custo_regra_rateio?: string;
|
|
10975
|
+
id_centro_custo_categoria_filtro?: number;
|
|
10976
|
+
id_centro_custo_criterio_rateio?: number;
|
|
10977
|
+
id_centro_custo_rel_centro_custo_categoria_padrao?: number;
|
|
10978
|
+
[key: string]: any;
|
|
10979
|
+
}
|
|
10980
|
+
interface VeiculosDespesasListFilters {
|
|
10981
|
+
qtype: string;
|
|
10982
|
+
query: string;
|
|
10983
|
+
oper: string;
|
|
10984
|
+
page: string | number;
|
|
10985
|
+
rp: string | number;
|
|
10986
|
+
sortname: string;
|
|
10987
|
+
sortorder: "asc" | "desc";
|
|
10988
|
+
}
|
|
10989
|
+
declare const VEICULO_DESPESA_TIPOS: readonly ["combustivel", "oleo", "pneu", "lavagem", "manutencao", "pedagio"];
|
|
10990
|
+
type VeiculoDespesaTipo = (typeof VEICULO_DESPESA_TIPOS)[number];
|
|
10991
|
+
declare const VEICULO_DESPESA_TIPOS_SEM_KILOMETRAGEM: readonly ["lavagem", "pedagio"];
|
|
10992
|
+
declare function veiculoDespesaExigeKilometragem(tipo: VeiculoDespesaTipo): boolean;
|
|
10993
|
+
interface VeiculosDespesasInserirSimplificadoInput {
|
|
10994
|
+
id_veiculo: number;
|
|
10995
|
+
id_condutor: number;
|
|
10996
|
+
id_fn_apagar?: number;
|
|
10997
|
+
id_filial: number;
|
|
10998
|
+
tipo: string;
|
|
10999
|
+
data_emissao: Date;
|
|
11000
|
+
quantidade_litros: number;
|
|
11001
|
+
valor_litro: number;
|
|
11002
|
+
valor: number;
|
|
11003
|
+
kilometragem?: number;
|
|
11004
|
+
descricao: string;
|
|
11005
|
+
}
|
|
11006
|
+
/** ID da lista de tipos de despesa no IXC (`tipo_despesa_lista`). */
|
|
11007
|
+
declare const TIPO_DESPESA_LISTA: Record<VeiculoDespesaTipo, number>;
|
|
11008
|
+
/** Código legado do tipo de despesa no IXC (`tipo`). */
|
|
11009
|
+
declare const TIPO_DESPESA: Record<VeiculoDespesaTipo, string>;
|
|
11010
|
+
declare const IxcVeiculosDespesasResponseSchema: z.ZodObject<{
|
|
11011
|
+
type: z.ZodEnum<{
|
|
11012
|
+
success: "success";
|
|
11013
|
+
error: "error";
|
|
11014
|
+
}>;
|
|
11015
|
+
message: z.ZodString;
|
|
11016
|
+
id: z.ZodOptional<z.ZodString>;
|
|
11017
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
11018
|
+
type IxcVeiculosDespesasResponse = z.infer<typeof IxcVeiculosDespesasResponseSchema>;
|
|
11019
|
+
|
|
11020
|
+
declare class VeiculosDespesasResource {
|
|
11021
|
+
private readonly client;
|
|
11022
|
+
private readonly endpoint;
|
|
11023
|
+
constructor(client: APIClient);
|
|
11024
|
+
inserir(data: VeiculosDespesasInput): Promise<IxcVeiculosDespesasResponse>;
|
|
11025
|
+
editar(id: string | number, data: VeiculosDespesasInput): Promise<IxcVeiculosDespesasResponse>;
|
|
11026
|
+
deletar(id: string | number): Promise<IxcVeiculosDespesasResponse>;
|
|
11027
|
+
listar(filters: VeiculosDespesasListFilters): Promise<unknown>;
|
|
11028
|
+
/**
|
|
11029
|
+
* Método de conveniência portado da versão antiga (simplificado).
|
|
11030
|
+
* Mapeia `tipo` para `tipo_despesa_lista` e `tipo` do IXC e formata a data.
|
|
11031
|
+
*/
|
|
11032
|
+
inserirSimplificado({ id_veiculo, id_condutor, id_fn_apagar, id_filial, tipo, data_emissao, quantidade_litros, valor_litro, valor, kilometragem, descricao, }: VeiculosDespesasInserirSimplificadoInput): Promise<IxcVeiculosDespesasResponse>;
|
|
11033
|
+
}
|
|
11034
|
+
|
|
11035
|
+
interface FnApagarInput {
|
|
11036
|
+
id_fornecedor?: string | number;
|
|
11037
|
+
data_emissao?: string;
|
|
11038
|
+
data_vencimento?: string;
|
|
11039
|
+
valor?: string | number;
|
|
11040
|
+
id_contas?: string | number;
|
|
11041
|
+
tipo_pagamento?: string | number;
|
|
11042
|
+
id_dado_bancario?: string | number;
|
|
11043
|
+
tipo_pix?: string | number;
|
|
11044
|
+
chave_pix?: string;
|
|
11045
|
+
codigo_barras?: string;
|
|
11046
|
+
documento?: string;
|
|
11047
|
+
numero_nota?: string | number;
|
|
11048
|
+
id_conta?: string | number;
|
|
11049
|
+
filial_id?: string | number;
|
|
11050
|
+
previsao?: string | number;
|
|
11051
|
+
despesa_tipo?: string | number;
|
|
11052
|
+
eh_despesa_veiculo?: string | number;
|
|
11053
|
+
obs?: string;
|
|
11054
|
+
id_entrada?: string | number;
|
|
11055
|
+
status?: string | number;
|
|
11056
|
+
status_auditoria?: string | number;
|
|
11057
|
+
liberado?: string | number;
|
|
11058
|
+
tipo_conta?: string | number;
|
|
11059
|
+
duplicata?: string | number;
|
|
11060
|
+
lote?: string | number;
|
|
11061
|
+
previsao_conta_despesa?: string | number;
|
|
11062
|
+
id_conta_class_finan_a?: string | number;
|
|
11063
|
+
id_despesa_veiculo?: string | number;
|
|
11064
|
+
centro_custo_regra_criterio?: string | number;
|
|
11065
|
+
id_centro_custo_categoria_filtro?: string | number;
|
|
11066
|
+
id_centro_custo_criterio_rateio?: string | number;
|
|
11067
|
+
id_centro_custo_rel_centro_custo_categoria?: string | number;
|
|
11068
|
+
valor_aberto?: string | number;
|
|
11069
|
+
valor_pago?: string | number;
|
|
11070
|
+
data_pagamento?: string;
|
|
11071
|
+
debito_data?: string;
|
|
11072
|
+
valor_total_pago?: string | number;
|
|
11073
|
+
valor_cancelado?: string | number;
|
|
11074
|
+
data_cancelamento?: string;
|
|
11075
|
+
id_mot_cancelamento?: string | number;
|
|
11076
|
+
id_lote_pagamento?: string | number;
|
|
11077
|
+
id_remessa_pagamento?: string | number;
|
|
11078
|
+
comunicado?: string | number;
|
|
11079
|
+
estornado?: string | number;
|
|
11080
|
+
id_lote_importacao?: string | number;
|
|
11081
|
+
conta_pagamento?: string | number;
|
|
11082
|
+
botoes_classe_finan?: string;
|
|
11083
|
+
id_conta_class_finan?: string | number;
|
|
11084
|
+
valor_class_finan?: string | number;
|
|
11085
|
+
grid_classe_finan?: string;
|
|
11086
|
+
json_class_finan?: string;
|
|
11087
|
+
[key: string]: any;
|
|
11088
|
+
}
|
|
11089
|
+
/** Defaults fixos do `inserirSimplificado` (versão antiga). */
|
|
11090
|
+
declare const FN_APAGAR_INSERIR_SIMPLIFICADO_DEFAULTS: {
|
|
11091
|
+
readonly previsao: "N";
|
|
11092
|
+
readonly liberado: "S";
|
|
11093
|
+
readonly status_auditoria: "N";
|
|
11094
|
+
};
|
|
11095
|
+
interface FnApagarInserirSimplificadoInput {
|
|
11096
|
+
id_fornecedor: number;
|
|
11097
|
+
data_emissao: Date;
|
|
11098
|
+
data_vencimento: Date;
|
|
11099
|
+
valor: number;
|
|
11100
|
+
id_caixa: number;
|
|
11101
|
+
tipo_pagamento: string;
|
|
11102
|
+
documento: string;
|
|
11103
|
+
id_filial: number;
|
|
11104
|
+
despesa_veiculo: boolean;
|
|
11105
|
+
id_planejamento_analitico?: number;
|
|
11106
|
+
obs?: string;
|
|
11107
|
+
}
|
|
11108
|
+
interface FnApagarListFilters {
|
|
11109
|
+
qtype: string;
|
|
11110
|
+
query: string;
|
|
11111
|
+
oper: string;
|
|
11112
|
+
page: string | number;
|
|
11113
|
+
rp: string | number;
|
|
11114
|
+
sortname: string;
|
|
11115
|
+
sortorder: "asc" | "desc";
|
|
11116
|
+
}
|
|
11117
|
+
declare const IxcFnApagarResponseSchema: z.ZodObject<{
|
|
11118
|
+
type: z.ZodEnum<{
|
|
11119
|
+
success: "success";
|
|
11120
|
+
error: "error";
|
|
11121
|
+
}>;
|
|
11122
|
+
message: z.ZodString;
|
|
11123
|
+
id: z.ZodOptional<z.ZodString>;
|
|
11124
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
11125
|
+
type IxcFnApagarResponse = z.infer<typeof IxcFnApagarResponseSchema>;
|
|
11126
|
+
|
|
11127
|
+
declare class FnApagarResource {
|
|
11128
|
+
private readonly client;
|
|
11129
|
+
private readonly endpoint;
|
|
11130
|
+
constructor(client: APIClient);
|
|
11131
|
+
inserir(data: FnApagarInput): Promise<IxcFnApagarResponse>;
|
|
11132
|
+
editar(id: string | number, data: FnApagarInput): Promise<IxcFnApagarResponse>;
|
|
11133
|
+
deletar(id: string | number): Promise<IxcFnApagarResponse>;
|
|
11134
|
+
listar(filters: FnApagarListFilters): Promise<unknown>;
|
|
11135
|
+
/**
|
|
11136
|
+
* Método de conveniência portado da versão antiga (simplificado).
|
|
11137
|
+
* Mapeia nomes legados (`id_caixa`, `id_planejamento_analitico`, etc.) para o IXC.
|
|
11138
|
+
*/
|
|
11139
|
+
inserirSimplificado({ id_fornecedor, data_emissao, data_vencimento, valor, id_caixa, tipo_pagamento, documento, id_planejamento_analitico, id_filial, despesa_veiculo, obs, }: FnApagarInserirSimplificadoInput): Promise<IxcFnApagarResponse>;
|
|
11140
|
+
}
|
|
11141
|
+
|
|
10956
11142
|
declare class IXCSoftAPIClient extends APIClient {
|
|
10957
11143
|
readonly ordensDeServico: SuOssChamadoResource;
|
|
10958
11144
|
readonly monthlyFeesForClient: MonthlyFeesForClientResource;
|
|
11145
|
+
readonly veiculosDespesas: VeiculosDespesasResource;
|
|
11146
|
+
readonly fnApagar: FnApagarResource;
|
|
10959
11147
|
constructor(config: APIConfigType);
|
|
10960
11148
|
}
|
|
10961
11149
|
|
|
@@ -10969,17 +11157,34 @@ declare const IXCSoftResponseSchema: z.ZodObject<{
|
|
|
10969
11157
|
}, z.core.$catchall<z.ZodAny>>;
|
|
10970
11158
|
type IXCSoftResponse = z.infer<typeof IXCSoftResponseSchema>;
|
|
10971
11159
|
|
|
11160
|
+
declare const ixcSoftApi_types_FN_APAGAR_INSERIR_SIMPLIFICADO_DEFAULTS: typeof FN_APAGAR_INSERIR_SIMPLIFICADO_DEFAULTS;
|
|
11161
|
+
type ixcSoftApi_types_FnApagarInput = FnApagarInput;
|
|
11162
|
+
type ixcSoftApi_types_FnApagarInserirSimplificadoInput = FnApagarInserirSimplificadoInput;
|
|
11163
|
+
type ixcSoftApi_types_FnApagarListFilters = FnApagarListFilters;
|
|
10972
11164
|
type ixcSoftApi_types_IXCSoftResponse = IXCSoftResponse;
|
|
10973
11165
|
declare const ixcSoftApi_types_IXCSoftResponseSchema: typeof IXCSoftResponseSchema;
|
|
11166
|
+
type ixcSoftApi_types_IxcFnApagarResponse = IxcFnApagarResponse;
|
|
11167
|
+
declare const ixcSoftApi_types_IxcFnApagarResponseSchema: typeof IxcFnApagarResponseSchema;
|
|
10974
11168
|
type ixcSoftApi_types_IxcSuOssChamadoResponse = IxcSuOssChamadoResponse;
|
|
10975
11169
|
declare const ixcSoftApi_types_IxcSuOssChamadoResponseSchema: typeof IxcSuOssChamadoResponseSchema;
|
|
11170
|
+
type ixcSoftApi_types_IxcVeiculosDespesasResponse = IxcVeiculosDespesasResponse;
|
|
11171
|
+
declare const ixcSoftApi_types_IxcVeiculosDespesasResponseSchema: typeof IxcVeiculosDespesasResponseSchema;
|
|
10976
11172
|
type ixcSoftApi_types_MonthlyFeesForClientInput = MonthlyFeesForClientInput;
|
|
10977
11173
|
type ixcSoftApi_types_MonthlyFeesForClientResponse = MonthlyFeesForClientResponse;
|
|
10978
11174
|
declare const ixcSoftApi_types_MonthlyFeesForClientResponseSchema: typeof MonthlyFeesForClientResponseSchema;
|
|
10979
11175
|
type ixcSoftApi_types_SuOssChamadoInput = SuOssChamadoInput;
|
|
10980
11176
|
type ixcSoftApi_types_SuOssChamadoListFilters = SuOssChamadoListFilters;
|
|
11177
|
+
declare const ixcSoftApi_types_TIPO_DESPESA: typeof TIPO_DESPESA;
|
|
11178
|
+
declare const ixcSoftApi_types_TIPO_DESPESA_LISTA: typeof TIPO_DESPESA_LISTA;
|
|
11179
|
+
declare const ixcSoftApi_types_VEICULO_DESPESA_TIPOS: typeof VEICULO_DESPESA_TIPOS;
|
|
11180
|
+
declare const ixcSoftApi_types_VEICULO_DESPESA_TIPOS_SEM_KILOMETRAGEM: typeof VEICULO_DESPESA_TIPOS_SEM_KILOMETRAGEM;
|
|
11181
|
+
type ixcSoftApi_types_VeiculoDespesaTipo = VeiculoDespesaTipo;
|
|
11182
|
+
type ixcSoftApi_types_VeiculosDespesasInput = VeiculosDespesasInput;
|
|
11183
|
+
type ixcSoftApi_types_VeiculosDespesasInserirSimplificadoInput = VeiculosDespesasInserirSimplificadoInput;
|
|
11184
|
+
type ixcSoftApi_types_VeiculosDespesasListFilters = VeiculosDespesasListFilters;
|
|
11185
|
+
declare const ixcSoftApi_types_veiculoDespesaExigeKilometragem: typeof veiculoDespesaExigeKilometragem;
|
|
10981
11186
|
declare namespace ixcSoftApi_types {
|
|
10982
|
-
export { type ixcSoftApi_types_IXCSoftResponse as IXCSoftResponse, ixcSoftApi_types_IXCSoftResponseSchema as IXCSoftResponseSchema, type ixcSoftApi_types_IxcSuOssChamadoResponse as IxcSuOssChamadoResponse, ixcSoftApi_types_IxcSuOssChamadoResponseSchema as IxcSuOssChamadoResponseSchema, type ixcSoftApi_types_MonthlyFeesForClientInput as MonthlyFeesForClientInput, type ixcSoftApi_types_MonthlyFeesForClientResponse as MonthlyFeesForClientResponse, ixcSoftApi_types_MonthlyFeesForClientResponseSchema as MonthlyFeesForClientResponseSchema, type ixcSoftApi_types_SuOssChamadoInput as SuOssChamadoInput, type ixcSoftApi_types_SuOssChamadoListFilters as SuOssChamadoListFilters };
|
|
11187
|
+
export { ixcSoftApi_types_FN_APAGAR_INSERIR_SIMPLIFICADO_DEFAULTS as FN_APAGAR_INSERIR_SIMPLIFICADO_DEFAULTS, type ixcSoftApi_types_FnApagarInput as FnApagarInput, type ixcSoftApi_types_FnApagarInserirSimplificadoInput as FnApagarInserirSimplificadoInput, type ixcSoftApi_types_FnApagarListFilters as FnApagarListFilters, type ixcSoftApi_types_IXCSoftResponse as IXCSoftResponse, ixcSoftApi_types_IXCSoftResponseSchema as IXCSoftResponseSchema, type ixcSoftApi_types_IxcFnApagarResponse as IxcFnApagarResponse, ixcSoftApi_types_IxcFnApagarResponseSchema as IxcFnApagarResponseSchema, type ixcSoftApi_types_IxcSuOssChamadoResponse as IxcSuOssChamadoResponse, ixcSoftApi_types_IxcSuOssChamadoResponseSchema as IxcSuOssChamadoResponseSchema, type ixcSoftApi_types_IxcVeiculosDespesasResponse as IxcVeiculosDespesasResponse, ixcSoftApi_types_IxcVeiculosDespesasResponseSchema as IxcVeiculosDespesasResponseSchema, type ixcSoftApi_types_MonthlyFeesForClientInput as MonthlyFeesForClientInput, type ixcSoftApi_types_MonthlyFeesForClientResponse as MonthlyFeesForClientResponse, ixcSoftApi_types_MonthlyFeesForClientResponseSchema as MonthlyFeesForClientResponseSchema, type ixcSoftApi_types_SuOssChamadoInput as SuOssChamadoInput, type ixcSoftApi_types_SuOssChamadoListFilters as SuOssChamadoListFilters, ixcSoftApi_types_TIPO_DESPESA as TIPO_DESPESA, ixcSoftApi_types_TIPO_DESPESA_LISTA as TIPO_DESPESA_LISTA, ixcSoftApi_types_VEICULO_DESPESA_TIPOS as VEICULO_DESPESA_TIPOS, ixcSoftApi_types_VEICULO_DESPESA_TIPOS_SEM_KILOMETRAGEM as VEICULO_DESPESA_TIPOS_SEM_KILOMETRAGEM, type ixcSoftApi_types_VeiculoDespesaTipo as VeiculoDespesaTipo, type ixcSoftApi_types_VeiculosDespesasInput as VeiculosDespesasInput, type ixcSoftApi_types_VeiculosDespesasInserirSimplificadoInput as VeiculosDespesasInserirSimplificadoInput, type ixcSoftApi_types_VeiculosDespesasListFilters as VeiculosDespesasListFilters, ixcSoftApi_types_veiculoDespesaExigeKilometragem as veiculoDespesaExigeKilometragem };
|
|
10983
11188
|
}
|
|
10984
11189
|
|
|
10985
11190
|
type CancellationAnalysisTipo = "diario" | "semanal" | "mensal";
|
|
@@ -36721,7 +36926,7 @@ declare class RoutinesMysqlService {
|
|
|
36721
36926
|
}[K];
|
|
36722
36927
|
}
|
|
36723
36928
|
|
|
36724
|
-
declare const schemas$
|
|
36929
|
+
declare const schemas$4: {
|
|
36725
36930
|
tags: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
36726
36931
|
nome: string;
|
|
36727
36932
|
empresa: mongoose.Types.ObjectId;
|
|
@@ -37224,10 +37429,10 @@ declare const schemas$3: {
|
|
|
37224
37429
|
};
|
|
37225
37430
|
|
|
37226
37431
|
type OPASuiteMongoDocuments = {
|
|
37227
|
-
[K in keyof typeof schemas$
|
|
37432
|
+
[K in keyof typeof schemas$4]: HydratedDocument<InferSchemaType<(typeof schemas$4)[K]>>;
|
|
37228
37433
|
};
|
|
37229
37434
|
type OPASuiteMongoCollectionsModels = {
|
|
37230
|
-
[K in keyof typeof schemas$
|
|
37435
|
+
[K in keyof typeof schemas$4]: Model$1<InferSchemaType<(typeof schemas$4)[K]>>;
|
|
37231
37436
|
};
|
|
37232
37437
|
|
|
37233
37438
|
type MongoConnectionConfig = {
|
|
@@ -37256,7 +37461,7 @@ declare class OPASuiteMongoService {
|
|
|
37256
37461
|
getCollection<K extends keyof OPASuiteMongoCollectionsModels>(key: K): OPASuiteMongoCollectionsModels[K];
|
|
37257
37462
|
}
|
|
37258
37463
|
|
|
37259
|
-
declare const schemas$
|
|
37464
|
+
declare const schemas$3: {
|
|
37260
37465
|
user: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37261
37466
|
timestamps: true;
|
|
37262
37467
|
}, {
|
|
@@ -37363,13 +37568,118 @@ declare const schemas$2: {
|
|
|
37363
37568
|
} & {
|
|
37364
37569
|
__v: number;
|
|
37365
37570
|
}>;
|
|
37571
|
+
branch_regions: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37572
|
+
timestamps: true;
|
|
37573
|
+
}, {
|
|
37574
|
+
active: boolean;
|
|
37575
|
+
region: string;
|
|
37576
|
+
} & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, {
|
|
37577
|
+
active: boolean;
|
|
37578
|
+
region: string;
|
|
37579
|
+
} & mongoose.DefaultTimestampProps, {
|
|
37580
|
+
id: string;
|
|
37581
|
+
}, Omit<mongoose.DefaultSchemaOptions, "timestamps"> & {
|
|
37582
|
+
timestamps: true;
|
|
37583
|
+
}> & Omit<{
|
|
37584
|
+
active: boolean;
|
|
37585
|
+
region: string;
|
|
37586
|
+
} & mongoose.DefaultTimestampProps & {
|
|
37587
|
+
_id: mongoose.Types.ObjectId;
|
|
37588
|
+
} & {
|
|
37589
|
+
__v: number;
|
|
37590
|
+
}, "id"> & {
|
|
37591
|
+
id: string;
|
|
37592
|
+
}, unknown, {
|
|
37593
|
+
active: boolean;
|
|
37594
|
+
region: string;
|
|
37595
|
+
createdAt: NativeDate;
|
|
37596
|
+
updatedAt: NativeDate;
|
|
37597
|
+
} & {
|
|
37598
|
+
_id: mongoose.Types.ObjectId;
|
|
37599
|
+
} & {
|
|
37600
|
+
__v: number;
|
|
37601
|
+
}>;
|
|
37602
|
+
branch_groups: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37603
|
+
timestamps: true;
|
|
37604
|
+
}, {
|
|
37605
|
+
name: string;
|
|
37606
|
+
active: boolean;
|
|
37607
|
+
id_region: mongoose.Types.ObjectId;
|
|
37608
|
+
} & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, {
|
|
37609
|
+
name: string;
|
|
37610
|
+
active: boolean;
|
|
37611
|
+
id_region: mongoose.Types.ObjectId;
|
|
37612
|
+
} & mongoose.DefaultTimestampProps, {
|
|
37613
|
+
id: string;
|
|
37614
|
+
}, Omit<mongoose.DefaultSchemaOptions, "timestamps"> & {
|
|
37615
|
+
timestamps: true;
|
|
37616
|
+
}> & Omit<{
|
|
37617
|
+
name: string;
|
|
37618
|
+
active: boolean;
|
|
37619
|
+
id_region: mongoose.Types.ObjectId;
|
|
37620
|
+
} & mongoose.DefaultTimestampProps & {
|
|
37621
|
+
_id: mongoose.Types.ObjectId;
|
|
37622
|
+
} & {
|
|
37623
|
+
__v: number;
|
|
37624
|
+
}, "id"> & {
|
|
37625
|
+
id: string;
|
|
37626
|
+
}, unknown, {
|
|
37627
|
+
name: string;
|
|
37628
|
+
active: boolean;
|
|
37629
|
+
id_region: mongoose.Types.ObjectId;
|
|
37630
|
+
createdAt: NativeDate;
|
|
37631
|
+
updatedAt: NativeDate;
|
|
37632
|
+
} & {
|
|
37633
|
+
_id: mongoose.Types.ObjectId;
|
|
37634
|
+
} & {
|
|
37635
|
+
__v: number;
|
|
37636
|
+
}>;
|
|
37637
|
+
branch_stores: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37638
|
+
timestamps: true;
|
|
37639
|
+
}, {
|
|
37640
|
+
active: boolean;
|
|
37641
|
+
nomenclature: string;
|
|
37642
|
+
city: string;
|
|
37643
|
+
id_group: mongoose.Types.ObjectId;
|
|
37644
|
+
} & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, {
|
|
37645
|
+
active: boolean;
|
|
37646
|
+
nomenclature: string;
|
|
37647
|
+
city: string;
|
|
37648
|
+
id_group: mongoose.Types.ObjectId;
|
|
37649
|
+
} & mongoose.DefaultTimestampProps, {
|
|
37650
|
+
id: string;
|
|
37651
|
+
}, Omit<mongoose.DefaultSchemaOptions, "timestamps"> & {
|
|
37652
|
+
timestamps: true;
|
|
37653
|
+
}> & Omit<{
|
|
37654
|
+
active: boolean;
|
|
37655
|
+
nomenclature: string;
|
|
37656
|
+
city: string;
|
|
37657
|
+
id_group: mongoose.Types.ObjectId;
|
|
37658
|
+
} & mongoose.DefaultTimestampProps & {
|
|
37659
|
+
_id: mongoose.Types.ObjectId;
|
|
37660
|
+
} & {
|
|
37661
|
+
__v: number;
|
|
37662
|
+
}, "id"> & {
|
|
37663
|
+
id: string;
|
|
37664
|
+
}, unknown, {
|
|
37665
|
+
active: boolean;
|
|
37666
|
+
nomenclature: string;
|
|
37667
|
+
city: string;
|
|
37668
|
+
id_group: mongoose.Types.ObjectId;
|
|
37669
|
+
createdAt: NativeDate;
|
|
37670
|
+
updatedAt: NativeDate;
|
|
37671
|
+
} & {
|
|
37672
|
+
_id: mongoose.Types.ObjectId;
|
|
37673
|
+
} & {
|
|
37674
|
+
__v: number;
|
|
37675
|
+
}>;
|
|
37366
37676
|
};
|
|
37367
37677
|
|
|
37368
37678
|
type ToolsMongoDocuments = {
|
|
37369
|
-
[K in keyof typeof schemas$
|
|
37679
|
+
[K in keyof typeof schemas$3]: HydratedDocument<InferSchemaType<(typeof schemas$3)[K]>>;
|
|
37370
37680
|
};
|
|
37371
37681
|
type ToolsMongoCollectionsModels = {
|
|
37372
|
-
[K in keyof typeof schemas$
|
|
37682
|
+
[K in keyof typeof schemas$3]: Model$1<InferSchemaType<(typeof schemas$3)[K]>>;
|
|
37373
37683
|
};
|
|
37374
37684
|
|
|
37375
37685
|
declare class ToolsMongoService {
|
|
@@ -37390,7 +37700,7 @@ declare class ToolsMongoService {
|
|
|
37390
37700
|
getCollection<K extends keyof ToolsMongoCollectionsModels>(key: K): ToolsMongoCollectionsModels[K];
|
|
37391
37701
|
}
|
|
37392
37702
|
|
|
37393
|
-
declare const schemas$
|
|
37703
|
+
declare const schemas$2: {
|
|
37394
37704
|
tasks: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37395
37705
|
timestamps: true;
|
|
37396
37706
|
}, {
|
|
@@ -37512,10 +37822,10 @@ declare const schemas$1: {
|
|
|
37512
37822
|
};
|
|
37513
37823
|
|
|
37514
37824
|
type RoutinesMongoDocuments = {
|
|
37515
|
-
[K in keyof typeof schemas$
|
|
37825
|
+
[K in keyof typeof schemas$2]: HydratedDocument<InferSchemaType<(typeof schemas$2)[K]>>;
|
|
37516
37826
|
};
|
|
37517
37827
|
type RoutinesMongoCollectionsModels = {
|
|
37518
|
-
[K in keyof typeof schemas$
|
|
37828
|
+
[K in keyof typeof schemas$2]: Model$1<InferSchemaType<(typeof schemas$2)[K]>>;
|
|
37519
37829
|
};
|
|
37520
37830
|
|
|
37521
37831
|
declare class RoutinesMongoService {
|
|
@@ -37536,7 +37846,7 @@ declare class RoutinesMongoService {
|
|
|
37536
37846
|
getCollection<K extends keyof RoutinesMongoCollectionsModels>(key: K): RoutinesMongoCollectionsModels[K];
|
|
37537
37847
|
}
|
|
37538
37848
|
|
|
37539
|
-
declare const schemas: {
|
|
37849
|
+
declare const schemas$1: {
|
|
37540
37850
|
apiKeys: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37541
37851
|
timestamps: true;
|
|
37542
37852
|
}, {
|
|
@@ -37634,10 +37944,10 @@ declare const schemas: {
|
|
|
37634
37944
|
};
|
|
37635
37945
|
|
|
37636
37946
|
type MCPGiganetMongoDocuments = {
|
|
37637
|
-
[K in keyof typeof schemas]: HydratedDocument<InferSchemaType<(typeof schemas)[K]>>;
|
|
37947
|
+
[K in keyof typeof schemas$1]: HydratedDocument<InferSchemaType<(typeof schemas$1)[K]>>;
|
|
37638
37948
|
};
|
|
37639
37949
|
type MCPGiganetMongoCollectionsModels = {
|
|
37640
|
-
[K in keyof typeof schemas]: Model$1<InferSchemaType<(typeof schemas)[K]>>;
|
|
37950
|
+
[K in keyof typeof schemas$1]: Model$1<InferSchemaType<(typeof schemas$1)[K]>>;
|
|
37641
37951
|
};
|
|
37642
37952
|
|
|
37643
37953
|
declare class MCPGiganetMongoService {
|
|
@@ -37658,4 +37968,211 @@ declare class MCPGiganetMongoService {
|
|
|
37658
37968
|
getCollection<K extends keyof MCPGiganetMongoCollectionsModels>(key: K): MCPGiganetMongoCollectionsModels[K];
|
|
37659
37969
|
}
|
|
37660
37970
|
|
|
37661
|
-
|
|
37971
|
+
interface ITicketImage {
|
|
37972
|
+
key: string;
|
|
37973
|
+
file_path: string;
|
|
37974
|
+
file_path_telegram: string;
|
|
37975
|
+
}
|
|
37976
|
+
|
|
37977
|
+
declare const schemas: {
|
|
37978
|
+
categories: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37979
|
+
timestamps: true;
|
|
37980
|
+
}, {
|
|
37981
|
+
name: string;
|
|
37982
|
+
description: string;
|
|
37983
|
+
active: boolean;
|
|
37984
|
+
form: any;
|
|
37985
|
+
} & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, {
|
|
37986
|
+
name: string;
|
|
37987
|
+
description: string;
|
|
37988
|
+
active: boolean;
|
|
37989
|
+
form: any;
|
|
37990
|
+
} & mongoose.DefaultTimestampProps, {
|
|
37991
|
+
id: string;
|
|
37992
|
+
}, Omit<mongoose.DefaultSchemaOptions, "timestamps"> & {
|
|
37993
|
+
timestamps: true;
|
|
37994
|
+
}> & Omit<{
|
|
37995
|
+
name: string;
|
|
37996
|
+
description: string;
|
|
37997
|
+
active: boolean;
|
|
37998
|
+
form: any;
|
|
37999
|
+
} & mongoose.DefaultTimestampProps & {
|
|
38000
|
+
_id: mongoose.Types.ObjectId;
|
|
38001
|
+
} & {
|
|
38002
|
+
__v: number;
|
|
38003
|
+
}, "id"> & {
|
|
38004
|
+
id: string;
|
|
38005
|
+
}, unknown, {
|
|
38006
|
+
name: string;
|
|
38007
|
+
description: string;
|
|
38008
|
+
active: boolean;
|
|
38009
|
+
form: any;
|
|
38010
|
+
createdAt: NativeDate;
|
|
38011
|
+
updatedAt: NativeDate;
|
|
38012
|
+
} & {
|
|
38013
|
+
_id: mongoose.Types.ObjectId;
|
|
38014
|
+
} & {
|
|
38015
|
+
__v: number;
|
|
38016
|
+
}>;
|
|
38017
|
+
tickets: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
38018
|
+
timestamps: true;
|
|
38019
|
+
}, {
|
|
38020
|
+
status: "concluido" | "inativo" | "pendente";
|
|
38021
|
+
valor: string;
|
|
38022
|
+
data_emissao: string;
|
|
38023
|
+
placa: string;
|
|
38024
|
+
id_veiculo: number;
|
|
38025
|
+
id_condutor: number;
|
|
38026
|
+
id_category: mongoose.Types.ObjectId;
|
|
38027
|
+
id_filial?: number | null | undefined;
|
|
38028
|
+
cidade?: string | null | undefined;
|
|
38029
|
+
descricao?: string | null | undefined;
|
|
38030
|
+
kilometragem?: number | null | undefined;
|
|
38031
|
+
images?: mongoose.Types.DocumentArray<ITicketImage, mongoose.Types.Subdocument<bson.ObjectId, unknown, ITicketImage, {}, {}> & ITicketImage> | null | undefined;
|
|
38032
|
+
} & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, {
|
|
38033
|
+
status: "concluido" | "inativo" | "pendente";
|
|
38034
|
+
valor: string;
|
|
38035
|
+
data_emissao: string;
|
|
38036
|
+
placa: string;
|
|
38037
|
+
id_veiculo: number;
|
|
38038
|
+
id_condutor: number;
|
|
38039
|
+
id_category: mongoose.Types.ObjectId;
|
|
38040
|
+
id_filial?: number | null | undefined;
|
|
38041
|
+
cidade?: string | null | undefined;
|
|
38042
|
+
descricao?: string | null | undefined;
|
|
38043
|
+
kilometragem?: number | null | undefined;
|
|
38044
|
+
images?: mongoose.Types.DocumentArray<ITicketImage, mongoose.Types.Subdocument<bson.ObjectId, unknown, ITicketImage, {}, {}> & ITicketImage> | null | undefined;
|
|
38045
|
+
} & mongoose.DefaultTimestampProps, {
|
|
38046
|
+
id: string;
|
|
38047
|
+
}, Omit<mongoose.DefaultSchemaOptions, "timestamps"> & {
|
|
38048
|
+
timestamps: true;
|
|
38049
|
+
}> & Omit<{
|
|
38050
|
+
status: "concluido" | "inativo" | "pendente";
|
|
38051
|
+
valor: string;
|
|
38052
|
+
data_emissao: string;
|
|
38053
|
+
placa: string;
|
|
38054
|
+
id_veiculo: number;
|
|
38055
|
+
id_condutor: number;
|
|
38056
|
+
id_category: mongoose.Types.ObjectId;
|
|
38057
|
+
id_filial?: number | null | undefined;
|
|
38058
|
+
cidade?: string | null | undefined;
|
|
38059
|
+
descricao?: string | null | undefined;
|
|
38060
|
+
kilometragem?: number | null | undefined;
|
|
38061
|
+
images?: mongoose.Types.DocumentArray<ITicketImage, mongoose.Types.Subdocument<bson.ObjectId, unknown, ITicketImage, {}, {}> & ITicketImage> | null | undefined;
|
|
38062
|
+
} & mongoose.DefaultTimestampProps & {
|
|
38063
|
+
_id: mongoose.Types.ObjectId;
|
|
38064
|
+
} & {
|
|
38065
|
+
__v: number;
|
|
38066
|
+
}, "id"> & {
|
|
38067
|
+
id: string;
|
|
38068
|
+
}, unknown, {
|
|
38069
|
+
status: "concluido" | "inativo" | "pendente";
|
|
38070
|
+
valor: string;
|
|
38071
|
+
data_emissao: string;
|
|
38072
|
+
placa: string;
|
|
38073
|
+
id_veiculo: number;
|
|
38074
|
+
id_condutor: number;
|
|
38075
|
+
id_category: mongoose.Types.ObjectId;
|
|
38076
|
+
id_filial?: number | null | undefined;
|
|
38077
|
+
cidade?: string | null | undefined;
|
|
38078
|
+
descricao?: string | null | undefined;
|
|
38079
|
+
kilometragem?: number | null | undefined;
|
|
38080
|
+
images?: mongoose.Types.DocumentArray<{
|
|
38081
|
+
key: string;
|
|
38082
|
+
file_path: string;
|
|
38083
|
+
file_path_telegram: string;
|
|
38084
|
+
}, mongoose.Types.Subdocument<bson.ObjectId, unknown, {
|
|
38085
|
+
key: string;
|
|
38086
|
+
file_path: string;
|
|
38087
|
+
file_path_telegram: string;
|
|
38088
|
+
}, {}, {}> & {
|
|
38089
|
+
key: string;
|
|
38090
|
+
file_path: string;
|
|
38091
|
+
file_path_telegram: string;
|
|
38092
|
+
}> | null | undefined;
|
|
38093
|
+
createdAt: NativeDate;
|
|
38094
|
+
updatedAt: NativeDate;
|
|
38095
|
+
} & {
|
|
38096
|
+
_id: mongoose.Types.ObjectId;
|
|
38097
|
+
} & {
|
|
38098
|
+
__v: number;
|
|
38099
|
+
}>;
|
|
38100
|
+
logs: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
38101
|
+
timestamps: true;
|
|
38102
|
+
}, {
|
|
38103
|
+
status: "success" | "error" | "warning" | "info";
|
|
38104
|
+
action: string;
|
|
38105
|
+
description: string;
|
|
38106
|
+
triggered_by?: mongoose.Types.ObjectId | null | undefined;
|
|
38107
|
+
executionTimeMs?: number | null | undefined;
|
|
38108
|
+
metadata?: any;
|
|
38109
|
+
ticket?: mongoose.Types.ObjectId | null | undefined;
|
|
38110
|
+
} & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, {
|
|
38111
|
+
status: "success" | "error" | "warning" | "info";
|
|
38112
|
+
action: string;
|
|
38113
|
+
description: string;
|
|
38114
|
+
triggered_by?: mongoose.Types.ObjectId | null | undefined;
|
|
38115
|
+
executionTimeMs?: number | null | undefined;
|
|
38116
|
+
metadata?: any;
|
|
38117
|
+
ticket?: mongoose.Types.ObjectId | null | undefined;
|
|
38118
|
+
} & mongoose.DefaultTimestampProps, {
|
|
38119
|
+
id: string;
|
|
38120
|
+
}, Omit<mongoose.DefaultSchemaOptions, "timestamps"> & {
|
|
38121
|
+
timestamps: true;
|
|
38122
|
+
}> & Omit<{
|
|
38123
|
+
status: "success" | "error" | "warning" | "info";
|
|
38124
|
+
action: string;
|
|
38125
|
+
description: string;
|
|
38126
|
+
triggered_by?: mongoose.Types.ObjectId | null | undefined;
|
|
38127
|
+
executionTimeMs?: number | null | undefined;
|
|
38128
|
+
metadata?: any;
|
|
38129
|
+
ticket?: mongoose.Types.ObjectId | null | undefined;
|
|
38130
|
+
} & mongoose.DefaultTimestampProps & {
|
|
38131
|
+
_id: mongoose.Types.ObjectId;
|
|
38132
|
+
} & {
|
|
38133
|
+
__v: number;
|
|
38134
|
+
}, "id"> & {
|
|
38135
|
+
id: string;
|
|
38136
|
+
}, unknown, {
|
|
38137
|
+
status: "success" | "error" | "warning" | "info";
|
|
38138
|
+
action: string;
|
|
38139
|
+
description: string;
|
|
38140
|
+
triggered_by?: mongoose.Types.ObjectId | null | undefined;
|
|
38141
|
+
executionTimeMs?: number | null | undefined;
|
|
38142
|
+
metadata?: any;
|
|
38143
|
+
ticket?: mongoose.Types.ObjectId | null | undefined;
|
|
38144
|
+
createdAt: NativeDate;
|
|
38145
|
+
updatedAt: NativeDate;
|
|
38146
|
+
} & {
|
|
38147
|
+
_id: mongoose.Types.ObjectId;
|
|
38148
|
+
} & {
|
|
38149
|
+
__v: number;
|
|
38150
|
+
}>;
|
|
38151
|
+
};
|
|
38152
|
+
|
|
38153
|
+
type ExpensesFleetMongoDocuments = {
|
|
38154
|
+
[K in keyof typeof schemas]: HydratedDocument<InferSchemaType<(typeof schemas)[K]>>;
|
|
38155
|
+
};
|
|
38156
|
+
type ExpensesFleetMongoCollectionsModels = {
|
|
38157
|
+
[K in keyof typeof schemas]: Model$1<InferSchemaType<(typeof schemas)[K]>>;
|
|
38158
|
+
};
|
|
38159
|
+
|
|
38160
|
+
declare class ExpensesFleetMongoService {
|
|
38161
|
+
private static instance;
|
|
38162
|
+
private connection;
|
|
38163
|
+
private initialized;
|
|
38164
|
+
private constructor();
|
|
38165
|
+
private notInitialized;
|
|
38166
|
+
/** Retorna a instância singleton */
|
|
38167
|
+
static getInstance(): ExpensesFleetMongoService;
|
|
38168
|
+
/** Inicializa a conexão e collections */
|
|
38169
|
+
init(config: MongoConnectionConfig): Promise<void>;
|
|
38170
|
+
/** Retorna Mongoose connection */
|
|
38171
|
+
getConnection(): mongoose.Connection;
|
|
38172
|
+
/** Retorna collections tipadas */
|
|
38173
|
+
get collections(): ExpensesFleetMongoCollectionsModels;
|
|
38174
|
+
/** Retorna uma collection específica tipada */
|
|
38175
|
+
getCollection<K extends keyof ExpensesFleetMongoCollectionsModels>(key: K): ExpensesFleetMongoCollectionsModels[K];
|
|
38176
|
+
}
|
|
38177
|
+
|
|
38178
|
+
export { type ExpensesFleetMongoCollectionsModels, type ExpensesFleetMongoDocuments, ExpensesFleetMongoService, GeminiLIBClient, geminiLib_types as GeminiLIBTypes, IXCSoftAPIClient, ixcSoftApi_types as IXCSoftAPITypes, type IXCSoftMysqlModels, type IXCSoftMysqlModelsAttributes, IXCSoftMysqlService, type MCPGiganetMongoCollectionsModels, type MCPGiganetMongoDocuments, MCPGiganetMongoService, NtfyAPIClient, ntfyApi_types as NtfyAPITypes, type OPASuiteMongoCollectionsModels, type OPASuiteMongoDocuments, OPASuiteMongoService, RoutinesAPIClient, routinesApi_types as RoutinesAPITypes, type RoutinesMongoCollectionsModels, type RoutinesMongoDocuments, RoutinesMongoService, type RoutinesMysqlModels, type RoutinesMysqlModelsAttributes, RoutinesMysqlService, type ToolsMongoCollectionsModels, type ToolsMongoDocuments, ToolsMongoService, loger, printSignature };
|