@cristian-israel/giganet_lib_conecta 1.0.4 → 1.0.5
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 +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +9 -6
- package/dist/index.mjs +9 -6
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -34242,7 +34242,6 @@ type MongoConnectionConfig = {
|
|
|
34242
34242
|
port: number;
|
|
34243
34243
|
user: string;
|
|
34244
34244
|
password: string;
|
|
34245
|
-
database: string;
|
|
34246
34245
|
authSource: string;
|
|
34247
34246
|
};
|
|
34248
34247
|
|
package/dist/index.d.ts
CHANGED
|
@@ -34242,7 +34242,6 @@ type MongoConnectionConfig = {
|
|
|
34242
34242
|
port: number;
|
|
34243
34243
|
user: string;
|
|
34244
34244
|
password: string;
|
|
34245
|
-
database: string;
|
|
34246
34245
|
authSource: string;
|
|
34247
34246
|
};
|
|
34248
34247
|
|
package/dist/index.js
CHANGED
|
@@ -90227,6 +90227,7 @@ function initModels(sequelize) {
|
|
|
90227
90227
|
async function createIXCConnection(config) {
|
|
90228
90228
|
const sequelize = await createMysqlConnection({
|
|
90229
90229
|
...config,
|
|
90230
|
+
database: "ixcprovedor",
|
|
90230
90231
|
context: configIXCSoft.context
|
|
90231
90232
|
});
|
|
90232
90233
|
const models = Object.freeze(initModels(sequelize));
|
|
@@ -90257,10 +90258,13 @@ var IXCSoftService = class _IXCSoftService {
|
|
|
90257
90258
|
/** Inicializa a conexão e models */
|
|
90258
90259
|
async init(config) {
|
|
90259
90260
|
if (this.initialized) return;
|
|
90260
|
-
logger({
|
|
90261
|
+
logger({
|
|
90262
|
+
...configIXCSoft,
|
|
90263
|
+
message: "Inicializando IXCSoftService..."
|
|
90264
|
+
});
|
|
90261
90265
|
this.connection = await connectIXCSoft(config);
|
|
90262
90266
|
this.initialized = true;
|
|
90263
|
-
logger({ message: "IXCSoftService inicializado!"
|
|
90267
|
+
logger({ ...configIXCSoft, message: "IXCSoftService inicializado!" });
|
|
90264
90268
|
}
|
|
90265
90269
|
/** Retorna o sequelize */
|
|
90266
90270
|
getSequelize() {
|
|
@@ -90385,6 +90389,7 @@ var schemas = {
|
|
|
90385
90389
|
async function createOPASuiteConnection(config) {
|
|
90386
90390
|
const connection = await createMongoConnection({
|
|
90387
90391
|
...config,
|
|
90392
|
+
database: "suite",
|
|
90388
90393
|
context: configOPASuite.context
|
|
90389
90394
|
});
|
|
90390
90395
|
const collections = Object.entries(schemas).reduce(
|
|
@@ -90417,15 +90422,13 @@ var OPASuiteService = class _OPASuiteService {
|
|
|
90417
90422
|
async init(config) {
|
|
90418
90423
|
if (this.initialized) return;
|
|
90419
90424
|
logger({
|
|
90420
|
-
|
|
90421
|
-
context: configOPASuite.context,
|
|
90425
|
+
...configOPASuite,
|
|
90422
90426
|
message: "Inicializando OPAService..."
|
|
90423
90427
|
});
|
|
90424
90428
|
this.connection = await connectOPASuite(config);
|
|
90425
90429
|
this.initialized = true;
|
|
90426
90430
|
logger({
|
|
90427
|
-
|
|
90428
|
-
context: configOPASuite.context,
|
|
90431
|
+
...configOPASuite,
|
|
90429
90432
|
message: "OPAService inicializado!"
|
|
90430
90433
|
});
|
|
90431
90434
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -90189,6 +90189,7 @@ function initModels(sequelize) {
|
|
|
90189
90189
|
async function createIXCConnection(config) {
|
|
90190
90190
|
const sequelize = await createMysqlConnection({
|
|
90191
90191
|
...config,
|
|
90192
|
+
database: "ixcprovedor",
|
|
90192
90193
|
context: configIXCSoft.context
|
|
90193
90194
|
});
|
|
90194
90195
|
const models = Object.freeze(initModels(sequelize));
|
|
@@ -90219,10 +90220,13 @@ var IXCSoftService = class _IXCSoftService {
|
|
|
90219
90220
|
/** Inicializa a conexão e models */
|
|
90220
90221
|
async init(config) {
|
|
90221
90222
|
if (this.initialized) return;
|
|
90222
|
-
logger({
|
|
90223
|
+
logger({
|
|
90224
|
+
...configIXCSoft,
|
|
90225
|
+
message: "Inicializando IXCSoftService..."
|
|
90226
|
+
});
|
|
90223
90227
|
this.connection = await connectIXCSoft(config);
|
|
90224
90228
|
this.initialized = true;
|
|
90225
|
-
logger({ message: "IXCSoftService inicializado!"
|
|
90229
|
+
logger({ ...configIXCSoft, message: "IXCSoftService inicializado!" });
|
|
90226
90230
|
}
|
|
90227
90231
|
/** Retorna o sequelize */
|
|
90228
90232
|
getSequelize() {
|
|
@@ -90347,6 +90351,7 @@ var schemas = {
|
|
|
90347
90351
|
async function createOPASuiteConnection(config) {
|
|
90348
90352
|
const connection = await createMongoConnection({
|
|
90349
90353
|
...config,
|
|
90354
|
+
database: "suite",
|
|
90350
90355
|
context: configOPASuite.context
|
|
90351
90356
|
});
|
|
90352
90357
|
const collections = Object.entries(schemas).reduce(
|
|
@@ -90379,15 +90384,13 @@ var OPASuiteService = class _OPASuiteService {
|
|
|
90379
90384
|
async init(config) {
|
|
90380
90385
|
if (this.initialized) return;
|
|
90381
90386
|
logger({
|
|
90382
|
-
|
|
90383
|
-
context: configOPASuite.context,
|
|
90387
|
+
...configOPASuite,
|
|
90384
90388
|
message: "Inicializando OPAService..."
|
|
90385
90389
|
});
|
|
90386
90390
|
this.connection = await connectOPASuite(config);
|
|
90387
90391
|
this.initialized = true;
|
|
90388
90392
|
logger({
|
|
90389
|
-
|
|
90390
|
-
context: configOPASuite.context,
|
|
90393
|
+
...configOPASuite,
|
|
90391
90394
|
message: "OPAService inicializado!"
|
|
90392
90395
|
});
|
|
90393
90396
|
}
|