From 0657b7c92490531394613db6ff74cdfbaac28caa Mon Sep 17 00:00:00 2001 From: Samuelfaure Date: Wed, 4 Oct 2023 12:22:24 +0200 Subject: [PATCH] boyscout: spacing/reordering --- config/datapass_webhooks_entreprise.yml | 39 ++++++++++++++++--------- 1 file changed, 25 insertions(+), 14 deletions(-) diff --git a/config/datapass_webhooks_entreprise.yml b/config/datapass_webhooks_entreprise.yml index 0e770d18ed..a61e458cc8 100644 --- a/config/datapass_webhooks_entreprise.yml +++ b/config/datapass_webhooks_entreprise.yml @@ -7,14 +7,17 @@ development: &development send_application: &send_application emails: - id: '11' + - id: '12' when: 'in 14 days' + notify: ¬ify {} review_application: &review_application {} refuse_application: &refuse_application emails: - id: '51' condition_on_authorization: 'demandeur_first_name_is_run?' + - id: '52' condition_on_authorization: 'demandeur_last_name_is_run?' to: @@ -22,6 +25,7 @@ development: &development cc: - 'authorization_request.contact_technique' - 'authorization_request.demandeur' + validate_application: &validate_application {} create: *created @@ -39,24 +43,36 @@ production: &production emails: - id: '3098214' # embarquement_brouillon_en_attente when: 'in 14 days' + updated: &updated {} team_member_updated: &team_member_updated {} send_application: &send_application emails: - id: '3098391' # demande_recue + - id: '3098436' # reassurance_demande_recue when: 'in 14 days' + notify: ¬ify {} review_application: &review_application emails: - id: '3098236' # embarquement_modifications_demandees + - id: '3098155' # embarquement_relance_modifications_demandees when: 'in 14 days' + refuse_application: &refuse_application emails: - id: '3084277' # embarquement_demande_refusee + validate_application: &validate_application emails: + - id: '3251161' # enquete_satisfaction + when: 'in 30 days' + condition_on_authorization: 'not_editor_authorization_request' + to: + - 'authorization_request.demandeur' + - id: '4254728' # embarquement_valide_to_editeur condition_on_authorization: 'editor_authorization_request' to: @@ -68,17 +84,18 @@ production: &production - id: '3090261' # embarquement_valide_to_demandeur_tech_metier condition_on_authorization: 'not_editor_and_all_contacts_have_the_same_email?' - - id: '3090303' # embarquement_valide_to_demandeur_seulement condition_on_authorization: 'not_editor_and_all_contacts_have_different_emails?' to: - 'authorization_request.demandeur' + - id: '3090321' # embarquement_valide_to_tech_cc_metier condition_on_authorization: 'not_editor_and_all_contacts_have_different_emails?' to: - 'authorization_request.contact_technique' cc: - 'authorization_request.demandeur' + - id: '3084241' # embarquement_valide_to_metier_cc_demandeur_tech condition_on_authorization: 'not_editor_and_all_contacts_have_different_emails?' to: @@ -87,11 +104,18 @@ production: &production - 'authorization_request.demandeur' - 'authorization_request.contact_technique' + - id: '3084241' # embarquement_valide_to_metier_cc_demandeur_tech + condition_on_authorization: 'not_editor_and_user_is_contact_technique_and_not_contact_metier?' + to: + - 'authorization_request.contact_metier' + cc: + - 'authorization_request.demandeur' - id: '3090303' # embarquement_valide_to_demandeur_not_tech condition_on_authorization: 'not_editor_and_user_is_contact_metier_and_not_contact_technique?' to: - 'authorization_request.demandeur' + - id: '3090321' # embarquement_demande_to_tech_cc_demandeur_metier condition_on_authorization: 'not_editor_and_user_is_contact_metier_and_not_contact_technique?' to: @@ -99,23 +123,10 @@ production: &production cc: - 'authorization_request.demandeur' - - id: '3090261' # embarquement_valide_to_demandeur_tech_not_metier condition_on_authorization: 'not_editor_and_user_is_contact_technique_and_not_contact_metier?' to: - 'authorization_request.demandeur' - - id: '3084241' # embarquement_valide_to_metier_cc_demandeur_tech - condition_on_authorization: 'not_editor_and_user_is_contact_technique_and_not_contact_metier?' - to: - - 'authorization_request.contact_metier' - cc: - - 'authorization_request.demandeur' - - - id: '3251161' # enquete_satisfaction - when: 'in 30 days' - condition_on_authorization: 'not_editor_authorization_request' - to: - - 'authorization_request.demandeur' create: *created update: *updated