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:
alexandre_gain_mt3s committed 2026-11-21 20:58:25 +01:00
1 parent 88256ca345
commit 4fb36eebfc
33 files changed
+2537 -6

No files matched your search

+10
View File
@@ -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."