import { jsx as i } from "react/jsx-runtime";
import { D as e } from "./DocRenderer-C5pM9SWP.js";
import "react";
import "react-router-dom";
import "lucide-react";
const s = {
  featureId: "admin-workflows",
  moduleName: "workflows",
  applicationName: "administration",
  version: "2.15.0",
  overview: {
    objective: "docsAdministrationWorkflows.overview.objective",
    problem: "docsAdministrationWorkflows.overview.problem",
    solution: "docsAdministrationWorkflows.overview.solution",
    stats: {
      useCases: 9,
      businessRules: 8,
      permissions: 9,
      endpoints: 14
    }
  },
  benefits: [
    {
      icon: "automation",
      titleKey: "docsAdministrationWorkflows.benefits.automation.title",
      value: "100%",
      descriptionKey: "docsAdministrationWorkflows.benefits.automation.description"
    },
    {
      icon: "time",
      titleKey: "docsAdministrationWorkflows.benefits.time.title",
      value: "-90%",
      descriptionKey: "docsAdministrationWorkflows.benefits.time.description"
    },
    {
      icon: "quality",
      titleKey: "docsAdministrationWorkflows.benefits.quality.title",
      value: "+98%",
      descriptionKey: "docsAdministrationWorkflows.benefits.quality.description"
    }
  ],
  useCases: [
    { id: "UC-001", name: "docsAdministrationWorkflows.useCases.uc001", actor: "Admin", description: "docsAdministrationWorkflows.useCases.uc001Desc", permission: "administration.workflows.read", priority: "Must" },
    { id: "UC-002", name: "docsAdministrationWorkflows.useCases.uc002", actor: "Admin", description: "docsAdministrationWorkflows.useCases.uc002Desc", permission: "administration.workflows.create", priority: "Must" },
    { id: "UC-003", name: "docsAdministrationWorkflows.useCases.uc003", actor: "Admin", description: "docsAdministrationWorkflows.useCases.uc003Desc", permission: "administration.workflows.update", priority: "Must" },
    { id: "UC-004", name: "docsAdministrationWorkflows.useCases.uc004", actor: "Admin", description: "docsAdministrationWorkflows.useCases.uc004Desc", permission: "administration.workflows.execute", priority: "Must" },
    { id: "UC-005", name: "docsAdministrationWorkflows.useCases.uc005", actor: "Admin", description: "docsAdministrationWorkflows.useCases.uc005Desc", permission: "administration.email-templates.read", priority: "Must" },
    { id: "UC-006", name: "docsAdministrationWorkflows.useCases.uc006", actor: "Admin", description: "docsAdministrationWorkflows.useCases.uc006Desc", permission: "administration.email-templates.create", priority: "Should" },
    { id: "UC-007", name: "docsAdministrationWorkflows.useCases.uc007", actor: "Admin", description: "docsAdministrationWorkflows.useCases.uc007Desc", permission: "administration.email-templates.execute", priority: "Should" },
    { id: "UC-008", name: "docsAdministrationWorkflows.useCases.uc008", actor: "Admin", description: "docsAdministrationWorkflows.useCases.uc008Desc", permission: "administration.workflows.delete", priority: "Could" },
    { id: "UC-009", name: "docsAdministrationWorkflows.useCases.uc009", actor: "Admin", description: "docsAdministrationWorkflows.useCases.uc009Desc", permission: "administration.email-templates.execute", priority: "Should" }
  ],
  features: [
    { id: "F-001", title: "docsAdministrationWorkflows.features.f001Title", description: "docsAdministrationWorkflows.features.f001Desc", example: "docsAdministrationWorkflows.features.f001Example" },
    { id: "F-002", title: "docsAdministrationWorkflows.features.f002Title", description: "docsAdministrationWorkflows.features.f002Desc", example: "docsAdministrationWorkflows.features.f002Example" },
    { id: "F-003", title: "docsAdministrationWorkflows.features.f003Title", description: "docsAdministrationWorkflows.features.f003Desc", example: "docsAdministrationWorkflows.features.f003Example" },
    { id: "F-004", title: "docsAdministrationWorkflows.features.f004Title", description: "docsAdministrationWorkflows.features.f004Desc", example: "docsAdministrationWorkflows.features.f004Example" },
    { id: "F-005", title: "docsAdministrationWorkflows.features.f005Title", description: "docsAdministrationWorkflows.features.f005Desc", example: "docsAdministrationWorkflows.features.f005Example" }
  ],
  faq: [
    { questionKey: "docsAdministrationWorkflows.faq.q1", answerKey: "docsAdministrationWorkflows.faq.a1" },
    { questionKey: "docsAdministrationWorkflows.faq.q2", answerKey: "docsAdministrationWorkflows.faq.a2" },
    { questionKey: "docsAdministrationWorkflows.faq.q3", answerKey: "docsAdministrationWorkflows.faq.a3" },
    { questionKey: "docsAdministrationWorkflows.faq.q4", answerKey: "docsAdministrationWorkflows.faq.a4" }
  ],
  businessRules: [
    { id: "BR-001", name: "Déclencheurs événements", category: "Automatisation", statement: "docsAdministrationWorkflows.businessRules.br001" },
    { id: "BR-002", name: "Actions séquentielles", category: "Orchestration", statement: "docsAdministrationWorkflows.businessRules.br002" },
    { id: "BR-003", name: "Templates variables", category: "Flexibilité", statement: "docsAdministrationWorkflows.businessRules.br003" },
    { id: "BR-004", name: "Activation unique", category: "Logique métier", statement: "docsAdministrationWorkflows.businessRules.br004" },
    { id: "BR-005", name: "Logs exécution", category: "Traçabilité", statement: "docsAdministrationWorkflows.businessRules.br005" },
    { id: "BR-006", name: "Templates multi-langues", category: "i18n", statement: "docsAdministrationWorkflows.businessRules.br006" },
    { id: "BR-007", name: "Preview avant envoi", category: "Validation", statement: "docsAdministrationWorkflows.businessRules.br007" },
    { id: "BR-008", name: "Actions conditionnelles", category: "Logique métier", statement: "docsAdministrationWorkflows.businessRules.br008" }
  ],
  permissions: [
    { path: "administration.workflows.read", description: "Consulter les workflows", roles: ["Admin", "Manager"] },
    { path: "administration.workflows.create", description: "Créer un workflow", roles: ["Admin"] },
    { path: "administration.workflows.update", description: "Modifier un workflow", roles: ["Admin"] },
    { path: "administration.workflows.delete", description: "Supprimer un workflow", roles: ["Admin"] },
    { path: "administration.workflows.execute", description: "Activer/Désactiver workflow", roles: ["Admin"] },
    { path: "administration.email-templates.read", description: "Consulter templates email", roles: ["Admin", "Manager"] },
    { path: "administration.email-templates.create", description: "Créer template email", roles: ["Admin"] },
    { path: "administration.email-templates.update", description: "Modifier template email", roles: ["Admin"] },
    { path: "administration.email-templates.execute", description: "Prévisualiser/Tester template", roles: ["Admin"] }
  ],
  apiEndpoints: [
    { method: "GET", path: "/api/administration/workflows", handler: "GetWorkflows", permission: "administration.workflows.read" },
    { method: "POST", path: "/api/administration/workflows", handler: "CreateWorkflow", permission: "administration.workflows.create" },
    { method: "PUT", path: "/api/administration/workflows/{id}", handler: "UpdateWorkflow", permission: "administration.workflows.update" },
    { method: "DELETE", path: "/api/administration/workflows/{id}", handler: "DeleteWorkflow", permission: "administration.workflows.delete" },
    { method: "POST", path: "/api/administration/workflows/{id}/activate", handler: "ActivateWorkflow", permission: "administration.workflows.execute" },
    { method: "POST", path: "/api/administration/workflows/{id}/deactivate", handler: "DeactivateWorkflow", permission: "administration.workflows.execute" },
    { method: "GET", path: "/api/administration/email-templates", handler: "GetEmailTemplates", permission: "administration.email-templates.read" },
    { method: "POST", path: "/api/administration/email-templates", handler: "CreateEmailTemplate", permission: "administration.email-templates.create" },
    { method: "PUT", path: "/api/administration/email-templates/{id}", handler: "UpdateEmailTemplate", permission: "administration.email-templates.update" },
    { method: "DELETE", path: "/api/administration/email-templates/{id}", handler: "DeleteEmailTemplate", permission: "administration.email-templates.delete" },
    { method: "POST", path: "/api/administration/email-templates/{id}/preview", handler: "PreviewEmailTemplate", permission: "administration.email-templates.execute" },
    { method: "POST", path: "/api/administration/email-templates/{id}/test", handler: "TestSendEmailTemplate", permission: "administration.email-templates.execute" }
  ],
  technicalRef: {
    permissionBase: "administration.workflows + administration.email-templates",
    controllerRoute: "/api/administration/workflows|email-templates",
    entityNames: ["Workflow", "WorkflowAction", "EmailTemplate", "WorkflowExecution"],
    integrations: ["Email", "Notifications", "Support", "AI", "Users"]
  }
};
function d() {
  return /* @__PURE__ */ i(
    e,
    {
      data: s,
      backPath: "/docs/business/platform",
      backLabel: "nav.backToAdministration",
      i18nNamespace: "docsAdministrationWorkflows"
    }
  );
}
export {
  d as default
};
//# sourceMappingURL=index-ClrwWu9J.js.map
