feat: améliorations SharePoint - test connexion Azure AD, alerte expiration secret, log statut upload dans BapHistory
This commit is contained in:
@@ -191,6 +191,7 @@ export const importSettings = mysqlTable("importSettings", {
|
||||
azureTenantId: varchar("azureTenantId", { length: 100 }), // Azure AD Tenant ID
|
||||
azureClientId: varchar("azureClientId", { length: 100 }), // Azure AD Application (client) ID
|
||||
azureClientSecret: text("azureClientSecret"), // Azure AD Client Secret (encrypted)
|
||||
azureSecretExpiresAt: timestamp("azureSecretExpiresAt"), // Azure AD Client Secret expiration date
|
||||
|
||||
// AI Engine settings
|
||||
aiProvider: mysqlEnum("aiProvider", ["mistral", "manus"]).default("mistral").notNull(), // AI provider for invoice extraction
|
||||
@@ -386,6 +387,9 @@ export const bapHistory = mysqlTable("bapHistory", {
|
||||
exportPath: text("exportPath"), // null for browser mode
|
||||
pdfUrl: text("pdfUrl"), // S3 URL for browser mode
|
||||
signatureName: varchar("signatureName", { length: 255 }), // Signer name if applied
|
||||
sharepointUploadStatus: mysqlEnum("sharepointUploadStatus", ["success", "error", "skipped"]), // SharePoint upload result
|
||||
sharepointUploadPath: text("sharepointUploadPath"), // Path/URL of uploaded file in SharePoint
|
||||
sharepointUploadError: text("sharepointUploadError"), // Error message if upload failed
|
||||
validatedAt: timestamp("validatedAt").defaultNow().notNull(),
|
||||
});
|
||||
export type BapHistory = typeof bapHistory.$inferSelect;
|
||||
|
||||
Reference in New Issue
Block a user