feat(call-script): add the Call Script component (0.19.0)
A new Mautic component, listed under Components > Call Scripts (/s/call-scripts),
built like the other domains on AbstractStandardFormController/FormModel.
- CallScript (mt3s_call_scripts): name, description, category, owner, status,
the publish window shown as start/end date and time, the HTML script with
dynamic tokens kept as typed (html cleaning mask), the calling window
(weekdays, hours, sentinel in the contact's or a fixed timezone) and the retry
policy (max attempts, delay, backoff: none/linear/exponential)
- CallScriptOutcome (mt3s_call_script_outcomes, ON DELETE CASCADE): label,
data type (checkbox/radio/free text/dropdown), options JSON ({value,label})
and position; nested collections reuse the program-collection JS
- validators: ValidCallingWindow, ValidCallScriptOutcomeOptions, and an atPath
option on EndDateAfterStartDate so its violation lands on publishDown
- config: routes, the Components menu item (parent mautic.core.components),
call_script category type, model alias, call_scripts permissions, version 0.19.0
- migration Version_0_19_0 creates both tables and their FKs immediately
(users/categories SET NULL, outcomes CASCADE), idempotent
- translations en_US/fr_FR, unit tests, readme/AGENTS documentation
This commit is contained in:
1 parent
88256ca345
commit
4fb36eebfc
33 files changed
+2537
-6
No files matched your search
@@ -531,3 +531,70 @@ mt3s.smart_links.taxonomies.unpublished_choice="%name% (no longer published)"
|
||||
mt3s.smart_links.taxonomies.free_values.tooltip="The allowed values of this parameter for the links using this taxonomy. One value per line, optionally value;Label for a display label."
|
||||
mt3s.smart_links.taxonomies.free_values.placeholder="one value per line"
|
||||
mt3s.smart_links.taxonomies.no_values.tooltip="No values are configured for this parameter in Smart Links Settings yet: ask the admin to configure some."
|
||||
|
||||
; Call Scripts (Components > Call Scripts). Translation base mt3s.call_script.
|
||||
mt3s.call_script.menu.index="Call Scripts"
|
||||
mt3s.call_script.category.type="Call Script"
|
||||
mt3s.call_script.header.index="Call Scripts"
|
||||
mt3s.call_script.header.new="New Call Script"
|
||||
mt3s.call_script.header.edit="Call Script - %name%"
|
||||
mt3s.call_script.error.notfound="No call script with the ID %id% was found."
|
||||
mt3s.call_script.form.confirmdelete="Delete the call script %name%? Its outcomes are deleted too."
|
||||
mt3s.call_script.form.confirmbatchdelete="Delete the selected call scripts? Their outcomes are deleted too."
|
||||
mt3s.call_script.onboarding.heading="No call scripts yet"
|
||||
mt3s.call_script.onboarding.subheading="Call scripts guide your agents through a call and record what happens."
|
||||
mt3s.call_script.onboarding.copy="Use the New button above to add a call script. Define its script, its outcomes, its calling window and its retry policy."
|
||||
mt3s.call_script.field.name="Name"
|
||||
mt3s.call_script.field.description="Description"
|
||||
mt3s.call_script.field.script="Script"
|
||||
mt3s.call_script.field.script.help="HTML is allowed. Use dynamic tokens like {contact.first_name}; they are kept as typed."
|
||||
mt3s.call_script.field.owner="Owner"
|
||||
mt3s.call_script.field.category="Category"
|
||||
mt3s.call_script.field.start="Start date and time"
|
||||
mt3s.call_script.field.end="End date and time"
|
||||
mt3s.call_script.field.calling_days="Calling days"
|
||||
mt3s.call_script.field.calling_from="From"
|
||||
mt3s.call_script.field.calling_to="To"
|
||||
mt3s.call_script.field.calling_timezone_mode="Timezone mode"
|
||||
mt3s.call_script.field.calling_timezone="Fixed timezone"
|
||||
mt3s.call_script.field.retry_max_attempts="Maximum attempts"
|
||||
mt3s.call_script.field.retry_delay_minutes="Delay between attempts (minutes)"
|
||||
mt3s.call_script.field.retry_backoff="Backoff"
|
||||
mt3s.call_script.list.published="Published"
|
||||
mt3s.call_script.list.unpublished="Unpublished"
|
||||
mt3s.call_script.list.owner="Owner"
|
||||
mt3s.call_script.list.category="Category"
|
||||
mt3s.call_script.list.status="Status"
|
||||
mt3s.call_script.list.modified="Modified"
|
||||
mt3s.call_script.day.mon="Monday"
|
||||
mt3s.call_script.day.tue="Tuesday"
|
||||
mt3s.call_script.day.wed="Wednesday"
|
||||
mt3s.call_script.day.thu="Thursday"
|
||||
mt3s.call_script.day.fri="Friday"
|
||||
mt3s.call_script.day.sat="Saturday"
|
||||
mt3s.call_script.day.sun="Sunday"
|
||||
mt3s.call_script.timezone_mode.contact="Contact's timezone"
|
||||
mt3s.call_script.timezone_mode.fixed="Fixed timezone"
|
||||
mt3s.call_script.retry_backoff.none="No backoff (constant delay)"
|
||||
mt3s.call_script.retry_backoff.linear="Linear (delay multiplied by the attempt number)"
|
||||
mt3s.call_script.retry_backoff.exponential="Exponential (delay doubled at every attempt)"
|
||||
mt3s.call_script.outcome.list="Outcomes"
|
||||
mt3s.call_script.outcome.empty="No outcomes yet."
|
||||
mt3s.call_script.outcome.add="Add outcome"
|
||||
mt3s.call_script.outcome.remove="Remove this outcome"
|
||||
mt3s.call_script.outcome.drag="Drag to reorder"
|
||||
mt3s.call_script.outcome.field.label="Outcome"
|
||||
mt3s.call_script.outcome.field.type="Data type"
|
||||
mt3s.call_script.outcome.options="Options"
|
||||
mt3s.call_script.outcome.options.empty="No options yet."
|
||||
mt3s.call_script.outcome.options.add="Add option"
|
||||
mt3s.call_script.outcome.options.remove="Remove this option"
|
||||
mt3s.call_script.outcome_type.checkbox="Checkboxes"
|
||||
mt3s.call_script.outcome_type.radio="Radio buttons"
|
||||
mt3s.call_script.outcome_type.free_text="Free text"
|
||||
mt3s.call_script.outcome_type.dropdown="Drop-down"
|
||||
mt3s.call_script.outcome_option.field.value="Value"
|
||||
mt3s.call_script.outcome_option.field.label="Label"
|
||||
|
||||
mt3s.call_script.section.calling_window="Calling window"
|
||||
mt3s.call_script.section.retry_policy="Retry policy"
|
||||
@@ -59,3 +59,13 @@ mt3s.smart_links.taxonomies.error.name_characters="The name cannot contain the c
|
||||
mt3s.smart_links.taxonomies.error.value_invalid="The value %value% is invalid. Use only lowercase letters, digits, hyphens, underscores and dots."
|
||||
mt3s.smart_links.smart_links.error.taxonomy_required="Choose a UTM Taxonomy."
|
||||
mt3s.smart_links.smart_links.error.taxonomy_parameter_unknown="The parameter %key% is not part of the taxonomy %name%."
|
||||
mt3s.call_script.retry_attempts.range="The maximum attempts must be a whole number from 1 to 20."
|
||||
mt3s.call_script.retry_delay.range="The delay must be a whole number of minutes, 0 or more."
|
||||
mt3s.call_script.calling_window.partial_hours="Set both the from and the to time of the calling window."
|
||||
mt3s.call_script.calling_window.to_before_from="The calling window must end after it starts."
|
||||
mt3s.call_script.calling_window.timezone_required="Choose the fixed timezone of the calling window."
|
||||
mt3s.call_script.outcome.label.required="An outcome needs a label."
|
||||
mt3s.call_script.outcome.options.required="This outcome type needs at least one option."
|
||||
mt3s.call_script.outcome.options.free_text_forbidden="A free text outcome takes no options."
|
||||
mt3s.call_script.outcome.options.value_required="Every option needs a value."
|
||||
mt3s.call_script.outcome.options.duplicate_value="The option values must be unique."
|
||||
@@ -206,3 +206,70 @@ mt3s.smart_links.taxonomies.unpublished_choice="%name% (plus publiée)"
|
||||
mt3s.smart_links.taxonomies.free_values.tooltip="Les valeurs autorisées de ce paramètre pour les liens utilisant cette taxonomie. Une valeur par ligne, éventuellement valeur;Libellé."
|
||||
mt3s.smart_links.taxonomies.free_values.placeholder="une valeur par ligne"
|
||||
mt3s.smart_links.taxonomies.no_values.tooltip="Aucune valeur n’est encore configurée pour ce paramètre dans Paramètres Smart Links : demandez à l’administrateur d’en configurer."
|
||||
|
||||
; Scripts d'appel (Composants > Scripts d'appel). Base de traduction mt3s.call_script.
|
||||
mt3s.call_script.menu.index="Scripts d'appel"
|
||||
mt3s.call_script.category.type="Script d'appel"
|
||||
mt3s.call_script.header.index="Scripts d'appel"
|
||||
mt3s.call_script.header.new="Nouveau script d'appel"
|
||||
mt3s.call_script.header.edit="Script d'appel - %name%"
|
||||
mt3s.call_script.error.notfound="Aucun script d'appel avec l'ID %id% n'a été trouvé."
|
||||
mt3s.call_script.form.confirmdelete="Supprimer le script d'appel %name% ? Ses résultats sont supprimés aussi."
|
||||
mt3s.call_script.form.confirmbatchdelete="Supprimer les scripts d'appel sélectionnés ? Leurs résultats sont supprimés aussi."
|
||||
mt3s.call_script.onboarding.heading="Aucun script d'appel pour le moment"
|
||||
mt3s.call_script.onboarding.subheading="Les scripts d'appel guident vos agents pendant un appel et enregistrent son résultat."
|
||||
mt3s.call_script.onboarding.copy="Utilisez le bouton Nouveau ci-dessus pour ajouter un script d'appel. Définissez son script, ses résultats, sa plage d'appel et sa politique de réessai."
|
||||
mt3s.call_script.field.name="Nom"
|
||||
mt3s.call_script.field.description="Description"
|
||||
mt3s.call_script.field.script="Script"
|
||||
mt3s.call_script.field.script.help="Le HTML est accepté. Utilisez les jetons dynamiques comme {contact.first_name} ; ils sont conservés tels quels."
|
||||
mt3s.call_script.field.owner="Propriétaire"
|
||||
mt3s.call_script.field.category="Catégorie"
|
||||
mt3s.call_script.field.start="Date et heure de début"
|
||||
mt3s.call_script.field.end="Date et heure de fin"
|
||||
mt3s.call_script.field.calling_days="Jours d'appel"
|
||||
mt3s.call_script.field.calling_from="De"
|
||||
mt3s.call_script.field.calling_to="À"
|
||||
mt3s.call_script.field.calling_timezone_mode="Mode de fuseau horaire"
|
||||
mt3s.call_script.field.calling_timezone="Fuseau horaire fixe"
|
||||
mt3s.call_script.field.retry_max_attempts="Nombre maximal de tentatives"
|
||||
mt3s.call_script.field.retry_delay_minutes="Délai entre les tentatives (minutes)"
|
||||
mt3s.call_script.field.retry_backoff="Espacement"
|
||||
mt3s.call_script.list.published="Publié"
|
||||
mt3s.call_script.list.unpublished="Non publié"
|
||||
mt3s.call_script.list.owner="Propriétaire"
|
||||
mt3s.call_script.list.category="Catégorie"
|
||||
mt3s.call_script.list.status="Statut"
|
||||
mt3s.call_script.list.modified="Modifié"
|
||||
mt3s.call_script.day.mon="Lundi"
|
||||
mt3s.call_script.day.tue="Mardi"
|
||||
mt3s.call_script.day.wed="Mercredi"
|
||||
mt3s.call_script.day.thu="Jeudi"
|
||||
mt3s.call_script.day.fri="Vendredi"
|
||||
mt3s.call_script.day.sat="Samedi"
|
||||
mt3s.call_script.day.sun="Dimanche"
|
||||
mt3s.call_script.timezone_mode.contact="Fuseau horaire du contact"
|
||||
mt3s.call_script.timezone_mode.fixed="Fuseau horaire fixe"
|
||||
mt3s.call_script.retry_backoff.none="Aucun espacement (délai constant)"
|
||||
mt3s.call_script.retry_backoff.linear="Linéaire (délai multiplié par le numéro de tentative)"
|
||||
mt3s.call_script.retry_backoff.exponential="Exponentiel (délai doublé à chaque tentative)"
|
||||
mt3s.call_script.outcome.list="Résultats"
|
||||
mt3s.call_script.outcome.empty="Aucun résultat pour le moment."
|
||||
mt3s.call_script.outcome.add="Ajouter un résultat"
|
||||
mt3s.call_script.outcome.remove="Supprimer ce résultat"
|
||||
mt3s.call_script.outcome.drag="Glisser pour réordonner"
|
||||
mt3s.call_script.outcome.field.label="Résultat"
|
||||
mt3s.call_script.outcome.field.type="Type de données"
|
||||
mt3s.call_script.outcome.options="Options"
|
||||
mt3s.call_script.outcome.options.empty="Aucune option pour le moment."
|
||||
mt3s.call_script.outcome.options.add="Ajouter une option"
|
||||
mt3s.call_script.outcome.options.remove="Supprimer cette option"
|
||||
mt3s.call_script.outcome_type.checkbox="Cases à cocher"
|
||||
mt3s.call_script.outcome_type.radio="Boutons radio"
|
||||
mt3s.call_script.outcome_type.free_text="Texte libre"
|
||||
mt3s.call_script.outcome_type.dropdown="Liste déroulante"
|
||||
mt3s.call_script.outcome_option.field.value="Valeur"
|
||||
mt3s.call_script.outcome_option.field.label="Libellé"
|
||||
|
||||
mt3s.call_script.section.calling_window="Plage d'appel"
|
||||
mt3s.call_script.section.retry_policy="Politique de réessai"
|
||||
@@ -38,3 +38,13 @@ mt3s.smart_links.taxonomies.error.name_characters="Le nom ne peut pas contenir l
|
||||
mt3s.smart_links.taxonomies.error.value_invalid="La valeur %value% est invalide. Utilisez uniquement des lettres minuscules, des chiffres, des tirets, des tirets bas et des points."
|
||||
mt3s.smart_links.smart_links.error.taxonomy_required="Choisissez une taxonomie UTM."
|
||||
mt3s.smart_links.smart_links.error.taxonomy_parameter_unknown="Le paramètre %key% ne fait pas partie de la taxonomie %name%."
|
||||
mt3s.call_script.retry_attempts.range="Le nombre maximal de tentatives doit être un nombre entier de 1 à 20."
|
||||
mt3s.call_script.retry_delay.range="Le délai doit être un nombre entier de minutes, 0 ou plus."
|
||||
mt3s.call_script.calling_window.partial_hours="Renseignez à la fois le début et la fin de la plage d'appel."
|
||||
mt3s.call_script.calling_window.to_before_from="La plage d'appel doit se terminer après son début."
|
||||
mt3s.call_script.calling_window.timezone_required="Choisissez le fuseau horaire fixe de la plage d'appel."
|
||||
mt3s.call_script.outcome.label.required="Un résultat a besoin d'un libellé."
|
||||
mt3s.call_script.outcome.options.required="Ce type de résultat a besoin d'au moins une option."
|
||||
mt3s.call_script.outcome.options.free_text_forbidden="Un résultat en texte libre ne prend pas d'option."
|
||||
mt3s.call_script.outcome.options.value_required="Chaque valeur d'option est requise."
|
||||
mt3s.call_script.outcome.options.duplicate_value="Les valeurs des options doivent être uniques."
|
||||
Reference in new issue
Block a user