@cristian-israel/giganet_lib_conecta 1.0.95 → 1.0.96
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 +39 -0
- package/dist/index.d.ts +39 -0
- package/dist/index.js +39 -24
- package/dist/index.mjs +33 -18
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -37774,6 +37774,45 @@ declare const schemas$3: {
|
|
|
37774
37774
|
} & {
|
|
37775
37775
|
__v: number;
|
|
37776
37776
|
}>;
|
|
37777
|
+
problems_issues_os: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37778
|
+
timestamps: true;
|
|
37779
|
+
}, {
|
|
37780
|
+
id_assunto: number;
|
|
37781
|
+
name: string;
|
|
37782
|
+
description: string;
|
|
37783
|
+
is_active: boolean;
|
|
37784
|
+
} & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, {
|
|
37785
|
+
id_assunto: number;
|
|
37786
|
+
name: string;
|
|
37787
|
+
description: string;
|
|
37788
|
+
is_active: boolean;
|
|
37789
|
+
} & mongoose.DefaultTimestampProps, {
|
|
37790
|
+
id: string;
|
|
37791
|
+
}, Omit<mongoose.DefaultSchemaOptions, "timestamps"> & {
|
|
37792
|
+
timestamps: true;
|
|
37793
|
+
}> & Omit<{
|
|
37794
|
+
id_assunto: number;
|
|
37795
|
+
name: string;
|
|
37796
|
+
description: string;
|
|
37797
|
+
is_active: boolean;
|
|
37798
|
+
} & mongoose.DefaultTimestampProps & {
|
|
37799
|
+
_id: mongoose.Types.ObjectId;
|
|
37800
|
+
} & {
|
|
37801
|
+
__v: number;
|
|
37802
|
+
}, "id"> & {
|
|
37803
|
+
id: string;
|
|
37804
|
+
}, unknown, {
|
|
37805
|
+
id_assunto: number;
|
|
37806
|
+
name: string;
|
|
37807
|
+
description: string;
|
|
37808
|
+
is_active: boolean;
|
|
37809
|
+
createdAt: NativeDate;
|
|
37810
|
+
updatedAt: NativeDate;
|
|
37811
|
+
} & {
|
|
37812
|
+
_id: mongoose.Types.ObjectId;
|
|
37813
|
+
} & {
|
|
37814
|
+
__v: number;
|
|
37815
|
+
}>;
|
|
37777
37816
|
logs: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37778
37817
|
timestamps: true;
|
|
37779
37818
|
}, {
|
package/dist/index.d.ts
CHANGED
|
@@ -37774,6 +37774,45 @@ declare const schemas$3: {
|
|
|
37774
37774
|
} & {
|
|
37775
37775
|
__v: number;
|
|
37776
37776
|
}>;
|
|
37777
|
+
problems_issues_os: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37778
|
+
timestamps: true;
|
|
37779
|
+
}, {
|
|
37780
|
+
id_assunto: number;
|
|
37781
|
+
name: string;
|
|
37782
|
+
description: string;
|
|
37783
|
+
is_active: boolean;
|
|
37784
|
+
} & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, {
|
|
37785
|
+
id_assunto: number;
|
|
37786
|
+
name: string;
|
|
37787
|
+
description: string;
|
|
37788
|
+
is_active: boolean;
|
|
37789
|
+
} & mongoose.DefaultTimestampProps, {
|
|
37790
|
+
id: string;
|
|
37791
|
+
}, Omit<mongoose.DefaultSchemaOptions, "timestamps"> & {
|
|
37792
|
+
timestamps: true;
|
|
37793
|
+
}> & Omit<{
|
|
37794
|
+
id_assunto: number;
|
|
37795
|
+
name: string;
|
|
37796
|
+
description: string;
|
|
37797
|
+
is_active: boolean;
|
|
37798
|
+
} & mongoose.DefaultTimestampProps & {
|
|
37799
|
+
_id: mongoose.Types.ObjectId;
|
|
37800
|
+
} & {
|
|
37801
|
+
__v: number;
|
|
37802
|
+
}, "id"> & {
|
|
37803
|
+
id: string;
|
|
37804
|
+
}, unknown, {
|
|
37805
|
+
id_assunto: number;
|
|
37806
|
+
name: string;
|
|
37807
|
+
description: string;
|
|
37808
|
+
is_active: boolean;
|
|
37809
|
+
createdAt: NativeDate;
|
|
37810
|
+
updatedAt: NativeDate;
|
|
37811
|
+
} & {
|
|
37812
|
+
_id: mongoose.Types.ObjectId;
|
|
37813
|
+
} & {
|
|
37814
|
+
__v: number;
|
|
37815
|
+
}>;
|
|
37777
37816
|
logs: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37778
37817
|
timestamps: true;
|
|
37779
37818
|
}, {
|
package/dist/index.js
CHANGED
|
@@ -92356,12 +92356,26 @@ var RoutinesTasksSchema = new import_mongoose12.Schema(
|
|
|
92356
92356
|
}
|
|
92357
92357
|
);
|
|
92358
92358
|
|
|
92359
|
-
// src/databases/mongo/routines/collections/
|
|
92359
|
+
// src/databases/mongo/routines/collections/problems-issues-os.ts
|
|
92360
92360
|
var import_mongoose13 = require("mongoose");
|
|
92361
|
-
var
|
|
92361
|
+
var RoutinesProblemsIssuesOSSchema = new import_mongoose13.Schema(
|
|
92362
|
+
{
|
|
92363
|
+
name: { type: String, required: true, unique: true },
|
|
92364
|
+
description: { type: String, required: true },
|
|
92365
|
+
id_assunto: { type: Number, required: true },
|
|
92366
|
+
is_active: { type: Boolean, default: true }
|
|
92367
|
+
},
|
|
92368
|
+
{
|
|
92369
|
+
timestamps: true
|
|
92370
|
+
}
|
|
92371
|
+
);
|
|
92372
|
+
|
|
92373
|
+
// src/databases/mongo/routines/collections/logs.ts
|
|
92374
|
+
var import_mongoose14 = require("mongoose");
|
|
92375
|
+
var RoutinesLogsSchema = new import_mongoose14.Schema(
|
|
92362
92376
|
{
|
|
92363
92377
|
task: {
|
|
92364
|
-
type:
|
|
92378
|
+
type: import_mongoose14.Types.ObjectId,
|
|
92365
92379
|
ref: "Task"
|
|
92366
92380
|
},
|
|
92367
92381
|
action: { type: String, required: true },
|
|
@@ -92370,10 +92384,10 @@ var RoutinesLogsSchema = new import_mongoose13.Schema(
|
|
|
92370
92384
|
enum: ["success", "error", "warning", "info"],
|
|
92371
92385
|
required: true
|
|
92372
92386
|
},
|
|
92373
|
-
triggered_by: { type:
|
|
92387
|
+
triggered_by: { type: import_mongoose14.Types.ObjectId, default: null },
|
|
92374
92388
|
description: { type: String, required: true },
|
|
92375
92389
|
executionTimeMs: { type: Number, default: null },
|
|
92376
|
-
metadata: { type:
|
|
92390
|
+
metadata: { type: import_mongoose14.Schema.Types.Mixed }
|
|
92377
92391
|
},
|
|
92378
92392
|
{
|
|
92379
92393
|
timestamps: true
|
|
@@ -92383,6 +92397,7 @@ var RoutinesLogsSchema = new import_mongoose13.Schema(
|
|
|
92383
92397
|
// src/databases/mongo/routines/collections/index.ts
|
|
92384
92398
|
var schemas3 = {
|
|
92385
92399
|
tasks: RoutinesTasksSchema,
|
|
92400
|
+
problems_issues_os: RoutinesProblemsIssuesOSSchema,
|
|
92386
92401
|
logs: RoutinesLogsSchema
|
|
92387
92402
|
};
|
|
92388
92403
|
|
|
@@ -92459,8 +92474,8 @@ var configMCPGiganetMongo = {
|
|
|
92459
92474
|
};
|
|
92460
92475
|
|
|
92461
92476
|
// src/databases/mongo/mcp-giganet/collections/api-keys.ts
|
|
92462
|
-
var
|
|
92463
|
-
var MCPGiganetAPIKeysSchema = new
|
|
92477
|
+
var import_mongoose15 = require("mongoose");
|
|
92478
|
+
var MCPGiganetAPIKeysSchema = new import_mongoose15.Schema(
|
|
92464
92479
|
{
|
|
92465
92480
|
name: { type: String, required: true, trim: true, unique: true },
|
|
92466
92481
|
keyPrefix: { type: String, required: true },
|
|
@@ -92474,8 +92489,8 @@ var MCPGiganetAPIKeysSchema = new import_mongoose14.Schema(
|
|
|
92474
92489
|
);
|
|
92475
92490
|
|
|
92476
92491
|
// src/databases/mongo/mcp-giganet/collections/logs.ts
|
|
92477
|
-
var
|
|
92478
|
-
var MCPGiganetLogsSchema = new
|
|
92492
|
+
var import_mongoose16 = require("mongoose");
|
|
92493
|
+
var MCPGiganetLogsSchema = new import_mongoose16.Schema(
|
|
92479
92494
|
{
|
|
92480
92495
|
action: { type: String, required: true },
|
|
92481
92496
|
status: {
|
|
@@ -92483,11 +92498,11 @@ var MCPGiganetLogsSchema = new import_mongoose15.Schema(
|
|
|
92483
92498
|
required: true,
|
|
92484
92499
|
enum: ["success", "error", "warning", "info"]
|
|
92485
92500
|
},
|
|
92486
|
-
apiKeyId: { type:
|
|
92501
|
+
apiKeyId: { type: import_mongoose16.Types.ObjectId, required: false, default: null },
|
|
92487
92502
|
description: { type: String, required: true },
|
|
92488
92503
|
ip: { type: String, required: true },
|
|
92489
92504
|
executionTimeMs: { type: Number, required: true },
|
|
92490
|
-
metadata: { type:
|
|
92505
|
+
metadata: { type: import_mongoose16.Schema.Types.Mixed, required: false }
|
|
92491
92506
|
},
|
|
92492
92507
|
{
|
|
92493
92508
|
timestamps: true
|
|
@@ -92573,8 +92588,8 @@ var configExpensesFleetMongo = {
|
|
|
92573
92588
|
};
|
|
92574
92589
|
|
|
92575
92590
|
// src/databases/mongo/expenses-fleet/collections/categories.ts
|
|
92576
|
-
var
|
|
92577
|
-
var ExpensesFleetCategoriesSchema = new
|
|
92591
|
+
var import_mongoose17 = require("mongoose");
|
|
92592
|
+
var ExpensesFleetCategoriesSchema = new import_mongoose17.Schema(
|
|
92578
92593
|
{
|
|
92579
92594
|
name: { type: String, required: true },
|
|
92580
92595
|
description: { type: String, required: true },
|
|
@@ -92587,8 +92602,8 @@ var ExpensesFleetCategoriesSchema = new import_mongoose16.Schema(
|
|
|
92587
92602
|
);
|
|
92588
92603
|
|
|
92589
92604
|
// src/databases/mongo/expenses-fleet/collections/tickets.ts
|
|
92590
|
-
var
|
|
92591
|
-
var TicketImageSchema = new
|
|
92605
|
+
var import_mongoose18 = require("mongoose");
|
|
92606
|
+
var TicketImageSchema = new import_mongoose18.Schema(
|
|
92592
92607
|
{
|
|
92593
92608
|
key: { type: String, required: true },
|
|
92594
92609
|
file_path: { type: String, required: true },
|
|
@@ -92596,7 +92611,7 @@ var TicketImageSchema = new import_mongoose17.Schema(
|
|
|
92596
92611
|
},
|
|
92597
92612
|
{ _id: false }
|
|
92598
92613
|
);
|
|
92599
|
-
var ExpensesFleetTicketsSchema = new
|
|
92614
|
+
var ExpensesFleetTicketsSchema = new import_mongoose18.Schema(
|
|
92600
92615
|
{
|
|
92601
92616
|
status: {
|
|
92602
92617
|
type: String,
|
|
@@ -92604,7 +92619,7 @@ var ExpensesFleetTicketsSchema = new import_mongoose17.Schema(
|
|
|
92604
92619
|
default: "pendente",
|
|
92605
92620
|
required: true
|
|
92606
92621
|
},
|
|
92607
|
-
id_category: { type:
|
|
92622
|
+
id_category: { type: import_mongoose18.Types.ObjectId, ref: "categories", required: true },
|
|
92608
92623
|
id_veiculo: { type: Number, required: true },
|
|
92609
92624
|
placa: { type: String, required: true },
|
|
92610
92625
|
id_condutor: { type: Number, required: true },
|
|
@@ -92627,11 +92642,11 @@ var ExpensesFleetTicketsSchema = new import_mongoose17.Schema(
|
|
|
92627
92642
|
);
|
|
92628
92643
|
|
|
92629
92644
|
// src/databases/mongo/expenses-fleet/collections/logs.ts
|
|
92630
|
-
var
|
|
92631
|
-
var ExpensesFleetLogsSchema = new
|
|
92645
|
+
var import_mongoose19 = require("mongoose");
|
|
92646
|
+
var ExpensesFleetLogsSchema = new import_mongoose19.Schema(
|
|
92632
92647
|
{
|
|
92633
92648
|
ticket: {
|
|
92634
|
-
type:
|
|
92649
|
+
type: import_mongoose19.Types.ObjectId,
|
|
92635
92650
|
ref: "Ticket"
|
|
92636
92651
|
},
|
|
92637
92652
|
action: { type: String, required: true },
|
|
@@ -92640,10 +92655,10 @@ var ExpensesFleetLogsSchema = new import_mongoose18.Schema(
|
|
|
92640
92655
|
enum: ["success", "error", "warning", "info"],
|
|
92641
92656
|
required: true
|
|
92642
92657
|
},
|
|
92643
|
-
triggered_by: { type:
|
|
92658
|
+
triggered_by: { type: import_mongoose19.Types.ObjectId, default: null },
|
|
92644
92659
|
description: { type: String, required: true },
|
|
92645
92660
|
executionTimeMs: { type: Number, default: null },
|
|
92646
|
-
metadata: { type:
|
|
92661
|
+
metadata: { type: import_mongoose19.Schema.Types.Mixed }
|
|
92647
92662
|
},
|
|
92648
92663
|
{
|
|
92649
92664
|
timestamps: true
|
|
@@ -92730,8 +92745,8 @@ var configGigacenterMongo = {
|
|
|
92730
92745
|
};
|
|
92731
92746
|
|
|
92732
92747
|
// src/databases/mongo/gigacenter/collections/financeiro-fechamento.ts
|
|
92733
|
-
var
|
|
92734
|
-
var FinanceiroFechamentoSchema = new
|
|
92748
|
+
var import_mongoose20 = require("mongoose");
|
|
92749
|
+
var FinanceiroFechamentoSchema = new import_mongoose20.Schema(
|
|
92735
92750
|
{
|
|
92736
92751
|
observacao: { type: String, default: "" },
|
|
92737
92752
|
lacre: { type: String, default: "" },
|
package/dist/index.mjs
CHANGED
|
@@ -92308,9 +92308,23 @@ var RoutinesTasksSchema = new Schema11(
|
|
|
92308
92308
|
}
|
|
92309
92309
|
);
|
|
92310
92310
|
|
|
92311
|
+
// src/databases/mongo/routines/collections/problems-issues-os.ts
|
|
92312
|
+
import { Schema as Schema12 } from "mongoose";
|
|
92313
|
+
var RoutinesProblemsIssuesOSSchema = new Schema12(
|
|
92314
|
+
{
|
|
92315
|
+
name: { type: String, required: true, unique: true },
|
|
92316
|
+
description: { type: String, required: true },
|
|
92317
|
+
id_assunto: { type: Number, required: true },
|
|
92318
|
+
is_active: { type: Boolean, default: true }
|
|
92319
|
+
},
|
|
92320
|
+
{
|
|
92321
|
+
timestamps: true
|
|
92322
|
+
}
|
|
92323
|
+
);
|
|
92324
|
+
|
|
92311
92325
|
// src/databases/mongo/routines/collections/logs.ts
|
|
92312
|
-
import { Schema as
|
|
92313
|
-
var RoutinesLogsSchema = new
|
|
92326
|
+
import { Schema as Schema13, Types as Types5 } from "mongoose";
|
|
92327
|
+
var RoutinesLogsSchema = new Schema13(
|
|
92314
92328
|
{
|
|
92315
92329
|
task: {
|
|
92316
92330
|
type: Types5.ObjectId,
|
|
@@ -92325,7 +92339,7 @@ var RoutinesLogsSchema = new Schema12(
|
|
|
92325
92339
|
triggered_by: { type: Types5.ObjectId, default: null },
|
|
92326
92340
|
description: { type: String, required: true },
|
|
92327
92341
|
executionTimeMs: { type: Number, default: null },
|
|
92328
|
-
metadata: { type:
|
|
92342
|
+
metadata: { type: Schema13.Types.Mixed }
|
|
92329
92343
|
},
|
|
92330
92344
|
{
|
|
92331
92345
|
timestamps: true
|
|
@@ -92335,6 +92349,7 @@ var RoutinesLogsSchema = new Schema12(
|
|
|
92335
92349
|
// src/databases/mongo/routines/collections/index.ts
|
|
92336
92350
|
var schemas3 = {
|
|
92337
92351
|
tasks: RoutinesTasksSchema,
|
|
92352
|
+
problems_issues_os: RoutinesProblemsIssuesOSSchema,
|
|
92338
92353
|
logs: RoutinesLogsSchema
|
|
92339
92354
|
};
|
|
92340
92355
|
|
|
@@ -92411,8 +92426,8 @@ var configMCPGiganetMongo = {
|
|
|
92411
92426
|
};
|
|
92412
92427
|
|
|
92413
92428
|
// src/databases/mongo/mcp-giganet/collections/api-keys.ts
|
|
92414
|
-
import { Schema as
|
|
92415
|
-
var MCPGiganetAPIKeysSchema = new
|
|
92429
|
+
import { Schema as Schema14 } from "mongoose";
|
|
92430
|
+
var MCPGiganetAPIKeysSchema = new Schema14(
|
|
92416
92431
|
{
|
|
92417
92432
|
name: { type: String, required: true, trim: true, unique: true },
|
|
92418
92433
|
keyPrefix: { type: String, required: true },
|
|
@@ -92426,8 +92441,8 @@ var MCPGiganetAPIKeysSchema = new Schema13(
|
|
|
92426
92441
|
);
|
|
92427
92442
|
|
|
92428
92443
|
// src/databases/mongo/mcp-giganet/collections/logs.ts
|
|
92429
|
-
import { Schema as
|
|
92430
|
-
var MCPGiganetLogsSchema = new
|
|
92444
|
+
import { Schema as Schema15, Types as Types7 } from "mongoose";
|
|
92445
|
+
var MCPGiganetLogsSchema = new Schema15(
|
|
92431
92446
|
{
|
|
92432
92447
|
action: { type: String, required: true },
|
|
92433
92448
|
status: {
|
|
@@ -92439,7 +92454,7 @@ var MCPGiganetLogsSchema = new Schema14(
|
|
|
92439
92454
|
description: { type: String, required: true },
|
|
92440
92455
|
ip: { type: String, required: true },
|
|
92441
92456
|
executionTimeMs: { type: Number, required: true },
|
|
92442
|
-
metadata: { type:
|
|
92457
|
+
metadata: { type: Schema15.Types.Mixed, required: false }
|
|
92443
92458
|
},
|
|
92444
92459
|
{
|
|
92445
92460
|
timestamps: true
|
|
@@ -92525,8 +92540,8 @@ var configExpensesFleetMongo = {
|
|
|
92525
92540
|
};
|
|
92526
92541
|
|
|
92527
92542
|
// src/databases/mongo/expenses-fleet/collections/categories.ts
|
|
92528
|
-
import { Schema as
|
|
92529
|
-
var ExpensesFleetCategoriesSchema = new
|
|
92543
|
+
import { Schema as Schema16 } from "mongoose";
|
|
92544
|
+
var ExpensesFleetCategoriesSchema = new Schema16(
|
|
92530
92545
|
{
|
|
92531
92546
|
name: { type: String, required: true },
|
|
92532
92547
|
description: { type: String, required: true },
|
|
@@ -92539,8 +92554,8 @@ var ExpensesFleetCategoriesSchema = new Schema15(
|
|
|
92539
92554
|
);
|
|
92540
92555
|
|
|
92541
92556
|
// src/databases/mongo/expenses-fleet/collections/tickets.ts
|
|
92542
|
-
import { Schema as
|
|
92543
|
-
var TicketImageSchema = new
|
|
92557
|
+
import { Schema as Schema17, Types as Types9 } from "mongoose";
|
|
92558
|
+
var TicketImageSchema = new Schema17(
|
|
92544
92559
|
{
|
|
92545
92560
|
key: { type: String, required: true },
|
|
92546
92561
|
file_path: { type: String, required: true },
|
|
@@ -92548,7 +92563,7 @@ var TicketImageSchema = new Schema16(
|
|
|
92548
92563
|
},
|
|
92549
92564
|
{ _id: false }
|
|
92550
92565
|
);
|
|
92551
|
-
var ExpensesFleetTicketsSchema = new
|
|
92566
|
+
var ExpensesFleetTicketsSchema = new Schema17(
|
|
92552
92567
|
{
|
|
92553
92568
|
status: {
|
|
92554
92569
|
type: String,
|
|
@@ -92579,8 +92594,8 @@ var ExpensesFleetTicketsSchema = new Schema16(
|
|
|
92579
92594
|
);
|
|
92580
92595
|
|
|
92581
92596
|
// src/databases/mongo/expenses-fleet/collections/logs.ts
|
|
92582
|
-
import { Schema as
|
|
92583
|
-
var ExpensesFleetLogsSchema = new
|
|
92597
|
+
import { Schema as Schema18, Types as Types10 } from "mongoose";
|
|
92598
|
+
var ExpensesFleetLogsSchema = new Schema18(
|
|
92584
92599
|
{
|
|
92585
92600
|
ticket: {
|
|
92586
92601
|
type: Types10.ObjectId,
|
|
@@ -92595,7 +92610,7 @@ var ExpensesFleetLogsSchema = new Schema17(
|
|
|
92595
92610
|
triggered_by: { type: Types10.ObjectId, default: null },
|
|
92596
92611
|
description: { type: String, required: true },
|
|
92597
92612
|
executionTimeMs: { type: Number, default: null },
|
|
92598
|
-
metadata: { type:
|
|
92613
|
+
metadata: { type: Schema18.Types.Mixed }
|
|
92599
92614
|
},
|
|
92600
92615
|
{
|
|
92601
92616
|
timestamps: true
|
|
@@ -92682,8 +92697,8 @@ var configGigacenterMongo = {
|
|
|
92682
92697
|
};
|
|
92683
92698
|
|
|
92684
92699
|
// src/databases/mongo/gigacenter/collections/financeiro-fechamento.ts
|
|
92685
|
-
import { Schema as
|
|
92686
|
-
var FinanceiroFechamentoSchema = new
|
|
92700
|
+
import { Schema as Schema19 } from "mongoose";
|
|
92701
|
+
var FinanceiroFechamentoSchema = new Schema19(
|
|
92687
92702
|
{
|
|
92688
92703
|
observacao: { type: String, default: "" },
|
|
92689
92704
|
lacre: { type: String, default: "" },
|