@cristian-israel/giganet_lib_conecta 1.0.149 → 1.0.152
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 +55 -0
- package/dist/index.d.ts +55 -0
- package/dist/index.js +63 -26
- package/dist/index.mjs +63 -26
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -39262,6 +39262,61 @@ declare const schemas$3: {
|
|
|
39262
39262
|
} & {
|
|
39263
39263
|
__v: number;
|
|
39264
39264
|
}>;
|
|
39265
|
+
fleet_expense_ticket_files: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
39266
|
+
timestamps: true;
|
|
39267
|
+
}, {
|
|
39268
|
+
field_kind: "subject_form_files" | "extra_files";
|
|
39269
|
+
field_key: string;
|
|
39270
|
+
original_name: string;
|
|
39271
|
+
stored_name: string;
|
|
39272
|
+
mime_type: string;
|
|
39273
|
+
size_bytes: number;
|
|
39274
|
+
relative_path: string;
|
|
39275
|
+
id_ticket?: mongoose.Types.ObjectId | null | undefined;
|
|
39276
|
+
} & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, {
|
|
39277
|
+
field_kind: "subject_form_files" | "extra_files";
|
|
39278
|
+
field_key: string;
|
|
39279
|
+
original_name: string;
|
|
39280
|
+
stored_name: string;
|
|
39281
|
+
mime_type: string;
|
|
39282
|
+
size_bytes: number;
|
|
39283
|
+
relative_path: string;
|
|
39284
|
+
id_ticket?: mongoose.Types.ObjectId | null | undefined;
|
|
39285
|
+
} & mongoose.DefaultTimestampProps, {
|
|
39286
|
+
id: string;
|
|
39287
|
+
}, Omit<mongoose.DefaultSchemaOptions, "timestamps"> & {
|
|
39288
|
+
timestamps: true;
|
|
39289
|
+
}> & Omit<{
|
|
39290
|
+
field_kind: "subject_form_files" | "extra_files";
|
|
39291
|
+
field_key: string;
|
|
39292
|
+
original_name: string;
|
|
39293
|
+
stored_name: string;
|
|
39294
|
+
mime_type: string;
|
|
39295
|
+
size_bytes: number;
|
|
39296
|
+
relative_path: string;
|
|
39297
|
+
id_ticket?: mongoose.Types.ObjectId | null | undefined;
|
|
39298
|
+
} & mongoose.DefaultTimestampProps & {
|
|
39299
|
+
_id: mongoose.Types.ObjectId;
|
|
39300
|
+
} & {
|
|
39301
|
+
__v: number;
|
|
39302
|
+
}, "id"> & {
|
|
39303
|
+
id: string;
|
|
39304
|
+
}, unknown, {
|
|
39305
|
+
field_kind: "subject_form_files" | "extra_files";
|
|
39306
|
+
field_key: string;
|
|
39307
|
+
original_name: string;
|
|
39308
|
+
stored_name: string;
|
|
39309
|
+
mime_type: string;
|
|
39310
|
+
size_bytes: number;
|
|
39311
|
+
relative_path: string;
|
|
39312
|
+
id_ticket?: mongoose.Types.ObjectId | null | undefined;
|
|
39313
|
+
createdAt: NativeDate;
|
|
39314
|
+
updatedAt: NativeDate;
|
|
39315
|
+
} & {
|
|
39316
|
+
_id: mongoose.Types.ObjectId;
|
|
39317
|
+
} & {
|
|
39318
|
+
__v: number;
|
|
39319
|
+
}>;
|
|
39265
39320
|
};
|
|
39266
39321
|
|
|
39267
39322
|
type ToolsMongoDocuments = {
|
package/dist/index.d.ts
CHANGED
|
@@ -39262,6 +39262,61 @@ declare const schemas$3: {
|
|
|
39262
39262
|
} & {
|
|
39263
39263
|
__v: number;
|
|
39264
39264
|
}>;
|
|
39265
|
+
fleet_expense_ticket_files: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
39266
|
+
timestamps: true;
|
|
39267
|
+
}, {
|
|
39268
|
+
field_kind: "subject_form_files" | "extra_files";
|
|
39269
|
+
field_key: string;
|
|
39270
|
+
original_name: string;
|
|
39271
|
+
stored_name: string;
|
|
39272
|
+
mime_type: string;
|
|
39273
|
+
size_bytes: number;
|
|
39274
|
+
relative_path: string;
|
|
39275
|
+
id_ticket?: mongoose.Types.ObjectId | null | undefined;
|
|
39276
|
+
} & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, {
|
|
39277
|
+
field_kind: "subject_form_files" | "extra_files";
|
|
39278
|
+
field_key: string;
|
|
39279
|
+
original_name: string;
|
|
39280
|
+
stored_name: string;
|
|
39281
|
+
mime_type: string;
|
|
39282
|
+
size_bytes: number;
|
|
39283
|
+
relative_path: string;
|
|
39284
|
+
id_ticket?: mongoose.Types.ObjectId | null | undefined;
|
|
39285
|
+
} & mongoose.DefaultTimestampProps, {
|
|
39286
|
+
id: string;
|
|
39287
|
+
}, Omit<mongoose.DefaultSchemaOptions, "timestamps"> & {
|
|
39288
|
+
timestamps: true;
|
|
39289
|
+
}> & Omit<{
|
|
39290
|
+
field_kind: "subject_form_files" | "extra_files";
|
|
39291
|
+
field_key: string;
|
|
39292
|
+
original_name: string;
|
|
39293
|
+
stored_name: string;
|
|
39294
|
+
mime_type: string;
|
|
39295
|
+
size_bytes: number;
|
|
39296
|
+
relative_path: string;
|
|
39297
|
+
id_ticket?: mongoose.Types.ObjectId | null | undefined;
|
|
39298
|
+
} & mongoose.DefaultTimestampProps & {
|
|
39299
|
+
_id: mongoose.Types.ObjectId;
|
|
39300
|
+
} & {
|
|
39301
|
+
__v: number;
|
|
39302
|
+
}, "id"> & {
|
|
39303
|
+
id: string;
|
|
39304
|
+
}, unknown, {
|
|
39305
|
+
field_kind: "subject_form_files" | "extra_files";
|
|
39306
|
+
field_key: string;
|
|
39307
|
+
original_name: string;
|
|
39308
|
+
stored_name: string;
|
|
39309
|
+
mime_type: string;
|
|
39310
|
+
size_bytes: number;
|
|
39311
|
+
relative_path: string;
|
|
39312
|
+
id_ticket?: mongoose.Types.ObjectId | null | undefined;
|
|
39313
|
+
createdAt: NativeDate;
|
|
39314
|
+
updatedAt: NativeDate;
|
|
39315
|
+
} & {
|
|
39316
|
+
_id: mongoose.Types.ObjectId;
|
|
39317
|
+
} & {
|
|
39318
|
+
__v: number;
|
|
39319
|
+
}>;
|
|
39265
39320
|
};
|
|
39266
39321
|
|
|
39267
39322
|
type ToolsMongoDocuments = {
|
package/dist/index.js
CHANGED
|
@@ -709,7 +709,12 @@ function parseOnuSignalSummaryHtml(html) {
|
|
|
709
709
|
temperature: toNumberOrNull(get(map, "Temperatura")),
|
|
710
710
|
voltage: toNumberOrNull(get(map, "Voltagem")),
|
|
711
711
|
txSignal: toNumberOrNull(get(map, "Sinal Tx", "SinalTx")),
|
|
712
|
-
signalStatus: get(
|
|
712
|
+
signalStatus: get(
|
|
713
|
+
map,
|
|
714
|
+
"Status pot\xEAncia",
|
|
715
|
+
"Statuspot\xEAncia",
|
|
716
|
+
"Statuspot\xEAncia"
|
|
717
|
+
),
|
|
713
718
|
fsp: get(map, "F/s/p"),
|
|
714
719
|
onuId: get(map, "Onu id", "Onuid"),
|
|
715
720
|
controlFlag: get(map, "Control flag", "Controlflag"),
|
|
@@ -745,10 +750,9 @@ var OnuSignalSummaryResource = class {
|
|
|
745
750
|
*/
|
|
746
751
|
async get(data) {
|
|
747
752
|
const payload = {
|
|
748
|
-
id: data.id
|
|
753
|
+
id: String(data.id)
|
|
749
754
|
};
|
|
750
|
-
const html = await this.client.post(this.endpoint, {
|
|
751
|
-
data: payload,
|
|
755
|
+
const html = await this.client.post(this.endpoint, payload, {
|
|
752
756
|
headers: {
|
|
753
757
|
"Content-Type": "application/json"
|
|
754
758
|
}
|
|
@@ -93334,6 +93338,38 @@ FleetExpenseTicketsSchema.index({ conductor: 1 });
|
|
|
93334
93338
|
FleetExpenseTicketsSchema.index({ id_vehicle: 1 });
|
|
93335
93339
|
FleetExpenseTicketsSchema.index({ createdAt: -1 });
|
|
93336
93340
|
|
|
93341
|
+
// src/databases/mongo/tools/collections/fleet-expense-ticket-files.ts
|
|
93342
|
+
var import_mongoose17 = require("mongoose");
|
|
93343
|
+
var FLEET_EXPENSE_TICKET_FILE_FIELD_KINDS = [
|
|
93344
|
+
"subject_form_files",
|
|
93345
|
+
"extra_files"
|
|
93346
|
+
];
|
|
93347
|
+
var FleetExpenseTicketFilesSchema = new import_mongoose17.Schema(
|
|
93348
|
+
{
|
|
93349
|
+
id_ticket: {
|
|
93350
|
+
type: import_mongoose17.Types.ObjectId,
|
|
93351
|
+
ref: "fleet_expense_tickets",
|
|
93352
|
+
default: null,
|
|
93353
|
+
index: true
|
|
93354
|
+
},
|
|
93355
|
+
field_kind: {
|
|
93356
|
+
type: String,
|
|
93357
|
+
enum: FLEET_EXPENSE_TICKET_FILE_FIELD_KINDS,
|
|
93358
|
+
required: true
|
|
93359
|
+
},
|
|
93360
|
+
field_key: { type: String, required: true, trim: true },
|
|
93361
|
+
original_name: { type: String, required: true, trim: true },
|
|
93362
|
+
stored_name: { type: String, required: true, trim: true, unique: true },
|
|
93363
|
+
mime_type: { type: String, required: true, trim: true },
|
|
93364
|
+
size_bytes: { type: Number, required: true, min: 1 },
|
|
93365
|
+
relative_path: { type: String, required: true, trim: true }
|
|
93366
|
+
},
|
|
93367
|
+
{
|
|
93368
|
+
timestamps: true
|
|
93369
|
+
}
|
|
93370
|
+
);
|
|
93371
|
+
FleetExpenseTicketFilesSchema.index({ id_ticket: 1, createdAt: -1 });
|
|
93372
|
+
|
|
93337
93373
|
// src/databases/mongo/tools/collections/index.ts
|
|
93338
93374
|
var schemas2 = {
|
|
93339
93375
|
permission_groups: ToolsPermissionGroupsSchema,
|
|
@@ -93345,7 +93381,8 @@ var schemas2 = {
|
|
|
93345
93381
|
analysis_ia_usage_logs: AnalysisIaUsageLogsSchema,
|
|
93346
93382
|
api_user: ToolsApiUserSchema,
|
|
93347
93383
|
fleet_expense_ticket_subjects: FleetExpenseTicketSubjectsSchema,
|
|
93348
|
-
fleet_expense_tickets: FleetExpenseTicketsSchema
|
|
93384
|
+
fleet_expense_tickets: FleetExpenseTicketsSchema,
|
|
93385
|
+
fleet_expense_ticket_files: FleetExpenseTicketFilesSchema
|
|
93349
93386
|
};
|
|
93350
93387
|
|
|
93351
93388
|
// src/databases/mongo/tools/tools.mongo.connection.ts
|
|
@@ -93421,8 +93458,8 @@ var configRoutinesMongo = {
|
|
|
93421
93458
|
};
|
|
93422
93459
|
|
|
93423
93460
|
// src/databases/mongo/routines/collections/tasks.ts
|
|
93424
|
-
var
|
|
93425
|
-
var RoutinesTasksSchema = new
|
|
93461
|
+
var import_mongoose18 = require("mongoose");
|
|
93462
|
+
var RoutinesTasksSchema = new import_mongoose18.Schema(
|
|
93426
93463
|
{
|
|
93427
93464
|
name: { type: String, required: true, unique: true },
|
|
93428
93465
|
description: { type: String, required: true },
|
|
@@ -93450,8 +93487,8 @@ var RoutinesTasksSchema = new import_mongoose17.Schema(
|
|
|
93450
93487
|
);
|
|
93451
93488
|
|
|
93452
93489
|
// src/databases/mongo/routines/collections/problems-issues-os.ts
|
|
93453
|
-
var
|
|
93454
|
-
var RoutinesProblemsIssuesOSSchema = new
|
|
93490
|
+
var import_mongoose19 = require("mongoose");
|
|
93491
|
+
var RoutinesProblemsIssuesOSSchema = new import_mongoose19.Schema(
|
|
93455
93492
|
{
|
|
93456
93493
|
name: { type: String, required: true, unique: true },
|
|
93457
93494
|
description: { type: String, required: true },
|
|
@@ -93464,8 +93501,8 @@ var RoutinesProblemsIssuesOSSchema = new import_mongoose18.Schema(
|
|
|
93464
93501
|
);
|
|
93465
93502
|
|
|
93466
93503
|
// src/databases/mongo/routines/collections/monitoring-transmissores-zones.ts
|
|
93467
|
-
var
|
|
93468
|
-
var ZoneMatchSchema = new
|
|
93504
|
+
var import_mongoose20 = require("mongoose");
|
|
93505
|
+
var ZoneMatchSchema = new import_mongoose20.Schema(
|
|
93469
93506
|
{
|
|
93470
93507
|
strategy: {
|
|
93471
93508
|
type: String,
|
|
@@ -93477,7 +93514,7 @@ var ZoneMatchSchema = new import_mongoose19.Schema(
|
|
|
93477
93514
|
},
|
|
93478
93515
|
{ _id: false }
|
|
93479
93516
|
);
|
|
93480
|
-
var ZoneValidationSchema = new
|
|
93517
|
+
var ZoneValidationSchema = new import_mongoose20.Schema(
|
|
93481
93518
|
{
|
|
93482
93519
|
is_active: { type: Boolean, default: false },
|
|
93483
93520
|
operator: {
|
|
@@ -93492,11 +93529,11 @@ var ZoneValidationSchema = new import_mongoose19.Schema(
|
|
|
93492
93529
|
],
|
|
93493
93530
|
required: true
|
|
93494
93531
|
},
|
|
93495
|
-
value: { type:
|
|
93532
|
+
value: { type: import_mongoose20.Schema.Types.Mixed, required: true }
|
|
93496
93533
|
},
|
|
93497
93534
|
{ _id: false }
|
|
93498
93535
|
);
|
|
93499
|
-
var RoutinesMonitoringTransmissoresZonesSchema = new
|
|
93536
|
+
var RoutinesMonitoringTransmissoresZonesSchema = new import_mongoose20.Schema(
|
|
93500
93537
|
{
|
|
93501
93538
|
name: { type: String, required: true, unique: true },
|
|
93502
93539
|
color: { type: String, required: true },
|
|
@@ -93517,11 +93554,11 @@ var RoutinesMonitoringTransmissoresZonesSchema = new import_mongoose19.Schema(
|
|
|
93517
93554
|
);
|
|
93518
93555
|
|
|
93519
93556
|
// src/databases/mongo/routines/collections/logs.ts
|
|
93520
|
-
var
|
|
93521
|
-
var RoutinesLogsSchema = new
|
|
93557
|
+
var import_mongoose21 = require("mongoose");
|
|
93558
|
+
var RoutinesLogsSchema = new import_mongoose21.Schema(
|
|
93522
93559
|
{
|
|
93523
93560
|
task: {
|
|
93524
|
-
type:
|
|
93561
|
+
type: import_mongoose21.Types.ObjectId,
|
|
93525
93562
|
ref: "Task"
|
|
93526
93563
|
},
|
|
93527
93564
|
action: { type: String, required: true },
|
|
@@ -93533,7 +93570,7 @@ var RoutinesLogsSchema = new import_mongoose20.Schema(
|
|
|
93533
93570
|
triggered_by: { type: Number, default: null },
|
|
93534
93571
|
description: { type: String, required: true },
|
|
93535
93572
|
executionTimeMs: { type: Number, default: null },
|
|
93536
|
-
metadata: { type:
|
|
93573
|
+
metadata: { type: import_mongoose21.Schema.Types.Mixed }
|
|
93537
93574
|
},
|
|
93538
93575
|
{
|
|
93539
93576
|
timestamps: true
|
|
@@ -93733,8 +93770,8 @@ var configMCPGiganetMongo = {
|
|
|
93733
93770
|
};
|
|
93734
93771
|
|
|
93735
93772
|
// src/databases/mongo/mcp-giganet/collections/api-keys.ts
|
|
93736
|
-
var
|
|
93737
|
-
var MCPGiganetAPIKeysSchema = new
|
|
93773
|
+
var import_mongoose22 = require("mongoose");
|
|
93774
|
+
var MCPGiganetAPIKeysSchema = new import_mongoose22.Schema(
|
|
93738
93775
|
{
|
|
93739
93776
|
name: { type: String, required: true, trim: true, unique: true },
|
|
93740
93777
|
keyPrefix: { type: String, required: true },
|
|
@@ -93748,8 +93785,8 @@ var MCPGiganetAPIKeysSchema = new import_mongoose21.Schema(
|
|
|
93748
93785
|
);
|
|
93749
93786
|
|
|
93750
93787
|
// src/databases/mongo/mcp-giganet/collections/logs.ts
|
|
93751
|
-
var
|
|
93752
|
-
var MCPGiganetLogsSchema = new
|
|
93788
|
+
var import_mongoose23 = require("mongoose");
|
|
93789
|
+
var MCPGiganetLogsSchema = new import_mongoose23.Schema(
|
|
93753
93790
|
{
|
|
93754
93791
|
action: { type: String, required: true },
|
|
93755
93792
|
status: {
|
|
@@ -93757,11 +93794,11 @@ var MCPGiganetLogsSchema = new import_mongoose22.Schema(
|
|
|
93757
93794
|
required: true,
|
|
93758
93795
|
enum: ["success", "error", "warning", "info"]
|
|
93759
93796
|
},
|
|
93760
|
-
apiKeyId: { type:
|
|
93797
|
+
apiKeyId: { type: import_mongoose23.Types.ObjectId, required: false, default: null },
|
|
93761
93798
|
description: { type: String, required: true },
|
|
93762
93799
|
ip: { type: String, required: true },
|
|
93763
93800
|
executionTimeMs: { type: Number, required: true },
|
|
93764
|
-
metadata: { type:
|
|
93801
|
+
metadata: { type: import_mongoose23.Schema.Types.Mixed, required: false }
|
|
93765
93802
|
},
|
|
93766
93803
|
{
|
|
93767
93804
|
timestamps: true
|
|
@@ -93847,8 +93884,8 @@ var configGigacenterMongo = {
|
|
|
93847
93884
|
};
|
|
93848
93885
|
|
|
93849
93886
|
// src/databases/mongo/gigacenter/collections/financeiro-fechamento.ts
|
|
93850
|
-
var
|
|
93851
|
-
var FinanceiroFechamentoSchema = new
|
|
93887
|
+
var import_mongoose24 = require("mongoose");
|
|
93888
|
+
var FinanceiroFechamentoSchema = new import_mongoose24.Schema(
|
|
93852
93889
|
{
|
|
93853
93890
|
observacao: { type: String, default: "" },
|
|
93854
93891
|
lacre: { type: String, default: "" },
|
package/dist/index.mjs
CHANGED
|
@@ -656,7 +656,12 @@ function parseOnuSignalSummaryHtml(html) {
|
|
|
656
656
|
temperature: toNumberOrNull(get(map, "Temperatura")),
|
|
657
657
|
voltage: toNumberOrNull(get(map, "Voltagem")),
|
|
658
658
|
txSignal: toNumberOrNull(get(map, "Sinal Tx", "SinalTx")),
|
|
659
|
-
signalStatus: get(
|
|
659
|
+
signalStatus: get(
|
|
660
|
+
map,
|
|
661
|
+
"Status pot\xEAncia",
|
|
662
|
+
"Statuspot\xEAncia",
|
|
663
|
+
"Statuspot\xEAncia"
|
|
664
|
+
),
|
|
660
665
|
fsp: get(map, "F/s/p"),
|
|
661
666
|
onuId: get(map, "Onu id", "Onuid"),
|
|
662
667
|
controlFlag: get(map, "Control flag", "Controlflag"),
|
|
@@ -692,10 +697,9 @@ var OnuSignalSummaryResource = class {
|
|
|
692
697
|
*/
|
|
693
698
|
async get(data) {
|
|
694
699
|
const payload = {
|
|
695
|
-
id: data.id
|
|
700
|
+
id: String(data.id)
|
|
696
701
|
};
|
|
697
|
-
const html = await this.client.post(this.endpoint, {
|
|
698
|
-
data: payload,
|
|
702
|
+
const html = await this.client.post(this.endpoint, payload, {
|
|
699
703
|
headers: {
|
|
700
704
|
"Content-Type": "application/json"
|
|
701
705
|
}
|
|
@@ -93281,6 +93285,38 @@ FleetExpenseTicketsSchema.index({ conductor: 1 });
|
|
|
93281
93285
|
FleetExpenseTicketsSchema.index({ id_vehicle: 1 });
|
|
93282
93286
|
FleetExpenseTicketsSchema.index({ createdAt: -1 });
|
|
93283
93287
|
|
|
93288
|
+
// src/databases/mongo/tools/collections/fleet-expense-ticket-files.ts
|
|
93289
|
+
import { Schema as Schema16, Types as Types7 } from "mongoose";
|
|
93290
|
+
var FLEET_EXPENSE_TICKET_FILE_FIELD_KINDS = [
|
|
93291
|
+
"subject_form_files",
|
|
93292
|
+
"extra_files"
|
|
93293
|
+
];
|
|
93294
|
+
var FleetExpenseTicketFilesSchema = new Schema16(
|
|
93295
|
+
{
|
|
93296
|
+
id_ticket: {
|
|
93297
|
+
type: Types7.ObjectId,
|
|
93298
|
+
ref: "fleet_expense_tickets",
|
|
93299
|
+
default: null,
|
|
93300
|
+
index: true
|
|
93301
|
+
},
|
|
93302
|
+
field_kind: {
|
|
93303
|
+
type: String,
|
|
93304
|
+
enum: FLEET_EXPENSE_TICKET_FILE_FIELD_KINDS,
|
|
93305
|
+
required: true
|
|
93306
|
+
},
|
|
93307
|
+
field_key: { type: String, required: true, trim: true },
|
|
93308
|
+
original_name: { type: String, required: true, trim: true },
|
|
93309
|
+
stored_name: { type: String, required: true, trim: true, unique: true },
|
|
93310
|
+
mime_type: { type: String, required: true, trim: true },
|
|
93311
|
+
size_bytes: { type: Number, required: true, min: 1 },
|
|
93312
|
+
relative_path: { type: String, required: true, trim: true }
|
|
93313
|
+
},
|
|
93314
|
+
{
|
|
93315
|
+
timestamps: true
|
|
93316
|
+
}
|
|
93317
|
+
);
|
|
93318
|
+
FleetExpenseTicketFilesSchema.index({ id_ticket: 1, createdAt: -1 });
|
|
93319
|
+
|
|
93284
93320
|
// src/databases/mongo/tools/collections/index.ts
|
|
93285
93321
|
var schemas2 = {
|
|
93286
93322
|
permission_groups: ToolsPermissionGroupsSchema,
|
|
@@ -93292,7 +93328,8 @@ var schemas2 = {
|
|
|
93292
93328
|
analysis_ia_usage_logs: AnalysisIaUsageLogsSchema,
|
|
93293
93329
|
api_user: ToolsApiUserSchema,
|
|
93294
93330
|
fleet_expense_ticket_subjects: FleetExpenseTicketSubjectsSchema,
|
|
93295
|
-
fleet_expense_tickets: FleetExpenseTicketsSchema
|
|
93331
|
+
fleet_expense_tickets: FleetExpenseTicketsSchema,
|
|
93332
|
+
fleet_expense_ticket_files: FleetExpenseTicketFilesSchema
|
|
93296
93333
|
};
|
|
93297
93334
|
|
|
93298
93335
|
// src/databases/mongo/tools/tools.mongo.connection.ts
|
|
@@ -93368,8 +93405,8 @@ var configRoutinesMongo = {
|
|
|
93368
93405
|
};
|
|
93369
93406
|
|
|
93370
93407
|
// src/databases/mongo/routines/collections/tasks.ts
|
|
93371
|
-
import { Schema as
|
|
93372
|
-
var RoutinesTasksSchema = new
|
|
93408
|
+
import { Schema as Schema17 } from "mongoose";
|
|
93409
|
+
var RoutinesTasksSchema = new Schema17(
|
|
93373
93410
|
{
|
|
93374
93411
|
name: { type: String, required: true, unique: true },
|
|
93375
93412
|
description: { type: String, required: true },
|
|
@@ -93397,8 +93434,8 @@ var RoutinesTasksSchema = new Schema16(
|
|
|
93397
93434
|
);
|
|
93398
93435
|
|
|
93399
93436
|
// src/databases/mongo/routines/collections/problems-issues-os.ts
|
|
93400
|
-
import { Schema as
|
|
93401
|
-
var RoutinesProblemsIssuesOSSchema = new
|
|
93437
|
+
import { Schema as Schema18 } from "mongoose";
|
|
93438
|
+
var RoutinesProblemsIssuesOSSchema = new Schema18(
|
|
93402
93439
|
{
|
|
93403
93440
|
name: { type: String, required: true, unique: true },
|
|
93404
93441
|
description: { type: String, required: true },
|
|
@@ -93411,8 +93448,8 @@ var RoutinesProblemsIssuesOSSchema = new Schema17(
|
|
|
93411
93448
|
);
|
|
93412
93449
|
|
|
93413
93450
|
// src/databases/mongo/routines/collections/monitoring-transmissores-zones.ts
|
|
93414
|
-
import { Schema as
|
|
93415
|
-
var ZoneMatchSchema = new
|
|
93451
|
+
import { Schema as Schema19 } from "mongoose";
|
|
93452
|
+
var ZoneMatchSchema = new Schema19(
|
|
93416
93453
|
{
|
|
93417
93454
|
strategy: {
|
|
93418
93455
|
type: String,
|
|
@@ -93424,7 +93461,7 @@ var ZoneMatchSchema = new Schema18(
|
|
|
93424
93461
|
},
|
|
93425
93462
|
{ _id: false }
|
|
93426
93463
|
);
|
|
93427
|
-
var ZoneValidationSchema = new
|
|
93464
|
+
var ZoneValidationSchema = new Schema19(
|
|
93428
93465
|
{
|
|
93429
93466
|
is_active: { type: Boolean, default: false },
|
|
93430
93467
|
operator: {
|
|
@@ -93439,11 +93476,11 @@ var ZoneValidationSchema = new Schema18(
|
|
|
93439
93476
|
],
|
|
93440
93477
|
required: true
|
|
93441
93478
|
},
|
|
93442
|
-
value: { type:
|
|
93479
|
+
value: { type: Schema19.Types.Mixed, required: true }
|
|
93443
93480
|
},
|
|
93444
93481
|
{ _id: false }
|
|
93445
93482
|
);
|
|
93446
|
-
var RoutinesMonitoringTransmissoresZonesSchema = new
|
|
93483
|
+
var RoutinesMonitoringTransmissoresZonesSchema = new Schema19(
|
|
93447
93484
|
{
|
|
93448
93485
|
name: { type: String, required: true, unique: true },
|
|
93449
93486
|
color: { type: String, required: true },
|
|
@@ -93464,11 +93501,11 @@ var RoutinesMonitoringTransmissoresZonesSchema = new Schema18(
|
|
|
93464
93501
|
);
|
|
93465
93502
|
|
|
93466
93503
|
// src/databases/mongo/routines/collections/logs.ts
|
|
93467
|
-
import { Schema as
|
|
93468
|
-
var RoutinesLogsSchema = new
|
|
93504
|
+
import { Schema as Schema20, Types as Types8 } from "mongoose";
|
|
93505
|
+
var RoutinesLogsSchema = new Schema20(
|
|
93469
93506
|
{
|
|
93470
93507
|
task: {
|
|
93471
|
-
type:
|
|
93508
|
+
type: Types8.ObjectId,
|
|
93472
93509
|
ref: "Task"
|
|
93473
93510
|
},
|
|
93474
93511
|
action: { type: String, required: true },
|
|
@@ -93480,7 +93517,7 @@ var RoutinesLogsSchema = new Schema19(
|
|
|
93480
93517
|
triggered_by: { type: Number, default: null },
|
|
93481
93518
|
description: { type: String, required: true },
|
|
93482
93519
|
executionTimeMs: { type: Number, default: null },
|
|
93483
|
-
metadata: { type:
|
|
93520
|
+
metadata: { type: Schema20.Types.Mixed }
|
|
93484
93521
|
},
|
|
93485
93522
|
{
|
|
93486
93523
|
timestamps: true
|
|
@@ -93680,8 +93717,8 @@ var configMCPGiganetMongo = {
|
|
|
93680
93717
|
};
|
|
93681
93718
|
|
|
93682
93719
|
// src/databases/mongo/mcp-giganet/collections/api-keys.ts
|
|
93683
|
-
import { Schema as
|
|
93684
|
-
var MCPGiganetAPIKeysSchema = new
|
|
93720
|
+
import { Schema as Schema21 } from "mongoose";
|
|
93721
|
+
var MCPGiganetAPIKeysSchema = new Schema21(
|
|
93685
93722
|
{
|
|
93686
93723
|
name: { type: String, required: true, trim: true, unique: true },
|
|
93687
93724
|
keyPrefix: { type: String, required: true },
|
|
@@ -93695,8 +93732,8 @@ var MCPGiganetAPIKeysSchema = new Schema20(
|
|
|
93695
93732
|
);
|
|
93696
93733
|
|
|
93697
93734
|
// src/databases/mongo/mcp-giganet/collections/logs.ts
|
|
93698
|
-
import { Schema as
|
|
93699
|
-
var MCPGiganetLogsSchema = new
|
|
93735
|
+
import { Schema as Schema22, Types as Types10 } from "mongoose";
|
|
93736
|
+
var MCPGiganetLogsSchema = new Schema22(
|
|
93700
93737
|
{
|
|
93701
93738
|
action: { type: String, required: true },
|
|
93702
93739
|
status: {
|
|
@@ -93704,11 +93741,11 @@ var MCPGiganetLogsSchema = new Schema21(
|
|
|
93704
93741
|
required: true,
|
|
93705
93742
|
enum: ["success", "error", "warning", "info"]
|
|
93706
93743
|
},
|
|
93707
|
-
apiKeyId: { type:
|
|
93744
|
+
apiKeyId: { type: Types10.ObjectId, required: false, default: null },
|
|
93708
93745
|
description: { type: String, required: true },
|
|
93709
93746
|
ip: { type: String, required: true },
|
|
93710
93747
|
executionTimeMs: { type: Number, required: true },
|
|
93711
|
-
metadata: { type:
|
|
93748
|
+
metadata: { type: Schema22.Types.Mixed, required: false }
|
|
93712
93749
|
},
|
|
93713
93750
|
{
|
|
93714
93751
|
timestamps: true
|
|
@@ -93794,8 +93831,8 @@ var configGigacenterMongo = {
|
|
|
93794
93831
|
};
|
|
93795
93832
|
|
|
93796
93833
|
// src/databases/mongo/gigacenter/collections/financeiro-fechamento.ts
|
|
93797
|
-
import { Schema as
|
|
93798
|
-
var FinanceiroFechamentoSchema = new
|
|
93834
|
+
import { Schema as Schema23 } from "mongoose";
|
|
93835
|
+
var FinanceiroFechamentoSchema = new Schema23(
|
|
93799
93836
|
{
|
|
93800
93837
|
observacao: { type: String, default: "" },
|
|
93801
93838
|
lacre: { type: String, default: "" },
|