@cristian-israel/giganet_lib_conecta 1.0.150 → 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 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
@@ -93338,6 +93338,38 @@ FleetExpenseTicketsSchema.index({ conductor: 1 });
93338
93338
  FleetExpenseTicketsSchema.index({ id_vehicle: 1 });
93339
93339
  FleetExpenseTicketsSchema.index({ createdAt: -1 });
93340
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
+
93341
93373
  // src/databases/mongo/tools/collections/index.ts
93342
93374
  var schemas2 = {
93343
93375
  permission_groups: ToolsPermissionGroupsSchema,
@@ -93349,7 +93381,8 @@ var schemas2 = {
93349
93381
  analysis_ia_usage_logs: AnalysisIaUsageLogsSchema,
93350
93382
  api_user: ToolsApiUserSchema,
93351
93383
  fleet_expense_ticket_subjects: FleetExpenseTicketSubjectsSchema,
93352
- fleet_expense_tickets: FleetExpenseTicketsSchema
93384
+ fleet_expense_tickets: FleetExpenseTicketsSchema,
93385
+ fleet_expense_ticket_files: FleetExpenseTicketFilesSchema
93353
93386
  };
93354
93387
 
93355
93388
  // src/databases/mongo/tools/tools.mongo.connection.ts
@@ -93425,8 +93458,8 @@ var configRoutinesMongo = {
93425
93458
  };
93426
93459
 
93427
93460
  // src/databases/mongo/routines/collections/tasks.ts
93428
- var import_mongoose17 = require("mongoose");
93429
- var RoutinesTasksSchema = new import_mongoose17.Schema(
93461
+ var import_mongoose18 = require("mongoose");
93462
+ var RoutinesTasksSchema = new import_mongoose18.Schema(
93430
93463
  {
93431
93464
  name: { type: String, required: true, unique: true },
93432
93465
  description: { type: String, required: true },
@@ -93454,8 +93487,8 @@ var RoutinesTasksSchema = new import_mongoose17.Schema(
93454
93487
  );
93455
93488
 
93456
93489
  // src/databases/mongo/routines/collections/problems-issues-os.ts
93457
- var import_mongoose18 = require("mongoose");
93458
- var RoutinesProblemsIssuesOSSchema = new import_mongoose18.Schema(
93490
+ var import_mongoose19 = require("mongoose");
93491
+ var RoutinesProblemsIssuesOSSchema = new import_mongoose19.Schema(
93459
93492
  {
93460
93493
  name: { type: String, required: true, unique: true },
93461
93494
  description: { type: String, required: true },
@@ -93468,8 +93501,8 @@ var RoutinesProblemsIssuesOSSchema = new import_mongoose18.Schema(
93468
93501
  );
93469
93502
 
93470
93503
  // src/databases/mongo/routines/collections/monitoring-transmissores-zones.ts
93471
- var import_mongoose19 = require("mongoose");
93472
- var ZoneMatchSchema = new import_mongoose19.Schema(
93504
+ var import_mongoose20 = require("mongoose");
93505
+ var ZoneMatchSchema = new import_mongoose20.Schema(
93473
93506
  {
93474
93507
  strategy: {
93475
93508
  type: String,
@@ -93481,7 +93514,7 @@ var ZoneMatchSchema = new import_mongoose19.Schema(
93481
93514
  },
93482
93515
  { _id: false }
93483
93516
  );
93484
- var ZoneValidationSchema = new import_mongoose19.Schema(
93517
+ var ZoneValidationSchema = new import_mongoose20.Schema(
93485
93518
  {
93486
93519
  is_active: { type: Boolean, default: false },
93487
93520
  operator: {
@@ -93496,11 +93529,11 @@ var ZoneValidationSchema = new import_mongoose19.Schema(
93496
93529
  ],
93497
93530
  required: true
93498
93531
  },
93499
- value: { type: import_mongoose19.Schema.Types.Mixed, required: true }
93532
+ value: { type: import_mongoose20.Schema.Types.Mixed, required: true }
93500
93533
  },
93501
93534
  { _id: false }
93502
93535
  );
93503
- var RoutinesMonitoringTransmissoresZonesSchema = new import_mongoose19.Schema(
93536
+ var RoutinesMonitoringTransmissoresZonesSchema = new import_mongoose20.Schema(
93504
93537
  {
93505
93538
  name: { type: String, required: true, unique: true },
93506
93539
  color: { type: String, required: true },
@@ -93521,11 +93554,11 @@ var RoutinesMonitoringTransmissoresZonesSchema = new import_mongoose19.Schema(
93521
93554
  );
93522
93555
 
93523
93556
  // src/databases/mongo/routines/collections/logs.ts
93524
- var import_mongoose20 = require("mongoose");
93525
- var RoutinesLogsSchema = new import_mongoose20.Schema(
93557
+ var import_mongoose21 = require("mongoose");
93558
+ var RoutinesLogsSchema = new import_mongoose21.Schema(
93526
93559
  {
93527
93560
  task: {
93528
- type: import_mongoose20.Types.ObjectId,
93561
+ type: import_mongoose21.Types.ObjectId,
93529
93562
  ref: "Task"
93530
93563
  },
93531
93564
  action: { type: String, required: true },
@@ -93537,7 +93570,7 @@ var RoutinesLogsSchema = new import_mongoose20.Schema(
93537
93570
  triggered_by: { type: Number, default: null },
93538
93571
  description: { type: String, required: true },
93539
93572
  executionTimeMs: { type: Number, default: null },
93540
- metadata: { type: import_mongoose20.Schema.Types.Mixed }
93573
+ metadata: { type: import_mongoose21.Schema.Types.Mixed }
93541
93574
  },
93542
93575
  {
93543
93576
  timestamps: true
@@ -93737,8 +93770,8 @@ var configMCPGiganetMongo = {
93737
93770
  };
93738
93771
 
93739
93772
  // src/databases/mongo/mcp-giganet/collections/api-keys.ts
93740
- var import_mongoose21 = require("mongoose");
93741
- var MCPGiganetAPIKeysSchema = new import_mongoose21.Schema(
93773
+ var import_mongoose22 = require("mongoose");
93774
+ var MCPGiganetAPIKeysSchema = new import_mongoose22.Schema(
93742
93775
  {
93743
93776
  name: { type: String, required: true, trim: true, unique: true },
93744
93777
  keyPrefix: { type: String, required: true },
@@ -93752,8 +93785,8 @@ var MCPGiganetAPIKeysSchema = new import_mongoose21.Schema(
93752
93785
  );
93753
93786
 
93754
93787
  // src/databases/mongo/mcp-giganet/collections/logs.ts
93755
- var import_mongoose22 = require("mongoose");
93756
- var MCPGiganetLogsSchema = new import_mongoose22.Schema(
93788
+ var import_mongoose23 = require("mongoose");
93789
+ var MCPGiganetLogsSchema = new import_mongoose23.Schema(
93757
93790
  {
93758
93791
  action: { type: String, required: true },
93759
93792
  status: {
@@ -93761,11 +93794,11 @@ var MCPGiganetLogsSchema = new import_mongoose22.Schema(
93761
93794
  required: true,
93762
93795
  enum: ["success", "error", "warning", "info"]
93763
93796
  },
93764
- apiKeyId: { type: import_mongoose22.Types.ObjectId, required: false, default: null },
93797
+ apiKeyId: { type: import_mongoose23.Types.ObjectId, required: false, default: null },
93765
93798
  description: { type: String, required: true },
93766
93799
  ip: { type: String, required: true },
93767
93800
  executionTimeMs: { type: Number, required: true },
93768
- metadata: { type: import_mongoose22.Schema.Types.Mixed, required: false }
93801
+ metadata: { type: import_mongoose23.Schema.Types.Mixed, required: false }
93769
93802
  },
93770
93803
  {
93771
93804
  timestamps: true
@@ -93851,8 +93884,8 @@ var configGigacenterMongo = {
93851
93884
  };
93852
93885
 
93853
93886
  // src/databases/mongo/gigacenter/collections/financeiro-fechamento.ts
93854
- var import_mongoose23 = require("mongoose");
93855
- var FinanceiroFechamentoSchema = new import_mongoose23.Schema(
93887
+ var import_mongoose24 = require("mongoose");
93888
+ var FinanceiroFechamentoSchema = new import_mongoose24.Schema(
93856
93889
  {
93857
93890
  observacao: { type: String, default: "" },
93858
93891
  lacre: { type: String, default: "" },
package/dist/index.mjs CHANGED
@@ -93285,6 +93285,38 @@ FleetExpenseTicketsSchema.index({ conductor: 1 });
93285
93285
  FleetExpenseTicketsSchema.index({ id_vehicle: 1 });
93286
93286
  FleetExpenseTicketsSchema.index({ createdAt: -1 });
93287
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
+
93288
93320
  // src/databases/mongo/tools/collections/index.ts
93289
93321
  var schemas2 = {
93290
93322
  permission_groups: ToolsPermissionGroupsSchema,
@@ -93296,7 +93328,8 @@ var schemas2 = {
93296
93328
  analysis_ia_usage_logs: AnalysisIaUsageLogsSchema,
93297
93329
  api_user: ToolsApiUserSchema,
93298
93330
  fleet_expense_ticket_subjects: FleetExpenseTicketSubjectsSchema,
93299
- fleet_expense_tickets: FleetExpenseTicketsSchema
93331
+ fleet_expense_tickets: FleetExpenseTicketsSchema,
93332
+ fleet_expense_ticket_files: FleetExpenseTicketFilesSchema
93300
93333
  };
93301
93334
 
93302
93335
  // src/databases/mongo/tools/tools.mongo.connection.ts
@@ -93372,8 +93405,8 @@ var configRoutinesMongo = {
93372
93405
  };
93373
93406
 
93374
93407
  // src/databases/mongo/routines/collections/tasks.ts
93375
- import { Schema as Schema16 } from "mongoose";
93376
- var RoutinesTasksSchema = new Schema16(
93408
+ import { Schema as Schema17 } from "mongoose";
93409
+ var RoutinesTasksSchema = new Schema17(
93377
93410
  {
93378
93411
  name: { type: String, required: true, unique: true },
93379
93412
  description: { type: String, required: true },
@@ -93401,8 +93434,8 @@ var RoutinesTasksSchema = new Schema16(
93401
93434
  );
93402
93435
 
93403
93436
  // src/databases/mongo/routines/collections/problems-issues-os.ts
93404
- import { Schema as Schema17 } from "mongoose";
93405
- var RoutinesProblemsIssuesOSSchema = new Schema17(
93437
+ import { Schema as Schema18 } from "mongoose";
93438
+ var RoutinesProblemsIssuesOSSchema = new Schema18(
93406
93439
  {
93407
93440
  name: { type: String, required: true, unique: true },
93408
93441
  description: { type: String, required: true },
@@ -93415,8 +93448,8 @@ var RoutinesProblemsIssuesOSSchema = new Schema17(
93415
93448
  );
93416
93449
 
93417
93450
  // src/databases/mongo/routines/collections/monitoring-transmissores-zones.ts
93418
- import { Schema as Schema18 } from "mongoose";
93419
- var ZoneMatchSchema = new Schema18(
93451
+ import { Schema as Schema19 } from "mongoose";
93452
+ var ZoneMatchSchema = new Schema19(
93420
93453
  {
93421
93454
  strategy: {
93422
93455
  type: String,
@@ -93428,7 +93461,7 @@ var ZoneMatchSchema = new Schema18(
93428
93461
  },
93429
93462
  { _id: false }
93430
93463
  );
93431
- var ZoneValidationSchema = new Schema18(
93464
+ var ZoneValidationSchema = new Schema19(
93432
93465
  {
93433
93466
  is_active: { type: Boolean, default: false },
93434
93467
  operator: {
@@ -93443,11 +93476,11 @@ var ZoneValidationSchema = new Schema18(
93443
93476
  ],
93444
93477
  required: true
93445
93478
  },
93446
- value: { type: Schema18.Types.Mixed, required: true }
93479
+ value: { type: Schema19.Types.Mixed, required: true }
93447
93480
  },
93448
93481
  { _id: false }
93449
93482
  );
93450
- var RoutinesMonitoringTransmissoresZonesSchema = new Schema18(
93483
+ var RoutinesMonitoringTransmissoresZonesSchema = new Schema19(
93451
93484
  {
93452
93485
  name: { type: String, required: true, unique: true },
93453
93486
  color: { type: String, required: true },
@@ -93468,11 +93501,11 @@ var RoutinesMonitoringTransmissoresZonesSchema = new Schema18(
93468
93501
  );
93469
93502
 
93470
93503
  // src/databases/mongo/routines/collections/logs.ts
93471
- import { Schema as Schema19, Types as Types7 } from "mongoose";
93472
- var RoutinesLogsSchema = new Schema19(
93504
+ import { Schema as Schema20, Types as Types8 } from "mongoose";
93505
+ var RoutinesLogsSchema = new Schema20(
93473
93506
  {
93474
93507
  task: {
93475
- type: Types7.ObjectId,
93508
+ type: Types8.ObjectId,
93476
93509
  ref: "Task"
93477
93510
  },
93478
93511
  action: { type: String, required: true },
@@ -93484,7 +93517,7 @@ var RoutinesLogsSchema = new Schema19(
93484
93517
  triggered_by: { type: Number, default: null },
93485
93518
  description: { type: String, required: true },
93486
93519
  executionTimeMs: { type: Number, default: null },
93487
- metadata: { type: Schema19.Types.Mixed }
93520
+ metadata: { type: Schema20.Types.Mixed }
93488
93521
  },
93489
93522
  {
93490
93523
  timestamps: true
@@ -93684,8 +93717,8 @@ var configMCPGiganetMongo = {
93684
93717
  };
93685
93718
 
93686
93719
  // src/databases/mongo/mcp-giganet/collections/api-keys.ts
93687
- import { Schema as Schema20 } from "mongoose";
93688
- var MCPGiganetAPIKeysSchema = new Schema20(
93720
+ import { Schema as Schema21 } from "mongoose";
93721
+ var MCPGiganetAPIKeysSchema = new Schema21(
93689
93722
  {
93690
93723
  name: { type: String, required: true, trim: true, unique: true },
93691
93724
  keyPrefix: { type: String, required: true },
@@ -93699,8 +93732,8 @@ var MCPGiganetAPIKeysSchema = new Schema20(
93699
93732
  );
93700
93733
 
93701
93734
  // src/databases/mongo/mcp-giganet/collections/logs.ts
93702
- import { Schema as Schema21, Types as Types9 } from "mongoose";
93703
- var MCPGiganetLogsSchema = new Schema21(
93735
+ import { Schema as Schema22, Types as Types10 } from "mongoose";
93736
+ var MCPGiganetLogsSchema = new Schema22(
93704
93737
  {
93705
93738
  action: { type: String, required: true },
93706
93739
  status: {
@@ -93708,11 +93741,11 @@ var MCPGiganetLogsSchema = new Schema21(
93708
93741
  required: true,
93709
93742
  enum: ["success", "error", "warning", "info"]
93710
93743
  },
93711
- apiKeyId: { type: Types9.ObjectId, required: false, default: null },
93744
+ apiKeyId: { type: Types10.ObjectId, required: false, default: null },
93712
93745
  description: { type: String, required: true },
93713
93746
  ip: { type: String, required: true },
93714
93747
  executionTimeMs: { type: Number, required: true },
93715
- metadata: { type: Schema21.Types.Mixed, required: false }
93748
+ metadata: { type: Schema22.Types.Mixed, required: false }
93716
93749
  },
93717
93750
  {
93718
93751
  timestamps: true
@@ -93798,8 +93831,8 @@ var configGigacenterMongo = {
93798
93831
  };
93799
93832
 
93800
93833
  // src/databases/mongo/gigacenter/collections/financeiro-fechamento.ts
93801
- import { Schema as Schema22 } from "mongoose";
93802
- var FinanceiroFechamentoSchema = new Schema22(
93834
+ import { Schema as Schema23 } from "mongoose";
93835
+ var FinanceiroFechamentoSchema = new Schema23(
93803
93836
  {
93804
93837
  observacao: { type: String, default: "" },
93805
93838
  lacre: { type: String, default: "" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cristian-israel/giganet_lib_conecta",
3
- "version": "1.0.150",
3
+ "version": "1.0.152",
4
4
  "description": "Database Connector Layer",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",