@cristian-israel/giganet_lib_conecta 1.0.80 → 1.0.82
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 +132 -10
- package/dist/index.d.ts +132 -10
- package/dist/index.js +116 -0
- package/dist/index.mjs +115 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -36721,7 +36721,7 @@ declare class RoutinesMysqlService {
|
|
|
36721
36721
|
}[K];
|
|
36722
36722
|
}
|
|
36723
36723
|
|
|
36724
|
-
declare const schemas$
|
|
36724
|
+
declare const schemas$3: {
|
|
36725
36725
|
tags: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
36726
36726
|
nome: string;
|
|
36727
36727
|
empresa: mongoose.Types.ObjectId;
|
|
@@ -37224,10 +37224,10 @@ declare const schemas$2: {
|
|
|
37224
37224
|
};
|
|
37225
37225
|
|
|
37226
37226
|
type OPASuiteMongoDocuments = {
|
|
37227
|
-
[K in keyof typeof schemas$
|
|
37227
|
+
[K in keyof typeof schemas$3]: HydratedDocument<InferSchemaType<(typeof schemas$3)[K]>>;
|
|
37228
37228
|
};
|
|
37229
37229
|
type OPASuiteMongoCollectionsModels = {
|
|
37230
|
-
[K in keyof typeof schemas$
|
|
37230
|
+
[K in keyof typeof schemas$3]: Model$1<InferSchemaType<(typeof schemas$3)[K]>>;
|
|
37231
37231
|
};
|
|
37232
37232
|
|
|
37233
37233
|
type MongoConnectionConfig = {
|
|
@@ -37256,7 +37256,7 @@ declare class OPASuiteMongoService {
|
|
|
37256
37256
|
getCollection<K extends keyof OPASuiteMongoCollectionsModels>(key: K): OPASuiteMongoCollectionsModels[K];
|
|
37257
37257
|
}
|
|
37258
37258
|
|
|
37259
|
-
declare const schemas$
|
|
37259
|
+
declare const schemas$2: {
|
|
37260
37260
|
user: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37261
37261
|
timestamps: true;
|
|
37262
37262
|
}, {
|
|
@@ -37366,10 +37366,10 @@ declare const schemas$1: {
|
|
|
37366
37366
|
};
|
|
37367
37367
|
|
|
37368
37368
|
type ToolsMongoDocuments = {
|
|
37369
|
-
[K in keyof typeof schemas$
|
|
37369
|
+
[K in keyof typeof schemas$2]: HydratedDocument<InferSchemaType<(typeof schemas$2)[K]>>;
|
|
37370
37370
|
};
|
|
37371
37371
|
type ToolsMongoCollectionsModels = {
|
|
37372
|
-
[K in keyof typeof schemas$
|
|
37372
|
+
[K in keyof typeof schemas$2]: Model$1<InferSchemaType<(typeof schemas$2)[K]>>;
|
|
37373
37373
|
};
|
|
37374
37374
|
|
|
37375
37375
|
declare class ToolsMongoService {
|
|
@@ -37390,7 +37390,7 @@ declare class ToolsMongoService {
|
|
|
37390
37390
|
getCollection<K extends keyof ToolsMongoCollectionsModels>(key: K): ToolsMongoCollectionsModels[K];
|
|
37391
37391
|
}
|
|
37392
37392
|
|
|
37393
|
-
declare const schemas: {
|
|
37393
|
+
declare const schemas$1: {
|
|
37394
37394
|
tasks: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37395
37395
|
timestamps: true;
|
|
37396
37396
|
}, {
|
|
@@ -37512,10 +37512,10 @@ declare const schemas: {
|
|
|
37512
37512
|
};
|
|
37513
37513
|
|
|
37514
37514
|
type RoutinesMongoDocuments = {
|
|
37515
|
-
[K in keyof typeof schemas]: HydratedDocument<InferSchemaType<(typeof schemas)[K]>>;
|
|
37515
|
+
[K in keyof typeof schemas$1]: HydratedDocument<InferSchemaType<(typeof schemas$1)[K]>>;
|
|
37516
37516
|
};
|
|
37517
37517
|
type RoutinesMongoCollectionsModels = {
|
|
37518
|
-
[K in keyof typeof schemas]: Model$1<InferSchemaType<(typeof schemas)[K]>>;
|
|
37518
|
+
[K in keyof typeof schemas$1]: Model$1<InferSchemaType<(typeof schemas$1)[K]>>;
|
|
37519
37519
|
};
|
|
37520
37520
|
|
|
37521
37521
|
declare class RoutinesMongoService {
|
|
@@ -37536,4 +37536,126 @@ declare class RoutinesMongoService {
|
|
|
37536
37536
|
getCollection<K extends keyof RoutinesMongoCollectionsModels>(key: K): RoutinesMongoCollectionsModels[K];
|
|
37537
37537
|
}
|
|
37538
37538
|
|
|
37539
|
-
|
|
37539
|
+
declare const schemas: {
|
|
37540
|
+
apiKeys: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37541
|
+
timestamps: true;
|
|
37542
|
+
}, {
|
|
37543
|
+
name: string;
|
|
37544
|
+
keyPrefix: string;
|
|
37545
|
+
keyHash: string;
|
|
37546
|
+
isActive: boolean;
|
|
37547
|
+
lastUsedAt?: NativeDate | null | undefined;
|
|
37548
|
+
} & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, {
|
|
37549
|
+
name: string;
|
|
37550
|
+
keyPrefix: string;
|
|
37551
|
+
keyHash: string;
|
|
37552
|
+
isActive: boolean;
|
|
37553
|
+
lastUsedAt?: NativeDate | null | undefined;
|
|
37554
|
+
} & mongoose.DefaultTimestampProps, {
|
|
37555
|
+
id: string;
|
|
37556
|
+
}, Omit<mongoose.DefaultSchemaOptions, "timestamps"> & {
|
|
37557
|
+
timestamps: true;
|
|
37558
|
+
}> & Omit<{
|
|
37559
|
+
name: string;
|
|
37560
|
+
keyPrefix: string;
|
|
37561
|
+
keyHash: string;
|
|
37562
|
+
isActive: boolean;
|
|
37563
|
+
lastUsedAt?: NativeDate | null | undefined;
|
|
37564
|
+
} & mongoose.DefaultTimestampProps & {
|
|
37565
|
+
_id: mongoose.Types.ObjectId;
|
|
37566
|
+
} & {
|
|
37567
|
+
__v: number;
|
|
37568
|
+
}, "id"> & {
|
|
37569
|
+
id: string;
|
|
37570
|
+
}, unknown, {
|
|
37571
|
+
name: string;
|
|
37572
|
+
keyPrefix: string;
|
|
37573
|
+
keyHash: string;
|
|
37574
|
+
isActive: boolean;
|
|
37575
|
+
lastUsedAt?: NativeDate | null | undefined;
|
|
37576
|
+
createdAt: NativeDate;
|
|
37577
|
+
updatedAt: NativeDate;
|
|
37578
|
+
} & {
|
|
37579
|
+
_id: mongoose.Types.ObjectId;
|
|
37580
|
+
} & {
|
|
37581
|
+
__v: number;
|
|
37582
|
+
}>;
|
|
37583
|
+
logs: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37584
|
+
timestamps: true;
|
|
37585
|
+
}, {
|
|
37586
|
+
status: "success" | "error" | "warning" | "info";
|
|
37587
|
+
ip: string;
|
|
37588
|
+
action: string;
|
|
37589
|
+
description: string;
|
|
37590
|
+
executionTimeMs: number;
|
|
37591
|
+
metadata?: any;
|
|
37592
|
+
apiKeyId?: mongoose.Types.ObjectId | null | undefined;
|
|
37593
|
+
} & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, {
|
|
37594
|
+
status: "success" | "error" | "warning" | "info";
|
|
37595
|
+
ip: string;
|
|
37596
|
+
action: string;
|
|
37597
|
+
description: string;
|
|
37598
|
+
executionTimeMs: number;
|
|
37599
|
+
metadata?: any;
|
|
37600
|
+
apiKeyId?: mongoose.Types.ObjectId | null | undefined;
|
|
37601
|
+
} & mongoose.DefaultTimestampProps, {
|
|
37602
|
+
id: string;
|
|
37603
|
+
}, Omit<mongoose.DefaultSchemaOptions, "timestamps"> & {
|
|
37604
|
+
timestamps: true;
|
|
37605
|
+
}> & Omit<{
|
|
37606
|
+
status: "success" | "error" | "warning" | "info";
|
|
37607
|
+
ip: string;
|
|
37608
|
+
action: string;
|
|
37609
|
+
description: string;
|
|
37610
|
+
executionTimeMs: number;
|
|
37611
|
+
metadata?: any;
|
|
37612
|
+
apiKeyId?: mongoose.Types.ObjectId | null | undefined;
|
|
37613
|
+
} & mongoose.DefaultTimestampProps & {
|
|
37614
|
+
_id: mongoose.Types.ObjectId;
|
|
37615
|
+
} & {
|
|
37616
|
+
__v: number;
|
|
37617
|
+
}, "id"> & {
|
|
37618
|
+
id: string;
|
|
37619
|
+
}, unknown, {
|
|
37620
|
+
status: "success" | "error" | "warning" | "info";
|
|
37621
|
+
ip: string;
|
|
37622
|
+
action: string;
|
|
37623
|
+
description: string;
|
|
37624
|
+
executionTimeMs: number;
|
|
37625
|
+
metadata?: any;
|
|
37626
|
+
apiKeyId?: mongoose.Types.ObjectId | null | undefined;
|
|
37627
|
+
createdAt: NativeDate;
|
|
37628
|
+
updatedAt: NativeDate;
|
|
37629
|
+
} & {
|
|
37630
|
+
_id: mongoose.Types.ObjectId;
|
|
37631
|
+
} & {
|
|
37632
|
+
__v: number;
|
|
37633
|
+
}>;
|
|
37634
|
+
};
|
|
37635
|
+
|
|
37636
|
+
type MCPGiganetMongoDocuments = {
|
|
37637
|
+
[K in keyof typeof schemas]: HydratedDocument<InferSchemaType<(typeof schemas)[K]>>;
|
|
37638
|
+
};
|
|
37639
|
+
type MCPGiganetMongoCollectionsModels = {
|
|
37640
|
+
[K in keyof typeof schemas]: Model$1<InferSchemaType<(typeof schemas)[K]>>;
|
|
37641
|
+
};
|
|
37642
|
+
|
|
37643
|
+
declare class MCPGiganetMongoService {
|
|
37644
|
+
private static instance;
|
|
37645
|
+
private connection;
|
|
37646
|
+
private initialized;
|
|
37647
|
+
private constructor();
|
|
37648
|
+
private notInitialized;
|
|
37649
|
+
/** Retorna a instância singleton */
|
|
37650
|
+
static getInstance(): MCPGiganetMongoService;
|
|
37651
|
+
/** Inicializa a conexão e collections */
|
|
37652
|
+
init(config: MongoConnectionConfig): Promise<void>;
|
|
37653
|
+
/** Retorna Mongoose connection */
|
|
37654
|
+
getConnection(): mongoose.Connection;
|
|
37655
|
+
/** Retorna collections tipadas */
|
|
37656
|
+
get collections(): MCPGiganetMongoCollectionsModels;
|
|
37657
|
+
/** Retorna uma collection específica tipada */
|
|
37658
|
+
getCollection<K extends keyof MCPGiganetMongoCollectionsModels>(key: K): MCPGiganetMongoCollectionsModels[K];
|
|
37659
|
+
}
|
|
37660
|
+
|
|
37661
|
+
export { GeminiLIBClient, geminiLib_types as GeminiLIBTypes, 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
|
@@ -36721,7 +36721,7 @@ declare class RoutinesMysqlService {
|
|
|
36721
36721
|
}[K];
|
|
36722
36722
|
}
|
|
36723
36723
|
|
|
36724
|
-
declare const schemas$
|
|
36724
|
+
declare const schemas$3: {
|
|
36725
36725
|
tags: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
36726
36726
|
nome: string;
|
|
36727
36727
|
empresa: mongoose.Types.ObjectId;
|
|
@@ -37224,10 +37224,10 @@ declare const schemas$2: {
|
|
|
37224
37224
|
};
|
|
37225
37225
|
|
|
37226
37226
|
type OPASuiteMongoDocuments = {
|
|
37227
|
-
[K in keyof typeof schemas$
|
|
37227
|
+
[K in keyof typeof schemas$3]: HydratedDocument<InferSchemaType<(typeof schemas$3)[K]>>;
|
|
37228
37228
|
};
|
|
37229
37229
|
type OPASuiteMongoCollectionsModels = {
|
|
37230
|
-
[K in keyof typeof schemas$
|
|
37230
|
+
[K in keyof typeof schemas$3]: Model$1<InferSchemaType<(typeof schemas$3)[K]>>;
|
|
37231
37231
|
};
|
|
37232
37232
|
|
|
37233
37233
|
type MongoConnectionConfig = {
|
|
@@ -37256,7 +37256,7 @@ declare class OPASuiteMongoService {
|
|
|
37256
37256
|
getCollection<K extends keyof OPASuiteMongoCollectionsModels>(key: K): OPASuiteMongoCollectionsModels[K];
|
|
37257
37257
|
}
|
|
37258
37258
|
|
|
37259
|
-
declare const schemas$
|
|
37259
|
+
declare const schemas$2: {
|
|
37260
37260
|
user: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37261
37261
|
timestamps: true;
|
|
37262
37262
|
}, {
|
|
@@ -37366,10 +37366,10 @@ declare const schemas$1: {
|
|
|
37366
37366
|
};
|
|
37367
37367
|
|
|
37368
37368
|
type ToolsMongoDocuments = {
|
|
37369
|
-
[K in keyof typeof schemas$
|
|
37369
|
+
[K in keyof typeof schemas$2]: HydratedDocument<InferSchemaType<(typeof schemas$2)[K]>>;
|
|
37370
37370
|
};
|
|
37371
37371
|
type ToolsMongoCollectionsModels = {
|
|
37372
|
-
[K in keyof typeof schemas$
|
|
37372
|
+
[K in keyof typeof schemas$2]: Model$1<InferSchemaType<(typeof schemas$2)[K]>>;
|
|
37373
37373
|
};
|
|
37374
37374
|
|
|
37375
37375
|
declare class ToolsMongoService {
|
|
@@ -37390,7 +37390,7 @@ declare class ToolsMongoService {
|
|
|
37390
37390
|
getCollection<K extends keyof ToolsMongoCollectionsModels>(key: K): ToolsMongoCollectionsModels[K];
|
|
37391
37391
|
}
|
|
37392
37392
|
|
|
37393
|
-
declare const schemas: {
|
|
37393
|
+
declare const schemas$1: {
|
|
37394
37394
|
tasks: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37395
37395
|
timestamps: true;
|
|
37396
37396
|
}, {
|
|
@@ -37512,10 +37512,10 @@ declare const schemas: {
|
|
|
37512
37512
|
};
|
|
37513
37513
|
|
|
37514
37514
|
type RoutinesMongoDocuments = {
|
|
37515
|
-
[K in keyof typeof schemas]: HydratedDocument<InferSchemaType<(typeof schemas)[K]>>;
|
|
37515
|
+
[K in keyof typeof schemas$1]: HydratedDocument<InferSchemaType<(typeof schemas$1)[K]>>;
|
|
37516
37516
|
};
|
|
37517
37517
|
type RoutinesMongoCollectionsModels = {
|
|
37518
|
-
[K in keyof typeof schemas]: Model$1<InferSchemaType<(typeof schemas)[K]>>;
|
|
37518
|
+
[K in keyof typeof schemas$1]: Model$1<InferSchemaType<(typeof schemas$1)[K]>>;
|
|
37519
37519
|
};
|
|
37520
37520
|
|
|
37521
37521
|
declare class RoutinesMongoService {
|
|
@@ -37536,4 +37536,126 @@ declare class RoutinesMongoService {
|
|
|
37536
37536
|
getCollection<K extends keyof RoutinesMongoCollectionsModels>(key: K): RoutinesMongoCollectionsModels[K];
|
|
37537
37537
|
}
|
|
37538
37538
|
|
|
37539
|
-
|
|
37539
|
+
declare const schemas: {
|
|
37540
|
+
apiKeys: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37541
|
+
timestamps: true;
|
|
37542
|
+
}, {
|
|
37543
|
+
name: string;
|
|
37544
|
+
keyPrefix: string;
|
|
37545
|
+
keyHash: string;
|
|
37546
|
+
isActive: boolean;
|
|
37547
|
+
lastUsedAt?: NativeDate | null | undefined;
|
|
37548
|
+
} & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, {
|
|
37549
|
+
name: string;
|
|
37550
|
+
keyPrefix: string;
|
|
37551
|
+
keyHash: string;
|
|
37552
|
+
isActive: boolean;
|
|
37553
|
+
lastUsedAt?: NativeDate | null | undefined;
|
|
37554
|
+
} & mongoose.DefaultTimestampProps, {
|
|
37555
|
+
id: string;
|
|
37556
|
+
}, Omit<mongoose.DefaultSchemaOptions, "timestamps"> & {
|
|
37557
|
+
timestamps: true;
|
|
37558
|
+
}> & Omit<{
|
|
37559
|
+
name: string;
|
|
37560
|
+
keyPrefix: string;
|
|
37561
|
+
keyHash: string;
|
|
37562
|
+
isActive: boolean;
|
|
37563
|
+
lastUsedAt?: NativeDate | null | undefined;
|
|
37564
|
+
} & mongoose.DefaultTimestampProps & {
|
|
37565
|
+
_id: mongoose.Types.ObjectId;
|
|
37566
|
+
} & {
|
|
37567
|
+
__v: number;
|
|
37568
|
+
}, "id"> & {
|
|
37569
|
+
id: string;
|
|
37570
|
+
}, unknown, {
|
|
37571
|
+
name: string;
|
|
37572
|
+
keyPrefix: string;
|
|
37573
|
+
keyHash: string;
|
|
37574
|
+
isActive: boolean;
|
|
37575
|
+
lastUsedAt?: NativeDate | null | undefined;
|
|
37576
|
+
createdAt: NativeDate;
|
|
37577
|
+
updatedAt: NativeDate;
|
|
37578
|
+
} & {
|
|
37579
|
+
_id: mongoose.Types.ObjectId;
|
|
37580
|
+
} & {
|
|
37581
|
+
__v: number;
|
|
37582
|
+
}>;
|
|
37583
|
+
logs: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
37584
|
+
timestamps: true;
|
|
37585
|
+
}, {
|
|
37586
|
+
status: "success" | "error" | "warning" | "info";
|
|
37587
|
+
ip: string;
|
|
37588
|
+
action: string;
|
|
37589
|
+
description: string;
|
|
37590
|
+
executionTimeMs: number;
|
|
37591
|
+
metadata?: any;
|
|
37592
|
+
apiKeyId?: mongoose.Types.ObjectId | null | undefined;
|
|
37593
|
+
} & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, {
|
|
37594
|
+
status: "success" | "error" | "warning" | "info";
|
|
37595
|
+
ip: string;
|
|
37596
|
+
action: string;
|
|
37597
|
+
description: string;
|
|
37598
|
+
executionTimeMs: number;
|
|
37599
|
+
metadata?: any;
|
|
37600
|
+
apiKeyId?: mongoose.Types.ObjectId | null | undefined;
|
|
37601
|
+
} & mongoose.DefaultTimestampProps, {
|
|
37602
|
+
id: string;
|
|
37603
|
+
}, Omit<mongoose.DefaultSchemaOptions, "timestamps"> & {
|
|
37604
|
+
timestamps: true;
|
|
37605
|
+
}> & Omit<{
|
|
37606
|
+
status: "success" | "error" | "warning" | "info";
|
|
37607
|
+
ip: string;
|
|
37608
|
+
action: string;
|
|
37609
|
+
description: string;
|
|
37610
|
+
executionTimeMs: number;
|
|
37611
|
+
metadata?: any;
|
|
37612
|
+
apiKeyId?: mongoose.Types.ObjectId | null | undefined;
|
|
37613
|
+
} & mongoose.DefaultTimestampProps & {
|
|
37614
|
+
_id: mongoose.Types.ObjectId;
|
|
37615
|
+
} & {
|
|
37616
|
+
__v: number;
|
|
37617
|
+
}, "id"> & {
|
|
37618
|
+
id: string;
|
|
37619
|
+
}, unknown, {
|
|
37620
|
+
status: "success" | "error" | "warning" | "info";
|
|
37621
|
+
ip: string;
|
|
37622
|
+
action: string;
|
|
37623
|
+
description: string;
|
|
37624
|
+
executionTimeMs: number;
|
|
37625
|
+
metadata?: any;
|
|
37626
|
+
apiKeyId?: mongoose.Types.ObjectId | null | undefined;
|
|
37627
|
+
createdAt: NativeDate;
|
|
37628
|
+
updatedAt: NativeDate;
|
|
37629
|
+
} & {
|
|
37630
|
+
_id: mongoose.Types.ObjectId;
|
|
37631
|
+
} & {
|
|
37632
|
+
__v: number;
|
|
37633
|
+
}>;
|
|
37634
|
+
};
|
|
37635
|
+
|
|
37636
|
+
type MCPGiganetMongoDocuments = {
|
|
37637
|
+
[K in keyof typeof schemas]: HydratedDocument<InferSchemaType<(typeof schemas)[K]>>;
|
|
37638
|
+
};
|
|
37639
|
+
type MCPGiganetMongoCollectionsModels = {
|
|
37640
|
+
[K in keyof typeof schemas]: Model$1<InferSchemaType<(typeof schemas)[K]>>;
|
|
37641
|
+
};
|
|
37642
|
+
|
|
37643
|
+
declare class MCPGiganetMongoService {
|
|
37644
|
+
private static instance;
|
|
37645
|
+
private connection;
|
|
37646
|
+
private initialized;
|
|
37647
|
+
private constructor();
|
|
37648
|
+
private notInitialized;
|
|
37649
|
+
/** Retorna a instância singleton */
|
|
37650
|
+
static getInstance(): MCPGiganetMongoService;
|
|
37651
|
+
/** Inicializa a conexão e collections */
|
|
37652
|
+
init(config: MongoConnectionConfig): Promise<void>;
|
|
37653
|
+
/** Retorna Mongoose connection */
|
|
37654
|
+
getConnection(): mongoose.Connection;
|
|
37655
|
+
/** Retorna collections tipadas */
|
|
37656
|
+
get collections(): MCPGiganetMongoCollectionsModels;
|
|
37657
|
+
/** Retorna uma collection específica tipada */
|
|
37658
|
+
getCollection<K extends keyof MCPGiganetMongoCollectionsModels>(key: K): MCPGiganetMongoCollectionsModels[K];
|
|
37659
|
+
}
|
|
37660
|
+
|
|
37661
|
+
export { GeminiLIBClient, geminiLib_types as GeminiLIBTypes, 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
|
@@ -35,6 +35,7 @@ __export(index_exports, {
|
|
|
35
35
|
IXCSoftAPIClient: () => IXCSoftAPIClient,
|
|
36
36
|
IXCSoftAPITypes: () => ixc_soft_api_types_exports,
|
|
37
37
|
IXCSoftMysqlService: () => IXCSoftMysqlService,
|
|
38
|
+
MCPGiganetMongoService: () => MCPGiganetMongoService,
|
|
38
39
|
NtfyAPIClient: () => NtfyAPIClient,
|
|
39
40
|
NtfyAPITypes: () => ntfy_api_types_exports,
|
|
40
41
|
OPASuiteMongoService: () => OPASuiteMongoService,
|
|
@@ -92155,6 +92156,120 @@ var RoutinesMongoService = class _RoutinesMongoService {
|
|
|
92155
92156
|
return this.connection.collections[key];
|
|
92156
92157
|
}
|
|
92157
92158
|
};
|
|
92159
|
+
|
|
92160
|
+
// src/databases/mongo/mcp-giganet/mcp-giganet.mongo.types.ts
|
|
92161
|
+
var configMCPGiganetMongo = {
|
|
92162
|
+
context: "MCP_GIGANET_MONGO",
|
|
92163
|
+
domain: "MONGO"
|
|
92164
|
+
};
|
|
92165
|
+
|
|
92166
|
+
// src/databases/mongo/mcp-giganet/collections/api-keys.ts
|
|
92167
|
+
var import_mongoose11 = require("mongoose");
|
|
92168
|
+
var MCPGiganetAPIKeysSchema = new import_mongoose11.Schema(
|
|
92169
|
+
{
|
|
92170
|
+
name: { type: String, required: true, trim: true, unique: true },
|
|
92171
|
+
keyPrefix: { type: String, required: true },
|
|
92172
|
+
keyHash: { type: String, required: true, select: false },
|
|
92173
|
+
isActive: { type: Boolean, default: true },
|
|
92174
|
+
lastUsedAt: { type: Date, required: false }
|
|
92175
|
+
},
|
|
92176
|
+
{
|
|
92177
|
+
timestamps: true
|
|
92178
|
+
}
|
|
92179
|
+
);
|
|
92180
|
+
|
|
92181
|
+
// src/databases/mongo/mcp-giganet/collections/logs.ts
|
|
92182
|
+
var import_mongoose12 = require("mongoose");
|
|
92183
|
+
var MCPGiganetLogsSchema = new import_mongoose12.Schema(
|
|
92184
|
+
{
|
|
92185
|
+
action: { type: String, required: true },
|
|
92186
|
+
status: {
|
|
92187
|
+
type: String,
|
|
92188
|
+
required: true,
|
|
92189
|
+
enum: ["success", "error", "warning", "info"]
|
|
92190
|
+
},
|
|
92191
|
+
apiKeyId: { type: import_mongoose12.Types.ObjectId, required: false, default: null },
|
|
92192
|
+
description: { type: String, required: true },
|
|
92193
|
+
ip: { type: String, required: true },
|
|
92194
|
+
executionTimeMs: { type: Number, required: true },
|
|
92195
|
+
metadata: { type: import_mongoose12.Schema.Types.Mixed, required: false }
|
|
92196
|
+
},
|
|
92197
|
+
{
|
|
92198
|
+
timestamps: true
|
|
92199
|
+
}
|
|
92200
|
+
);
|
|
92201
|
+
|
|
92202
|
+
// src/databases/mongo/mcp-giganet/collections/index.ts
|
|
92203
|
+
var schemas4 = {
|
|
92204
|
+
apiKeys: MCPGiganetAPIKeysSchema,
|
|
92205
|
+
logs: MCPGiganetLogsSchema
|
|
92206
|
+
};
|
|
92207
|
+
|
|
92208
|
+
// src/databases/mongo/mcp-giganet/mcp-giganet.mongo.connection.ts
|
|
92209
|
+
async function createMCPGiganetMongoConnection(config) {
|
|
92210
|
+
const connection = await createMongoConnection({
|
|
92211
|
+
...config,
|
|
92212
|
+
database: "mcp-giganet",
|
|
92213
|
+
context: configMCPGiganetMongo.context
|
|
92214
|
+
});
|
|
92215
|
+
const collections = Object.entries(schemas4).reduce((acc, [name, schema]) => {
|
|
92216
|
+
acc[name] = connection.model(name, schema);
|
|
92217
|
+
return acc;
|
|
92218
|
+
}, {});
|
|
92219
|
+
return {
|
|
92220
|
+
connection,
|
|
92221
|
+
collections
|
|
92222
|
+
};
|
|
92223
|
+
}
|
|
92224
|
+
var connectMCPGiganetMongo = createConnectionFactory(createMCPGiganetMongoConnection);
|
|
92225
|
+
|
|
92226
|
+
// src/databases/mongo/mcp-giganet/mcp-giganet.mongo.service.ts
|
|
92227
|
+
var MCPGiganetMongoService = class _MCPGiganetMongoService {
|
|
92228
|
+
constructor() {
|
|
92229
|
+
this.initialized = false;
|
|
92230
|
+
}
|
|
92231
|
+
notInitialized() {
|
|
92232
|
+
if (!this.initialized)
|
|
92233
|
+
throw new Error(
|
|
92234
|
+
"MCPGiganetMongoService n\xE3o inicializado! Chame init() antes."
|
|
92235
|
+
);
|
|
92236
|
+
}
|
|
92237
|
+
/** Retorna a instância singleton */
|
|
92238
|
+
static getInstance() {
|
|
92239
|
+
if (!_MCPGiganetMongoService.instance)
|
|
92240
|
+
_MCPGiganetMongoService.instance = new _MCPGiganetMongoService();
|
|
92241
|
+
return _MCPGiganetMongoService.instance;
|
|
92242
|
+
}
|
|
92243
|
+
/** Inicializa a conexão e collections */
|
|
92244
|
+
async init(config) {
|
|
92245
|
+
if (this.initialized) return;
|
|
92246
|
+
loger({
|
|
92247
|
+
...configMCPGiganetMongo,
|
|
92248
|
+
message: "Inicializando MCPGiganetMongoService..."
|
|
92249
|
+
});
|
|
92250
|
+
this.connection = await connectMCPGiganetMongo(config);
|
|
92251
|
+
this.initialized = true;
|
|
92252
|
+
loger({
|
|
92253
|
+
...configMCPGiganetMongo,
|
|
92254
|
+
message: "MCPGiganetMongoService inicializado!"
|
|
92255
|
+
});
|
|
92256
|
+
}
|
|
92257
|
+
/** Retorna Mongoose connection */
|
|
92258
|
+
getConnection() {
|
|
92259
|
+
this.notInitialized();
|
|
92260
|
+
return this.connection.connection;
|
|
92261
|
+
}
|
|
92262
|
+
/** Retorna collections tipadas */
|
|
92263
|
+
get collections() {
|
|
92264
|
+
this.notInitialized();
|
|
92265
|
+
return this.connection.collections;
|
|
92266
|
+
}
|
|
92267
|
+
/** Retorna uma collection específica tipada */
|
|
92268
|
+
getCollection(key) {
|
|
92269
|
+
this.notInitialized();
|
|
92270
|
+
return this.connection.collections[key];
|
|
92271
|
+
}
|
|
92272
|
+
};
|
|
92158
92273
|
// Annotate the CommonJS export names for ESM import in node:
|
|
92159
92274
|
0 && (module.exports = {
|
|
92160
92275
|
GeminiLIBClient,
|
|
@@ -92162,6 +92277,7 @@ var RoutinesMongoService = class _RoutinesMongoService {
|
|
|
92162
92277
|
IXCSoftAPIClient,
|
|
92163
92278
|
IXCSoftAPITypes,
|
|
92164
92279
|
IXCSoftMysqlService,
|
|
92280
|
+
MCPGiganetMongoService,
|
|
92165
92281
|
NtfyAPIClient,
|
|
92166
92282
|
NtfyAPITypes,
|
|
92167
92283
|
OPASuiteMongoService,
|
package/dist/index.mjs
CHANGED
|
@@ -92111,12 +92111,127 @@ var RoutinesMongoService = class _RoutinesMongoService {
|
|
|
92111
92111
|
return this.connection.collections[key];
|
|
92112
92112
|
}
|
|
92113
92113
|
};
|
|
92114
|
+
|
|
92115
|
+
// src/databases/mongo/mcp-giganet/mcp-giganet.mongo.types.ts
|
|
92116
|
+
var configMCPGiganetMongo = {
|
|
92117
|
+
context: "MCP_GIGANET_MONGO",
|
|
92118
|
+
domain: "MONGO"
|
|
92119
|
+
};
|
|
92120
|
+
|
|
92121
|
+
// src/databases/mongo/mcp-giganet/collections/api-keys.ts
|
|
92122
|
+
import { Schema as Schema10 } from "mongoose";
|
|
92123
|
+
var MCPGiganetAPIKeysSchema = new Schema10(
|
|
92124
|
+
{
|
|
92125
|
+
name: { type: String, required: true, trim: true, unique: true },
|
|
92126
|
+
keyPrefix: { type: String, required: true },
|
|
92127
|
+
keyHash: { type: String, required: true, select: false },
|
|
92128
|
+
isActive: { type: Boolean, default: true },
|
|
92129
|
+
lastUsedAt: { type: Date, required: false }
|
|
92130
|
+
},
|
|
92131
|
+
{
|
|
92132
|
+
timestamps: true
|
|
92133
|
+
}
|
|
92134
|
+
);
|
|
92135
|
+
|
|
92136
|
+
// src/databases/mongo/mcp-giganet/collections/logs.ts
|
|
92137
|
+
import { Schema as Schema11, Types as Types5 } from "mongoose";
|
|
92138
|
+
var MCPGiganetLogsSchema = new Schema11(
|
|
92139
|
+
{
|
|
92140
|
+
action: { type: String, required: true },
|
|
92141
|
+
status: {
|
|
92142
|
+
type: String,
|
|
92143
|
+
required: true,
|
|
92144
|
+
enum: ["success", "error", "warning", "info"]
|
|
92145
|
+
},
|
|
92146
|
+
apiKeyId: { type: Types5.ObjectId, required: false, default: null },
|
|
92147
|
+
description: { type: String, required: true },
|
|
92148
|
+
ip: { type: String, required: true },
|
|
92149
|
+
executionTimeMs: { type: Number, required: true },
|
|
92150
|
+
metadata: { type: Schema11.Types.Mixed, required: false }
|
|
92151
|
+
},
|
|
92152
|
+
{
|
|
92153
|
+
timestamps: true
|
|
92154
|
+
}
|
|
92155
|
+
);
|
|
92156
|
+
|
|
92157
|
+
// src/databases/mongo/mcp-giganet/collections/index.ts
|
|
92158
|
+
var schemas4 = {
|
|
92159
|
+
apiKeys: MCPGiganetAPIKeysSchema,
|
|
92160
|
+
logs: MCPGiganetLogsSchema
|
|
92161
|
+
};
|
|
92162
|
+
|
|
92163
|
+
// src/databases/mongo/mcp-giganet/mcp-giganet.mongo.connection.ts
|
|
92164
|
+
async function createMCPGiganetMongoConnection(config) {
|
|
92165
|
+
const connection = await createMongoConnection({
|
|
92166
|
+
...config,
|
|
92167
|
+
database: "mcp-giganet",
|
|
92168
|
+
context: configMCPGiganetMongo.context
|
|
92169
|
+
});
|
|
92170
|
+
const collections = Object.entries(schemas4).reduce((acc, [name, schema]) => {
|
|
92171
|
+
acc[name] = connection.model(name, schema);
|
|
92172
|
+
return acc;
|
|
92173
|
+
}, {});
|
|
92174
|
+
return {
|
|
92175
|
+
connection,
|
|
92176
|
+
collections
|
|
92177
|
+
};
|
|
92178
|
+
}
|
|
92179
|
+
var connectMCPGiganetMongo = createConnectionFactory(createMCPGiganetMongoConnection);
|
|
92180
|
+
|
|
92181
|
+
// src/databases/mongo/mcp-giganet/mcp-giganet.mongo.service.ts
|
|
92182
|
+
var MCPGiganetMongoService = class _MCPGiganetMongoService {
|
|
92183
|
+
constructor() {
|
|
92184
|
+
this.initialized = false;
|
|
92185
|
+
}
|
|
92186
|
+
notInitialized() {
|
|
92187
|
+
if (!this.initialized)
|
|
92188
|
+
throw new Error(
|
|
92189
|
+
"MCPGiganetMongoService n\xE3o inicializado! Chame init() antes."
|
|
92190
|
+
);
|
|
92191
|
+
}
|
|
92192
|
+
/** Retorna a instância singleton */
|
|
92193
|
+
static getInstance() {
|
|
92194
|
+
if (!_MCPGiganetMongoService.instance)
|
|
92195
|
+
_MCPGiganetMongoService.instance = new _MCPGiganetMongoService();
|
|
92196
|
+
return _MCPGiganetMongoService.instance;
|
|
92197
|
+
}
|
|
92198
|
+
/** Inicializa a conexão e collections */
|
|
92199
|
+
async init(config) {
|
|
92200
|
+
if (this.initialized) return;
|
|
92201
|
+
loger({
|
|
92202
|
+
...configMCPGiganetMongo,
|
|
92203
|
+
message: "Inicializando MCPGiganetMongoService..."
|
|
92204
|
+
});
|
|
92205
|
+
this.connection = await connectMCPGiganetMongo(config);
|
|
92206
|
+
this.initialized = true;
|
|
92207
|
+
loger({
|
|
92208
|
+
...configMCPGiganetMongo,
|
|
92209
|
+
message: "MCPGiganetMongoService inicializado!"
|
|
92210
|
+
});
|
|
92211
|
+
}
|
|
92212
|
+
/** Retorna Mongoose connection */
|
|
92213
|
+
getConnection() {
|
|
92214
|
+
this.notInitialized();
|
|
92215
|
+
return this.connection.connection;
|
|
92216
|
+
}
|
|
92217
|
+
/** Retorna collections tipadas */
|
|
92218
|
+
get collections() {
|
|
92219
|
+
this.notInitialized();
|
|
92220
|
+
return this.connection.collections;
|
|
92221
|
+
}
|
|
92222
|
+
/** Retorna uma collection específica tipada */
|
|
92223
|
+
getCollection(key) {
|
|
92224
|
+
this.notInitialized();
|
|
92225
|
+
return this.connection.collections[key];
|
|
92226
|
+
}
|
|
92227
|
+
};
|
|
92114
92228
|
export {
|
|
92115
92229
|
GeminiLIBClient,
|
|
92116
92230
|
gemini_lib_types_exports as GeminiLIBTypes,
|
|
92117
92231
|
IXCSoftAPIClient,
|
|
92118
92232
|
ixc_soft_api_types_exports as IXCSoftAPITypes,
|
|
92119
92233
|
IXCSoftMysqlService,
|
|
92234
|
+
MCPGiganetMongoService,
|
|
92120
92235
|
NtfyAPIClient,
|
|
92121
92236
|
ntfy_api_types_exports as NtfyAPITypes,
|
|
92122
92237
|
OPASuiteMongoService,
|