@cristian-israel/giganet_lib_conecta 1.0.87 → 1.0.89
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 +149 -16
- package/dist/index.d.ts +149 -16
- package/dist/index.js +111 -1
- package/dist/index.mjs +110 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -36926,7 +36926,7 @@ declare class RoutinesMysqlService {
|
|
|
36926
36926
|
}[K];
|
|
36927
36927
|
}
|
|
36928
36928
|
|
|
36929
|
-
declare const schemas$
|
|
36929
|
+
declare const schemas$5: {
|
|
36930
36930
|
tags: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
36931
36931
|
nome: string;
|
|
36932
36932
|
empresa: mongoose.Types.ObjectId;
|
|
@@ -37429,10 +37429,10 @@ declare const schemas$4: {
|
|
|
37429
37429
|
};
|
|
37430
37430
|
|
|
37431
37431
|
type OPASuiteMongoDocuments = {
|
|
37432
|
-
[K in keyof typeof schemas$
|
|
37432
|
+
[K in keyof typeof schemas$5]: HydratedDocument<InferSchemaType<(typeof schemas$5)[K]>>;
|
|
37433
37433
|
};
|
|
37434
37434
|
type OPASuiteMongoCollectionsModels = {
|
|
37435
|
-
[K in keyof typeof schemas$
|
|
37435
|
+
[K in keyof typeof schemas$5]: Model$1<InferSchemaType<(typeof schemas$5)[K]>>;
|
|
37436
37436
|
};
|
|
37437
37437
|
|
|
37438
37438
|
type MongoConnectionConfig = {
|
|
@@ -37461,7 +37461,7 @@ declare class OPASuiteMongoService {
|
|
|
37461
37461
|
getCollection<K extends keyof OPASuiteMongoCollectionsModels>(key: K): OPASuiteMongoCollectionsModels[K];
|
|
37462
37462
|
}
|
|
37463
37463
|
|
|
37464
|
-
declare const schemas$
|
|
37464
|
+
declare const schemas$4: {
|
|
37465
37465
|
user: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37466
37466
|
timestamps: true;
|
|
37467
37467
|
}, {
|
|
@@ -37676,10 +37676,10 @@ declare const schemas$3: {
|
|
|
37676
37676
|
};
|
|
37677
37677
|
|
|
37678
37678
|
type ToolsMongoDocuments = {
|
|
37679
|
-
[K in keyof typeof schemas$
|
|
37679
|
+
[K in keyof typeof schemas$4]: HydratedDocument<InferSchemaType<(typeof schemas$4)[K]>>;
|
|
37680
37680
|
};
|
|
37681
37681
|
type ToolsMongoCollectionsModels = {
|
|
37682
|
-
[K in keyof typeof schemas$
|
|
37682
|
+
[K in keyof typeof schemas$4]: Model$1<InferSchemaType<(typeof schemas$4)[K]>>;
|
|
37683
37683
|
};
|
|
37684
37684
|
|
|
37685
37685
|
declare class ToolsMongoService {
|
|
@@ -37700,7 +37700,7 @@ declare class ToolsMongoService {
|
|
|
37700
37700
|
getCollection<K extends keyof ToolsMongoCollectionsModels>(key: K): ToolsMongoCollectionsModels[K];
|
|
37701
37701
|
}
|
|
37702
37702
|
|
|
37703
|
-
declare const schemas$
|
|
37703
|
+
declare const schemas$3: {
|
|
37704
37704
|
tasks: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37705
37705
|
timestamps: true;
|
|
37706
37706
|
}, {
|
|
@@ -37822,10 +37822,10 @@ declare const schemas$2: {
|
|
|
37822
37822
|
};
|
|
37823
37823
|
|
|
37824
37824
|
type RoutinesMongoDocuments = {
|
|
37825
|
-
[K in keyof typeof schemas$
|
|
37825
|
+
[K in keyof typeof schemas$3]: HydratedDocument<InferSchemaType<(typeof schemas$3)[K]>>;
|
|
37826
37826
|
};
|
|
37827
37827
|
type RoutinesMongoCollectionsModels = {
|
|
37828
|
-
[K in keyof typeof schemas$
|
|
37828
|
+
[K in keyof typeof schemas$3]: Model$1<InferSchemaType<(typeof schemas$3)[K]>>;
|
|
37829
37829
|
};
|
|
37830
37830
|
|
|
37831
37831
|
declare class RoutinesMongoService {
|
|
@@ -37846,7 +37846,7 @@ declare class RoutinesMongoService {
|
|
|
37846
37846
|
getCollection<K extends keyof RoutinesMongoCollectionsModels>(key: K): RoutinesMongoCollectionsModels[K];
|
|
37847
37847
|
}
|
|
37848
37848
|
|
|
37849
|
-
declare const schemas$
|
|
37849
|
+
declare const schemas$2: {
|
|
37850
37850
|
apiKeys: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37851
37851
|
timestamps: true;
|
|
37852
37852
|
}, {
|
|
@@ -37944,10 +37944,10 @@ declare const schemas$1: {
|
|
|
37944
37944
|
};
|
|
37945
37945
|
|
|
37946
37946
|
type MCPGiganetMongoDocuments = {
|
|
37947
|
-
[K in keyof typeof schemas$
|
|
37947
|
+
[K in keyof typeof schemas$2]: HydratedDocument<InferSchemaType<(typeof schemas$2)[K]>>;
|
|
37948
37948
|
};
|
|
37949
37949
|
type MCPGiganetMongoCollectionsModels = {
|
|
37950
|
-
[K in keyof typeof schemas$
|
|
37950
|
+
[K in keyof typeof schemas$2]: Model$1<InferSchemaType<(typeof schemas$2)[K]>>;
|
|
37951
37951
|
};
|
|
37952
37952
|
|
|
37953
37953
|
declare class MCPGiganetMongoService {
|
|
@@ -37974,7 +37974,7 @@ interface ITicketImage {
|
|
|
37974
37974
|
file_path_telegram: string;
|
|
37975
37975
|
}
|
|
37976
37976
|
|
|
37977
|
-
declare const schemas: {
|
|
37977
|
+
declare const schemas$1: {
|
|
37978
37978
|
categories: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37979
37979
|
timestamps: true;
|
|
37980
37980
|
}, {
|
|
@@ -38151,10 +38151,10 @@ declare const schemas: {
|
|
|
38151
38151
|
};
|
|
38152
38152
|
|
|
38153
38153
|
type ExpensesFleetMongoDocuments = {
|
|
38154
|
-
[K in keyof typeof schemas]: HydratedDocument<InferSchemaType<(typeof schemas)[K]>>;
|
|
38154
|
+
[K in keyof typeof schemas$1]: HydratedDocument<InferSchemaType<(typeof schemas$1)[K]>>;
|
|
38155
38155
|
};
|
|
38156
38156
|
type ExpensesFleetMongoCollectionsModels = {
|
|
38157
|
-
[K in keyof typeof schemas]: Model$1<InferSchemaType<(typeof schemas)[K]>>;
|
|
38157
|
+
[K in keyof typeof schemas$1]: Model$1<InferSchemaType<(typeof schemas$1)[K]>>;
|
|
38158
38158
|
};
|
|
38159
38159
|
|
|
38160
38160
|
declare class ExpensesFleetMongoService {
|
|
@@ -38175,4 +38175,137 @@ declare class ExpensesFleetMongoService {
|
|
|
38175
38175
|
getCollection<K extends keyof ExpensesFleetMongoCollectionsModels>(key: K): ExpensesFleetMongoCollectionsModels[K];
|
|
38176
38176
|
}
|
|
38177
38177
|
|
|
38178
|
-
|
|
38178
|
+
declare const schemas: {
|
|
38179
|
+
financeiro_fechamento: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
38180
|
+
timestamps: true;
|
|
38181
|
+
collection: string;
|
|
38182
|
+
}, {
|
|
38183
|
+
idConta: number;
|
|
38184
|
+
idUsuario: number;
|
|
38185
|
+
observacao: string;
|
|
38186
|
+
usuario: string;
|
|
38187
|
+
lacre: string;
|
|
38188
|
+
id_fn_transferencia: number;
|
|
38189
|
+
id_mov_credito: number;
|
|
38190
|
+
id_mov_debito: number;
|
|
38191
|
+
troco: number;
|
|
38192
|
+
dinheiro: number;
|
|
38193
|
+
cartao: number;
|
|
38194
|
+
cheque: number;
|
|
38195
|
+
pix: number;
|
|
38196
|
+
dinheiro_c: number;
|
|
38197
|
+
cartao_c: number;
|
|
38198
|
+
cheque_c: number;
|
|
38199
|
+
pix_c: number;
|
|
38200
|
+
retiradas: number;
|
|
38201
|
+
fechou: boolean;
|
|
38202
|
+
data?: NativeDate | null | undefined;
|
|
38203
|
+
} & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, {
|
|
38204
|
+
idConta: number;
|
|
38205
|
+
idUsuario: number;
|
|
38206
|
+
observacao: string;
|
|
38207
|
+
usuario: string;
|
|
38208
|
+
lacre: string;
|
|
38209
|
+
id_fn_transferencia: number;
|
|
38210
|
+
id_mov_credito: number;
|
|
38211
|
+
id_mov_debito: number;
|
|
38212
|
+
troco: number;
|
|
38213
|
+
dinheiro: number;
|
|
38214
|
+
cartao: number;
|
|
38215
|
+
cheque: number;
|
|
38216
|
+
pix: number;
|
|
38217
|
+
dinheiro_c: number;
|
|
38218
|
+
cartao_c: number;
|
|
38219
|
+
cheque_c: number;
|
|
38220
|
+
pix_c: number;
|
|
38221
|
+
retiradas: number;
|
|
38222
|
+
fechou: boolean;
|
|
38223
|
+
data?: NativeDate | null | undefined;
|
|
38224
|
+
} & mongoose.DefaultTimestampProps, {
|
|
38225
|
+
id: string;
|
|
38226
|
+
}, Omit<mongoose.DefaultSchemaOptions, "timestamps" | "collection"> & {
|
|
38227
|
+
timestamps: true;
|
|
38228
|
+
collection: string;
|
|
38229
|
+
}> & Omit<{
|
|
38230
|
+
idConta: number;
|
|
38231
|
+
idUsuario: number;
|
|
38232
|
+
observacao: string;
|
|
38233
|
+
usuario: string;
|
|
38234
|
+
lacre: string;
|
|
38235
|
+
id_fn_transferencia: number;
|
|
38236
|
+
id_mov_credito: number;
|
|
38237
|
+
id_mov_debito: number;
|
|
38238
|
+
troco: number;
|
|
38239
|
+
dinheiro: number;
|
|
38240
|
+
cartao: number;
|
|
38241
|
+
cheque: number;
|
|
38242
|
+
pix: number;
|
|
38243
|
+
dinheiro_c: number;
|
|
38244
|
+
cartao_c: number;
|
|
38245
|
+
cheque_c: number;
|
|
38246
|
+
pix_c: number;
|
|
38247
|
+
retiradas: number;
|
|
38248
|
+
fechou: boolean;
|
|
38249
|
+
data?: NativeDate | null | undefined;
|
|
38250
|
+
} & mongoose.DefaultTimestampProps & {
|
|
38251
|
+
_id: mongoose.Types.ObjectId;
|
|
38252
|
+
} & {
|
|
38253
|
+
__v: number;
|
|
38254
|
+
}, "id"> & {
|
|
38255
|
+
id: string;
|
|
38256
|
+
}, unknown, {
|
|
38257
|
+
idConta: number;
|
|
38258
|
+
idUsuario: number;
|
|
38259
|
+
observacao: string;
|
|
38260
|
+
usuario: string;
|
|
38261
|
+
lacre: string;
|
|
38262
|
+
id_fn_transferencia: number;
|
|
38263
|
+
id_mov_credito: number;
|
|
38264
|
+
id_mov_debito: number;
|
|
38265
|
+
troco: number;
|
|
38266
|
+
dinheiro: number;
|
|
38267
|
+
cartao: number;
|
|
38268
|
+
cheque: number;
|
|
38269
|
+
pix: number;
|
|
38270
|
+
dinheiro_c: number;
|
|
38271
|
+
cartao_c: number;
|
|
38272
|
+
cheque_c: number;
|
|
38273
|
+
pix_c: number;
|
|
38274
|
+
retiradas: number;
|
|
38275
|
+
fechou: boolean;
|
|
38276
|
+
data?: NativeDate | null | undefined;
|
|
38277
|
+
createdAt: NativeDate;
|
|
38278
|
+
updatedAt: NativeDate;
|
|
38279
|
+
} & {
|
|
38280
|
+
_id: mongoose.Types.ObjectId;
|
|
38281
|
+
} & {
|
|
38282
|
+
__v: number;
|
|
38283
|
+
}>;
|
|
38284
|
+
};
|
|
38285
|
+
|
|
38286
|
+
type GigacenterMongoDocuments = {
|
|
38287
|
+
[K in keyof typeof schemas]: HydratedDocument<InferSchemaType<(typeof schemas)[K]>>;
|
|
38288
|
+
};
|
|
38289
|
+
type GigacenterMongoCollectionsModels = {
|
|
38290
|
+
[K in keyof typeof schemas]: Model$1<InferSchemaType<(typeof schemas)[K]>>;
|
|
38291
|
+
};
|
|
38292
|
+
|
|
38293
|
+
declare class GigacenterMongoService {
|
|
38294
|
+
private static instance;
|
|
38295
|
+
private connection;
|
|
38296
|
+
private initialized;
|
|
38297
|
+
private constructor();
|
|
38298
|
+
private notInitialized;
|
|
38299
|
+
/** Retorna a instância singleton */
|
|
38300
|
+
static getInstance(): GigacenterMongoService;
|
|
38301
|
+
/** Inicializa a conexão e collections */
|
|
38302
|
+
init(config: MongoConnectionConfig): Promise<void>;
|
|
38303
|
+
/** Retorna Mongoose connection */
|
|
38304
|
+
getConnection(): mongoose.Connection;
|
|
38305
|
+
/** Retorna collections tipadas */
|
|
38306
|
+
get collections(): GigacenterMongoCollectionsModels;
|
|
38307
|
+
/** Retorna uma collection específica tipada */
|
|
38308
|
+
getCollection<K extends keyof GigacenterMongoCollectionsModels>(key: K): GigacenterMongoCollectionsModels[K];
|
|
38309
|
+
}
|
|
38310
|
+
|
|
38311
|
+
export { type ExpensesFleetMongoCollectionsModels, type ExpensesFleetMongoDocuments, ExpensesFleetMongoService, GeminiLIBClient, geminiLib_types as GeminiLIBTypes, type GigacenterMongoCollectionsModels, type GigacenterMongoDocuments, GigacenterMongoService, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -36926,7 +36926,7 @@ declare class RoutinesMysqlService {
|
|
|
36926
36926
|
}[K];
|
|
36927
36927
|
}
|
|
36928
36928
|
|
|
36929
|
-
declare const schemas$
|
|
36929
|
+
declare const schemas$5: {
|
|
36930
36930
|
tags: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
36931
36931
|
nome: string;
|
|
36932
36932
|
empresa: mongoose.Types.ObjectId;
|
|
@@ -37429,10 +37429,10 @@ declare const schemas$4: {
|
|
|
37429
37429
|
};
|
|
37430
37430
|
|
|
37431
37431
|
type OPASuiteMongoDocuments = {
|
|
37432
|
-
[K in keyof typeof schemas$
|
|
37432
|
+
[K in keyof typeof schemas$5]: HydratedDocument<InferSchemaType<(typeof schemas$5)[K]>>;
|
|
37433
37433
|
};
|
|
37434
37434
|
type OPASuiteMongoCollectionsModels = {
|
|
37435
|
-
[K in keyof typeof schemas$
|
|
37435
|
+
[K in keyof typeof schemas$5]: Model$1<InferSchemaType<(typeof schemas$5)[K]>>;
|
|
37436
37436
|
};
|
|
37437
37437
|
|
|
37438
37438
|
type MongoConnectionConfig = {
|
|
@@ -37461,7 +37461,7 @@ declare class OPASuiteMongoService {
|
|
|
37461
37461
|
getCollection<K extends keyof OPASuiteMongoCollectionsModels>(key: K): OPASuiteMongoCollectionsModels[K];
|
|
37462
37462
|
}
|
|
37463
37463
|
|
|
37464
|
-
declare const schemas$
|
|
37464
|
+
declare const schemas$4: {
|
|
37465
37465
|
user: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37466
37466
|
timestamps: true;
|
|
37467
37467
|
}, {
|
|
@@ -37676,10 +37676,10 @@ declare const schemas$3: {
|
|
|
37676
37676
|
};
|
|
37677
37677
|
|
|
37678
37678
|
type ToolsMongoDocuments = {
|
|
37679
|
-
[K in keyof typeof schemas$
|
|
37679
|
+
[K in keyof typeof schemas$4]: HydratedDocument<InferSchemaType<(typeof schemas$4)[K]>>;
|
|
37680
37680
|
};
|
|
37681
37681
|
type ToolsMongoCollectionsModels = {
|
|
37682
|
-
[K in keyof typeof schemas$
|
|
37682
|
+
[K in keyof typeof schemas$4]: Model$1<InferSchemaType<(typeof schemas$4)[K]>>;
|
|
37683
37683
|
};
|
|
37684
37684
|
|
|
37685
37685
|
declare class ToolsMongoService {
|
|
@@ -37700,7 +37700,7 @@ declare class ToolsMongoService {
|
|
|
37700
37700
|
getCollection<K extends keyof ToolsMongoCollectionsModels>(key: K): ToolsMongoCollectionsModels[K];
|
|
37701
37701
|
}
|
|
37702
37702
|
|
|
37703
|
-
declare const schemas$
|
|
37703
|
+
declare const schemas$3: {
|
|
37704
37704
|
tasks: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37705
37705
|
timestamps: true;
|
|
37706
37706
|
}, {
|
|
@@ -37822,10 +37822,10 @@ declare const schemas$2: {
|
|
|
37822
37822
|
};
|
|
37823
37823
|
|
|
37824
37824
|
type RoutinesMongoDocuments = {
|
|
37825
|
-
[K in keyof typeof schemas$
|
|
37825
|
+
[K in keyof typeof schemas$3]: HydratedDocument<InferSchemaType<(typeof schemas$3)[K]>>;
|
|
37826
37826
|
};
|
|
37827
37827
|
type RoutinesMongoCollectionsModels = {
|
|
37828
|
-
[K in keyof typeof schemas$
|
|
37828
|
+
[K in keyof typeof schemas$3]: Model$1<InferSchemaType<(typeof schemas$3)[K]>>;
|
|
37829
37829
|
};
|
|
37830
37830
|
|
|
37831
37831
|
declare class RoutinesMongoService {
|
|
@@ -37846,7 +37846,7 @@ declare class RoutinesMongoService {
|
|
|
37846
37846
|
getCollection<K extends keyof RoutinesMongoCollectionsModels>(key: K): RoutinesMongoCollectionsModels[K];
|
|
37847
37847
|
}
|
|
37848
37848
|
|
|
37849
|
-
declare const schemas$
|
|
37849
|
+
declare const schemas$2: {
|
|
37850
37850
|
apiKeys: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37851
37851
|
timestamps: true;
|
|
37852
37852
|
}, {
|
|
@@ -37944,10 +37944,10 @@ declare const schemas$1: {
|
|
|
37944
37944
|
};
|
|
37945
37945
|
|
|
37946
37946
|
type MCPGiganetMongoDocuments = {
|
|
37947
|
-
[K in keyof typeof schemas$
|
|
37947
|
+
[K in keyof typeof schemas$2]: HydratedDocument<InferSchemaType<(typeof schemas$2)[K]>>;
|
|
37948
37948
|
};
|
|
37949
37949
|
type MCPGiganetMongoCollectionsModels = {
|
|
37950
|
-
[K in keyof typeof schemas$
|
|
37950
|
+
[K in keyof typeof schemas$2]: Model$1<InferSchemaType<(typeof schemas$2)[K]>>;
|
|
37951
37951
|
};
|
|
37952
37952
|
|
|
37953
37953
|
declare class MCPGiganetMongoService {
|
|
@@ -37974,7 +37974,7 @@ interface ITicketImage {
|
|
|
37974
37974
|
file_path_telegram: string;
|
|
37975
37975
|
}
|
|
37976
37976
|
|
|
37977
|
-
declare const schemas: {
|
|
37977
|
+
declare const schemas$1: {
|
|
37978
37978
|
categories: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37979
37979
|
timestamps: true;
|
|
37980
37980
|
}, {
|
|
@@ -38151,10 +38151,10 @@ declare const schemas: {
|
|
|
38151
38151
|
};
|
|
38152
38152
|
|
|
38153
38153
|
type ExpensesFleetMongoDocuments = {
|
|
38154
|
-
[K in keyof typeof schemas]: HydratedDocument<InferSchemaType<(typeof schemas)[K]>>;
|
|
38154
|
+
[K in keyof typeof schemas$1]: HydratedDocument<InferSchemaType<(typeof schemas$1)[K]>>;
|
|
38155
38155
|
};
|
|
38156
38156
|
type ExpensesFleetMongoCollectionsModels = {
|
|
38157
|
-
[K in keyof typeof schemas]: Model$1<InferSchemaType<(typeof schemas)[K]>>;
|
|
38157
|
+
[K in keyof typeof schemas$1]: Model$1<InferSchemaType<(typeof schemas$1)[K]>>;
|
|
38158
38158
|
};
|
|
38159
38159
|
|
|
38160
38160
|
declare class ExpensesFleetMongoService {
|
|
@@ -38175,4 +38175,137 @@ declare class ExpensesFleetMongoService {
|
|
|
38175
38175
|
getCollection<K extends keyof ExpensesFleetMongoCollectionsModels>(key: K): ExpensesFleetMongoCollectionsModels[K];
|
|
38176
38176
|
}
|
|
38177
38177
|
|
|
38178
|
-
|
|
38178
|
+
declare const schemas: {
|
|
38179
|
+
financeiro_fechamento: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
38180
|
+
timestamps: true;
|
|
38181
|
+
collection: string;
|
|
38182
|
+
}, {
|
|
38183
|
+
idConta: number;
|
|
38184
|
+
idUsuario: number;
|
|
38185
|
+
observacao: string;
|
|
38186
|
+
usuario: string;
|
|
38187
|
+
lacre: string;
|
|
38188
|
+
id_fn_transferencia: number;
|
|
38189
|
+
id_mov_credito: number;
|
|
38190
|
+
id_mov_debito: number;
|
|
38191
|
+
troco: number;
|
|
38192
|
+
dinheiro: number;
|
|
38193
|
+
cartao: number;
|
|
38194
|
+
cheque: number;
|
|
38195
|
+
pix: number;
|
|
38196
|
+
dinheiro_c: number;
|
|
38197
|
+
cartao_c: number;
|
|
38198
|
+
cheque_c: number;
|
|
38199
|
+
pix_c: number;
|
|
38200
|
+
retiradas: number;
|
|
38201
|
+
fechou: boolean;
|
|
38202
|
+
data?: NativeDate | null | undefined;
|
|
38203
|
+
} & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, {
|
|
38204
|
+
idConta: number;
|
|
38205
|
+
idUsuario: number;
|
|
38206
|
+
observacao: string;
|
|
38207
|
+
usuario: string;
|
|
38208
|
+
lacre: string;
|
|
38209
|
+
id_fn_transferencia: number;
|
|
38210
|
+
id_mov_credito: number;
|
|
38211
|
+
id_mov_debito: number;
|
|
38212
|
+
troco: number;
|
|
38213
|
+
dinheiro: number;
|
|
38214
|
+
cartao: number;
|
|
38215
|
+
cheque: number;
|
|
38216
|
+
pix: number;
|
|
38217
|
+
dinheiro_c: number;
|
|
38218
|
+
cartao_c: number;
|
|
38219
|
+
cheque_c: number;
|
|
38220
|
+
pix_c: number;
|
|
38221
|
+
retiradas: number;
|
|
38222
|
+
fechou: boolean;
|
|
38223
|
+
data?: NativeDate | null | undefined;
|
|
38224
|
+
} & mongoose.DefaultTimestampProps, {
|
|
38225
|
+
id: string;
|
|
38226
|
+
}, Omit<mongoose.DefaultSchemaOptions, "timestamps" | "collection"> & {
|
|
38227
|
+
timestamps: true;
|
|
38228
|
+
collection: string;
|
|
38229
|
+
}> & Omit<{
|
|
38230
|
+
idConta: number;
|
|
38231
|
+
idUsuario: number;
|
|
38232
|
+
observacao: string;
|
|
38233
|
+
usuario: string;
|
|
38234
|
+
lacre: string;
|
|
38235
|
+
id_fn_transferencia: number;
|
|
38236
|
+
id_mov_credito: number;
|
|
38237
|
+
id_mov_debito: number;
|
|
38238
|
+
troco: number;
|
|
38239
|
+
dinheiro: number;
|
|
38240
|
+
cartao: number;
|
|
38241
|
+
cheque: number;
|
|
38242
|
+
pix: number;
|
|
38243
|
+
dinheiro_c: number;
|
|
38244
|
+
cartao_c: number;
|
|
38245
|
+
cheque_c: number;
|
|
38246
|
+
pix_c: number;
|
|
38247
|
+
retiradas: number;
|
|
38248
|
+
fechou: boolean;
|
|
38249
|
+
data?: NativeDate | null | undefined;
|
|
38250
|
+
} & mongoose.DefaultTimestampProps & {
|
|
38251
|
+
_id: mongoose.Types.ObjectId;
|
|
38252
|
+
} & {
|
|
38253
|
+
__v: number;
|
|
38254
|
+
}, "id"> & {
|
|
38255
|
+
id: string;
|
|
38256
|
+
}, unknown, {
|
|
38257
|
+
idConta: number;
|
|
38258
|
+
idUsuario: number;
|
|
38259
|
+
observacao: string;
|
|
38260
|
+
usuario: string;
|
|
38261
|
+
lacre: string;
|
|
38262
|
+
id_fn_transferencia: number;
|
|
38263
|
+
id_mov_credito: number;
|
|
38264
|
+
id_mov_debito: number;
|
|
38265
|
+
troco: number;
|
|
38266
|
+
dinheiro: number;
|
|
38267
|
+
cartao: number;
|
|
38268
|
+
cheque: number;
|
|
38269
|
+
pix: number;
|
|
38270
|
+
dinheiro_c: number;
|
|
38271
|
+
cartao_c: number;
|
|
38272
|
+
cheque_c: number;
|
|
38273
|
+
pix_c: number;
|
|
38274
|
+
retiradas: number;
|
|
38275
|
+
fechou: boolean;
|
|
38276
|
+
data?: NativeDate | null | undefined;
|
|
38277
|
+
createdAt: NativeDate;
|
|
38278
|
+
updatedAt: NativeDate;
|
|
38279
|
+
} & {
|
|
38280
|
+
_id: mongoose.Types.ObjectId;
|
|
38281
|
+
} & {
|
|
38282
|
+
__v: number;
|
|
38283
|
+
}>;
|
|
38284
|
+
};
|
|
38285
|
+
|
|
38286
|
+
type GigacenterMongoDocuments = {
|
|
38287
|
+
[K in keyof typeof schemas]: HydratedDocument<InferSchemaType<(typeof schemas)[K]>>;
|
|
38288
|
+
};
|
|
38289
|
+
type GigacenterMongoCollectionsModels = {
|
|
38290
|
+
[K in keyof typeof schemas]: Model$1<InferSchemaType<(typeof schemas)[K]>>;
|
|
38291
|
+
};
|
|
38292
|
+
|
|
38293
|
+
declare class GigacenterMongoService {
|
|
38294
|
+
private static instance;
|
|
38295
|
+
private connection;
|
|
38296
|
+
private initialized;
|
|
38297
|
+
private constructor();
|
|
38298
|
+
private notInitialized;
|
|
38299
|
+
/** Retorna a instância singleton */
|
|
38300
|
+
static getInstance(): GigacenterMongoService;
|
|
38301
|
+
/** Inicializa a conexão e collections */
|
|
38302
|
+
init(config: MongoConnectionConfig): Promise<void>;
|
|
38303
|
+
/** Retorna Mongoose connection */
|
|
38304
|
+
getConnection(): mongoose.Connection;
|
|
38305
|
+
/** Retorna collections tipadas */
|
|
38306
|
+
get collections(): GigacenterMongoCollectionsModels;
|
|
38307
|
+
/** Retorna uma collection específica tipada */
|
|
38308
|
+
getCollection<K extends keyof GigacenterMongoCollectionsModels>(key: K): GigacenterMongoCollectionsModels[K];
|
|
38309
|
+
}
|
|
38310
|
+
|
|
38311
|
+
export { type ExpensesFleetMongoCollectionsModels, type ExpensesFleetMongoDocuments, ExpensesFleetMongoService, GeminiLIBClient, geminiLib_types as GeminiLIBTypes, type GigacenterMongoCollectionsModels, type GigacenterMongoDocuments, GigacenterMongoService, 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 };
|
package/dist/index.js
CHANGED
|
@@ -33,6 +33,7 @@ __export(index_exports, {
|
|
|
33
33
|
ExpensesFleetMongoService: () => ExpensesFleetMongoService,
|
|
34
34
|
GeminiLIBClient: () => GeminiLIBClient,
|
|
35
35
|
GeminiLIBTypes: () => gemini_lib_types_exports,
|
|
36
|
+
GigacenterMongoService: () => GigacenterMongoService,
|
|
36
37
|
IXCSoftAPIClient: () => IXCSoftAPIClient,
|
|
37
38
|
IXCSoftAPITypes: () => ixc_soft_api_types_exports,
|
|
38
39
|
IXCSoftMysqlService: () => IXCSoftMysqlService,
|
|
@@ -92235,7 +92236,7 @@ var ToolsBranchStoresSchema = new import_mongoose11.Schema(
|
|
|
92235
92236
|
}
|
|
92236
92237
|
);
|
|
92237
92238
|
ToolsBranchStoresSchema.index(
|
|
92238
|
-
{ id_group: 1,
|
|
92239
|
+
{ id_group: 1, nomenclature: 1 },
|
|
92239
92240
|
{ unique: true }
|
|
92240
92241
|
);
|
|
92241
92242
|
|
|
@@ -92715,11 +92716,120 @@ var ExpensesFleetMongoService = class _ExpensesFleetMongoService {
|
|
|
92715
92716
|
return this.connection.collections[key];
|
|
92716
92717
|
}
|
|
92717
92718
|
};
|
|
92719
|
+
|
|
92720
|
+
// src/databases/mongo/gigacenter/gigacenter.mongo.types.ts
|
|
92721
|
+
var configGigacenterMongo = {
|
|
92722
|
+
context: "GIGACENTER_MONGO",
|
|
92723
|
+
domain: "MONGO"
|
|
92724
|
+
};
|
|
92725
|
+
|
|
92726
|
+
// src/databases/mongo/gigacenter/collections/financeiro-fechamento.ts
|
|
92727
|
+
var import_mongoose19 = require("mongoose");
|
|
92728
|
+
var FinanceiroFechamentoSchema = new import_mongoose19.Schema(
|
|
92729
|
+
{
|
|
92730
|
+
observacao: { type: String, default: "" },
|
|
92731
|
+
lacre: { type: String, default: "" },
|
|
92732
|
+
id_fn_transferencia: { type: Number, default: 0 },
|
|
92733
|
+
id_mov_credito: { type: Number, default: 0 },
|
|
92734
|
+
id_mov_debito: { type: Number, default: 0 },
|
|
92735
|
+
troco: { type: Number, default: 0 },
|
|
92736
|
+
dinheiro: { type: Number, default: 0 },
|
|
92737
|
+
cartao: { type: Number, default: 0 },
|
|
92738
|
+
cheque: { type: Number, default: 0 },
|
|
92739
|
+
pix: { type: Number, default: 0 },
|
|
92740
|
+
idUsuario: { type: Number, default: 0 },
|
|
92741
|
+
idConta: { type: Number, default: 0 },
|
|
92742
|
+
usuario: { type: String, default: "" },
|
|
92743
|
+
dinheiro_c: { type: Number, default: 0 },
|
|
92744
|
+
cartao_c: { type: Number, default: 0 },
|
|
92745
|
+
cheque_c: { type: Number, default: 0 },
|
|
92746
|
+
pix_c: { type: Number, default: 0 },
|
|
92747
|
+
retiradas: { type: Number, default: 0 },
|
|
92748
|
+
fechou: { type: Boolean, default: false },
|
|
92749
|
+
data: { type: Date, default: null }
|
|
92750
|
+
},
|
|
92751
|
+
{
|
|
92752
|
+
timestamps: true,
|
|
92753
|
+
collection: "financeiroFechamento"
|
|
92754
|
+
}
|
|
92755
|
+
);
|
|
92756
|
+
|
|
92757
|
+
// src/databases/mongo/gigacenter/collections/index.ts
|
|
92758
|
+
var schemas6 = {
|
|
92759
|
+
financeiro_fechamento: FinanceiroFechamentoSchema
|
|
92760
|
+
};
|
|
92761
|
+
|
|
92762
|
+
// src/databases/mongo/gigacenter/gigacenter.mongo.connection.ts
|
|
92763
|
+
async function createGigacenterMongoConnection(config) {
|
|
92764
|
+
const connection = await createMongoConnection({
|
|
92765
|
+
...config,
|
|
92766
|
+
database: "gigacenter",
|
|
92767
|
+
context: configGigacenterMongo.context
|
|
92768
|
+
});
|
|
92769
|
+
const collections = Object.entries(schemas6).reduce((acc, [name, schema]) => {
|
|
92770
|
+
acc[name] = connection.model(name, schema);
|
|
92771
|
+
return acc;
|
|
92772
|
+
}, {});
|
|
92773
|
+
return {
|
|
92774
|
+
connection,
|
|
92775
|
+
collections
|
|
92776
|
+
};
|
|
92777
|
+
}
|
|
92778
|
+
var connectGigacenterMongo = createConnectionFactory(createGigacenterMongoConnection);
|
|
92779
|
+
|
|
92780
|
+
// src/databases/mongo/gigacenter/gigacenter.mongo.service.ts
|
|
92781
|
+
var GigacenterMongoService = class _GigacenterMongoService {
|
|
92782
|
+
constructor() {
|
|
92783
|
+
this.initialized = false;
|
|
92784
|
+
}
|
|
92785
|
+
notInitialized() {
|
|
92786
|
+
if (!this.initialized)
|
|
92787
|
+
throw new Error(
|
|
92788
|
+
"GigacenterMongoService n\xE3o inicializado! Chame init() antes."
|
|
92789
|
+
);
|
|
92790
|
+
}
|
|
92791
|
+
/** Retorna a instância singleton */
|
|
92792
|
+
static getInstance() {
|
|
92793
|
+
if (!_GigacenterMongoService.instance)
|
|
92794
|
+
_GigacenterMongoService.instance = new _GigacenterMongoService();
|
|
92795
|
+
return _GigacenterMongoService.instance;
|
|
92796
|
+
}
|
|
92797
|
+
/** Inicializa a conexão e collections */
|
|
92798
|
+
async init(config) {
|
|
92799
|
+
if (this.initialized) return;
|
|
92800
|
+
loger({
|
|
92801
|
+
...configGigacenterMongo,
|
|
92802
|
+
message: "Inicializando GigacenterMongoService..."
|
|
92803
|
+
});
|
|
92804
|
+
this.connection = await connectGigacenterMongo(config);
|
|
92805
|
+
this.initialized = true;
|
|
92806
|
+
loger({
|
|
92807
|
+
...configGigacenterMongo,
|
|
92808
|
+
message: "GigacenterMongoService inicializado!"
|
|
92809
|
+
});
|
|
92810
|
+
}
|
|
92811
|
+
/** Retorna Mongoose connection */
|
|
92812
|
+
getConnection() {
|
|
92813
|
+
this.notInitialized();
|
|
92814
|
+
return this.connection.connection;
|
|
92815
|
+
}
|
|
92816
|
+
/** Retorna collections tipadas */
|
|
92817
|
+
get collections() {
|
|
92818
|
+
this.notInitialized();
|
|
92819
|
+
return this.connection.collections;
|
|
92820
|
+
}
|
|
92821
|
+
/** Retorna uma collection específica tipada */
|
|
92822
|
+
getCollection(key) {
|
|
92823
|
+
this.notInitialized();
|
|
92824
|
+
return this.connection.collections[key];
|
|
92825
|
+
}
|
|
92826
|
+
};
|
|
92718
92827
|
// Annotate the CommonJS export names for ESM import in node:
|
|
92719
92828
|
0 && (module.exports = {
|
|
92720
92829
|
ExpensesFleetMongoService,
|
|
92721
92830
|
GeminiLIBClient,
|
|
92722
92831
|
GeminiLIBTypes,
|
|
92832
|
+
GigacenterMongoService,
|
|
92723
92833
|
IXCSoftAPIClient,
|
|
92724
92834
|
IXCSoftAPITypes,
|
|
92725
92835
|
IXCSoftMysqlService,
|
package/dist/index.mjs
CHANGED
|
@@ -92189,7 +92189,7 @@ var ToolsBranchStoresSchema = new Schema10(
|
|
|
92189
92189
|
}
|
|
92190
92190
|
);
|
|
92191
92191
|
ToolsBranchStoresSchema.index(
|
|
92192
|
-
{ id_group: 1,
|
|
92192
|
+
{ id_group: 1, nomenclature: 1 },
|
|
92193
92193
|
{ unique: true }
|
|
92194
92194
|
);
|
|
92195
92195
|
|
|
@@ -92669,10 +92669,119 @@ var ExpensesFleetMongoService = class _ExpensesFleetMongoService {
|
|
|
92669
92669
|
return this.connection.collections[key];
|
|
92670
92670
|
}
|
|
92671
92671
|
};
|
|
92672
|
+
|
|
92673
|
+
// src/databases/mongo/gigacenter/gigacenter.mongo.types.ts
|
|
92674
|
+
var configGigacenterMongo = {
|
|
92675
|
+
context: "GIGACENTER_MONGO",
|
|
92676
|
+
domain: "MONGO"
|
|
92677
|
+
};
|
|
92678
|
+
|
|
92679
|
+
// src/databases/mongo/gigacenter/collections/financeiro-fechamento.ts
|
|
92680
|
+
import { Schema as Schema18 } from "mongoose";
|
|
92681
|
+
var FinanceiroFechamentoSchema = new Schema18(
|
|
92682
|
+
{
|
|
92683
|
+
observacao: { type: String, default: "" },
|
|
92684
|
+
lacre: { type: String, default: "" },
|
|
92685
|
+
id_fn_transferencia: { type: Number, default: 0 },
|
|
92686
|
+
id_mov_credito: { type: Number, default: 0 },
|
|
92687
|
+
id_mov_debito: { type: Number, default: 0 },
|
|
92688
|
+
troco: { type: Number, default: 0 },
|
|
92689
|
+
dinheiro: { type: Number, default: 0 },
|
|
92690
|
+
cartao: { type: Number, default: 0 },
|
|
92691
|
+
cheque: { type: Number, default: 0 },
|
|
92692
|
+
pix: { type: Number, default: 0 },
|
|
92693
|
+
idUsuario: { type: Number, default: 0 },
|
|
92694
|
+
idConta: { type: Number, default: 0 },
|
|
92695
|
+
usuario: { type: String, default: "" },
|
|
92696
|
+
dinheiro_c: { type: Number, default: 0 },
|
|
92697
|
+
cartao_c: { type: Number, default: 0 },
|
|
92698
|
+
cheque_c: { type: Number, default: 0 },
|
|
92699
|
+
pix_c: { type: Number, default: 0 },
|
|
92700
|
+
retiradas: { type: Number, default: 0 },
|
|
92701
|
+
fechou: { type: Boolean, default: false },
|
|
92702
|
+
data: { type: Date, default: null }
|
|
92703
|
+
},
|
|
92704
|
+
{
|
|
92705
|
+
timestamps: true,
|
|
92706
|
+
collection: "financeiroFechamento"
|
|
92707
|
+
}
|
|
92708
|
+
);
|
|
92709
|
+
|
|
92710
|
+
// src/databases/mongo/gigacenter/collections/index.ts
|
|
92711
|
+
var schemas6 = {
|
|
92712
|
+
financeiro_fechamento: FinanceiroFechamentoSchema
|
|
92713
|
+
};
|
|
92714
|
+
|
|
92715
|
+
// src/databases/mongo/gigacenter/gigacenter.mongo.connection.ts
|
|
92716
|
+
async function createGigacenterMongoConnection(config) {
|
|
92717
|
+
const connection = await createMongoConnection({
|
|
92718
|
+
...config,
|
|
92719
|
+
database: "gigacenter",
|
|
92720
|
+
context: configGigacenterMongo.context
|
|
92721
|
+
});
|
|
92722
|
+
const collections = Object.entries(schemas6).reduce((acc, [name, schema]) => {
|
|
92723
|
+
acc[name] = connection.model(name, schema);
|
|
92724
|
+
return acc;
|
|
92725
|
+
}, {});
|
|
92726
|
+
return {
|
|
92727
|
+
connection,
|
|
92728
|
+
collections
|
|
92729
|
+
};
|
|
92730
|
+
}
|
|
92731
|
+
var connectGigacenterMongo = createConnectionFactory(createGigacenterMongoConnection);
|
|
92732
|
+
|
|
92733
|
+
// src/databases/mongo/gigacenter/gigacenter.mongo.service.ts
|
|
92734
|
+
var GigacenterMongoService = class _GigacenterMongoService {
|
|
92735
|
+
constructor() {
|
|
92736
|
+
this.initialized = false;
|
|
92737
|
+
}
|
|
92738
|
+
notInitialized() {
|
|
92739
|
+
if (!this.initialized)
|
|
92740
|
+
throw new Error(
|
|
92741
|
+
"GigacenterMongoService n\xE3o inicializado! Chame init() antes."
|
|
92742
|
+
);
|
|
92743
|
+
}
|
|
92744
|
+
/** Retorna a instância singleton */
|
|
92745
|
+
static getInstance() {
|
|
92746
|
+
if (!_GigacenterMongoService.instance)
|
|
92747
|
+
_GigacenterMongoService.instance = new _GigacenterMongoService();
|
|
92748
|
+
return _GigacenterMongoService.instance;
|
|
92749
|
+
}
|
|
92750
|
+
/** Inicializa a conexão e collections */
|
|
92751
|
+
async init(config) {
|
|
92752
|
+
if (this.initialized) return;
|
|
92753
|
+
loger({
|
|
92754
|
+
...configGigacenterMongo,
|
|
92755
|
+
message: "Inicializando GigacenterMongoService..."
|
|
92756
|
+
});
|
|
92757
|
+
this.connection = await connectGigacenterMongo(config);
|
|
92758
|
+
this.initialized = true;
|
|
92759
|
+
loger({
|
|
92760
|
+
...configGigacenterMongo,
|
|
92761
|
+
message: "GigacenterMongoService inicializado!"
|
|
92762
|
+
});
|
|
92763
|
+
}
|
|
92764
|
+
/** Retorna Mongoose connection */
|
|
92765
|
+
getConnection() {
|
|
92766
|
+
this.notInitialized();
|
|
92767
|
+
return this.connection.connection;
|
|
92768
|
+
}
|
|
92769
|
+
/** Retorna collections tipadas */
|
|
92770
|
+
get collections() {
|
|
92771
|
+
this.notInitialized();
|
|
92772
|
+
return this.connection.collections;
|
|
92773
|
+
}
|
|
92774
|
+
/** Retorna uma collection específica tipada */
|
|
92775
|
+
getCollection(key) {
|
|
92776
|
+
this.notInitialized();
|
|
92777
|
+
return this.connection.collections[key];
|
|
92778
|
+
}
|
|
92779
|
+
};
|
|
92672
92780
|
export {
|
|
92673
92781
|
ExpensesFleetMongoService,
|
|
92674
92782
|
GeminiLIBClient,
|
|
92675
92783
|
gemini_lib_types_exports as GeminiLIBTypes,
|
|
92784
|
+
GigacenterMongoService,
|
|
92676
92785
|
IXCSoftAPIClient,
|
|
92677
92786
|
ixc_soft_api_types_exports as IXCSoftAPITypes,
|
|
92678
92787
|
IXCSoftMysqlService,
|