@cristian-israel/giganet_lib_conecta 1.0.67 → 1.0.69
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 +236 -3
- package/dist/index.d.ts +236 -3
- package/dist/index.js +503 -1
- package/dist/index.mjs +500 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -33459,7 +33459,7 @@ declare class AcsActionDevice extends Model<AcsActionDeviceAttributes, AcsAction
|
|
|
33459
33459
|
static initModel(sequelize: Sequelize.Sequelize): typeof AcsActionDevice;
|
|
33460
33460
|
}
|
|
33461
33461
|
|
|
33462
|
-
declare function initModels(sequelize: Sequelize$1): {
|
|
33462
|
+
declare function initModels$1(sequelize: Sequelize$1): {
|
|
33463
33463
|
AcsActionDevice: typeof AcsActionDevice;
|
|
33464
33464
|
AcsDevice: typeof AcsDevice;
|
|
33465
33465
|
AcsDeviceWifi: typeof AcsDeviceWifi;
|
|
@@ -34235,7 +34235,7 @@ declare function initModels(sequelize: Sequelize$1): {
|
|
|
34235
34235
|
XmlNfse: typeof XmlNfse;
|
|
34236
34236
|
};
|
|
34237
34237
|
|
|
34238
|
-
type IXCSoftMysqlModels = ReturnType<typeof initModels>;
|
|
34238
|
+
type IXCSoftMysqlModels = ReturnType<typeof initModels$1>;
|
|
34239
34239
|
type IXCSoftMysqlModelsAttributes = {
|
|
34240
34240
|
[K in keyof IXCSoftMysqlModels]: Attributes<InstanceType<IXCSoftMysqlModels[K]>>;
|
|
34241
34241
|
};
|
|
@@ -34245,6 +34245,7 @@ type MysqlConnectionConfig = {
|
|
|
34245
34245
|
port: number;
|
|
34246
34246
|
user: string;
|
|
34247
34247
|
password: string;
|
|
34248
|
+
database: string;
|
|
34248
34249
|
};
|
|
34249
34250
|
|
|
34250
34251
|
declare class IXCSoftMysqlService {
|
|
@@ -35813,6 +35814,150 @@ declare class IXCSoftMysqlService {
|
|
|
35813
35814
|
}[K];
|
|
35814
35815
|
}
|
|
35815
35816
|
|
|
35817
|
+
interface AnalysisRequestLogAttributes {
|
|
35818
|
+
id: number;
|
|
35819
|
+
analysisId: number;
|
|
35820
|
+
modelo?: string;
|
|
35821
|
+
tokensEntrada?: number;
|
|
35822
|
+
tokensSaida?: number;
|
|
35823
|
+
duracaoMs?: number;
|
|
35824
|
+
status?: "sucesso" | "erro" | "timeout";
|
|
35825
|
+
erroMensagem?: string;
|
|
35826
|
+
createdAt?: Date;
|
|
35827
|
+
}
|
|
35828
|
+
type AnalysisRequestLogOptionalAttributes = "id" | "modelo" | "tokensEntrada" | "tokensSaida" | "duracaoMs" | "status" | "erroMensagem" | "createdAt";
|
|
35829
|
+
type AnalysisRequestLogCreationAttributes = Optional<AnalysisRequestLogAttributes, AnalysisRequestLogOptionalAttributes>;
|
|
35830
|
+
declare class AnalysisRequestLog extends Model<AnalysisRequestLogAttributes, AnalysisRequestLogCreationAttributes> implements AnalysisRequestLogAttributes {
|
|
35831
|
+
id: number;
|
|
35832
|
+
analysisId: number;
|
|
35833
|
+
modelo?: string;
|
|
35834
|
+
tokensEntrada?: number;
|
|
35835
|
+
tokensSaida?: number;
|
|
35836
|
+
duracaoMs?: number;
|
|
35837
|
+
status?: "sucesso" | "erro" | "timeout";
|
|
35838
|
+
erroMensagem?: string;
|
|
35839
|
+
createdAt?: Date;
|
|
35840
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof AnalysisRequestLog;
|
|
35841
|
+
}
|
|
35842
|
+
|
|
35843
|
+
interface AnalysisAttendantSnapshotAttributes {
|
|
35844
|
+
id: number;
|
|
35845
|
+
analysisId: number;
|
|
35846
|
+
idAtendente: string;
|
|
35847
|
+
totalOs?: number;
|
|
35848
|
+
respostasInsuficientes?: number;
|
|
35849
|
+
alerta?: boolean;
|
|
35850
|
+
}
|
|
35851
|
+
type AnalysisAttendantSnapshotOptionalAttributes = "id" | "totalOs" | "respostasInsuficientes" | "alerta";
|
|
35852
|
+
type AnalysisAttendantSnapshotCreationAttributes = Optional<AnalysisAttendantSnapshotAttributes, AnalysisAttendantSnapshotOptionalAttributes>;
|
|
35853
|
+
declare class AnalysisAttendantSnapshot extends Model<AnalysisAttendantSnapshotAttributes, AnalysisAttendantSnapshotCreationAttributes> implements AnalysisAttendantSnapshotAttributes {
|
|
35854
|
+
id: number;
|
|
35855
|
+
analysisId: number;
|
|
35856
|
+
idAtendente: string;
|
|
35857
|
+
totalOs?: number;
|
|
35858
|
+
respostasInsuficientes?: number;
|
|
35859
|
+
alerta?: boolean;
|
|
35860
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof AnalysisAttendantSnapshot;
|
|
35861
|
+
}
|
|
35862
|
+
|
|
35863
|
+
interface AnalysisRegionSnapshotAttributes {
|
|
35864
|
+
id: number;
|
|
35865
|
+
analysisId: number;
|
|
35866
|
+
regiao: string;
|
|
35867
|
+
totalOs?: number;
|
|
35868
|
+
causaDominante?: string;
|
|
35869
|
+
critico?: boolean;
|
|
35870
|
+
lat?: number;
|
|
35871
|
+
lng?: number;
|
|
35872
|
+
}
|
|
35873
|
+
type AnalysisRegionSnapshotOptionalAttributes = "id" | "totalOs" | "causaDominante" | "critico" | "lat" | "lng";
|
|
35874
|
+
type AnalysisRegionSnapshotCreationAttributes = Optional<AnalysisRegionSnapshotAttributes, AnalysisRegionSnapshotOptionalAttributes>;
|
|
35875
|
+
declare class AnalysisRegionSnapshot extends Model<AnalysisRegionSnapshotAttributes, AnalysisRegionSnapshotCreationAttributes> implements AnalysisRegionSnapshotAttributes {
|
|
35876
|
+
id: number;
|
|
35877
|
+
analysisId: number;
|
|
35878
|
+
regiao: string;
|
|
35879
|
+
totalOs?: number;
|
|
35880
|
+
causaDominante?: string;
|
|
35881
|
+
critico?: boolean;
|
|
35882
|
+
lat?: number;
|
|
35883
|
+
lng?: number;
|
|
35884
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof AnalysisRegionSnapshot;
|
|
35885
|
+
}
|
|
35886
|
+
|
|
35887
|
+
interface CancellationAnalysisAttributes {
|
|
35888
|
+
id: number;
|
|
35889
|
+
tipo: "diario" | "semanal" | "mensal";
|
|
35890
|
+
periodoInicio: string;
|
|
35891
|
+
periodoFim: string;
|
|
35892
|
+
totalOs?: number;
|
|
35893
|
+
totalEvitaveis?: number;
|
|
35894
|
+
causaPrincipal?: string;
|
|
35895
|
+
resumoExecutivo?: string;
|
|
35896
|
+
resultadoIa?: object;
|
|
35897
|
+
status?: "processando" | "concluido" | "erro";
|
|
35898
|
+
processadoEm?: Date;
|
|
35899
|
+
createdAt?: Date;
|
|
35900
|
+
updatedAt?: Date;
|
|
35901
|
+
}
|
|
35902
|
+
type CancellationAnalysisOptionalAttributes = "id" | "totalOs" | "totalEvitaveis" | "causaPrincipal" | "resumoExecutivo" | "resultadoIa" | "status" | "processadoEm" | "createdAt" | "updatedAt";
|
|
35903
|
+
type CancellationAnalysisCreationAttributes = Optional<CancellationAnalysisAttributes, CancellationAnalysisOptionalAttributes>;
|
|
35904
|
+
declare class CancellationAnalysis extends Model<CancellationAnalysisAttributes, CancellationAnalysisCreationAttributes> implements CancellationAnalysisAttributes {
|
|
35905
|
+
id: number;
|
|
35906
|
+
tipo: "diario" | "semanal" | "mensal";
|
|
35907
|
+
periodoInicio: string;
|
|
35908
|
+
periodoFim: string;
|
|
35909
|
+
totalOs?: number;
|
|
35910
|
+
totalEvitaveis?: number;
|
|
35911
|
+
causaPrincipal?: string;
|
|
35912
|
+
resumoExecutivo?: string;
|
|
35913
|
+
resultadoIa?: object;
|
|
35914
|
+
status?: "processando" | "concluido" | "erro";
|
|
35915
|
+
processadoEm?: Date;
|
|
35916
|
+
createdAt?: Date;
|
|
35917
|
+
updatedAt?: Date;
|
|
35918
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof CancellationAnalysis;
|
|
35919
|
+
}
|
|
35920
|
+
|
|
35921
|
+
declare function initModels(sequelize: Sequelize$1): {
|
|
35922
|
+
cancellationAnalysis: typeof CancellationAnalysis;
|
|
35923
|
+
analysisRegionSnapshot: typeof AnalysisRegionSnapshot;
|
|
35924
|
+
analysisAttendantSnapshot: typeof AnalysisAttendantSnapshot;
|
|
35925
|
+
analysisRequestLog: typeof AnalysisRequestLog;
|
|
35926
|
+
};
|
|
35927
|
+
|
|
35928
|
+
type RoutinesMysqlModels = ReturnType<typeof initModels>;
|
|
35929
|
+
type RoutinesMysqlModelsAttributes = {
|
|
35930
|
+
[K in keyof RoutinesMysqlModels]: Attributes<InstanceType<RoutinesMysqlModels[K]>>;
|
|
35931
|
+
};
|
|
35932
|
+
|
|
35933
|
+
declare class RoutinesMysqlService {
|
|
35934
|
+
private static instance;
|
|
35935
|
+
private connection;
|
|
35936
|
+
private initialized;
|
|
35937
|
+
private constructor();
|
|
35938
|
+
private notInitialized;
|
|
35939
|
+
/** Retorna a instância singleton */
|
|
35940
|
+
static getInstance(): RoutinesMysqlService;
|
|
35941
|
+
/** Inicializa a conexão e models */
|
|
35942
|
+
init(config: MysqlConnectionConfig): Promise<void>;
|
|
35943
|
+
/** Retorna o sequelize */
|
|
35944
|
+
getSequelize(): Sequelize$1;
|
|
35945
|
+
/** Retorna os models tipados */
|
|
35946
|
+
get models(): {
|
|
35947
|
+
cancellationAnalysis: typeof CancellationAnalysis;
|
|
35948
|
+
analysisRegionSnapshot: typeof AnalysisRegionSnapshot;
|
|
35949
|
+
analysisAttendantSnapshot: typeof AnalysisAttendantSnapshot;
|
|
35950
|
+
analysisRequestLog: typeof AnalysisRequestLog;
|
|
35951
|
+
};
|
|
35952
|
+
/** Retorna um model específico tipado */
|
|
35953
|
+
getModel<K extends keyof RoutinesMysqlModels>(key: K): {
|
|
35954
|
+
cancellationAnalysis: typeof CancellationAnalysis;
|
|
35955
|
+
analysisRegionSnapshot: typeof AnalysisRegionSnapshot;
|
|
35956
|
+
analysisAttendantSnapshot: typeof AnalysisAttendantSnapshot;
|
|
35957
|
+
analysisRequestLog: typeof AnalysisRequestLog;
|
|
35958
|
+
}[K];
|
|
35959
|
+
}
|
|
35960
|
+
|
|
35816
35961
|
declare const schemas$2: {
|
|
35817
35962
|
tags: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
35818
35963
|
cor: string;
|
|
@@ -37135,4 +37280,92 @@ declare class NtfyAPIClient extends APIClient {
|
|
|
37135
37280
|
});
|
|
37136
37281
|
}
|
|
37137
37282
|
|
|
37138
|
-
|
|
37283
|
+
interface GeminiAPIConfig {
|
|
37284
|
+
apiKey: string;
|
|
37285
|
+
apiVersion?: string;
|
|
37286
|
+
baseUrl?: string;
|
|
37287
|
+
}
|
|
37288
|
+
interface GeminiGenerateContentRequest {
|
|
37289
|
+
contents: GeminiContent[];
|
|
37290
|
+
generationConfig?: GeminiGenerationConfig;
|
|
37291
|
+
safetySettings?: GeminiSafetySetting[];
|
|
37292
|
+
}
|
|
37293
|
+
interface GeminiContent {
|
|
37294
|
+
role?: "user" | "model";
|
|
37295
|
+
parts: GeminiPart[];
|
|
37296
|
+
}
|
|
37297
|
+
interface GeminiPart {
|
|
37298
|
+
text?: string;
|
|
37299
|
+
inlineData?: {
|
|
37300
|
+
mimeType: string;
|
|
37301
|
+
data: string;
|
|
37302
|
+
};
|
|
37303
|
+
}
|
|
37304
|
+
interface GeminiGenerationConfig {
|
|
37305
|
+
stopSequences?: string[];
|
|
37306
|
+
candidateCount?: number;
|
|
37307
|
+
maxOutputTokens?: number;
|
|
37308
|
+
temperature?: number;
|
|
37309
|
+
topP?: number;
|
|
37310
|
+
topK?: number;
|
|
37311
|
+
}
|
|
37312
|
+
interface GeminiSafetySetting {
|
|
37313
|
+
category: string;
|
|
37314
|
+
threshold: string;
|
|
37315
|
+
}
|
|
37316
|
+
interface GeminiGenerateContentResponse {
|
|
37317
|
+
candidates: GeminiCandidate[];
|
|
37318
|
+
usageMetadata?: GeminiUsageMetadata;
|
|
37319
|
+
promptFeedback?: any;
|
|
37320
|
+
}
|
|
37321
|
+
interface GeminiCandidate {
|
|
37322
|
+
content: GeminiContent;
|
|
37323
|
+
finishReason?: string;
|
|
37324
|
+
index?: number;
|
|
37325
|
+
safetyRatings?: GeminiSafetyRating[];
|
|
37326
|
+
}
|
|
37327
|
+
interface GeminiSafetyRating {
|
|
37328
|
+
category: string;
|
|
37329
|
+
probability: string;
|
|
37330
|
+
}
|
|
37331
|
+
interface GeminiUsageMetadata {
|
|
37332
|
+
promptTokenCount: number;
|
|
37333
|
+
candidatesTokenCount: number;
|
|
37334
|
+
totalTokenCount: number;
|
|
37335
|
+
}
|
|
37336
|
+
|
|
37337
|
+
type geminiApi_types_GeminiAPIConfig = GeminiAPIConfig;
|
|
37338
|
+
type geminiApi_types_GeminiCandidate = GeminiCandidate;
|
|
37339
|
+
type geminiApi_types_GeminiContent = GeminiContent;
|
|
37340
|
+
type geminiApi_types_GeminiGenerateContentRequest = GeminiGenerateContentRequest;
|
|
37341
|
+
type geminiApi_types_GeminiGenerateContentResponse = GeminiGenerateContentResponse;
|
|
37342
|
+
type geminiApi_types_GeminiGenerationConfig = GeminiGenerationConfig;
|
|
37343
|
+
type geminiApi_types_GeminiPart = GeminiPart;
|
|
37344
|
+
type geminiApi_types_GeminiSafetyRating = GeminiSafetyRating;
|
|
37345
|
+
type geminiApi_types_GeminiSafetySetting = GeminiSafetySetting;
|
|
37346
|
+
type geminiApi_types_GeminiUsageMetadata = GeminiUsageMetadata;
|
|
37347
|
+
declare namespace geminiApi_types {
|
|
37348
|
+
export type { geminiApi_types_GeminiAPIConfig as GeminiAPIConfig, geminiApi_types_GeminiCandidate as GeminiCandidate, geminiApi_types_GeminiContent as GeminiContent, geminiApi_types_GeminiGenerateContentRequest as GeminiGenerateContentRequest, geminiApi_types_GeminiGenerateContentResponse as GeminiGenerateContentResponse, geminiApi_types_GeminiGenerationConfig as GeminiGenerationConfig, geminiApi_types_GeminiPart as GeminiPart, geminiApi_types_GeminiSafetyRating as GeminiSafetyRating, geminiApi_types_GeminiSafetySetting as GeminiSafetySetting, geminiApi_types_GeminiUsageMetadata as GeminiUsageMetadata };
|
|
37349
|
+
}
|
|
37350
|
+
|
|
37351
|
+
declare class GeminiGenerateResource {
|
|
37352
|
+
private readonly client;
|
|
37353
|
+
private readonly apiVersion;
|
|
37354
|
+
constructor(client: APIClient, apiVersion: string);
|
|
37355
|
+
/**
|
|
37356
|
+
* Gera conteúdo usando o modelo Gemini especificado.
|
|
37357
|
+
* @param model O nome do modelo (ex: 'gemini-1.5-flash')
|
|
37358
|
+
* @param data O corpo da requisição
|
|
37359
|
+
*/
|
|
37360
|
+
generateContent(model: string, data: GeminiGenerateContentRequest): Promise<GeminiGenerateContentResponse>;
|
|
37361
|
+
}
|
|
37362
|
+
|
|
37363
|
+
declare class GeminiAPIClient extends APIClient {
|
|
37364
|
+
readonly generate: GeminiGenerateResource;
|
|
37365
|
+
constructor(config: Partial<APIClientConfig> & {
|
|
37366
|
+
apiKey: string;
|
|
37367
|
+
apiVersion?: string;
|
|
37368
|
+
});
|
|
37369
|
+
}
|
|
37370
|
+
|
|
37371
|
+
export { GeminiAPIClient, geminiApi_types as GeminiAPITypes, IXCSoftAPIClient, ixcSoftApi_types as IXCSoftAPITypes, type IXCSoftMysqlModels, type IXCSoftMysqlModelsAttributes, IXCSoftMysqlService, 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
|
@@ -33459,7 +33459,7 @@ declare class AcsActionDevice extends Model<AcsActionDeviceAttributes, AcsAction
|
|
|
33459
33459
|
static initModel(sequelize: Sequelize.Sequelize): typeof AcsActionDevice;
|
|
33460
33460
|
}
|
|
33461
33461
|
|
|
33462
|
-
declare function initModels(sequelize: Sequelize$1): {
|
|
33462
|
+
declare function initModels$1(sequelize: Sequelize$1): {
|
|
33463
33463
|
AcsActionDevice: typeof AcsActionDevice;
|
|
33464
33464
|
AcsDevice: typeof AcsDevice;
|
|
33465
33465
|
AcsDeviceWifi: typeof AcsDeviceWifi;
|
|
@@ -34235,7 +34235,7 @@ declare function initModels(sequelize: Sequelize$1): {
|
|
|
34235
34235
|
XmlNfse: typeof XmlNfse;
|
|
34236
34236
|
};
|
|
34237
34237
|
|
|
34238
|
-
type IXCSoftMysqlModels = ReturnType<typeof initModels>;
|
|
34238
|
+
type IXCSoftMysqlModels = ReturnType<typeof initModels$1>;
|
|
34239
34239
|
type IXCSoftMysqlModelsAttributes = {
|
|
34240
34240
|
[K in keyof IXCSoftMysqlModels]: Attributes<InstanceType<IXCSoftMysqlModels[K]>>;
|
|
34241
34241
|
};
|
|
@@ -34245,6 +34245,7 @@ type MysqlConnectionConfig = {
|
|
|
34245
34245
|
port: number;
|
|
34246
34246
|
user: string;
|
|
34247
34247
|
password: string;
|
|
34248
|
+
database: string;
|
|
34248
34249
|
};
|
|
34249
34250
|
|
|
34250
34251
|
declare class IXCSoftMysqlService {
|
|
@@ -35813,6 +35814,150 @@ declare class IXCSoftMysqlService {
|
|
|
35813
35814
|
}[K];
|
|
35814
35815
|
}
|
|
35815
35816
|
|
|
35817
|
+
interface AnalysisRequestLogAttributes {
|
|
35818
|
+
id: number;
|
|
35819
|
+
analysisId: number;
|
|
35820
|
+
modelo?: string;
|
|
35821
|
+
tokensEntrada?: number;
|
|
35822
|
+
tokensSaida?: number;
|
|
35823
|
+
duracaoMs?: number;
|
|
35824
|
+
status?: "sucesso" | "erro" | "timeout";
|
|
35825
|
+
erroMensagem?: string;
|
|
35826
|
+
createdAt?: Date;
|
|
35827
|
+
}
|
|
35828
|
+
type AnalysisRequestLogOptionalAttributes = "id" | "modelo" | "tokensEntrada" | "tokensSaida" | "duracaoMs" | "status" | "erroMensagem" | "createdAt";
|
|
35829
|
+
type AnalysisRequestLogCreationAttributes = Optional<AnalysisRequestLogAttributes, AnalysisRequestLogOptionalAttributes>;
|
|
35830
|
+
declare class AnalysisRequestLog extends Model<AnalysisRequestLogAttributes, AnalysisRequestLogCreationAttributes> implements AnalysisRequestLogAttributes {
|
|
35831
|
+
id: number;
|
|
35832
|
+
analysisId: number;
|
|
35833
|
+
modelo?: string;
|
|
35834
|
+
tokensEntrada?: number;
|
|
35835
|
+
tokensSaida?: number;
|
|
35836
|
+
duracaoMs?: number;
|
|
35837
|
+
status?: "sucesso" | "erro" | "timeout";
|
|
35838
|
+
erroMensagem?: string;
|
|
35839
|
+
createdAt?: Date;
|
|
35840
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof AnalysisRequestLog;
|
|
35841
|
+
}
|
|
35842
|
+
|
|
35843
|
+
interface AnalysisAttendantSnapshotAttributes {
|
|
35844
|
+
id: number;
|
|
35845
|
+
analysisId: number;
|
|
35846
|
+
idAtendente: string;
|
|
35847
|
+
totalOs?: number;
|
|
35848
|
+
respostasInsuficientes?: number;
|
|
35849
|
+
alerta?: boolean;
|
|
35850
|
+
}
|
|
35851
|
+
type AnalysisAttendantSnapshotOptionalAttributes = "id" | "totalOs" | "respostasInsuficientes" | "alerta";
|
|
35852
|
+
type AnalysisAttendantSnapshotCreationAttributes = Optional<AnalysisAttendantSnapshotAttributes, AnalysisAttendantSnapshotOptionalAttributes>;
|
|
35853
|
+
declare class AnalysisAttendantSnapshot extends Model<AnalysisAttendantSnapshotAttributes, AnalysisAttendantSnapshotCreationAttributes> implements AnalysisAttendantSnapshotAttributes {
|
|
35854
|
+
id: number;
|
|
35855
|
+
analysisId: number;
|
|
35856
|
+
idAtendente: string;
|
|
35857
|
+
totalOs?: number;
|
|
35858
|
+
respostasInsuficientes?: number;
|
|
35859
|
+
alerta?: boolean;
|
|
35860
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof AnalysisAttendantSnapshot;
|
|
35861
|
+
}
|
|
35862
|
+
|
|
35863
|
+
interface AnalysisRegionSnapshotAttributes {
|
|
35864
|
+
id: number;
|
|
35865
|
+
analysisId: number;
|
|
35866
|
+
regiao: string;
|
|
35867
|
+
totalOs?: number;
|
|
35868
|
+
causaDominante?: string;
|
|
35869
|
+
critico?: boolean;
|
|
35870
|
+
lat?: number;
|
|
35871
|
+
lng?: number;
|
|
35872
|
+
}
|
|
35873
|
+
type AnalysisRegionSnapshotOptionalAttributes = "id" | "totalOs" | "causaDominante" | "critico" | "lat" | "lng";
|
|
35874
|
+
type AnalysisRegionSnapshotCreationAttributes = Optional<AnalysisRegionSnapshotAttributes, AnalysisRegionSnapshotOptionalAttributes>;
|
|
35875
|
+
declare class AnalysisRegionSnapshot extends Model<AnalysisRegionSnapshotAttributes, AnalysisRegionSnapshotCreationAttributes> implements AnalysisRegionSnapshotAttributes {
|
|
35876
|
+
id: number;
|
|
35877
|
+
analysisId: number;
|
|
35878
|
+
regiao: string;
|
|
35879
|
+
totalOs?: number;
|
|
35880
|
+
causaDominante?: string;
|
|
35881
|
+
critico?: boolean;
|
|
35882
|
+
lat?: number;
|
|
35883
|
+
lng?: number;
|
|
35884
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof AnalysisRegionSnapshot;
|
|
35885
|
+
}
|
|
35886
|
+
|
|
35887
|
+
interface CancellationAnalysisAttributes {
|
|
35888
|
+
id: number;
|
|
35889
|
+
tipo: "diario" | "semanal" | "mensal";
|
|
35890
|
+
periodoInicio: string;
|
|
35891
|
+
periodoFim: string;
|
|
35892
|
+
totalOs?: number;
|
|
35893
|
+
totalEvitaveis?: number;
|
|
35894
|
+
causaPrincipal?: string;
|
|
35895
|
+
resumoExecutivo?: string;
|
|
35896
|
+
resultadoIa?: object;
|
|
35897
|
+
status?: "processando" | "concluido" | "erro";
|
|
35898
|
+
processadoEm?: Date;
|
|
35899
|
+
createdAt?: Date;
|
|
35900
|
+
updatedAt?: Date;
|
|
35901
|
+
}
|
|
35902
|
+
type CancellationAnalysisOptionalAttributes = "id" | "totalOs" | "totalEvitaveis" | "causaPrincipal" | "resumoExecutivo" | "resultadoIa" | "status" | "processadoEm" | "createdAt" | "updatedAt";
|
|
35903
|
+
type CancellationAnalysisCreationAttributes = Optional<CancellationAnalysisAttributes, CancellationAnalysisOptionalAttributes>;
|
|
35904
|
+
declare class CancellationAnalysis extends Model<CancellationAnalysisAttributes, CancellationAnalysisCreationAttributes> implements CancellationAnalysisAttributes {
|
|
35905
|
+
id: number;
|
|
35906
|
+
tipo: "diario" | "semanal" | "mensal";
|
|
35907
|
+
periodoInicio: string;
|
|
35908
|
+
periodoFim: string;
|
|
35909
|
+
totalOs?: number;
|
|
35910
|
+
totalEvitaveis?: number;
|
|
35911
|
+
causaPrincipal?: string;
|
|
35912
|
+
resumoExecutivo?: string;
|
|
35913
|
+
resultadoIa?: object;
|
|
35914
|
+
status?: "processando" | "concluido" | "erro";
|
|
35915
|
+
processadoEm?: Date;
|
|
35916
|
+
createdAt?: Date;
|
|
35917
|
+
updatedAt?: Date;
|
|
35918
|
+
static initModel(sequelize: Sequelize.Sequelize): typeof CancellationAnalysis;
|
|
35919
|
+
}
|
|
35920
|
+
|
|
35921
|
+
declare function initModels(sequelize: Sequelize$1): {
|
|
35922
|
+
cancellationAnalysis: typeof CancellationAnalysis;
|
|
35923
|
+
analysisRegionSnapshot: typeof AnalysisRegionSnapshot;
|
|
35924
|
+
analysisAttendantSnapshot: typeof AnalysisAttendantSnapshot;
|
|
35925
|
+
analysisRequestLog: typeof AnalysisRequestLog;
|
|
35926
|
+
};
|
|
35927
|
+
|
|
35928
|
+
type RoutinesMysqlModels = ReturnType<typeof initModels>;
|
|
35929
|
+
type RoutinesMysqlModelsAttributes = {
|
|
35930
|
+
[K in keyof RoutinesMysqlModels]: Attributes<InstanceType<RoutinesMysqlModels[K]>>;
|
|
35931
|
+
};
|
|
35932
|
+
|
|
35933
|
+
declare class RoutinesMysqlService {
|
|
35934
|
+
private static instance;
|
|
35935
|
+
private connection;
|
|
35936
|
+
private initialized;
|
|
35937
|
+
private constructor();
|
|
35938
|
+
private notInitialized;
|
|
35939
|
+
/** Retorna a instância singleton */
|
|
35940
|
+
static getInstance(): RoutinesMysqlService;
|
|
35941
|
+
/** Inicializa a conexão e models */
|
|
35942
|
+
init(config: MysqlConnectionConfig): Promise<void>;
|
|
35943
|
+
/** Retorna o sequelize */
|
|
35944
|
+
getSequelize(): Sequelize$1;
|
|
35945
|
+
/** Retorna os models tipados */
|
|
35946
|
+
get models(): {
|
|
35947
|
+
cancellationAnalysis: typeof CancellationAnalysis;
|
|
35948
|
+
analysisRegionSnapshot: typeof AnalysisRegionSnapshot;
|
|
35949
|
+
analysisAttendantSnapshot: typeof AnalysisAttendantSnapshot;
|
|
35950
|
+
analysisRequestLog: typeof AnalysisRequestLog;
|
|
35951
|
+
};
|
|
35952
|
+
/** Retorna um model específico tipado */
|
|
35953
|
+
getModel<K extends keyof RoutinesMysqlModels>(key: K): {
|
|
35954
|
+
cancellationAnalysis: typeof CancellationAnalysis;
|
|
35955
|
+
analysisRegionSnapshot: typeof AnalysisRegionSnapshot;
|
|
35956
|
+
analysisAttendantSnapshot: typeof AnalysisAttendantSnapshot;
|
|
35957
|
+
analysisRequestLog: typeof AnalysisRequestLog;
|
|
35958
|
+
}[K];
|
|
35959
|
+
}
|
|
35960
|
+
|
|
35816
35961
|
declare const schemas$2: {
|
|
35817
35962
|
tags: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
35818
35963
|
cor: string;
|
|
@@ -37135,4 +37280,92 @@ declare class NtfyAPIClient extends APIClient {
|
|
|
37135
37280
|
});
|
|
37136
37281
|
}
|
|
37137
37282
|
|
|
37138
|
-
|
|
37283
|
+
interface GeminiAPIConfig {
|
|
37284
|
+
apiKey: string;
|
|
37285
|
+
apiVersion?: string;
|
|
37286
|
+
baseUrl?: string;
|
|
37287
|
+
}
|
|
37288
|
+
interface GeminiGenerateContentRequest {
|
|
37289
|
+
contents: GeminiContent[];
|
|
37290
|
+
generationConfig?: GeminiGenerationConfig;
|
|
37291
|
+
safetySettings?: GeminiSafetySetting[];
|
|
37292
|
+
}
|
|
37293
|
+
interface GeminiContent {
|
|
37294
|
+
role?: "user" | "model";
|
|
37295
|
+
parts: GeminiPart[];
|
|
37296
|
+
}
|
|
37297
|
+
interface GeminiPart {
|
|
37298
|
+
text?: string;
|
|
37299
|
+
inlineData?: {
|
|
37300
|
+
mimeType: string;
|
|
37301
|
+
data: string;
|
|
37302
|
+
};
|
|
37303
|
+
}
|
|
37304
|
+
interface GeminiGenerationConfig {
|
|
37305
|
+
stopSequences?: string[];
|
|
37306
|
+
candidateCount?: number;
|
|
37307
|
+
maxOutputTokens?: number;
|
|
37308
|
+
temperature?: number;
|
|
37309
|
+
topP?: number;
|
|
37310
|
+
topK?: number;
|
|
37311
|
+
}
|
|
37312
|
+
interface GeminiSafetySetting {
|
|
37313
|
+
category: string;
|
|
37314
|
+
threshold: string;
|
|
37315
|
+
}
|
|
37316
|
+
interface GeminiGenerateContentResponse {
|
|
37317
|
+
candidates: GeminiCandidate[];
|
|
37318
|
+
usageMetadata?: GeminiUsageMetadata;
|
|
37319
|
+
promptFeedback?: any;
|
|
37320
|
+
}
|
|
37321
|
+
interface GeminiCandidate {
|
|
37322
|
+
content: GeminiContent;
|
|
37323
|
+
finishReason?: string;
|
|
37324
|
+
index?: number;
|
|
37325
|
+
safetyRatings?: GeminiSafetyRating[];
|
|
37326
|
+
}
|
|
37327
|
+
interface GeminiSafetyRating {
|
|
37328
|
+
category: string;
|
|
37329
|
+
probability: string;
|
|
37330
|
+
}
|
|
37331
|
+
interface GeminiUsageMetadata {
|
|
37332
|
+
promptTokenCount: number;
|
|
37333
|
+
candidatesTokenCount: number;
|
|
37334
|
+
totalTokenCount: number;
|
|
37335
|
+
}
|
|
37336
|
+
|
|
37337
|
+
type geminiApi_types_GeminiAPIConfig = GeminiAPIConfig;
|
|
37338
|
+
type geminiApi_types_GeminiCandidate = GeminiCandidate;
|
|
37339
|
+
type geminiApi_types_GeminiContent = GeminiContent;
|
|
37340
|
+
type geminiApi_types_GeminiGenerateContentRequest = GeminiGenerateContentRequest;
|
|
37341
|
+
type geminiApi_types_GeminiGenerateContentResponse = GeminiGenerateContentResponse;
|
|
37342
|
+
type geminiApi_types_GeminiGenerationConfig = GeminiGenerationConfig;
|
|
37343
|
+
type geminiApi_types_GeminiPart = GeminiPart;
|
|
37344
|
+
type geminiApi_types_GeminiSafetyRating = GeminiSafetyRating;
|
|
37345
|
+
type geminiApi_types_GeminiSafetySetting = GeminiSafetySetting;
|
|
37346
|
+
type geminiApi_types_GeminiUsageMetadata = GeminiUsageMetadata;
|
|
37347
|
+
declare namespace geminiApi_types {
|
|
37348
|
+
export type { geminiApi_types_GeminiAPIConfig as GeminiAPIConfig, geminiApi_types_GeminiCandidate as GeminiCandidate, geminiApi_types_GeminiContent as GeminiContent, geminiApi_types_GeminiGenerateContentRequest as GeminiGenerateContentRequest, geminiApi_types_GeminiGenerateContentResponse as GeminiGenerateContentResponse, geminiApi_types_GeminiGenerationConfig as GeminiGenerationConfig, geminiApi_types_GeminiPart as GeminiPart, geminiApi_types_GeminiSafetyRating as GeminiSafetyRating, geminiApi_types_GeminiSafetySetting as GeminiSafetySetting, geminiApi_types_GeminiUsageMetadata as GeminiUsageMetadata };
|
|
37349
|
+
}
|
|
37350
|
+
|
|
37351
|
+
declare class GeminiGenerateResource {
|
|
37352
|
+
private readonly client;
|
|
37353
|
+
private readonly apiVersion;
|
|
37354
|
+
constructor(client: APIClient, apiVersion: string);
|
|
37355
|
+
/**
|
|
37356
|
+
* Gera conteúdo usando o modelo Gemini especificado.
|
|
37357
|
+
* @param model O nome do modelo (ex: 'gemini-1.5-flash')
|
|
37358
|
+
* @param data O corpo da requisição
|
|
37359
|
+
*/
|
|
37360
|
+
generateContent(model: string, data: GeminiGenerateContentRequest): Promise<GeminiGenerateContentResponse>;
|
|
37361
|
+
}
|
|
37362
|
+
|
|
37363
|
+
declare class GeminiAPIClient extends APIClient {
|
|
37364
|
+
readonly generate: GeminiGenerateResource;
|
|
37365
|
+
constructor(config: Partial<APIClientConfig> & {
|
|
37366
|
+
apiKey: string;
|
|
37367
|
+
apiVersion?: string;
|
|
37368
|
+
});
|
|
37369
|
+
}
|
|
37370
|
+
|
|
37371
|
+
export { GeminiAPIClient, geminiApi_types as GeminiAPITypes, IXCSoftAPIClient, ixcSoftApi_types as IXCSoftAPITypes, type IXCSoftMysqlModels, type IXCSoftMysqlModelsAttributes, IXCSoftMysqlService, 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 };
|