diff --git a/packages/plh-data/data/data_list/data_list.campaign_rows.ts b/packages/plh-data/data/data_list/data_list.campaign_rows.ts index 1d227028fb..d0d193c49a 100644 --- a/packages/plh-data/data/data_list/data_list.campaign_rows.ts +++ b/packages/plh-data/data/data_list/data_list.campaign_rows.ts @@ -4,7 +4,7 @@ const data_list: FlowTypes.Data_list[] = [ { flow_type: "data_list", flow_subtype: "campaign_rows", - flow_name: "campaign_home_screen", + flow_name: "campaign_hs_w_self_care", status: "released", rows: [ { @@ -23,34 +23,34 @@ const data_list: FlowTypes.Data_list[] = [ icon: "plh_images/icons/play_white.svg", }, { - id: "w_self_care_m_relax", + id: "welcome_survey_quick_start", click_action_list: [ { trigger: "click", - action_id: "pop_up", - args: ["w_self_care_m_relax"], - _raw: "pop_up: w_self_care_m_relax", - _cleaned: "click | pop_up: w_self_care_m_relax", + action_id: "go_to", + args: ["setup_and_survey_stepper"], + _raw: "go_to: setup_and_survey_stepper", + _cleaned: "click | go_to: setup_and_survey_stepper", }, { trigger: "click", action_id: "set_field", - args: ["w_self_care_m_relax.sent", true], - _raw: "set_field: w_self_care_m_relax.sent : true", - _cleaned: "click | set_field: w_self_care_m_relax.sent : true", + args: ["welcome_survey_quick_start.sent", true], + _raw: "set_field: welcome_survey_quick_start.sent : true", + _cleaned: "click | set_field: welcome_survey_quick_start.sent : true", }, ], - priority: 0.1, + priority: 13, activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_self_care_completed", + field: "w_self_care_started", value: true, }, }, - _raw: "get_field | w_self_care_completed : true", + _raw: "get_field | w_self_care_started : true", }, ], deactivation_condition_list: [ @@ -58,63 +58,55 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_self_care_m_relax.sent", + field: "survey_completed", value: true, }, }, - _raw: "get_field | w_self_care_m_relax.sent : true | before : 1 : day", - }, - { - condition_type: "db_lookup", - condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "6", - unit: "day", - }, - }, - }, - _raw: "first_launch | before : 6 : day", + _raw: "get_field | survey_completed : true", }, ], - campaign_list: ["parent_points"], - icon: "plh_images/icons/smile_eyes_down_white.svg", + campaign_list: ["parent_centre"], + icon: "plh_images/icons/phone_heart_white.svg", }, { - id: "welcome_survey_quick_start", + id: "w_self_care_m_w_released", click_action_list: [ { trigger: "click", action_id: "go_to", - args: ["setup_and_survey_stepper"], - _raw: "go_to: setup_and_survey_stepper", - _cleaned: "click | go_to: setup_and_survey_stepper", + args: ["w_self_care_m_w_released"], + _raw: "go_to: w_self_care_m_w_released", + _cleaned: "click | go_to: w_self_care_m_w_released", }, { trigger: "click", action_id: "set_field", - args: ["welcome_survey_quick_start.sent", true], - _raw: "set_field: welcome_survey_quick_start.sent : true", - _cleaned: "click | set_field: welcome_survey_quick_start.sent : true", + args: ["w_self_care_m_w_released.sent", true], + _raw: "set_field: w_self_care_m_w_released.sent : true", + _cleaned: "click | set_field: w_self_care_m_w_released.sent : true", }, ], - priority: 0.2, + priority: 12.99, activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "1", + }, + }, + _raw: "get_field | current_workshop_number : 1", + }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { field: "w_self_care_started", - value: true, + value: false, }, }, - _raw: "get_field | w_self_care_started : true", + _raw: "get_field | w_self_care_started : false", }, ], deactivation_condition_list: [ @@ -122,53 +114,55 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "survey_completed", + field: "w_self_care_m_w_released.sent", value: true, }, }, - _raw: "get_field | survey_completed : true", + _raw: "get_field | w_self_care_m_w_released.sent : true", }, ], - campaign_list: ["parent_centre"], - icon: "plh_images/icons/phone_heart_white.svg", + campaign_list: ["weekly_workshops"], + icon: "plh_images/icons/play_white.svg", }, { - id: "w_self_care_m_w_tomorrow", + id: "w_self_care_m_relax", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_self_care_m_w_tomorrow"], - _raw: "pop_up: w_self_care_m_w_tomorrow", - _cleaned: "click | pop_up: w_self_care_m_w_tomorrow", + args: ["w_self_care_m_relax"], + _raw: "pop_up: w_self_care_m_relax", + _cleaned: "click | pop_up: w_self_care_m_relax", }, { trigger: "click", action_id: "set_field", - args: ["w_self_care_m_w_tomorrow.sent", true], - _raw: "set_field: w_self_care_m_w_tomorrow.sent : true", - _cleaned: "click | set_field: w_self_care_m_w_tomorrow.sent : true", + args: ["w_self_care_m_relax.sent", true], + _raw: "set_field: w_self_care_m_relax.sent : true", + _cleaned: "click | set_field: w_self_care_m_relax.sent : true", }, ], - priority: 0.6, + priority: 12.9, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "5", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "1", + }, + }, + _raw: "get_field | current_workshop_number : 1", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_self_care_completed", + value: true, }, }, - _raw: "first_launch | before: 5 : day", + _raw: "get_field | w_self_care_completed : true", }, ], deactivation_condition_list: [ @@ -176,15 +170,15 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_self_care_m_w_tomorrow.sent", + field: "w_self_care_m_relax.sent", value: true, }, }, - _raw: "get_field | w_self_care_m_w_tomorrow.sent : true", + _raw: "get_field | w_self_care_m_relax.sent : true | before : 1 : day", }, ], - campaign_list: ["weekly_workshops"], - icon: "plh_images/icons/bell_white.svg", + campaign_list: ["parent_points"], + icon: "plh_images/icons/smile_eyes_down_white.svg", }, { id: "w_self_care_m_hp_reminder", @@ -204,8 +198,18 @@ const data_list: FlowTypes.Data_list[] = [ _cleaned: "click | set_field: w_self_care_m_hp_reminder.sent : true", }, ], - priority: 0.8, + priority: 12.4, activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "1", + }, + }, + _raw: "get_field | current_workshop_number : 1", + }, { condition_type: "db_lookup", condition_args: { @@ -216,14 +220,9 @@ const data_list: FlowTypes.Data_list[] = [ value: "true", }, order: "asc", - evaluate: { - operator: ">", - value: "3", - unit: "day", - }, }, }, - _raw: "get_field:first | w_self_care_completed: true | before : 3 : day", + _raw: "get_field:first | w_self_care_completed: true", }, ], deactivation_condition_list: [ @@ -237,6 +236,46 @@ const data_list: FlowTypes.Data_list[] = [ }, _raw: "get_field | w_self_care_m_hp_reminder.sent : true", }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "2", + }, + }, + _raw: "get_field | current_relative_day_number : 2", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "3", + }, + }, + _raw: "get_field | current_relative_day_number : 3", + }, ], campaign_list: ["parent_points"], icon: "plh_images/icons/parent_heart_white.svg", @@ -259,35 +298,17 @@ const data_list: FlowTypes.Data_list[] = [ _cleaned: "click | set_field: w_self_care_m_parent_points_overview.sent : true", }, ], - priority: 0.9, + priority: 12.3, activation_condition_list: [ - { - condition_type: "db_lookup", - condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "5", - unit: "day", - }, - }, - }, - _raw: "first_launch | before: 5 : day", - }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "no_parent_points_this_week", - value: false, + field: "current_workshop_number", + value: "1", }, }, - _raw: "get_field | no_parent_points_this_week : false", + _raw: "get_field | current_workshop_number : 1", }, ], deactivation_condition_list: [ @@ -301,139 +322,99 @@ const data_list: FlowTypes.Data_list[] = [ }, _raw: "get_field | w_self_care_m_parent_points_overview.sent : true", }, - ], - campaign_list: ["parent_points"], - icon: "plh_images/icons/star_white.svg", - }, - { - id: "w_1on1_m_relax", - click_action_list: [ { - trigger: "click", - action_id: "pop_up", - args: ["w_1on1_m_relax"], - _raw: "pop_up: w_1on1_m_relax", - _cleaned: "click | pop_up: w_1on1_m_relax", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, { - trigger: "click", - action_id: "set_field", - args: ["w_1on1_m_relax.sent", true], - _raw: "set_field: w_1on1_m_relax.sent : true", - _cleaned: "click | set_field: w_1on1_m_relax.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, - ], - priority: 1.1, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "6", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "2", }, }, - _raw: "first_launch | before: 6 : day", + _raw: "get_field | current_relative_day_number : 2", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_1on1_m_relax.sent", - value: true, + field: "current_relative_day_number", + value: "3", }, }, - _raw: "get_field | w_1on1_m_relax.sent : true | before : 1 : day", + _raw: "get_field | current_relative_day_number : 3", }, { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "13", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "4", }, }, - _raw: "first_launch | before : 13 : day", + _raw: "get_field | current_relative_day_number : 4", }, ], campaign_list: ["parent_points"], - icon: "plh_images/icons/smile_eyes_down_white.svg", + icon: "plh_images/icons/star_white.svg", }, { - id: "w_1on1_m_w_released_individual", + id: "w_self_care_m_w_tomorrow", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_1on1_m_w_released"], - _raw: "pop_up: w_1on1_m_w_released", - _cleaned: "click | pop_up: w_1on1_m_w_released", + args: ["w_self_care_m_w_tomorrow"], + _raw: "pop_up: w_self_care_m_w_tomorrow", + _cleaned: "click | pop_up: w_self_care_m_w_tomorrow", }, { trigger: "click", action_id: "set_field", - args: ["w_1on1_m_w_released.sent", true], - _raw: "set_field: w_1on1_m_w_released.sent : true", - _cleaned: "click | set_field: w_1on1_m_w_released.sent : true", + args: ["w_self_care_m_w_tomorrow.sent", true], + _raw: "set_field: w_self_care_m_w_tomorrow.sent : true", + _cleaned: "click | set_field: w_self_care_m_w_tomorrow.sent : true", }, ], - priority: 1.2, + priority: 12.1, activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "do_workshops_together", - value: false, - }, - }, - _raw: "get_field | do_workshops_together: false", - }, - { - condition_type: "db_lookup", - condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "6", - unit: "day", - }, + field: "current_workshop_number", + value: "1", }, }, - _raw: "first_launch | before: 6 : day", + _raw: "get_field | current_workshop_number : 1", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_1on1_started", + field: "w_self_care_completed", value: false, }, }, - _raw: "get_field | w_1on1_started : false", + _raw: "get_field | w_self_care_completed : false", }, ], deactivation_condition_list: [ @@ -441,18 +422,87 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_1on1_m_w_released.sent", + field: "w_self_care_m_w_tomorrow.sent", value: true, }, }, - _raw: "get_field | w_1on1_m_w_released.sent : true", + _raw: "get_field | w_self_care_m_w_tomorrow.sent : true", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "2", + }, + }, + _raw: "get_field | current_relative_day_number : 2", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "3", + }, + }, + _raw: "get_field | current_relative_day_number : 3", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "4", + }, + }, + _raw: "get_field | current_relative_day_number : 4", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "5", + }, + }, + _raw: "get_field | current_relative_day_number : 5", }, ], campaign_list: ["weekly_workshops"], icon: "plh_images/icons/bell_white.svg", }, + ], + _xlsxPath: "plh_sheets_beta/plh_templating/campaigns/campaign_home_screen_quick_start.xlsx", + }, + { + flow_type: "data_list", + flow_subtype: "campaign_rows", + flow_name: "campaign_hs_w_1on1", + status: "released", + rows: [ { - id: "w_1on1_m_w_released_together", + id: "w_1on1_m_w_released", click_action_list: [ { trigger: "click", @@ -469,35 +519,17 @@ const data_list: FlowTypes.Data_list[] = [ _cleaned: "click | set_field: w_1on1_m_w_released.sent : true", }, ], - priority: 1.3, + priority: 11.99, activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "do_workshops_together", - value: true, - }, - }, - _raw: "get_field | do_workshops_together: true", - }, - { - condition_type: "db_lookup", - condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "6", - unit: "day", - }, + field: "current_workshop_number", + value: "2", }, }, - _raw: "first_launch | before: 6 : day", + _raw: "get_field | current_workshop_number : 2", }, { condition_type: "field_evaluation", @@ -525,6 +557,52 @@ const data_list: FlowTypes.Data_list[] = [ campaign_list: ["weekly_workshops"], icon: "plh_images/icons/bell_white.svg", }, + { + id: "w_1on1_m_relax", + click_action_list: [ + { + trigger: "click", + action_id: "pop_up", + args: ["w_1on1_m_relax"], + _raw: "pop_up: w_1on1_m_relax", + _cleaned: "click | pop_up: w_1on1_m_relax", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_1on1_m_relax.sent", true], + _raw: "set_field: w_1on1_m_relax.sent : true", + _cleaned: "click | set_field: w_1on1_m_relax.sent : true", + }, + ], + priority: 11.9, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "2", + }, + }, + _raw: "get_field | current_workshop_number : 2", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_1on1_m_relax.sent", + value: true, + }, + }, + _raw: "get_field | w_1on1_m_relax.sent : true | before : 1 : day", + }, + ], + campaign_list: ["parent_points"], + icon: "plh_images/icons/smile_eyes_down_white.svg", + }, { id: "w_1on1_m_something_fun", click_action_list: [ @@ -543,25 +621,17 @@ const data_list: FlowTypes.Data_list[] = [ _cleaned: "click | set_field: w_1on1_m_something_fun.sent : true", }, ], - priority: 1.4, + priority: 11.8, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "7", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "2", }, }, - _raw: "first_launch | before: 7 : day", + _raw: "get_field | current_workshop_number : 2", }, ], deactivation_condition_list: [ @@ -575,6 +645,26 @@ const data_list: FlowTypes.Data_list[] = [ }, _raw: "get_field | w_1on1_m_something_fun.sent : true", }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", + }, ], campaign_list: ["parent_centre"], icon: "plh_images/icons/smile_eyes_up_white.svg", @@ -597,25 +687,17 @@ const data_list: FlowTypes.Data_list[] = [ _cleaned: "click | set_field: w_1on1_m_praise.sent : true", }, ], - priority: 1.5, + priority: 11.7, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "8", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "2", }, }, - _raw: "first_launch | before: 8 : day", + _raw: "get_field | current_workshop_number : 2", }, ], deactivation_condition_list: [ @@ -633,11 +715,31 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_1on1_completed", - value: true, + field: "current_relative_day_number", + value: "0", }, }, - _raw: "get_field | w_1on1_completed : true", + _raw: "get_field | current_relative_day_number : 0", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "2", + }, + }, + _raw: "get_field | current_relative_day_number : 2", }, ], campaign_list: ["parent_centre"], @@ -661,25 +763,17 @@ const data_list: FlowTypes.Data_list[] = [ _cleaned: "click | set_field: w_1on1_m_w_reminder.sent : true", }, ], - priority: 1.6, + priority: 11.6, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "9", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "2", }, }, - _raw: "first_launch | before: 9 : day", + _raw: "get_field | current_workshop_number : 2", }, { condition_type: "field_evaluation", @@ -703,6 +797,36 @@ const data_list: FlowTypes.Data_list[] = [ }, _raw: "get_field | w_1on1_m_w_reminder.sent : true", }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "2", + }, + }, + _raw: "get_field | current_relative_day_number : 2", + }, ], campaign_list: ["weekly_workshops"], icon: "plh_images/icons/bell_white.svg", @@ -725,25 +849,17 @@ const data_list: FlowTypes.Data_list[] = [ _cleaned: "click | set_field: w_1on1_m_w_in_progress.sent : true", }, ], - priority: 1.7, + priority: 11.5, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "9", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "2", }, }, - _raw: "first_launch | before: 9 : day", + _raw: "get_field | current_workshop_number : 2", }, ], deactivation_condition_list: [ @@ -757,6 +873,36 @@ const data_list: FlowTypes.Data_list[] = [ }, _raw: "get_field | w_1on1_m_w_in_progress.sent : true", }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "2", + }, + }, + _raw: "get_field | current_relative_day_number : 2", + }, { condition_type: "field_evaluation", condition_args: { @@ -799,25 +945,17 @@ const data_list: FlowTypes.Data_list[] = [ _cleaned: "click | set_field: w_1on1_m_hp_reminder.sent : true", }, ], - priority: 1.8, + priority: 11.4, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "9", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "2", }, }, - _raw: "first_launch | before: 9 : day", + _raw: "get_field | current_workshop_number : 2", }, { condition_type: "field_evaluation", @@ -841,111 +979,79 @@ const data_list: FlowTypes.Data_list[] = [ }, _raw: "get_field | w_1on1_m_hp_reminder.sent : true", }, - ], - campaign_list: ["parent_points"], - icon: "plh_images/icons/parent_heart_white.svg", - }, - { - id: "w_1on1_m_parent_points_overview", - click_action_list: [ - { - trigger: "click", - action_id: "pop_up", - args: ["m_parent_points_overview"], - _raw: "pop_up: m_parent_points_overview", - _cleaned: "click | pop_up: m_parent_points_overview", - }, { - trigger: "click", - action_id: "set_field", - args: ["w_1on1_m_parent_points_overview.sent", true], - _raw: "set_field: w_1on1_m_parent_points_overview.sent : true", - _cleaned: "click | set_field: w_1on1_m_parent_points_overview.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, - ], - priority: 1.9, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "12", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "1", }, }, - _raw: "first_launch | before: 12 : day", + _raw: "get_field | current_relative_day_number : 1", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "no_parent_points_this_week", - value: false, + field: "current_relative_day_number", + value: "2", }, }, - _raw: "get_field | no_parent_points_this_week : false", + _raw: "get_field | current_relative_day_number : 2", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_1on1_m_parent_points_overview.sent", - value: true, + field: "current_relative_day_number", + value: "3", }, }, - _raw: "get_field | w_1on1_m_parent_points_overview.sent : true", + _raw: "get_field | current_relative_day_number : 3", }, ], campaign_list: ["parent_points"], - icon: "plh_images/icons/star_white.svg", + icon: "plh_images/icons/parent_heart_white.svg", }, { - id: "w_praise_m_relax", + id: "w_1on1_m_parent_points_overview", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_praise_m_relax"], - _raw: "pop_up: w_praise_m_relax", - _cleaned: "click | pop_up: w_praise_m_relax", + args: ["m_parent_points_overview"], + _raw: "pop_up: m_parent_points_overview", + _cleaned: "click | pop_up: m_parent_points_overview", }, { trigger: "click", action_id: "set_field", - args: ["w_praise_m_relax.sent", true], - _raw: "set_field: w_praise_m_relax.sent : true", - _cleaned: "click | set_field: w_praise_m_relax.sent : true", + args: ["w_1on1_m_parent_points_overview.sent", true], + _raw: "set_field: w_1on1_m_parent_points_overview.sent : true", + _cleaned: "click | set_field: w_1on1_m_parent_points_overview.sent : true", }, ], - priority: 2.1, + priority: 11.3, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "13", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "2", }, }, - _raw: "first_launch | before: 13 : day", + _raw: "get_field | current_workshop_number : 2", }, ], deactivation_condition_list: [ @@ -953,155 +1059,105 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_praise_m_relax.sent", + field: "w_1on1_m_parent_points_overview.sent", value: true, }, }, - _raw: "get_field | w_praise_m_relax.sent : true | before : 1 : day", + _raw: "get_field | w_1on1_m_parent_points_overview.sent : true", }, { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "20", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "0", }, }, - _raw: "first_launch | before : 20 : day", - }, - ], - campaign_list: ["parent_points"], - icon: "plh_images/icons/smile_eyes_down_white.svg", - }, - { - id: "w_praise_m_w_released_individual", - click_action_list: [ - { - trigger: "click", - action_id: "pop_up", - args: ["w_praise_m_w_released"], - _raw: "pop_up: w_praise_m_w_released", - _cleaned: "click | pop_up: w_praise_m_w_released", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_praise_m_w_released.sent", true], - _raw: "set_field: w_praise_m_w_released.sent : true", - _cleaned: "click | set_field: w_praise_m_w_released.sent : true", + _raw: "get_field | current_relative_day_number : 0", }, - ], - priority: 2.2, - activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "do_workshops_together", - value: false, + field: "current_relative_day_number", + value: "1", }, }, - _raw: "get_field | do_workshops_together: false", + _raw: "get_field | current_relative_day_number : 1", }, { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "13", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "2", }, }, - _raw: "first_launch | before: 13 : day", + _raw: "get_field | current_relative_day_number : 2", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_praise_started", - value: false, + field: "current_relative_day_number", + value: "3", }, }, - _raw: "get_field | w_praise_started : false", + _raw: "get_field | current_relative_day_number : 3", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_praise_m_w_released.sent", - value: true, + field: "current_relative_day_number", + value: "4", }, }, - _raw: "get_field | w_praise_m_w_released.sent : true", + _raw: "get_field | current_relative_day_number : 4", }, ], - campaign_list: ["weekly_workshops"], - icon: "plh_images/icons/bell_white.svg", + campaign_list: ["parent_points"], + icon: "plh_images/icons/star_white.svg", }, { - id: "w_praise_m_w_released_together", + id: "w_1on1_hp_review", click_action_list: [ { trigger: "click", - action_id: "pop_up", - args: ["w_praise_m_w_released"], - _raw: "pop_up: w_praise_m_w_released", - _cleaned: "click | pop_up: w_praise_m_w_released", + action_id: "go_to", + args: ["w_1on1_hp_review"], + _raw: "go_to: w_1on1_hp_review", + _cleaned: "click | go_to: w_1on1_hp_review", }, { trigger: "click", action_id: "set_field", - args: ["w_praise_m_w_released.sent", true], - _raw: "set_field: w_praise_m_w_released.sent : true", - _cleaned: "click | set_field: w_praise_m_w_released.sent : true", + args: ["w_1on1_hp_review.sent", true], + _raw: "set_field: w_1on1_hp_review.sent : true", + _cleaned: "click | set_field: w_1on1_hp_review.sent : true", }, ], - priority: 2.3, + priority: 11.2, activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "do_workshops_together", - value: true, + field: "current_workshop_number", + value: "2", }, }, - _raw: "get_field | do_workshops_together: true", + _raw: "get_field | current_workshop_number : 2", }, { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "13", - unit: "day", - }, + field_evaluation: { + field: "w_1on1_completed", + value: true, }, }, - _raw: "first_launch | before: 13 : day", + _raw: "get_field | w_1on1_completed : true", }, ], deactivation_condition_list: [ @@ -1109,107 +1165,105 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_praise_m_w_released.sent", + field: "w_1on1_hp_review_completed", value: true, }, }, - _raw: "get_field | w_praise_m_w_released.sent : true", + _raw: "get_field | w_1on1_hp_review_completed : true", }, - ], - campaign_list: ["weekly_workshops"], - icon: "plh_images/icons/bell_white.svg", - }, - { - id: "w_praise_m_something_fun", - click_action_list: [ { - trigger: "click", - action_id: "pop_up", - args: ["w_praise_m_something_fun"], - _raw: "pop_up: w_praise_m_something_fun", - _cleaned: "click | pop_up: w_praise_m_something_fun", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, { - trigger: "click", - action_id: "set_field", - args: ["w_praise_m_something_fun.sent", true], - _raw: "set_field: w_praise_m_something_fun.sent : true", - _cleaned: "click | set_field: w_praise_m_something_fun.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, - ], - priority: 2.4, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "14", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "2", }, }, - _raw: "first_launch | before: 14 : day", + _raw: "get_field | current_relative_day_number : 2", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_praise_m_something_fun.sent", - value: true, + field: "current_relative_day_number", + value: "3", }, }, - _raw: "get_field | w_praise_m_something_fun.sent : true", + _raw: "get_field | current_relative_day_number : 3", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "4", + }, + }, + _raw: "get_field | current_relative_day_number : 4", }, ], campaign_list: ["parent_centre"], - icon: "plh_images/icons/smile_eyes_up_white.svg", + icon: "plh_images/icons/parent_heart_white.svg", }, { - id: "w_praise_m_praise", + id: "w_1on1_m_w_tomorrow", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_praise_m_praise"], - _raw: "pop_up: w_praise_m_praise", - _cleaned: "click | pop_up: w_praise_m_praise", + args: ["w_1on1_m_w_tomorrow"], + _raw: "pop_up: w_1on1_m_w_tomorrow", + _cleaned: "click | pop_up: w_1on1_m_w_tomorrow", }, { trigger: "click", action_id: "set_field", - args: ["w_praise_m_praise.sent", true], - _raw: "set_field: w_praise_m_praise.sent : true", - _cleaned: "click | set_field: w_praise_m_praise.sent : true", + args: ["w_1on1_m_w_tomorrow.sent", true], + _raw: "set_field: w_1on1_m_w_tomorrow.sent : true", + _cleaned: "click | set_field: w_1on1_m_w_tomorrow.sent : true", }, ], - priority: 2.5, + priority: 11.1, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "15", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "2", + }, + }, + _raw: "get_field | current_workshop_number : 2", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_1on1_completed", + value: false, }, }, - _raw: "first_launch | before: 15 : day", + _raw: "get_field | w_1on1_completed : false", }, ], deactivation_condition_list: [ @@ -1217,201 +1271,124 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_praise_m_praise.sent", + field: "w_1on1_m_w_tomorrow.sent", value: true, }, }, - _raw: "get_field | w_praise_m_praise.sent : true", - }, - ], - campaign_list: ["parent_centre"], - icon: "plh_images/icons/heart_white.svg", - }, - { - id: "w_praise_m_w_reminder", - click_action_list: [ - { - trigger: "click", - action_id: "pop_up", - args: ["w_praise_m_w_reminder"], - _raw: "pop_up: w_praise_m_w_reminder", - _cleaned: "click | pop_up: w_praise_m_w_reminder", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_praise_m_w_reminder.sent", true], - _raw: "set_field: w_praise_m_w_reminder.sent : true", - _cleaned: "click | set_field: w_praise_m_w_reminder.sent : true", - }, - ], - priority: 2.6, - activation_condition_list: [ - { - condition_type: "db_lookup", - condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "16", - unit: "day", - }, - }, - }, - _raw: "first_launch | before: 16 : day", + _raw: "get_field | w_1on1_m_w_tomorrow.sent : true", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_praise_started", - value: false, + field: "current_relative_day_number", + value: "0", }, }, - _raw: "get_field | w_praise_started : false", + _raw: "get_field | current_relative_day_number : 0", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_praise_m_w_reminder.sent", - value: true, + field: "current_relative_day_number", + value: "1", }, }, - _raw: "get_field | w_praise_m_w_reminder.sent : true | before : 1 : day", - }, - ], - campaign_list: ["weekly_workshops"], - icon: "plh_images/icons/bell_white.svg", - }, - { - id: "w_praise_m_w_in_pro", - click_action_list: [ - { - trigger: "click", - action_id: "pop_up", - args: ["w_praise_m_w_in_pro"], - _raw: "pop_up: w_praise_m_w_in_pro", - _cleaned: "click | pop_up: w_praise_m_w_in_pro", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_praise_m_w_in_pro.sent", true], - _raw: "set_field: w_praise_m_w_in_pro.sent : true", - _cleaned: "click | set_field: w_praise_m_w_in_pro.sent : true", + _raw: "get_field | current_relative_day_number : 1", }, - ], - priority: 2.7, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "16", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "2", }, }, - _raw: "first_launch | before: 16 : day", + _raw: "get_field | current_relative_day_number : 2", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_praise_m_w_in_pro.sent", - value: true, + field: "current_relative_day_number", + value: "3", }, }, - _raw: "get_field | w_praise_m_w_in_pro.sent : true", + _raw: "get_field | current_relative_day_number : 3", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_praise_started", - value: false, + field: "current_relative_day_number", + value: "4", }, }, - _raw: "get_field | w_praise_started : false", + _raw: "get_field | current_relative_day_number : 4", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_praise_completed", - value: true, + field: "current_relative_day_number", + value: "5", }, }, - _raw: "get_field | w_praise_completed: true", + _raw: "get_field | current_relative_day_number : 5", }, ], campaign_list: ["weekly_workshops"], icon: "plh_images/icons/bell_white.svg", }, + ], + _xlsxPath: "plh_sheets_beta/plh_templating/campaigns/campaign_home_screen_quick_start.xlsx", + }, + { + flow_type: "data_list", + flow_subtype: "campaign_rows", + flow_name: "campaign_hs_w_praise", + status: "released", + rows: [ { - id: "w_praise_m_hp_reminder", + id: "w_praise_m_w_released", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_praise_m_hp_reminder"], - _raw: "pop_up: w_praise_m_hp_reminder", - _cleaned: "click | pop_up: w_praise_m_hp_reminder", + args: ["w_praise_m_w_released"], + _raw: "pop_up: w_praise_m_w_released", + _cleaned: "click | pop_up: w_praise_m_w_released", }, { trigger: "click", action_id: "set_field", - args: ["w_praise_m_hp_reminder.sent", true], - _raw: "set_field: w_praise_m_hp_reminder.sent : true", - _cleaned: "click | set_field: w_praise_m_hp_reminder.sent : true", + args: ["w_praise_m_w_released.sent", true], + _raw: "set_field: w_praise_m_w_released.sent : true", + _cleaned: "click | set_field: w_praise_m_w_released.sent : true", }, ], - priority: 2.8, + priority: 10.99, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "16", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "3", }, }, - _raw: "first_launch | before: 16 : day", + _raw: "get_field | current_workshop_number : 3", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_praise_completed", - value: true, + field: "w_praise_started", + value: false, }, }, - _raw: "get_field | w_praise_completed: true", + _raw: "get_field | w_praise_started : false", }, ], deactivation_condition_list: [ @@ -1419,63 +1396,45 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_praise_m_hp_reminder.sent", + field: "w_praise_m_w_released.sent", value: true, }, }, - _raw: "get_field | w_praise_m_hp_reminder.sent : true", + _raw: "get_field | w_praise_m_w_released.sent : true", }, ], - campaign_list: ["parent_points"], - icon: "plh_images/icons/parent_heart_white.svg", + campaign_list: ["weekly_workshops"], + icon: "plh_images/icons/bell_white.svg", }, { - id: "w_praise_m_parent_points_overview", + id: "w_praise_m_relax", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["m_parent_points_overview"], - _raw: "pop_up: m_parent_points_overview", - _cleaned: "click | pop_up: m_parent_points_overview", + args: ["w_praise_m_relax"], + _raw: "pop_up: w_praise_m_relax", + _cleaned: "click | pop_up: w_praise_m_relax", }, { trigger: "click", action_id: "set_field", - args: ["w_praise_m_parent_points_overview.sent", true], - _raw: "set_field: w_praise_m_parent_points_overview.sent : true", - _cleaned: "click | set_field: w_praise_m_parent_points_overview.sent : true", + args: ["w_praise_m_relax.sent", true], + _raw: "set_field: w_praise_m_relax.sent : true", + _cleaned: "click | set_field: w_praise_m_relax.sent : true", }, ], - priority: 2.9, + priority: 10.9, activation_condition_list: [ - { - condition_type: "db_lookup", - condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "19", - unit: "day", - }, - }, - }, - _raw: "first_launch | before: 19 : day", - }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "no_parent_points_this_week", - value: false, + field: "current_workshop_number", + value: "3", }, }, - _raw: "get_field | no_parent_points_this_week : false", + _raw: "get_field | current_workshop_number : 3", }, ], deactivation_condition_list: [ @@ -1483,53 +1442,45 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_praise_m_parent_points_overview.sent", + field: "w_praise_m_relax.sent", value: true, }, }, - _raw: "get_field | w_praise_m_parent_points_overview.sent : true", + _raw: "get_field | w_praise_m_relax.sent : true | before : 1 : day", }, ], campaign_list: ["parent_points"], - icon: "plh_images/icons/star_white.svg", + icon: "plh_images/icons/smile_eyes_down_white.svg", }, { - id: "w_instruct_m_relax", + id: "w_praise_m_something_fun", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_instruct_m_relax"], - _raw: "pop_up: w_instruct_m_relax", - _cleaned: "click | pop_up: w_instruct_m_relax", + args: ["w_praise_m_something_fun"], + _raw: "pop_up: w_praise_m_something_fun", + _cleaned: "click | pop_up: w_praise_m_something_fun", }, { trigger: "click", action_id: "set_field", - args: ["w_instruct_m_relax.sent", true], - _raw: "set_field: w_instruct_m_relax.sent : true", - _cleaned: "click | set_field: w_instruct_m_relax.sent : true", + args: ["w_praise_m_something_fun.sent", true], + _raw: "set_field: w_praise_m_something_fun.sent : true", + _cleaned: "click | set_field: w_praise_m_something_fun.sent : true", }, ], - priority: 3.1, + priority: 10.8, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "20", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "3", }, }, - _raw: "first_launch | before: 20 : day", + _raw: "get_field | current_workshop_number : 3", }, ], deactivation_condition_list: [ @@ -1537,165 +1488,151 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_instruct_m_relax.sent", + field: "w_praise_m_something_fun.sent", value: true, }, }, - _raw: "get_field | w_instruct_m_relax.sent : true | within: 1 : day", + _raw: "get_field | w_praise_m_something_fun.sent : true", }, { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", }, }, - _raw: "first_launch | before : 27 : day", + _raw: "get_field | current_relative_day_number : 1", }, ], - campaign_list: ["parent_points"], - icon: "plh_images/icons/smile_eyes_down_white.svg", + campaign_list: ["parent_centre"], + icon: "plh_images/icons/smile_eyes_up_white.svg", }, { - id: "w_instruct_m_w_released_individual", + id: "w_praise_m_praise", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_instruct_m_w_released"], - _raw: "pop_up: w_instruct_m_w_released", - _cleaned: "click | pop_up: w_instruct_m_w_released", + args: ["w_praise_m_praise"], + _raw: "pop_up: w_praise_m_praise", + _cleaned: "click | pop_up: w_praise_m_praise", }, { trigger: "click", action_id: "set_field", - args: ["w_instruct_m_w_released.sent", true], - _raw: "set_field: w_instruct_m_w_released.sent : true", - _cleaned: "click | set_field: w_instruct_m_w_released.sent : true", + args: ["w_praise_m_praise.sent", true], + _raw: "set_field: w_praise_m_praise.sent : true", + _cleaned: "click | set_field: w_praise_m_praise.sent : true", }, ], - priority: 3.2, + priority: 10.7, activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "do_workshops_together", - value: false, + field: "current_workshop_number", + value: "3", }, }, - _raw: "get_field | do_workshops_together: false", + _raw: "get_field | current_workshop_number : 3", }, + ], + deactivation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "20", - unit: "day", - }, + field_evaluation: { + field: "w_praise_m_praise.sent", + value: true, }, }, - _raw: "first_launch | before: 20 : day", + _raw: "get_field | w_praise_m_praise.sent : true", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_instruct_started", - value: false, + field: "current_relative_day_number", + value: "0", }, }, - _raw: "get_field | w_instruct_started : false", + _raw: "get_field | current_relative_day_number : 0", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_instruct_m_w_released.sent", - value: true, + field: "current_relative_day_number", + value: "1", }, }, - _raw: "get_field | w_instruct_m_w_released.sent : true", + _raw: "get_field | current_relative_day_number : 1", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "2", + }, + }, + _raw: "get_field | current_relative_day_number : 2", }, ], - campaign_list: ["weekly_workshops"], - icon: "plh_images/icons/bell_white.svg", + campaign_list: ["parent_centre"], + icon: "plh_images/icons/heart_white.svg", }, { - id: "w_instruct_m_w_released_together", + id: "w_praise_m_w_reminder", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_instruct_m_w_released"], - _raw: "pop_up: w_instruct_m_w_released", - _cleaned: "click | pop_up: w_instruct_m_w_released", + args: ["w_praise_m_w_reminder"], + _raw: "pop_up: w_praise_m_w_reminder", + _cleaned: "click | pop_up: w_praise_m_w_reminder", }, { trigger: "click", action_id: "set_field", - args: ["w_instruct_m_w_released.sent", true], - _raw: "set_field: w_instruct_m_w_released.sent : true", - _cleaned: "click | set_field: w_instruct_m_w_released.sent : true", + args: ["w_praise_m_w_reminder.sent", true], + _raw: "set_field: w_praise_m_w_reminder.sent : true", + _cleaned: "click | set_field: w_praise_m_w_reminder.sent : true", }, ], - priority: 3.3, + priority: 10.6, activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "do_workshops_together", - value: true, - }, - }, - _raw: "get_field | do_workshops_together: true", - }, - { - condition_type: "db_lookup", - condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "20", - unit: "day", - }, + field: "current_workshop_number", + value: "3", }, }, - _raw: "first_launch | before: 20 : day", + _raw: "get_field | current_workshop_number : 3", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_instruct_started", + field: "w_praise_started", value: false, }, }, - _raw: "get_field | w_instruct_started : false", + _raw: "get_field | w_praise_started : false", }, ], deactivation_condition_list: [ @@ -1703,107 +1640,75 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_instruct_m_w_released.sent", + field: "w_praise_m_w_reminder.sent", value: true, }, }, - _raw: "get_field | w_instruct_m_w_released.sent : true", - }, - ], - campaign_list: ["weekly_workshops"], - icon: "plh_images/icons/bell_white.svg", - }, - { - id: "w_instruct_m_something_fun", - click_action_list: [ - { - trigger: "click", - action_id: "pop_up", - args: ["w_instruct_m_something_fun"], - _raw: "pop_up: w_instruct_m_something_fun", - _cleaned: "click | pop_up: w_instruct_m_something_fun", + _raw: "get_field | w_praise_m_w_reminder.sent : true", }, { - trigger: "click", - action_id: "set_field", - args: ["w_instruct_m_something_fun.sent", true], - _raw: "set_field: w_instruct_m_something_fun.sent : true", - _cleaned: "click | set_field: w_instruct_m_something_fun.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, - ], - priority: 3.4, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "21", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "1", }, }, - _raw: "first_launch | before: 21 : day", + _raw: "get_field | current_relative_day_number : 1", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_instruct_m_something_fun.sent", - value: true, + field: "current_relative_day_number", + value: "2", }, }, - _raw: "get_field | w_instruct_m_something_fun.sent : true", + _raw: "get_field | current_relative_day_number : 2", }, ], - campaign_list: ["parent_centre"], - icon: "plh_images/icons/smile_eyes_up_white.svg", + campaign_list: ["weekly_workshops"], + icon: "plh_images/icons/bell_white.svg", }, { - id: "w_instruct_m_praise", + id: "w_praise_m_w_in_pro", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_instruct_m_praise"], - _raw: "pop_up: w_instruct_m_praise", - _cleaned: "click | pop_up: w_instruct_m_praise", + args: ["w_praise_m_w_in_pro"], + _raw: "pop_up: w_praise_m_w_in_pro", + _cleaned: "click | pop_up: w_praise_m_w_in_pro", }, { trigger: "click", action_id: "set_field", - args: ["w_instruct_m_praise.sent", true], - _raw: "set_field: w_instruct_m_praise.sent : true", - _cleaned: "click | set_field: w_instruct_m_praise.sent : true", + args: ["w_praise_m_w_in_pro.sent", true], + _raw: "set_field: w_praise_m_w_in_pro.sent : true", + _cleaned: "click | set_field: w_praise_m_w_in_pro.sent : true", }, ], - priority: 3.5, + priority: 10.5, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "22", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "3", }, }, - _raw: "first_launch | before: 22 : day", + _raw: "get_field | current_workshop_number : 3", }, ], deactivation_condition_list: [ @@ -1811,117 +1716,105 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_instruct_m_praise.sent", + field: "w_praise_m_w_in_pro.sent", value: true, }, }, - _raw: "get_field | w_instruct_m_praise.sent : true", + _raw: "get_field | w_praise_m_w_in_pro.sent : true", }, - ], - campaign_list: ["parent_centre"], - icon: "plh_images/icons/heart_white.svg", - }, - { - id: "w_instruct_m_w_reminder", - click_action_list: [ { - trigger: "click", - action_id: "pop_up", - args: ["w_instruct_m_w_reminder"], - _raw: "pop_up: w_instruct_m_w_reminder", - _cleaned: "click | pop_up: w_instruct_m_w_reminder", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, { - trigger: "click", - action_id: "set_field", - args: ["w_instruct_m_w_reminder.sent", true], - _raw: "set_field: w_instruct_m_w_reminder.sent : true", - _cleaned: "click | set_field: w_instruct_m_w_reminder.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, - ], - priority: 3.6, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "23", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "2", }, }, - _raw: "first_launch | before: 23 : day", + _raw: "get_field | current_relative_day_number : 2", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_instruct_started", + field: "w_praise_started", value: false, }, }, - _raw: "get_field | w_instruct_started : false", + _raw: "get_field | w_praise_started : false", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_instruct_m_w_reminder.sent", + field: "w_praise_completed", value: true, }, }, - _raw: "get_field | w_instruct_m_w_reminder.sent : true | before : 1 : day", + _raw: "get_field | w_praise_completed: true", }, ], campaign_list: ["weekly_workshops"], icon: "plh_images/icons/bell_white.svg", }, { - id: "w_instruct_m_w_in_pro", + id: "w_praise_m_hp_reminder", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_instruct_m_w_in_pro"], - _raw: "pop_up: w_instruct_m_w_in_pro", - _cleaned: "click | pop_up: w_instruct_m_w_in_pro", + args: ["w_praise_m_hp_reminder"], + _raw: "pop_up: w_praise_m_hp_reminder", + _cleaned: "click | pop_up: w_praise_m_hp_reminder", }, { trigger: "click", action_id: "set_field", - args: ["w_instruct_m_w_in_pro.sent", true], - _raw: "set_field: w_instruct_m_w_in_pro.sent : true", - _cleaned: "click | set_field: w_instruct_m_w_in_pro.sent : true", + args: ["w_praise_m_hp_reminder.sent", true], + _raw: "set_field: w_praise_m_hp_reminder.sent : true", + _cleaned: "click | set_field: w_praise_m_hp_reminder.sent : true", }, ], - priority: 3.7, + priority: 10.4, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "23", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "3", + }, + }, + _raw: "get_field | current_workshop_number : 3", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_praise_completed", + value: true, }, }, - _raw: "first_launch | before: 23 : day", + _raw: "get_field | w_praise_completed: true", }, ], deactivation_condition_list: [ @@ -1929,147 +1822,191 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_instruct_m_w_in_pro.sent", + field: "w_praise_m_hp_reminder.sent", value: true, }, }, - _raw: "get_field | w_instruct_m_w_in_pro.sent : true", + _raw: "get_field | w_praise_m_hp_reminder.sent : true", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_instruct_started", - value: false, + field: "current_relative_day_number", + value: "0", }, }, - _raw: "get_field | w_instruct_started : false", + _raw: "get_field | current_relative_day_number : 0", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_instruct_completed", - value: true, + field: "current_relative_day_number", + value: "1", }, }, - _raw: "get_field | w_instruct_completed: true", + _raw: "get_field | current_relative_day_number : 1", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "2", + }, + }, + _raw: "get_field | current_relative_day_number : 2", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "3", + }, + }, + _raw: "get_field | current_relative_day_number : 3", }, ], - campaign_list: ["weekly_workshops"], - icon: "plh_images/icons/bell_white.svg", + campaign_list: ["parent_points"], + icon: "plh_images/icons/parent_heart_white.svg", }, { - id: "w_instruct_m_hp_reminder", + id: "w_praise_m_parent_points_overview", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_instruct_m_hp_reminder"], - _raw: "pop_up: w_instruct_m_hp_reminder", - _cleaned: "click | pop_up: w_instruct_m_hp_reminder", + args: ["m_parent_points_overview"], + _raw: "pop_up: m_parent_points_overview", + _cleaned: "click | pop_up: m_parent_points_overview", }, { trigger: "click", action_id: "set_field", - args: ["w_instruct_m_hp_reminder.sent", true], - _raw: "set_field: w_instruct_m_hp_reminder.sent : true", - _cleaned: "click | set_field: w_instruct_m_hp_reminder.sent : true", - }, - ], - priority: 3.8, + args: ["w_praise_m_parent_points_overview.sent", true], + _raw: "set_field: w_praise_m_parent_points_overview.sent : true", + _cleaned: "click | set_field: w_praise_m_parent_points_overview.sent : true", + }, + ], + priority: 10.3, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "23", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "3", }, }, - _raw: "first_launch | before: 23 : day", + _raw: "get_field | current_workshop_number : 3", }, + ], + deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_instruct_completed", + field: "w_praise_m_parent_points_overview.sent", value: true, }, }, - _raw: "get_field | w_instruct_completed: true", + _raw: "get_field | w_praise_m_parent_points_overview.sent : true", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_instruct_m_hp_reminder.sent", - value: true, + field: "current_relative_day_number", + value: "0", }, }, - _raw: "get_field | w_instruct_m_hp_reminder.sent : true", + _raw: "get_field | current_relative_day_number : 0", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "2", + }, + }, + _raw: "get_field | current_relative_day_number : 2", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "3", + }, + }, + _raw: "get_field | current_relative_day_number : 3", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "4", + }, + }, + _raw: "get_field | current_relative_day_number : 4", }, ], campaign_list: ["parent_points"], - icon: "plh_images/icons/parent_heart_white.svg", + icon: "plh_images/icons/star_white.svg", }, { - id: "w_instruct_m_parent_points_overview", + id: "w_praise_hp_review", click_action_list: [ { trigger: "click", - action_id: "pop_up", - args: ["m_parent_points_overview"], - _raw: "pop_up: m_parent_points_overview", - _cleaned: "click | pop_up: m_parent_points_overview", + action_id: "go_to", + args: ["w_praise_hp_review"], + _raw: "go_to: w_praise_hp_review", + _cleaned: "click | go_to: w_praise_hp_review", }, { trigger: "click", action_id: "set_field", - args: ["w_instruct_m_parent_points_overview.sent", true], - _raw: "set_field: w_instruct_m_parent_points_overview.sent : true", - _cleaned: "click | set_field: w_instruct_m_parent_points_overview.sent : true", + args: ["w_praise_hp_review.sent", true], + _raw: "set_field: w_praise_hp_review.sent : true", + _cleaned: "click | set_field: w_praise_hp_review.sent : true", }, ], - priority: 3.9, + priority: 10.2, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "26", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "3", }, }, - _raw: "first_launch | before: 26 : day", + _raw: "get_field | current_workshop_number : 3", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "no_parent_points_this_week", - value: false, + field: "w_praise_completed", + value: true, }, }, - _raw: "get_field | no_parent_points_this_week : false", + _raw: "get_field | w_praise_completed : true", }, ], deactivation_condition_list: [ @@ -2077,145 +2014,105 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_instruct_m_parent_points_overview.sent", + field: "w_praise_hp_review_completed", value: true, }, }, - _raw: "get_field | w_instruct_m_parent_points_overview.sent : true", + _raw: "get_field | w_praise_hp_review_completed : true", }, - ], - campaign_list: ["parent_points"], - icon: "plh_images/icons/star_white.svg", - }, - { - id: "w_stress_m_relax", - click_action_list: [ { - trigger: "click", - action_id: "pop_up", - args: ["w_stress_m_relax"], - _raw: "pop_up: w_stress_m_relax", - _cleaned: "click | pop_up: w_stress_m_relax", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, { - trigger: "click", - action_id: "set_field", - args: ["w_stress_m_relax.sent", true], - _raw: "set_field: w_stress_m_relax.sent : true", - _cleaned: "click | set_field: w_stress_m_relax.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, - ], - priority: 4.1, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "2", }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | current_relative_day_number : 2", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_stress_m_relax.sent", - value: true, + field: "current_relative_day_number", + value: "3", }, }, - _raw: "get_field | w_stress_m_relax.sent : true | within : 1 : day", + _raw: "get_field | current_relative_day_number : 3", }, { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "4", }, }, - _raw: "first_launch | before : 34 : day", + _raw: "get_field | current_relative_day_number : 4", }, ], - campaign_list: ["parent_points"], - icon: "plh_images/icons/smile_eyes_down_white.svg", + campaign_list: ["parent_centre"], + icon: "plh_images/icons/parent_heart_white.svg", }, { - id: "w_stress_m_w_released_individual", + id: "w_praise_m_w_tomorrow", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_stress_m_w_released"], - _raw: "pop_up: w_stress_m_w_released", - _cleaned: "click | pop_up: w_stress_m_w_released", + args: ["w_praise_m_w_tomorrow"], + _raw: "pop_up: w_praise_m_w_tomorrow", + _cleaned: "click | pop_up: w_praise_m_w_tomorrow", }, { trigger: "click", action_id: "set_field", - args: ["w_stress_m_w_released.sent", true], - _raw: "set_field: w_stress_m_w_released.sent : true", - _cleaned: "click | set_field: w_stress_m_w_released.sent : true", + args: ["w_praise_m_w_tomorrow.sent", true], + _raw: "set_field: w_praise_m_w_tomorrow.sent : true", + _cleaned: "click | set_field: w_praise_m_w_tomorrow.sent : true", }, ], - priority: 4.2, + priority: 10.1, activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "do_workshops_together", - value: false, - }, - }, - _raw: "get_field | do_workshops_together: false", - }, - { - condition_type: "db_lookup", - condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field: "current_workshop_number", + value: "3", }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | current_workshop_number : 3", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_stress_started", + field: "w_praise_completed", value: false, }, }, - _raw: "get_field | w_stress_started : false", + _raw: "get_field | w_praise_completed : false", }, ], deactivation_condition_list: [ @@ -2223,127 +2120,124 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_stress_m_w_released.sent", + field: "w_praise_m_w_tomorrow.sent", value: true, }, }, - _raw: "get_field | w_stress_m_w_released.sent : true", + _raw: "get_field | w_praise_m_w_tomorrow.sent : true", }, - ], - campaign_list: ["weekly_workshops"], - icon: "plh_images/icons/bell_white.svg", - }, - { - id: "w_stress_m_w_released_together", - click_action_list: [ { - trigger: "click", - action_id: "pop_up", - args: ["w_stress_m_w_released"], - _raw: "pop_up: w_stress_m_w_released", - _cleaned: "click | pop_up: w_stress_m_w_released", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, { - trigger: "click", - action_id: "set_field", - args: ["w_stress_m_w_released.sent", true], - _raw: "set_field: w_stress_m_w_released.sent : true", - _cleaned: "click | set_field: w_stress_m_w_released.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, - ], - priority: 4.3, - activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "do_workshops_together", - value: true, + field: "current_relative_day_number", + value: "2", }, }, - _raw: "get_field | do_workshops_together: true", + _raw: "get_field | current_relative_day_number : 2", }, { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "3", }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | current_relative_day_number : 3", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_stress_started", - value: false, + field: "current_relative_day_number", + value: "4", }, }, - _raw: "get_field | w_stress_started : false", + _raw: "get_field | current_relative_day_number : 4", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_stress_m_w_released.sent", - value: true, + field: "current_relative_day_number", + value: "5", }, }, - _raw: "get_field | w_stress_m_w_released.sent : true", + _raw: "get_field | current_relative_day_number : 5", }, ], campaign_list: ["weekly_workshops"], icon: "plh_images/icons/bell_white.svg", }, + ], + _xlsxPath: "plh_sheets_beta/plh_templating/campaigns/campaign_home_screen_quick_start.xlsx", + }, + { + flow_type: "data_list", + flow_subtype: "campaign_rows", + flow_name: "campaign_hs_w_instruct", + status: "released", + rows: [ { - id: "w_stress_m_something_fun", + id: "w_instruct_m_w_released", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_stress_m_something_fun"], - _raw: "pop_up: w_stress_m_something_fun", - _cleaned: "click | pop_up: w_stress_m_something_fun", + args: ["w_instruct_m_w_released"], + _raw: "pop_up: w_instruct_m_w_released", + _cleaned: "click | pop_up: w_instruct_m_w_released", }, { trigger: "click", action_id: "set_field", - args: ["w_stress_m_something_fun.sent", true], - _raw: "set_field: w_stress_m_something_fun.sent : true", - _cleaned: "click | set_field: w_stress_m_something_fun.sent : true", - }, - ], - priority: 4.4, + args: ["w_instruct_m_w_released.sent", true], + _raw: "set_field: w_instruct_m_w_released.sent : true", + _cleaned: "click | set_field: w_instruct_m_w_released.sent : true", + }, + ], + priority: 9.99, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "28", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "4", }, }, - _raw: "first_launch | before: 28 : day", + _raw: "get_field | current_workshop_number : 4", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_instruct_started", + value: false, + }, + }, + _raw: "get_field | w_instruct_started : false", }, ], deactivation_condition_list: [ @@ -2351,53 +2245,45 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_stress_m_something_fun.sent", + field: "w_instruct_m_w_released.sent", value: true, }, }, - _raw: "get_field | w_stress_m_something_fun.sent : true", + _raw: "get_field | w_instruct_m_w_released.sent : true", }, ], - campaign_list: ["parent_centre"], - icon: "plh_images/icons/smile_eyes_up_white.svg", + campaign_list: ["weekly_workshops"], + icon: "plh_images/icons/bell_white.svg", }, { - id: "w_stress_m_praise", + id: "w_instruct_m_relax", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_stress_m_praise"], - _raw: "pop_up: w_stress_m_praise", - _cleaned: "click | pop_up: w_stress_m_praise", + args: ["w_instruct_m_relax"], + _raw: "pop_up: w_instruct_m_relax", + _cleaned: "click | pop_up: w_instruct_m_relax", }, { trigger: "click", action_id: "set_field", - args: ["w_stress_m_praise.sent", true], - _raw: "set_field: w_stress_m_praise.sent : true", - _cleaned: "click | set_field: w_stress_m_praise.sent : true", + args: ["w_instruct_m_relax.sent", true], + _raw: "set_field: w_instruct_m_relax.sent : true", + _cleaned: "click | set_field: w_instruct_m_relax.sent : true", }, ], - priority: 4.5, + priority: 9.9, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "29", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "4", }, }, - _raw: "first_launch | before: 29 : day", + _raw: "get_field | current_workshop_number : 4", }, ], deactivation_condition_list: [ @@ -2405,63 +2291,45 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_stress_m_praise.sent", + field: "w_instruct_m_relax.sent", value: true, }, }, - _raw: "get_field | w_stress_m_praise.sent : true", + _raw: "get_field | w_instruct_m_relax.sent : true | before : 1 : day", }, ], - campaign_list: ["parent_centre"], - icon: "plh_images/icons/heart_white.svg", + campaign_list: ["parent_points"], + icon: "plh_images/icons/smile_eyes_down_white.svg", }, { - id: "w_stress_m_w_reminder", + id: "w_instruct_m_something_fun", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_stress_m_w_reminder"], - _raw: "pop_up: w_stress_m_w_reminder", - _cleaned: "click | pop_up: w_stress_m_w_reminder", + args: ["w_instruct_m_something_fun"], + _raw: "pop_up: w_instruct_m_something_fun", + _cleaned: "click | pop_up: w_instruct_m_something_fun", }, { trigger: "click", action_id: "set_field", - args: ["w_stress_m_w_reminder.sent", true], - _raw: "set_field: w_stress_m_w_reminder.sent : true", - _cleaned: "click | set_field: w_stress_m_w_reminder.sent : true", + args: ["w_instruct_m_something_fun.sent", true], + _raw: "set_field: w_instruct_m_something_fun.sent : true", + _cleaned: "click | set_field: w_instruct_m_something_fun.sent : true", }, ], - priority: 4.6, + priority: 9.8, activation_condition_list: [ - { - condition_type: "db_lookup", - condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "30", - unit: "day", - }, - }, - }, - _raw: "first_launch | before: 30 : day", - }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_stress_started", - value: false, + field: "current_workshop_number", + value: "4", }, }, - _raw: "get_field | w_stress_started : false", + _raw: "get_field | current_workshop_number : 4", }, ], deactivation_condition_list: [ @@ -2469,137 +2337,101 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_stress_m_w_reminder.sent", + field: "w_instruct_m_something_fun.sent", value: true, }, }, - _raw: "get_field | w_stress_m_w_reminder.sent : true", + _raw: "get_field | w_instruct_m_something_fun.sent : true", }, ], - campaign_list: ["weekly_workshops"], - icon: "plh_images/icons/bell_white.svg", + campaign_list: ["parent_centre"], + icon: "plh_images/icons/smile_eyes_up_white.svg", }, { - id: "w_stress_m_w_in_progress", + id: "w_instruct_m_praise", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_stress_m_w_in_progress"], - _raw: "pop_up: w_stress_m_w_in_progress", - _cleaned: "click | pop_up: w_stress_m_w_in_progress", + args: ["w_instruct_m_praise"], + _raw: "pop_up: w_instruct_m_praise", + _cleaned: "click | pop_up: w_instruct_m_praise", }, { trigger: "click", action_id: "set_field", - args: ["w_stress_m_w_in_progress.sent", true], - _raw: "set_field: w_stress_m_w_in_progress.sent : true", - _cleaned: "click | set_field: w_stress_m_w_in_progress.sent : true", + args: ["w_instruct_m_praise.sent", true], + _raw: "set_field: w_instruct_m_praise.sent : true", + _cleaned: "click | set_field: w_instruct_m_praise.sent : true", }, ], - priority: 4.7, + priority: 9.7, activation_condition_list: [ - { - condition_type: "db_lookup", - condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "30", - unit: "day", - }, - }, - }, - _raw: "first_launch | before: 30 : day", - }, - ], - deactivation_condition_list: [ - { - condition_type: "field_evaluation", - condition_args: { - field_evaluation: { - field: "w_stress_m_w_in_progress.sent", - value: true, - }, - }, - _raw: "get_field | w_stress_m_w_in_progress.sent : true", - }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_stress_started", - value: false, + field: "current_workshop_number", + value: "4", }, }, - _raw: "get_field | w_stress_started : false", + _raw: "get_field | current_workshop_number : 4", }, + ], + deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_stress_completed", + field: "w_instruct_m_praise.sent", value: true, }, }, - _raw: "get_field | w_stress_completed: true", + _raw: "get_field | w_instruct_m_praise.sent : true", }, ], - campaign_list: ["weekly_workshops"], - icon: "plh_images/icons/bell_white.svg", + campaign_list: ["parent_centre"], + icon: "plh_images/icons/heart_white.svg", }, { - id: "w_stress_m_hp_reminder", + id: "w_instruct_m_w_reminder", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_stress_m_hp_reminder"], - _raw: "pop_up: w_stress_m_hp_reminder", - _cleaned: "click | pop_up: w_stress_m_hp_reminder", + args: ["w_instruct_m_w_reminder"], + _raw: "pop_up: w_instruct_m_w_reminder", + _cleaned: "click | pop_up: w_instruct_m_w_reminder", }, { trigger: "click", action_id: "set_field", - args: ["w_stress_m_hp_reminder.sent", true], - _raw: "set_field: w_stress_m_hp_reminder.sent : true", - _cleaned: "click | set_field: w_stress_m_hp_reminder.sent : true", + args: ["w_instruct_m_w_reminder.sent", true], + _raw: "set_field: w_instruct_m_w_reminder.sent : true", + _cleaned: "click | set_field: w_instruct_m_w_reminder.sent : true", }, ], - priority: 4.8, + priority: 9.6, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "30", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "4", }, }, - _raw: "first_launch | before: 30 : day", + _raw: "get_field | current_workshop_number : 4", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_stress_completed", - value: true, + field: "w_instruct_started", + value: false, }, }, - _raw: "get_field | w_stress_completed: true", + _raw: "get_field | w_instruct_started : false", }, ], deactivation_condition_list: [ @@ -2607,117 +2439,75 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_stress_m_hp_reminder.sent", + field: "w_instruct_m_w_reminder.sent", value: true, }, }, - _raw: "get_field | w_stress_m_hp_reminder.sent : true", - }, - ], - campaign_list: ["parent_points"], - icon: "plh_images/icons/parent_heart_white.svg", - }, - { - id: "w_stress_m_parent_points_overview", - click_action_list: [ - { - trigger: "click", - action_id: "pop_up", - args: ["m_parent_points_overview"], - _raw: "pop_up: m_parent_points_overview", - _cleaned: "click | pop_up: m_parent_points_overview", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_stress_m_parent_points_overview.sent", true], - _raw: "set_field: w_stress_m_parent_points_overview.sent : true", - _cleaned: "click | set_field: w_stress_m_parent_points_overview.sent : true", + _raw: "get_field | w_instruct_m_w_reminder.sent : true", }, - ], - priority: 4.9, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "33", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "0", }, }, - _raw: "first_launch | before: 33 : day", + _raw: "get_field | current_relative_day_number : 0", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "no_parent_points_this_week", - value: false, + field: "current_relative_day_number", + value: "1", }, }, - _raw: "get_field | no_parent_points_this_week : false", + _raw: "get_field | current_relative_day_number : 1", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_stress_m_parent_points_overview.sent", - value: true, + field: "current_relative_day_number", + value: "2", }, }, - _raw: "get_field | w_stress_m_parent_points_overview.sent : true", + _raw: "get_field | current_relative_day_number : 2", }, ], - campaign_list: ["parent_points"], - icon: "plh_images/icons/star_white.svg", + campaign_list: ["weekly_workshops"], + icon: "plh_images/icons/bell_white.svg", }, { - id: "w_money_m_relax", + id: "w_instruct_m_w_in_pro", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_money_m_relax"], - _raw: "pop_up: w_money_m_relax", - _cleaned: "click | pop_up: w_money_m_relax", + args: ["w_instruct_m_w_in_pro"], + _raw: "pop_up: w_instruct_m_w_in_pro", + _cleaned: "click | pop_up: w_instruct_m_w_in_pro", }, { trigger: "click", action_id: "set_field", - args: ["w_money_m_relax.sent", true], - _raw: "set_field: w_money_m_relax.sent : true", - _cleaned: "click | set_field: w_money_m_relax.sent : true", + args: ["w_instruct_m_w_in_pro.sent", true], + _raw: "set_field: w_instruct_m_w_in_pro.sent : true", + _cleaned: "click | set_field: w_instruct_m_w_in_pro.sent : true", }, ], - priority: 5.1, + priority: 9.5, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "4", }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | current_workshop_number : 4", }, ], deactivation_condition_list: [ @@ -2725,165 +2515,105 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_money_m_relax.sent", + field: "w_instruct_m_w_in_pro.sent", value: true, }, }, - _raw: "get_field | w_money_m_relax.sent : true | within: 1 : day", + _raw: "get_field | w_instruct_m_w_in_pro.sent : true", }, { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "0", }, }, - _raw: "first_launch | before : 34 : day", - }, - ], - campaign_list: ["parent_points"], - icon: "plh_images/icons/smile_eyes_down_white.svg", - }, - { - id: "w_money_m_w_released_individual", - click_action_list: [ - { - trigger: "click", - action_id: "pop_up", - args: ["w_money_m_w_released"], - _raw: "pop_up: w_money_m_w_released", - _cleaned: "click | pop_up: w_money_m_w_released", + _raw: "get_field | current_relative_day_number : 0", }, - { - trigger: "click", - action_id: "set_field", - args: ["w_money_m_w_released.sent", true], - _raw: "set_field: w_money_m_w_released.sent : true", - _cleaned: "click | set_field: w_money_m_w_released.sent : true", - }, - ], - priority: 5.2, - activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "do_workshops_together", - value: false, + field: "current_relative_day_number", + value: "1", }, }, - _raw: "get_field | do_workshops_together: false", + _raw: "get_field | current_relative_day_number : 1", }, { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "2", }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | current_relative_day_number : 2", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_money_started", + field: "w_instruct_started", value: false, }, }, - _raw: "get_field | w_money_started : false", + _raw: "get_field | w_instruct_started : false", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_money_m_w_released.sent", + field: "w_instruct_completed", value: true, }, }, - _raw: "get_field | w_money_m_w_released.sent : true", + _raw: "get_field | w_instruct_completed: true", }, ], campaign_list: ["weekly_workshops"], icon: "plh_images/icons/bell_white.svg", }, { - id: "w_money_m_w_released_together", + id: "w_instruct_m_hp_reminder", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_money_m_w_released"], - _raw: "pop_up: w_money_m_w_released", - _cleaned: "click | pop_up: w_money_m_w_released", + args: ["w_instruct_m_hp_reminder"], + _raw: "pop_up: w_instruct_m_hp_reminder", + _cleaned: "click | pop_up: w_instruct_m_hp_reminder", }, { trigger: "click", action_id: "set_field", - args: ["w_money_m_w_released.sent", true], - _raw: "set_field: w_money_m_w_released.sent : true", - _cleaned: "click | set_field: w_money_m_w_released.sent : true", + args: ["w_instruct_m_hp_reminder.sent", true], + _raw: "set_field: w_instruct_m_hp_reminder.sent : true", + _cleaned: "click | set_field: w_instruct_m_hp_reminder.sent : true", }, ], - priority: 5.3, + priority: 9.4, activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "do_workshops_together", - value: true, - }, - }, - _raw: "get_field | do_workshops_together: true", - }, - { - condition_type: "db_lookup", - condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field: "current_workshop_number", + value: "4", }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | current_workshop_number : 4", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_money_started", - value: false, + field: "w_instruct_completed", + value: true, }, }, - _raw: "get_field | w_money_started : false", + _raw: "get_field | w_instruct_completed: true", }, ], deactivation_condition_list: [ @@ -2891,107 +2621,85 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_money_m_w_released.sent", + field: "w_instruct_m_hp_reminder.sent", value: true, }, }, - _raw: "get_field | w_money_m_w_released.sent : true", + _raw: "get_field | w_instruct_m_hp_reminder.sent : true", }, - ], - campaign_list: ["weekly_workshops"], - icon: "plh_images/icons/bell_white.svg", - }, - { - id: "w_money_m_something_fun", - click_action_list: [ { - trigger: "click", - action_id: "pop_up", - args: ["w_money_m_something_fun"], - _raw: "pop_up: w_money_m_something_fun", - _cleaned: "click | pop_up: w_money_m_something_fun", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, { - trigger: "click", - action_id: "set_field", - args: ["w_money_m_something_fun.sent", true], - _raw: "set_field: w_money_m_something_fun.sent : true", - _cleaned: "click | set_field: w_money_m_something_fun.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, - ], - priority: 5.4, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "28", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "2", }, }, - _raw: "first_launch | before: 28 : day", + _raw: "get_field | current_relative_day_number : 2", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_money_m_something_fun.sent", - value: true, + field: "current_relative_day_number", + value: "3", }, }, - _raw: "get_field | w_money_m_something_fun.sent : true", + _raw: "get_field | current_relative_day_number : 3", }, ], - campaign_list: ["parent_centre"], - icon: "plh_images/icons/smile_eyes_up_white.svg", + campaign_list: ["parent_points"], + icon: "plh_images/icons/parent_heart_white.svg", }, { - id: "w_money_m_praise", + id: "w_instruct_m_parent_points_overview", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_money_m_praise"], - _raw: "pop_up: w_money_m_praise", - _cleaned: "click | pop_up: w_money_m_praise", + args: ["m_parent_points_overview"], + _raw: "pop_up: m_parent_points_overview", + _cleaned: "click | pop_up: m_parent_points_overview", }, { trigger: "click", action_id: "set_field", - args: ["w_money_m_praise.sent", true], - _raw: "set_field: w_money_m_praise.sent : true", - _cleaned: "click | set_field: w_money_m_praise.sent : true", + args: ["w_instruct_m_parent_points_overview.sent", true], + _raw: "set_field: w_instruct_m_parent_points_overview.sent : true", + _cleaned: "click | set_field: w_instruct_m_parent_points_overview.sent : true", }, ], - priority: 5.5, + priority: 9.3, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "29", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "4", }, }, - _raw: "first_launch | before: 29 : day", + _raw: "get_field | current_workshop_number : 4", }, ], deactivation_condition_list: [ @@ -2999,265 +2707,211 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_money_m_praise.sent", + field: "w_instruct_m_parent_points_overview.sent", value: true, }, }, - _raw: "get_field | w_money_m_praise.sent : true", + _raw: "get_field | w_instruct_m_parent_points_overview.sent : true", }, - ], - campaign_list: ["parent_centre"], - icon: "plh_images/icons/heart_white.svg", - }, - { - id: "w_money_m_w_reminder", - click_action_list: [ { - trigger: "click", - action_id: "pop_up", - args: ["w_money_m_w_reminder"], - _raw: "pop_up: w_money_m_w_reminder", - _cleaned: "click | pop_up: w_money_m_w_reminder", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, { - trigger: "click", - action_id: "set_field", - args: ["w_money_m_w_reminder.sent", true], - _raw: "set_field: w_money_m_w_reminder.sent : true", - _cleaned: "click | set_field: w_money_m_w_reminder.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, - ], - priority: 5.6, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "30", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "2", }, }, - _raw: "first_launch | before: 30 : day", + _raw: "get_field | current_relative_day_number : 2", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_money_started", - value: false, + field: "current_relative_day_number", + value: "3", }, }, - _raw: "get_field | w_money_started : false", + _raw: "get_field | current_relative_day_number : 3", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_money_m_w_reminder.sent", - value: true, + field: "current_relative_day_number", + value: "4", }, }, - _raw: "get_field | w_money_m_w_reminder.sent : true", + _raw: "get_field | current_relative_day_number : 4", }, ], - campaign_list: ["weekly_workshops"], - icon: "plh_images/icons/bell_white.svg", + campaign_list: ["parent_points"], + icon: "plh_images/icons/star_white.svg", }, { - id: "w_money_m_w_in_progress", + id: "w_instruct_hp_review", click_action_list: [ { trigger: "click", - action_id: "pop_up", - args: ["w_money_m_w_in_progress"], - _raw: "pop_up: w_money_m_w_in_progress", - _cleaned: "click | pop_up: w_money_m_w_in_progress", + action_id: "go_to", + args: ["w_instruct_hp_review"], + _raw: "go_to: w_instruct_hp_review", + _cleaned: "click | go_to: w_instruct_hp_review", }, { trigger: "click", action_id: "set_field", - args: ["w_money_m_w_in_progress.sent", true], - _raw: "set_field: w_money_m_w_in_progress.sent : true", - _cleaned: "click | set_field: w_money_m_w_in_progress.sent : true", + args: ["w_instruct_hp_review.sent", true], + _raw: "set_field: w_instruct_hp_review.sent : true", + _cleaned: "click | set_field: w_instruct_hp_review.sent : true", }, ], - priority: 5.7, + priority: 9.2, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "30", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "4", }, }, - _raw: "first_launch | before: 30 : day", + _raw: "get_field | current_workshop_number : 4", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_money_m_w_in_progress.sent", + field: "w_instruct_completed", value: true, }, }, - _raw: "get_field | w_money_m_w_in_progress.sent : true", + _raw: "get_field | w_instruct_completed : true", }, + ], + deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_money_started", - value: false, + field: "w_instruct_hp_review_completed", + value: true, }, }, - _raw: "get_field | w_money_started : false", + _raw: "get_field | w_instruct_hp_review_completed : true", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_money_completed", - value: true, + field: "current_relative_day_number", + value: "0", }, }, - _raw: "get_field | w_money_completed: true", - }, - ], - campaign_list: ["weekly_workshops"], - icon: "plh_images/icons/bell_white.svg", - }, - { - id: "w_money_m_hp_reminder", - click_action_list: [ - { - trigger: "click", - action_id: "pop_up", - args: ["w_money_m_hp_reminder"], - _raw: "pop_up: w_money_m_hp_reminder", - _cleaned: "click | pop_up: w_money_m_hp_reminder", + _raw: "get_field | current_relative_day_number : 0", }, { - trigger: "click", - action_id: "set_field", - args: ["w_money_m_hp_reminder.sent", true], - _raw: "set_field: w_money_m_hp_reminder.sent : true", - _cleaned: "click | set_field: w_money_m_hp_reminder.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, - ], - priority: 5.8, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "30", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "2", }, }, - _raw: "first_launch | before: 30 : day", + _raw: "get_field | current_relative_day_number : 2", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_money_completed", - value: true, + field: "current_relative_day_number", + value: "3", }, }, - _raw: "get_field | w_money_completed: true", + _raw: "get_field | current_relative_day_number : 3", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_money_m_hp_reminder.sent", - value: true, + field: "current_relative_day_number", + value: "4", }, }, - _raw: "get_field | w_money_m_hp_reminder.sent : true", + _raw: "get_field | current_relative_day_number : 4", }, ], - campaign_list: ["parent_points"], + campaign_list: ["parent_centre"], icon: "plh_images/icons/parent_heart_white.svg", }, { - id: "w_money_m_parent_points_overview", + id: "w_instruct_m_w_tomorrow", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["m_parent_points_overview"], - _raw: "pop_up: m_parent_points_overview", - _cleaned: "click | pop_up: m_parent_points_overview", + args: ["w_instruct_m_w_tomorrow"], + _raw: "pop_up: w_instruct_m_w_tomorrow", + _cleaned: "click | pop_up: w_instruct_m_w_tomorrow", }, { trigger: "click", action_id: "set_field", - args: ["w_money_m_parent_points_overview.sent", true], - _raw: "set_field: w_money_m_parent_points_overview.sent : true", - _cleaned: "click | set_field: w_money_m_parent_points_overview.sent : true", + args: ["w_instruct_m_w_tomorrow.sent", true], + _raw: "set_field: w_instruct_m_w_tomorrow.sent : true", + _cleaned: "click | set_field: w_instruct_m_w_tomorrow.sent : true", }, ], - priority: 5.9, + priority: 9.1, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "33", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "4", }, }, - _raw: "first_launch | before: 33 : day", + _raw: "get_field | current_workshop_number : 4", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "no_parent_points_this_week", + field: "w_1on1_completed", value: false, }, }, - _raw: "get_field | no_parent_points_this_week : false", + _raw: "get_field | w_1on1_completed : false", }, ], deactivation_condition_list: [ @@ -3265,135 +2919,124 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_money_m_parent_points_overview.sent", + field: "w_instruct_m_w_tomorrow.sent", value: true, }, }, - _raw: "get_field | w_money_m_parent_points_overview.sent : true", + _raw: "get_field | w_instruct_m_w_tomorrow.sent : true", }, - ], - campaign_list: ["parent_points"], - icon: "plh_images/icons/star_white.svg", - }, - { - id: "w_rules_m_relax", - click_action_list: [ { - trigger: "click", - action_id: "pop_up", - args: ["w_rules_m_relax"], - _raw: "pop_up: w_rules_m_relax", - _cleaned: "click | pop_up: w_rules_m_relax", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, { - trigger: "click", - action_id: "set_field", - args: ["w_rules_m_relax.sent", true], - _raw: "set_field: w_rules_m_relax.sent : true", - _cleaned: "click | set_field: w_rules_m_relax.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, - ], - priority: 6.1, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "2", }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | current_relative_day_number : 2", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_rules_m_relax.sent", - value: true, + field: "current_relative_day_number", + value: "3", }, }, - _raw: "get_field | w_rules_m_relax.sent : true | within: 1 : day", + _raw: "get_field | current_relative_day_number : 3", }, { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "4", + }, + }, + _raw: "get_field | current_relative_day_number : 4", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "5", }, }, - _raw: "first_launch | before : 34 : day", + _raw: "get_field | current_relative_day_number : 5", }, ], - campaign_list: ["parent_points"], - icon: "plh_images/icons/smile_eyes_down_white.svg", + campaign_list: ["weekly_workshops"], + icon: "plh_images/icons/bell_white.svg", }, + ], + _xlsxPath: "plh_sheets_beta/plh_templating/campaigns/campaign_home_screen_quick_start.xlsx", + }, + { + flow_type: "data_list", + flow_subtype: "campaign_rows", + flow_name: "campaign_hs_w_stress", + status: "released", + rows: [ { - id: "w_rules_m_w_released_individual", + id: "w_stress_m_w_released", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_rules_m_w_released"], - _raw: "pop_up: w_rules_m_w_released", - _cleaned: "click | pop_up: w_rules_m_w_released", + args: ["w_stress_m_w_released"], + _raw: "pop_up: w_stress_m_w_released", + _cleaned: "click | pop_up: w_stress_m_w_released", }, { trigger: "click", action_id: "set_field", - args: ["w_rules_m_w_released.sent", true], - _raw: "set_field: w_rules_m_w_released.sent : true", - _cleaned: "click | set_field: w_rules_m_w_released.sent : true", + args: ["w_stress_m_w_released.sent", true], + _raw: "set_field: w_stress_m_w_released.sent : true", + _cleaned: "click | set_field: w_stress_m_w_released.sent : true", }, ], - priority: 6.2, + priority: 8.99, activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "do_workshops_together", - value: false, + field: "current_workshop_number", + value: "5", }, }, - _raw: "get_field | do_workshops_together: false", + _raw: "get_field | current_workshop_number : 5", }, { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "w_stress_started", + value: false, }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | w_stress_started : false", }, ], deactivation_condition_list: [ @@ -3401,63 +3044,45 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_rules_m_w_released.sent", + field: "w_stress_m_w_released.sent", value: true, }, }, - _raw: "get_field | w_rules_m_w_released.sent : true", + _raw: "get_field | w_stress_m_w_released.sent : true", }, ], campaign_list: ["weekly_workshops"], icon: "plh_images/icons/bell_white.svg", }, { - id: "w_rules_m_w_released_together", + id: "w_stress_m_relax", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_rules_m_w_released"], - _raw: "pop_up: w_rules_m_w_released", - _cleaned: "click | pop_up: w_rules_m_w_released", + args: ["w_stress_m_relax"], + _raw: "pop_up: w_stress_m_relax", + _cleaned: "click | pop_up: w_stress_m_relax", }, { trigger: "click", action_id: "set_field", - args: ["w_rules_m_w_released.sent", true], - _raw: "set_field: w_rules_m_w_released.sent : true", - _cleaned: "click | set_field: w_rules_m_w_released.sent : true", + args: ["w_stress_m_relax.sent", true], + _raw: "set_field: w_stress_m_relax.sent : true", + _cleaned: "click | set_field: w_stress_m_relax.sent : true", }, ], - priority: 6.3, + priority: 8.9, activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "do_workshops_together", - value: true, - }, - }, - _raw: "get_field | do_workshops_together: true", - }, - { - condition_type: "db_lookup", - condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field: "current_workshop_number", + value: "5", }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | current_workshop_number : 5", }, ], deactivation_condition_list: [ @@ -3465,53 +3090,45 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_rules_m_w_released.sent", + field: "w_stress_m_relax.sent", value: true, }, }, - _raw: "get_field | w_rules_m_w_released.sent : true", + _raw: "get_field | w_stress_m_relax.sent : true | before : 1 : day", }, ], - campaign_list: ["weekly_workshops"], - icon: "plh_images/icons/bell_white.svg", + campaign_list: ["parent_points"], + icon: "plh_images/icons/smile_eyes_down_white.svg", }, { - id: "w_rules_m_something_fun", + id: "w_stress_m_something_fun", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_rules_m_something_fun"], - _raw: "pop_up: w_rules_m_something_fun", - _cleaned: "click | pop_up: w_rules_m_something_fun", - }, + args: ["w_stress_m_something_fun"], + _raw: "pop_up: w_stress_m_something_fun", + _cleaned: "click | pop_up: w_stress_m_something_fun", + }, { trigger: "click", action_id: "set_field", - args: ["w_rules_m_something_fun.sent", true], - _raw: "set_field: w_rules_m_something_fun.sent : true", - _cleaned: "click | set_field: w_rules_m_something_fun.sent : true", + args: ["w_stress_m_something_fun.sent", true], + _raw: "set_field: w_stress_m_something_fun.sent : true", + _cleaned: "click | set_field: w_stress_m_something_fun.sent : true", }, ], - priority: 6.4, + priority: 8.8, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "28", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "5", }, }, - _raw: "first_launch | before: 28 : day", + _raw: "get_field | current_workshop_number : 5", }, ], deactivation_condition_list: [ @@ -3519,53 +3136,65 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_rules_m_something_fun.sent", + field: "w_stress_m_something_fun.sent", value: true, }, }, - _raw: "get_field | w_rules_m_something_fun.sent : true", + _raw: "get_field | w_stress_m_something_fun.sent : true", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, ], campaign_list: ["parent_centre"], icon: "plh_images/icons/smile_eyes_up_white.svg", }, { - id: "w_rules_m_praise", + id: "w_stress_m_praise", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_rules_m_praise"], - _raw: "pop_up: w_rules_m_praise", - _cleaned: "click | pop_up: w_rules_m_praise", + args: ["w_stress_m_praise"], + _raw: "pop_up: w_stress_m_praise", + _cleaned: "click | pop_up: w_stress_m_praise", }, { trigger: "click", action_id: "set_field", - args: ["w_rules_m_praise.sent", true], - _raw: "set_field: w_rules_m_praise.sent : true", - _cleaned: "click | set_field: w_rules_m_praise.sent : true", + args: ["w_stress_m_praise.sent", true], + _raw: "set_field: w_stress_m_praise.sent : true", + _cleaned: "click | set_field: w_stress_m_praise.sent : true", }, ], - priority: 6.5, + priority: 8.7, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "29", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "5", }, }, - _raw: "first_launch | before: 29 : day", + _raw: "get_field | current_workshop_number : 5", }, ], deactivation_condition_list: [ @@ -3573,63 +3202,85 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_rules_m_praise.sent", + field: "w_stress_m_praise.sent", value: true, }, }, - _raw: "get_field | w_rules_m_praise.sent : true", + _raw: "get_field | w_stress_m_praise.sent : true", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "2", + }, + }, + _raw: "get_field | current_relative_day_number : 2", }, ], campaign_list: ["parent_centre"], icon: "plh_images/icons/heart_white.svg", }, { - id: "w_rules_m_w_reminder", + id: "w_stress_m_w_reminder", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_rules_m_w_reminder"], - _raw: "pop_up: w_rules_m_w_reminder", - _cleaned: "click | pop_up: w_rules_m_w_reminder", + args: ["w_stress_m_w_reminder"], + _raw: "pop_up: w_stress_m_w_reminder", + _cleaned: "click | pop_up: w_stress_m_w_reminder", }, { trigger: "click", action_id: "set_field", - args: ["w_rules_m_w_reminder.sent", true], - _raw: "set_field: w_rules_m_w_reminder.sent : true", - _cleaned: "click | set_field: w_rules_m_w_reminder.sent : true", + args: ["w_stress_m_w_reminder.sent", true], + _raw: "set_field: w_stress_m_w_reminder.sent : true", + _cleaned: "click | set_field: w_stress_m_w_reminder.sent : true", }, ], - priority: 6.6, + priority: 8.6, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "30", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "5", }, }, - _raw: "first_launch | before: 30 : day", + _raw: "get_field | current_workshop_number : 5", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_rules_started", + field: "w_stress_started", value: false, }, }, - _raw: "get_field | w_rules_started : false", + _raw: "get_field | w_stress_started : false", }, ], deactivation_condition_list: [ @@ -3637,53 +3288,75 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_rules_m_w_reminder.sent", + field: "w_stress_m_w_reminder.sent", value: true, }, }, - _raw: "get_field | w_rules_m_w_reminder.sent : true", + _raw: "get_field | w_stress_m_w_reminder.sent : true", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "2", + }, + }, + _raw: "get_field | current_relative_day_number : 2", }, ], campaign_list: ["weekly_workshops"], icon: "plh_images/icons/bell_white.svg", }, { - id: "w_rules_m_w_in_progress", + id: "w_stress_m_w_in_progress", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_rules_m_w_in_progress"], - _raw: "pop_up: w_rules_m_w_in_progress", - _cleaned: "click | pop_up: w_rules_m_w_in_progress", + args: ["w_stress_m_w_in_progress"], + _raw: "pop_up: w_stress_m_w_in_progress", + _cleaned: "click | pop_up: w_stress_m_w_in_progress", }, { trigger: "click", action_id: "set_field", - args: ["w_rules_m_w_in_progress.sent", true], - _raw: "set_field: w_rules_m_w_in_progress.sent : true", - _cleaned: "click | set_field: w_rules_m_w_in_progress.sent : true", + args: ["w_stress_m_w_in_progress.sent", true], + _raw: "set_field: w_stress_m_w_in_progress.sent : true", + _cleaned: "click | set_field: w_stress_m_w_in_progress.sent : true", }, ], - priority: 6.7, + priority: 8.5, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "30", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "5", }, }, - _raw: "first_launch | before: 30 : day", + _raw: "get_field | current_workshop_number : 5", }, ], deactivation_condition_list: [ @@ -3691,83 +3364,105 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_rules_m_w_in_progress.sent", + field: "w_stress_m_w_in_progress.sent", value: true, }, }, - _raw: "get_field | w_rules_m_w_in_progress.sent : true", + _raw: "get_field | w_stress_m_w_in_progress.sent : true", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_rules_started", + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "2", + }, + }, + _raw: "get_field | current_relative_day_number : 2", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_stress_started", value: false, }, }, - _raw: "get_field | w_rules_started : false", + _raw: "get_field | w_stress_started : false", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_rules_completed", + field: "w_stress_completed", value: true, }, }, - _raw: "get_field | w_rules_completed: true", + _raw: "get_field | w_stress_completed: true", }, ], campaign_list: ["weekly_workshops"], icon: "plh_images/icons/bell_white.svg", }, { - id: "w_rules_m_hp_reminder", + id: "w_stress_m_hp_reminder", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_rules_m_hp_reminder"], - _raw: "pop_up: w_rules_m_hp_reminder", - _cleaned: "click | pop_up: w_rules_m_hp_reminder", + args: ["w_stress_m_hp_reminder"], + _raw: "pop_up: w_stress_m_hp_reminder", + _cleaned: "click | pop_up: w_stress_m_hp_reminder", }, { trigger: "click", action_id: "set_field", - args: ["w_rules_m_hp_reminder.sent", true], - _raw: "set_field: w_rules_m_hp_reminder.sent : true", - _cleaned: "click | set_field: w_rules_m_hp_reminder.sent : true", + args: ["w_stress_m_hp_reminder.sent", true], + _raw: "set_field: w_stress_m_hp_reminder.sent : true", + _cleaned: "click | set_field: w_stress_m_hp_reminder.sent : true", }, ], - priority: 6.8, + priority: 8.4, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "30", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "5", }, }, - _raw: "first_launch | before: 30 : day", + _raw: "get_field | current_workshop_number : 5", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_rules_completed", + field: "w_stress_completed", value: true, }, }, - _raw: "get_field | w_rules_completed: true", + _raw: "get_field | w_stress_completed : true", }, ], deactivation_condition_list: [ @@ -3775,117 +3470,85 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_rules_m_hp_reminder.sent", + field: "w_stress_m_hp_reminder.sent", value: true, }, }, - _raw: "get_field | w_rules_m_hp_reminder.sent : true", - }, - ], - campaign_list: ["parent_points"], - icon: "plh_images/icons/parent_heart_white.svg", - }, - { - id: "w_rules_m_parent_points_overview", - click_action_list: [ - { - trigger: "click", - action_id: "pop_up", - args: ["m_parent_points_overview"], - _raw: "pop_up: m_parent_points_overview", - _cleaned: "click | pop_up: m_parent_points_overview", + _raw: "get_field | w_stress_m_hp_reminder.sent : true", }, { - trigger: "click", - action_id: "set_field", - args: ["w_rules_m_parent_points_overview.sent", true], - _raw: "set_field: w_rules_m_parent_points_overview.sent : true", - _cleaned: "click | set_field: w_rules_m_parent_points_overview.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, - ], - priority: 6.9, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "33", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "1", }, }, - _raw: "first_launch | before: 33 : day", + _raw: "get_field | current_relative_day_number : 1", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "no_parent_points_this_week", - value: false, + field: "current_relative_day_number", + value: "2", }, }, - _raw: "get_field | no_parent_points_this_week : false", + _raw: "get_field | current_relative_day_number : 2", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_rules_m_parent_points_overview.sent", - value: true, + field: "current_relative_day_number", + value: "3", }, }, - _raw: "get_field | w_rules_m_parent_points_overview.sent : true", + _raw: "get_field | current_relative_day_number : 3", }, ], campaign_list: ["parent_points"], - icon: "plh_images/icons/star_white.svg", + icon: "plh_images/icons/parent_heart_white.svg", }, { - id: "w_consequence_m_relax", + id: "w_stress_m_parent_points_overview", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_consequence_m_relax"], - _raw: "pop_up: w_consequence_m_relax", - _cleaned: "click | pop_up: w_consequence_m_relax", + args: ["m_parent_points_overview"], + _raw: "pop_up: m_parent_points_overview", + _cleaned: "click | pop_up: m_parent_points_overview", }, { trigger: "click", action_id: "set_field", - args: ["w_consequence_m_relax.sent", true], - _raw: "set_field: w_consequence_m_relax.sent : true", - _cleaned: "click | set_field: w_consequence_m_relax.sent : true", + args: ["w_stress_m_parent_points_overview.sent", true], + _raw: "set_field: w_stress_m_parent_points_overview.sent : true", + _cleaned: "click | set_field: w_stress_m_parent_points_overview.sent : true", }, ], - priority: 7.1, + priority: 8.3, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "5", }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | current_workshop_number : 5", }, ], deactivation_condition_list: [ @@ -3893,145 +3556,105 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_consequence_m_relax.sent", + field: "w_stress_m_parent_points_overview.sent", value: true, }, }, - _raw: "get_field | w_consequence_m_relax.sent : true | within: 1 : day", + _raw: "get_field | w_stress_m_parent_points_overview.sent : true", }, { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "0", }, }, - _raw: "first_launch | before : 34 : day", - }, - ], - campaign_list: ["parent_points"], - icon: "plh_images/icons/smile_eyes_down_white.svg", - }, - { - id: "w_consequence_m_w_released_individual", - click_action_list: [ - { - trigger: "click", - action_id: "pop_up", - args: ["w_consequence_m_w_rel"], - _raw: "pop_up: w_consequence_m_w_rel", - _cleaned: "click | pop_up: w_consequence_m_w_rel", + _raw: "get_field | current_relative_day_number : 0", }, { - trigger: "click", - action_id: "set_field", - args: ["w_consequence_m_w_rel.sent", true], - _raw: "set_field: w_consequence_m_w_rel.sent : true", - _cleaned: "click | set_field: w_consequence_m_w_rel.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, - ], - priority: 7.2, - activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "do_workshops_together", - value: false, + field: "current_relative_day_number", + value: "2", }, }, - _raw: "get_field | do_workshops_together: false", + _raw: "get_field | current_relative_day_number : 2", }, { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "3", }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | current_relative_day_number : 3", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_consequence_m_w_rel.sent", - value: true, + field: "current_relative_day_number", + value: "4", }, }, - _raw: "get_field | w_consequence_m_w_rel.sent : true", + _raw: "get_field | current_relative_day_number : 4", }, ], - campaign_list: ["weekly_workshops"], - icon: "plh_images/icons/bell_white.svg", + campaign_list: ["parent_points"], + icon: "plh_images/icons/star_white.svg", }, { - id: "w_consequence_m_w_released_together", + id: "w_stress_hp_review", click_action_list: [ { trigger: "click", - action_id: "pop_up", - args: ["w_consequence_m_w_rel"], - _raw: "pop_up: w_consequence_m_w_rel", - _cleaned: "click | pop_up: w_consequence_m_w_rel", + action_id: "go_to", + args: ["w_stress_hp_review"], + _raw: "go_to: w_stress_hp_review", + _cleaned: "click | go_to: w_stress_hp_review", }, { trigger: "click", action_id: "set_field", - args: ["w_consequence_m_w_rel.sent", true], - _raw: "set_field: w_consequence_m_w_rel.sent : true", - _cleaned: "click | set_field: w_consequence_m_w_rel.sent : true", + args: ["w_stress_hp_review.sent", true], + _raw: "set_field: w_stress_hp_review.sent : true", + _cleaned: "click | set_field: w_stress_hp_review.sent : true", }, ], - priority: 7.3, + priority: 8.2, activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "do_workshops_together", - value: true, + field: "current_workshop_number", + value: "5", }, }, - _raw: "get_field | do_workshops_together: true", + _raw: "get_field | current_workshop_number : 5", }, { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "w_stress_completed", + value: true, }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | w_stress_completed : true", }, ], deactivation_condition_list: [ @@ -4039,171 +3662,105 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_consequence_m_w_rel.sent", + field: "w_stress_hp_review_completed", value: true, }, }, - _raw: "get_field | w_consequence_m_w_rel.sent : true", - }, - ], - campaign_list: ["weekly_workshops"], - icon: "plh_images/icons/bell_white.svg", - }, - { - id: "w_consequence_m_something_fun", - click_action_list: [ - { - trigger: "click", - action_id: "pop_up", - args: ["w_consequence_m_something_fun"], - _raw: "pop_up: w_consequence_m_something_fun", - _cleaned: "click | pop_up: w_consequence_m_something_fun", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_consequence_m_something_fun.sent", true], - _raw: "set_field: w_consequence_m_something_fun.sent : true", - _cleaned: "click | set_field: w_consequence_m_something_fun.sent : true", + _raw: "get_field | w_stress_hp_review_completed : true", }, - ], - priority: 7.4, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "28", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "0", }, }, - _raw: "first_launch | before: 28 : day", + _raw: "get_field | current_relative_day_number : 0", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_consequence_m_something_fun.sent", - value: true, + field: "current_relative_day_number", + value: "1", }, }, - _raw: "get_field | w_consequence_m_something_fun.sent : true", - }, - ], - campaign_list: ["parent_centre"], - icon: "plh_images/icons/smile_eyes_up_white.svg", - }, - { - id: "w_consequence_m_praise", - click_action_list: [ - { - trigger: "click", - action_id: "pop_up", - args: ["w_consequence_m_praise"], - _raw: "pop_up: w_consequence_m_praise", - _cleaned: "click | pop_up: w_consequence_m_praise", + _raw: "get_field | current_relative_day_number : 1", }, { - trigger: "click", - action_id: "set_field", - args: ["w_consequence_m_praise.sent", true], - _raw: "set_field: w_consequence_m_praise.sent : true", - _cleaned: "click | set_field: w_consequence_m_praise.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "2", + }, + }, + _raw: "get_field | current_relative_day_number : 2", }, - ], - priority: 7.5, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "29", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "3", }, }, - _raw: "first_launch | before: 29 : day", + _raw: "get_field | current_relative_day_number : 3", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_consequence_m_praise.sent", - value: true, + field: "current_relative_day_number", + value: "4", }, }, - _raw: "get_field | w_consequence_m_praise.sent : true", + _raw: "get_field | current_relative_day_number : 4", }, ], campaign_list: ["parent_centre"], - icon: "plh_images/icons/heart_white.svg", + icon: "plh_images/icons/parent_heart_white.svg", }, { - id: "w_consequence_m_w_rem", + id: "w_stress_m_w_tomorrow", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_consequence_m_w_rem"], - _raw: "pop_up: w_consequence_m_w_rem", - _cleaned: "click | pop_up: w_consequence_m_w_rem", + args: ["w_stress_m_w_tomorrow"], + _raw: "pop_up: w_stress_m_w_tomorrow", + _cleaned: "click | pop_up: w_stress_m_w_tomorrow", }, { trigger: "click", action_id: "set_field", - args: ["w_consequence_m_w_rem.sent", true], - _raw: "set_field: w_consequence_m_w_rem.sent : true", - _cleaned: "click | set_field: w_consequence_m_w_rem.sent : true", + args: ["w_stress_m_w_tomorrow.sent", true], + _raw: "set_field: w_stress_m_w_tomorrow.sent : true", + _cleaned: "click | set_field: w_stress_m_w_tomorrow.sent : true", }, ], - priority: 7.6, + priority: 8.1, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "30", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "5", }, }, - _raw: "first_launch | before: 30 : day", + _raw: "get_field | current_workshop_number : 5", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_consequence_started", + field: "w_stress_completed", value: false, }, }, - _raw: "get_field | w_consequence_started : false", + _raw: "get_field | w_stress_completed : false", }, ], deactivation_condition_list: [ @@ -4211,137 +3768,124 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_consequence_m_w_rem.sent", + field: "w_stress_m_w_tomorrow.sent", value: true, }, }, - _raw: "get_field | w_consequence_m_w_rem.sent : true", - }, - ], - campaign_list: ["weekly_workshops"], - icon: "plh_images/icons/bell_white.svg", - }, - { - id: "w_consequence_m_w_in_pro", - click_action_list: [ - { - trigger: "click", - action_id: "pop_up", - args: ["w_consequence_m_w_in_pro"], - _raw: "pop_up: w_consequence_m_w_in_pro", - _cleaned: "click | pop_up: w_consequence_m_w_in_pro", + _raw: "get_field | w_stress_m_w_tomorrow.sent : true", }, { - trigger: "click", - action_id: "set_field", - args: ["w_consequence_m_w_in_pro.sent", true], - _raw: "set_field: w_consequence_m_w_in_pro.sent : true", - _cleaned: "click | set_field: w_consequence_m_w_in_pro.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, - ], - priority: 7.7, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "30", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "1", }, }, - _raw: "first_launch | before: 30 : day", + _raw: "get_field | current_relative_day_number : 1", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_consequence_m_w_in_pro.sent", - value: true, + field: "current_relative_day_number", + value: "2", }, }, - _raw: "get_field | w_consequence_m_w_in_pro.sent : true", + _raw: "get_field | current_relative_day_number : 2", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_consequence_started", - value: false, + field: "current_relative_day_number", + value: "3", }, }, - _raw: "get_field | w_consequence_started : false", + _raw: "get_field | current_relative_day_number : 3", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_consequence_completed", - value: true, + field: "current_relative_day_number", + value: "4", }, }, - _raw: "get_field | w_consequence_completed: true", + _raw: "get_field | current_relative_day_number : 4", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "5", + }, + }, + _raw: "get_field | current_relative_day_number : 5", }, ], campaign_list: ["weekly_workshops"], icon: "plh_images/icons/bell_white.svg", }, + ], + _xlsxPath: "plh_sheets_beta/plh_templating/campaigns/campaign_home_screen_quick_start.xlsx", + }, + { + flow_type: "data_list", + flow_subtype: "campaign_rows", + flow_name: "campaign_hs_w_money", + status: "released", + rows: [ { - id: "w_consequence_m_hp_reminder", + id: "w_money_m_w_released", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_consequence_m_hp_reminder"], - _raw: "pop_up: w_consequence_m_hp_reminder", - _cleaned: "click | pop_up: w_consequence_m_hp_reminder", + args: ["w_money_m_w_released"], + _raw: "pop_up: w_money_m_w_released", + _cleaned: "click | pop_up: w_money_m_w_released", }, { trigger: "click", action_id: "set_field", - args: ["w_consequence_m_hp_reminder.sent", true], - _raw: "set_field: w_consequence_m_hp_reminder.sent : true", - _cleaned: "click | set_field: w_consequence_m_hp_reminder.sent : true", + args: ["w_money_m_w_released.sent", true], + _raw: "set_field: w_money_m_w_released.sent : true", + _cleaned: "click | set_field: w_money_m_w_released.sent : true", }, ], - priority: 7.8, + priority: 7.99, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "30", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "6", }, }, - _raw: "first_launch | before: 30 : day", + _raw: "get_field | current_workshop_number : 6", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_consequence_completed", - value: true, + field: "w_money_started", + value: false, }, }, - _raw: "get_field | w_consequence_completed: true", + _raw: "get_field | w_money_started : false", }, ], deactivation_condition_list: [ @@ -4349,63 +3893,45 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_consequence_m_hp_reminder.sent", + field: "w_money_m_w_released.sent", value: true, }, }, - _raw: "get_field | w_consequence_m_hp_reminder.sent : true", + _raw: "get_field | w_money_m_w_released.sent : true", }, ], - campaign_list: ["parent_points"], - icon: "plh_images/icons/parent_heart_white.svg", + campaign_list: ["weekly_workshops"], + icon: "plh_images/icons/bell_white.svg", }, { - id: "w_consequence_m_parent_points_overview", + id: "w_money_m_relax", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["m_parent_points_overview"], - _raw: "pop_up: m_parent_points_overview", - _cleaned: "click | pop_up: m_parent_points_overview", + args: ["w_money_m_relax"], + _raw: "pop_up: w_money_m_relax", + _cleaned: "click | pop_up: w_money_m_relax", }, { trigger: "click", action_id: "set_field", - args: ["w_consequence_m_parent_points_overview.sent", true], - _raw: "set_field: w_consequence_m_parent_points_overview.sent : true", - _cleaned: "click | set_field: w_consequence_m_parent_points_overview.sent : true", + args: ["w_money_m_relax.sent", true], + _raw: "set_field: w_money_m_relax.sent : true", + _cleaned: "click | set_field: w_money_m_relax.sent : true", }, ], priority: 7.9, activation_condition_list: [ - { - condition_type: "db_lookup", - condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "33", - unit: "day", - }, - }, - }, - _raw: "first_launch | before: 33 : day", - }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "no_parent_points_this_week", - value: false, + field: "current_workshop_number", + value: "6", }, }, - _raw: "get_field | no_parent_points_this_week : false", + _raw: "get_field | current_workshop_number : 6", }, ], deactivation_condition_list: [ @@ -4413,53 +3939,45 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_consequence_m_parent_points_overview.sent", + field: "w_money_m_relax.sent", value: true, }, }, - _raw: "get_field | w_consequence_m_parent_points_overview.sent : true", + _raw: "get_field | w_money_m_relax.sent : true | before : 1 : day", }, ], campaign_list: ["parent_points"], - icon: "plh_images/icons/star_white.svg", + icon: "plh_images/icons/smile_eyes_down_white.svg", }, { - id: "w_solve_m_relax", + id: "w_money_m_something_fun", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_solve_m_relax"], - _raw: "pop_up: w_solve_m_relax", - _cleaned: "click | pop_up: w_solve_m_relax", + args: ["w_money_m_something_fun"], + _raw: "pop_up: w_money_m_something_fun", + _cleaned: "click | pop_up: w_money_m_something_fun", }, { trigger: "click", action_id: "set_field", - args: ["w_solve_m_relax.sent", true], - _raw: "set_field: w_solve_m_relax.sent : true", - _cleaned: "click | set_field: w_solve_m_relax.sent : true", + args: ["w_money_m_something_fun.sent", true], + _raw: "set_field: w_money_m_something_fun.sent : true", + _cleaned: "click | set_field: w_money_m_something_fun.sent : true", }, ], - priority: 8.1, + priority: 7.8, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "6", }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | current_workshop_number : 6", }, ], deactivation_condition_list: [ @@ -4467,145 +3985,151 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_solve_m_relax.sent", + field: "w_money_m_something_fun.sent", value: true, }, }, - _raw: "get_field | w_solve_m_relax.sent : true | within: 1 : day", + _raw: "get_field | w_money_m_something_fun.sent : true", }, { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", }, }, - _raw: "first_launch | before : 34 : day", + _raw: "get_field | current_relative_day_number : 1", }, ], - campaign_list: ["parent_points"], - icon: "plh_images/icons/smile_eyes_down_white.svg", + campaign_list: ["parent_centre"], + icon: "plh_images/icons/smile_eyes_up_white.svg", }, { - id: "w_solve_m_w_released_individual", + id: "w_money_m_praise", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_solve_m_w_released"], - _raw: "pop_up: w_solve_m_w_released", - _cleaned: "click | pop_up: w_solve_m_w_released", + args: ["w_money_m_praise"], + _raw: "pop_up: w_money_m_praise", + _cleaned: "click | pop_up: w_money_m_praise", }, { trigger: "click", action_id: "set_field", - args: ["w_solve_m_w_released.sent", true], - _raw: "set_field: w_solve_m_w_released.sent : true", - _cleaned: "click | set_field: w_solve_m_w_released.sent : true", + args: ["w_money_m_praise.sent", true], + _raw: "set_field: w_money_m_praise.sent : true", + _cleaned: "click | set_field: w_money_m_praise.sent : true", }, ], - priority: 8.2, + priority: 7.7, activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "do_workshops_together", - value: false, + field: "current_workshop_number", + value: "6", }, }, - _raw: "get_field | do_workshops_together: false", + _raw: "get_field | current_workshop_number : 6", }, + ], + deactivation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "w_money_m_praise.sent", + value: true, }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | w_money_m_praise.sent : true", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_solve_m_w_released.sent", - value: true, + field: "current_relative_day_number", + value: "0", }, }, - _raw: "get_field | w_solve_m_w_released.sent : true", + _raw: "get_field | current_relative_day_number : 0", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "2", + }, + }, + _raw: "get_field | current_relative_day_number : 2", }, ], - campaign_list: ["weekly_workshops"], - icon: "plh_images/icons/bell_white.svg", + campaign_list: ["parent_centre"], + icon: "plh_images/icons/heart_white.svg", }, { - id: "w_solve_m_w_released_together", + id: "w_money_m_w_reminder", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_solve_m_w_released"], - _raw: "pop_up: w_solve_m_w_released", - _cleaned: "click | pop_up: w_solve_m_w_released", + args: ["w_money_m_w_reminder"], + _raw: "pop_up: w_money_m_w_reminder", + _cleaned: "click | pop_up: w_money_m_w_reminder", }, { trigger: "click", action_id: "set_field", - args: ["w_solve_m_w_released.sent", true], - _raw: "set_field: w_solve_m_w_released.sent : true", - _cleaned: "click | set_field: w_solve_m_w_released.sent : true", + args: ["w_money_m_w_reminder.sent", true], + _raw: "set_field: w_money_m_w_reminder.sent : true", + _cleaned: "click | set_field: w_money_m_w_reminder.sent : true", }, ], - priority: 8.3, + priority: 7.6, activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "do_workshops_together", - value: true, + field: "current_workshop_number", + value: "6", }, }, - _raw: "get_field | do_workshops_together: true", + _raw: "get_field | current_workshop_number : 6", }, { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "w_money_started", + value: false, }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | w_money_started : false", }, ], deactivation_condition_list: [ @@ -4613,107 +4137,75 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_solve_m_w_released.sent", + field: "w_money_m_w_reminder.sent", value: true, }, }, - _raw: "get_field | w_solve_m_w_released.sent : true", - }, - ], - campaign_list: ["weekly_workshops"], - icon: "plh_images/icons/bell_white.svg", - }, - { - id: "w_solve_m_something_fun", - click_action_list: [ - { - trigger: "click", - action_id: "pop_up", - args: ["w_solve_m_something_fun"], - _raw: "pop_up: w_solve_m_something_fun", - _cleaned: "click | pop_up: w_solve_m_something_fun", + _raw: "get_field | w_money_m_w_reminder.sent : true", }, { - trigger: "click", - action_id: "set_field", - args: ["w_solve_m_something_fun.sent", true], - _raw: "set_field: w_solve_m_something_fun.sent : true", - _cleaned: "click | set_field: w_solve_m_something_fun.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, - ], - priority: 8.4, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "28", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "1", }, }, - _raw: "first_launch | before: 28 : day", + _raw: "get_field | current_relative_day_number : 1", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_solve_m_something_fun.sent", - value: true, + field: "current_relative_day_number", + value: "2", }, }, - _raw: "get_field | w_solve_m_something_fun.sent : true", + _raw: "get_field | current_relative_day_number : 2", }, ], - campaign_list: ["parent_centre"], - icon: "plh_images/icons/smile_eyes_up_white.svg", + campaign_list: ["weekly_workshops"], + icon: "plh_images/icons/bell_white.svg", }, { - id: "w_solve_m_praise", + id: "w_money_m_w_in_progress", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_solve_m_praise"], - _raw: "pop_up: w_solve_m_praise", - _cleaned: "click | pop_up: w_solve_m_praise", + args: ["w_money_m_w_in_progress"], + _raw: "pop_up: w_money_m_w_in_progress", + _cleaned: "click | pop_up: w_money_m_w_in_progress", }, { trigger: "click", action_id: "set_field", - args: ["w_solve_m_praise.sent", true], - _raw: "set_field: w_solve_m_praise.sent : true", - _cleaned: "click | set_field: w_solve_m_praise.sent : true", + args: ["w_money_m_w_in_progress.sent", true], + _raw: "set_field: w_money_m_w_in_progress.sent : true", + _cleaned: "click | set_field: w_money_m_w_in_progress.sent : true", }, ], - priority: 8.5, + priority: 7.5, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "29", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "6", }, }, - _raw: "first_launch | before: 29 : day", + _raw: "get_field | current_workshop_number : 6", }, ], deactivation_condition_list: [ @@ -4721,220 +4213,164 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_solve_m_praise.sent", + field: "w_money_m_w_in_progress.sent", value: true, }, }, - _raw: "get_field | w_solve_m_praise.sent : true", + _raw: "get_field | w_money_m_w_in_progress.sent : true", }, - ], - campaign_list: ["parent_centre"], - icon: "plh_images/icons/heart_white.svg", - }, - { - id: "w_solve_m_w_reminder", - click_action_list: [ { - trigger: "click", - action_id: "pop_up", - args: ["w_solve_m_w_reminder"], - _raw: "pop_up: w_solve_m_w_reminder", - _cleaned: "click | pop_up: w_solve_m_w_reminder", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, { - trigger: "click", - action_id: "set_field", - args: ["w_solve_m_w_reminder.sent", true], - _raw: "set_field: w_solve_m_w_reminder.sent : true", - _cleaned: "click | set_field: w_solve_m_w_reminder.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, - ], - priority: 8.6, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "30", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "2", }, }, - _raw: "first_launch | before: 30 : day", + _raw: "get_field | current_relative_day_number : 2", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_solve_started", + field: "w_money_started", value: false, }, }, - _raw: "get_field | w_solve_started : false", + _raw: "get_field | w_money_started : false", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_solve_m_w_reminder.sent", + field: "w_money_completed", value: true, }, }, - _raw: "get_field | w_solve_m_w_reminder.sent : true", + _raw: "get_field | w_money_completed: true", }, ], campaign_list: ["weekly_workshops"], icon: "plh_images/icons/bell_white.svg", }, { - id: "w_solve_m_w_in_progress", + id: "w_money_m_hp_reminder", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_solve_m_w_in_progress"], - _raw: "pop_up: w_solve_m_w_in_progress", - _cleaned: "click | pop_up: w_solve_m_w_in_progress", + args: ["w_money_m_hp_reminder"], + _raw: "pop_up: w_money_m_hp_reminder", + _cleaned: "click | pop_up: w_money_m_hp_reminder", }, { trigger: "click", action_id: "set_field", - args: ["w_solve_m_w_in_progress.sent", true], - _raw: "set_field: w_solve_m_w_in_progress.sent : true", - _cleaned: "click | set_field: w_solve_m_w_in_progress.sent : true", + args: ["w_money_m_hp_reminder.sent", true], + _raw: "set_field: w_money_m_hp_reminder.sent : true", + _cleaned: "click | set_field: w_money_m_hp_reminder.sent : true", }, ], - priority: 8.7, + priority: 7.4, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "30", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "6", }, }, - _raw: "first_launch | before: 30 : day", + _raw: "get_field | current_workshop_number : 6", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_solve_m_w_in_progress.sent", + field: "w_money_completed", value: true, }, }, - _raw: "get_field | w_solve_m_w_in_progress.sent : true", + _raw: "get_field | w_money_completed : true", }, + ], + deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_solve_started", - value: false, + field: "w_money_m_hp_reminder.sent", + value: true, }, }, - _raw: "get_field | w_solve_started : false", + _raw: "get_field | w_money_m_hp_reminder.sent : true", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_solve_completed", - value: true, + field: "current_relative_day_number", + value: "0", }, }, - _raw: "get_field | w_solve_completed: true", - }, - ], - campaign_list: ["weekly_workshops"], - icon: "plh_images/icons/bell_white.svg", - }, - { - id: "w_solve_m_hp_reminder", - click_action_list: [ - { - trigger: "click", - action_id: "pop_up", - args: ["w_solve_m_hp_reminder"], - _raw: "pop_up: w_solve_m_hp_reminder", - _cleaned: "click | pop_up: w_solve_m_hp_reminder", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_solve_m_hp_reminder.sent", true], - _raw: "set_field: w_solve_m_hp_reminder.sent : true", - _cleaned: "click | set_field: w_solve_m_hp_reminder.sent : true", + _raw: "get_field | current_relative_day_number : 0", }, - ], - priority: 8.8, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "30", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "1", }, }, - _raw: "first_launch | before: 30 : day", + _raw: "get_field | current_relative_day_number : 1", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_solve_completed", - value: true, + field: "current_relative_day_number", + value: "2", }, }, - _raw: "get_field | w_solve_completed: true", + _raw: "get_field | current_relative_day_number : 2", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_solve_m_hp_reminder.sent", - value: true, + field: "current_relative_day_number", + value: "3", }, }, - _raw: "get_field | w_solve_m_hp_reminder.sent : true", + _raw: "get_field | current_relative_day_number : 3", }, ], campaign_list: ["parent_points"], icon: "plh_images/icons/parent_heart_white.svg", }, { - id: "w_solve_m_parent_points_overview", + id: "w_money_m_parent_points_overview", click_action_list: [ { trigger: "click", @@ -4946,176 +4382,128 @@ const data_list: FlowTypes.Data_list[] = [ { trigger: "click", action_id: "set_field", - args: ["w_solve_m_parent_points_overview.sent", true], - _raw: "set_field: w_solve_m_parent_points_overview.sent : true", - _cleaned: "click | set_field: w_solve_m_parent_points_overview.sent : true", + args: ["w_money_m_parent_points_overview.sent", true], + _raw: "set_field: w_money_m_parent_points_overview.sent : true", + _cleaned: "click | set_field: w_money_m_parent_points_overview.sent : true", }, ], - priority: 8.9, + priority: 7.3, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "33", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "6", }, }, - _raw: "first_launch | before: 33 : day", + _raw: "get_field | current_workshop_number : 6", }, + ], + deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "no_parent_points_this_week", - value: false, + field: "w_money_m_parent_points_overview.sent", + value: true, }, }, - _raw: "get_field | no_parent_points_this_week : false", + _raw: "get_field | w_money_m_parent_points_overview.sent : true", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_solve_m_parent_points_overview.sent", - value: true, + field: "current_relative_day_number", + value: "0", }, }, - _raw: "get_field | w_solve_m_parent_points_overview.sent : true", - }, - ], - campaign_list: ["parent_points"], - icon: "plh_images/icons/star_white.svg", - }, - { - id: "w_safe_m_relax", - click_action_list: [ - { - trigger: "click", - action_id: "pop_up", - args: ["w_safe_m_relax"], - _raw: "pop_up: w_safe_m_relax", - _cleaned: "click | pop_up: w_safe_m_relax", + _raw: "get_field | current_relative_day_number : 0", }, { - trigger: "click", - action_id: "set_field", - args: ["w_safe_m_relax.sent", true], - _raw: "set_field: w_safe_m_relax.sent : true", - _cleaned: "click | set_field: w_safe_m_relax.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, - ], - priority: 9.1, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "2", }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | current_relative_day_number : 2", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_safe_m_relax.sent", - value: true, + field: "current_relative_day_number", + value: "3", }, }, - _raw: "get_field | w_safe_m_relax.sent : true | within: 1 : day", + _raw: "get_field | current_relative_day_number : 3", }, { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "4", }, }, - _raw: "first_launch | before : 34 : day", + _raw: "get_field | current_relative_day_number : 4", }, ], campaign_list: ["parent_points"], - icon: "plh_images/icons/smile_eyes_down_white.svg", + icon: "plh_images/icons/star_white.svg", }, { - id: "w_safe_m_w_released_individual", + id: "w_money_hp_review", click_action_list: [ { trigger: "click", - action_id: "pop_up", - args: ["w_safe_m_w_released"], - _raw: "pop_up: w_safe_m_w_released", - _cleaned: "click | pop_up: w_safe_m_w_released", + action_id: "go_to", + args: ["w_money_hp_review"], + _raw: "go_to: w_money_hp_review", + _cleaned: "click | go_to: w_money_hp_review", }, { trigger: "click", action_id: "set_field", - args: ["w_safe_m_w_released.sent", true], - _raw: "set_field: w_safe_m_w_released.sent : true", - _cleaned: "click | set_field: w_safe_m_w_released.sent : true", + args: ["w_money_hp_review.sent", true], + _raw: "set_field: w_money_hp_review.sent : true", + _cleaned: "click | set_field: w_money_hp_review.sent : true", }, ], - priority: 9.2, + priority: 7.2, activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "do_workshops_together", - value: false, + field: "current_workshop_number", + value: "6", }, }, - _raw: "get_field | do_workshops_together: false", + _raw: "get_field | current_workshop_number : 6", }, { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "w_money_completed", + value: true, }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | w_money_completed : true", }, ], deactivation_condition_list: [ @@ -5123,373 +4511,276 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_safe_m_w_released.sent", + field: "w_money_hp_review_completed", value: true, }, }, - _raw: "get_field | w_safe_m_w_released.sent : true", + _raw: "get_field | w_money_hp_review_completed : true", }, - ], - campaign_list: ["weekly_workshops"], - icon: "plh_images/icons/bell_white.svg", - }, - { - id: "w_safe_m_w_released_together", - click_action_list: [ { - trigger: "click", - action_id: "pop_up", - args: ["w_safe_m_w_released"], - _raw: "pop_up: w_safe_m_w_released", - _cleaned: "click | pop_up: w_safe_m_w_released", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, { - trigger: "click", - action_id: "set_field", - args: ["w_safe_m_w_released.sent", true], - _raw: "set_field: w_safe_m_w_released.sent : true", - _cleaned: "click | set_field: w_safe_m_w_released.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, - ], - priority: 9.3, - activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "do_workshops_together", - value: true, + field: "current_relative_day_number", + value: "2", }, }, - _raw: "get_field | do_workshops_together: true", + _raw: "get_field | current_relative_day_number : 2", }, { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "3", }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | current_relative_day_number : 3", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_safe_m_w_released.sent", - value: true, + field: "current_relative_day_number", + value: "4", }, }, - _raw: "get_field | w_safe_m_w_released.sent : true", + _raw: "get_field | current_relative_day_number : 4", }, ], - campaign_list: ["weekly_workshops"], - icon: "plh_images/icons/bell_white.svg", + campaign_list: ["parent_centre"], + icon: "plh_images/icons/parent_heart_white.svg", }, { - id: "w_safe_m_something_fun", + id: "w_rules_m_w_tomorrow", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_safe_m_something_fun"], - _raw: "pop_up: w_safe_m_something_fun", - _cleaned: "click | pop_up: w_safe_m_something_fun", + args: ["w_rules_m_w_tomorrow"], + _raw: "pop_up: w_rules_m_w_tomorrow", + _cleaned: "click | pop_up: w_rules_m_w_tomorrow", }, { trigger: "click", action_id: "set_field", - args: ["w_safe_m_something_fun.sent", true], - _raw: "set_field: w_safe_m_something_fun.sent : true", - _cleaned: "click | set_field: w_safe_m_something_fun.sent : true", + args: ["w_rules_m_w_tomorrow.sent", true], + _raw: "set_field: w_rules_m_w_tomorrow.sent : true", + _cleaned: "click | set_field: w_rules_m_w_tomorrow.sent : true", }, ], - priority: 9.4, + priority: 7.1, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "28", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "6", }, }, - _raw: "first_launch | before: 28 : day", + _raw: "get_field | current_workshop_number : 6", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_safe_m_something_fun.sent", - value: true, + field: "w_money_completed", + value: false, }, }, - _raw: "get_field | w_safe_m_something_fun.sent : true", - }, - ], - campaign_list: ["parent_centre"], - icon: "plh_images/icons/smile_eyes_up_white.svg", - }, - { - id: "w_safe_m_praise", - click_action_list: [ - { - trigger: "click", - action_id: "pop_up", - args: ["w_safe_m_praise"], - _raw: "pop_up: w_safe_m_praise", - _cleaned: "click | pop_up: w_safe_m_praise", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_safe_m_praise.sent", true], - _raw: "set_field: w_safe_m_praise.sent : true", - _cleaned: "click | set_field: w_safe_m_praise.sent : true", + _raw: "get_field | w_money_completed : false", }, ], - priority: 9.5, - activation_condition_list: [ + deactivation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "29", - unit: "day", - }, + field_evaluation: { + field: "w_rules_m_w_tomorrow.sent", + value: true, }, }, - _raw: "first_launch | before: 29 : day", + _raw: "get_field | w_rules_m_w_tomorrow.sent : true", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_safe_m_praise.sent", - value: true, + field: "current_relative_day_number", + value: "0", }, }, - _raw: "get_field | w_safe_m_praise.sent : true", + _raw: "get_field | current_relative_day_number : 0", }, - ], - campaign_list: ["parent_centre"], - icon: "plh_images/icons/heart_white.svg", - }, - { - id: "w_safe_m_w_reminder", - click_action_list: [ { - trigger: "click", - action_id: "pop_up", - args: ["w_safe_m_w_reminder"], - _raw: "pop_up: w_safe_m_w_reminder", - _cleaned: "click | pop_up: w_safe_m_w_reminder", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, { - trigger: "click", - action_id: "set_field", - args: ["w_safe_m_w_reminder.sent", true], - _raw: "set_field: w_safe_m_w_reminder.sent : true", - _cleaned: "click | set_field: w_safe_m_w_reminder.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "2", + }, + }, + _raw: "get_field | current_relative_day_number : 2", }, - ], - priority: 9.6, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "30", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "3", }, }, - _raw: "first_launch | before: 30 : day", + _raw: "get_field | current_relative_day_number : 3", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_safe_started", - value: false, + field: "current_relative_day_number", + value: "4", }, }, - _raw: "get_field | w_safe_started : false", + _raw: "get_field | current_relative_day_number : 4", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_safe_m_w_reminder.sent", - value: true, + field: "current_relative_day_number", + value: "5", }, }, - _raw: "get_field | w_safe_m_w_reminder.sent : true", + _raw: "get_field | current_relative_day_number : 5", }, ], campaign_list: ["weekly_workshops"], icon: "plh_images/icons/bell_white.svg", }, - { - id: "w_safe_m_w_in_progress", - click_action_list: [ - { - trigger: "click", - action_id: "pop_up", - args: ["w_safe_m_w_in_progress"], - _raw: "pop_up: w_safe_m_w_in_progress", - _cleaned: "click | pop_up: w_safe_m_w_in_progress", + ], + _xlsxPath: "plh_sheets_beta/plh_templating/campaigns/campaign_home_screen_quick_start.xlsx", + }, + { + flow_type: "data_list", + flow_subtype: "campaign_rows", + flow_name: "campaign_hs_w_rules", + status: "released", + rows: [ + { + id: "w_rules_m_w_released", + click_action_list: [ + { + trigger: "click", + action_id: "pop_up", + args: ["w_rules_m_w_released"], + _raw: "pop_up: w_rules_m_w_released", + _cleaned: "click | pop_up: w_rules_m_w_released", }, { trigger: "click", action_id: "set_field", - args: ["w_safe_m_w_in_progress.sent", true], - _raw: "set_field: w_safe_m_w_in_progress.sent : true", - _cleaned: "click | set_field: w_safe_m_w_in_progress.sent : true", + args: ["w_rules_m_w_released.sent", true], + _raw: "set_field: w_rules_m_w_released.sent : true", + _cleaned: "click | set_field: w_rules_m_w_released.sent : true", }, ], - priority: 9.7, + priority: 6.99, activation_condition_list: [ - { - condition_type: "db_lookup", - condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "30", - unit: "day", - }, - }, - }, - _raw: "first_launch | before: 30 : day", - }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_safe_m_w_in_progress.sent", - value: true, + field: "current_workshop_number", + value: "7", }, }, - _raw: "get_field | w_safe_m_w_in_progress.sent : true", + _raw: "get_field | current_workshop_number : 7", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_safe_started", + field: "w_rules_started", value: false, }, }, - _raw: "get_field | w_safe_started : false", + _raw: "get_field | w_rules_started : false", }, + ], + deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_safe_completed", + field: "w_rules_m_w_released.sent", value: true, }, }, - _raw: "get_field | w_safe_completed: true", + _raw: "get_field | w_rules_m_w_released.sent : true", }, ], campaign_list: ["weekly_workshops"], icon: "plh_images/icons/bell_white.svg", }, { - id: "w_safe_m_hp_reminder", + id: "w_rules_m_relax", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_safe_m_hp_reminder"], - _raw: "pop_up: w_safe_m_hp_reminder", - _cleaned: "click | pop_up: w_safe_m_hp_reminder", + args: ["w_rules_m_relax"], + _raw: "pop_up: w_rules_m_relax", + _cleaned: "click | pop_up: w_rules_m_relax", }, { trigger: "click", action_id: "set_field", - args: ["w_safe_m_hp_reminder.sent", true], - _raw: "set_field: w_safe_m_hp_reminder.sent : true", - _cleaned: "click | set_field: w_safe_m_hp_reminder.sent : true", + args: ["w_rules_m_relax.sent", true], + _raw: "set_field: w_rules_m_relax.sent : true", + _cleaned: "click | set_field: w_rules_m_relax.sent : true", }, ], - priority: 9.8, + priority: 6.9, activation_condition_list: [ - { - condition_type: "db_lookup", - condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "30", - unit: "day", - }, - }, - }, - _raw: "first_launch | before: 30 : day", - }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_safe_completed", - value: true, + field: "current_workshop_number", + value: "7", }, }, - _raw: "get_field | w_safe_completed: true", + _raw: "get_field | current_workshop_number : 7", }, ], deactivation_condition_list: [ @@ -5497,117 +4788,111 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_safe_m_hp_reminder.sent", + field: "w_rules_m_relax.sent", value: true, }, }, - _raw: "get_field | w_safe_m_hp_reminder.sent : true", + _raw: "get_field | w_rules_m_relax.sent : true | before : 1 : day", }, ], campaign_list: ["parent_points"], - icon: "plh_images/icons/parent_heart_white.svg", + icon: "plh_images/icons/smile_eyes_down_white.svg", }, { - id: "w_safe_m_parent_points_overview", + id: "w_rules_m_something_fun", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["m_parent_points_overview"], - _raw: "pop_up: m_parent_points_overview", - _cleaned: "click | pop_up: m_parent_points_overview", + args: ["w_rules_m_something_fun"], + _raw: "pop_up: w_rules_m_something_fun", + _cleaned: "click | pop_up: w_rules_m_something_fun", }, { trigger: "click", action_id: "set_field", - args: ["w_safe_m_parent_points_overview.sent", true], - _raw: "set_field: w_safe_m_parent_points_overview.sent : true", - _cleaned: "click | set_field: w_safe_m_parent_points_overview.sent : true", + args: ["w_rules_m_something_fun.sent", true], + _raw: "set_field: w_rules_m_something_fun.sent : true", + _cleaned: "click | set_field: w_rules_m_something_fun.sent : true", }, ], - priority: 9.9, + priority: 6.8, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "33", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "7", }, }, - _raw: "first_launch | before: 33 : day", + _raw: "get_field | current_workshop_number : 7", }, + ], + deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "no_parent_points_this_week", - value: false, + field: "w_rules_m_something_fun.sent", + value: true, }, }, - _raw: "get_field | no_parent_points_this_week : false", + _raw: "get_field | w_rules_m_something_fun.sent : true", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_safe_m_parent_points_overview.sent", - value: true, + field: "current_relative_day_number", + value: "0", }, }, - _raw: "get_field | w_safe_m_parent_points_overview.sent : true", + _raw: "get_field | current_relative_day_number : 0", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, ], - campaign_list: ["parent_points"], - icon: "plh_images/icons/star_white.svg", + campaign_list: ["parent_centre"], + icon: "plh_images/icons/smile_eyes_up_white.svg", }, { - id: "w_crisis_m_relax", + id: "w_rules_m_praise", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_crisis_m_relax"], - _raw: "pop_up: w_crisis_m_relax", - _cleaned: "click | pop_up: w_crisis_m_relax", + args: ["w_rules_m_praise"], + _raw: "pop_up: w_rules_m_praise", + _cleaned: "click | pop_up: w_rules_m_praise", }, { trigger: "click", action_id: "set_field", - args: ["w_crisis_m_relax.sent", true], - _raw: "set_field: w_crisis_m_relax.sent : true", - _cleaned: "click | set_field: w_crisis_m_relax.sent : true", + args: ["w_rules_m_praise.sent", true], + _raw: "set_field: w_rules_m_praise.sent : true", + _cleaned: "click | set_field: w_rules_m_praise.sent : true", }, ], - priority: 10.1, + priority: 6.7, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "7", }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | current_workshop_number : 7", }, ], deactivation_condition_list: [ @@ -5615,145 +4900,85 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_crisis_m_relax.sent", + field: "w_rules_m_praise.sent", value: true, }, }, - _raw: "get_field | w_crisis_m_relax.sent : true | within: 1 : day", - }, - { - condition_type: "db_lookup", - condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, - }, - }, - _raw: "first_launch | before : 34 : day", - }, - ], - campaign_list: ["parent_points"], - icon: "plh_images/icons/smile_eyes_down_white.svg", - }, - { - id: "w_crisis_m_w_released_individual", - click_action_list: [ - { - trigger: "click", - action_id: "pop_up", - args: ["w_crisis_m_w_released"], - _raw: "pop_up: w_crisis_m_w_released", - _cleaned: "click | pop_up: w_crisis_m_w_released", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_crisis_m_w_released.sent", true], - _raw: "set_field: w_crisis_m_w_released.sent : true", - _cleaned: "click | set_field: w_crisis_m_w_released.sent : true", + _raw: "get_field | w_rules_m_praise.sent : true", }, - ], - priority: 10.2, - activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "do_workshops_together", - value: false, + field: "current_relative_day_number", + value: "0", }, }, - _raw: "get_field | do_workshops_together: false", + _raw: "get_field | current_relative_day_number : 0", }, { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "1", }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | current_relative_day_number : 1", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_crisis_m_w_released.sent", - value: true, + field: "current_relative_day_number", + value: "2", }, }, - _raw: "get_field | w_crisis_m_w_released.sent : true", + _raw: "get_field | current_relative_day_number : 2", }, ], - campaign_list: ["weekly_workshops"], - icon: "plh_images/icons/bell_white.svg", + campaign_list: ["parent_centre"], + icon: "plh_images/icons/heart_white.svg", }, { - id: "w_crisis_m_w_released_together", + id: "w_rules_m_w_reminder", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_crisis_m_w_released"], - _raw: "pop_up: w_crisis_m_w_released", - _cleaned: "click | pop_up: w_crisis_m_w_released", + args: ["w_rules_m_w_reminder"], + _raw: "pop_up: w_rules_m_w_reminder", + _cleaned: "click | pop_up: w_rules_m_w_reminder", }, { trigger: "click", action_id: "set_field", - args: ["w_crisis_m_w_released.sent", true], - _raw: "set_field: w_crisis_m_w_released.sent : true", - _cleaned: "click | set_field: w_crisis_m_w_released.sent : true", + args: ["w_rules_m_w_reminder.sent", true], + _raw: "set_field: w_rules_m_w_reminder.sent : true", + _cleaned: "click | set_field: w_rules_m_w_reminder.sent : true", }, ], - priority: 10.3, + priority: 6.6, activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "do_workshops_together", - value: true, + field: "current_workshop_number", + value: "7", }, }, - _raw: "get_field | do_workshops_together: true", + _raw: "get_field | current_workshop_number : 7", }, { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "w_rules_started", + value: false, }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | w_rules_started : false", }, ], deactivation_condition_list: [ @@ -5761,107 +4986,75 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_crisis_m_w_released.sent", + field: "w_rules_m_w_reminder.sent", value: true, }, }, - _raw: "get_field | w_crisis_m_w_released.sent : true", - }, - ], - campaign_list: ["weekly_workshops"], - icon: "plh_images/icons/bell_white.svg", - }, - { - id: "w_crisis_m_something_fun", - click_action_list: [ - { - trigger: "click", - action_id: "pop_up", - args: ["w_crisis_m_something_fun"], - _raw: "pop_up: w_crisis_m_something_fun", - _cleaned: "click | pop_up: w_crisis_m_something_fun", + _raw: "get_field | w_rules_m_w_reminder.sent : true", }, { - trigger: "click", - action_id: "set_field", - args: ["w_crisis_m_something_fun.sent", true], - _raw: "set_field: w_crisis_m_something_fun.sent : true", - _cleaned: "click | set_field: w_crisis_m_something_fun.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, - ], - priority: 10.4, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "28", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "1", }, }, - _raw: "first_launch | before: 28 : day", + _raw: "get_field | current_relative_day_number : 1", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_crisis_m_something_fun.sent", - value: true, + field: "current_relative_day_number", + value: "2", }, }, - _raw: "get_field | w_crisis_m_something_fun.sent : true", + _raw: "get_field | current_relative_day_number : 2", }, ], - campaign_list: ["parent_centre"], - icon: "plh_images/icons/smile_eyes_up_white.svg", + campaign_list: ["weekly_workshops"], + icon: "plh_images/icons/bell_white.svg", }, { - id: "w_crisis_m_praise", + id: "w_rules_m_w_in_progress", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_crisis_m_praise"], - _raw: "pop_up: w_crisis_m_praise", - _cleaned: "click | pop_up: w_crisis_m_praise", + args: ["w_rules_m_w_in_progress"], + _raw: "pop_up: w_rules_m_w_in_progress", + _cleaned: "click | pop_up: w_rules_m_w_in_progress", }, { trigger: "click", action_id: "set_field", - args: ["w_crisis_m_praise.sent", true], - _raw: "set_field: w_crisis_m_praise.sent : true", - _cleaned: "click | set_field: w_crisis_m_praise.sent : true", + args: ["w_rules_m_w_in_progress.sent", true], + _raw: "set_field: w_rules_m_w_in_progress.sent : true", + _cleaned: "click | set_field: w_rules_m_w_in_progress.sent : true", }, ], - priority: 10.5, + priority: 6.5, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "29", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "7", }, }, - _raw: "first_launch | before: 29 : day", + _raw: "get_field | current_workshop_number : 7", }, ], deactivation_condition_list: [ @@ -5869,220 +5062,164 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_crisis_m_praise.sent", + field: "w_rules_m_w_in_progress.sent", value: true, }, }, - _raw: "get_field | w_crisis_m_praise.sent : true", + _raw: "get_field | w_rules_m_w_in_progress.sent : true", }, - ], - campaign_list: ["parent_centre"], - icon: "plh_images/icons/heart_white.svg", - }, - { - id: "w_crisis_m_w_reminder", - click_action_list: [ { - trigger: "click", - action_id: "pop_up", - args: ["w_crisis_m_w_reminder"], - _raw: "pop_up: w_crisis_m_w_reminder", - _cleaned: "click | pop_up: w_crisis_m_w_reminder", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, { - trigger: "click", - action_id: "set_field", - args: ["w_crisis_m_w_reminder.sent", true], - _raw: "set_field: w_crisis_m_w_reminder.sent : true", - _cleaned: "click | set_field: w_crisis_m_w_reminder.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, - ], - priority: 10.6, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "30", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "2", }, }, - _raw: "first_launch | before: 30 : day", + _raw: "get_field | current_relative_day_number : 2", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_crisis_started", + field: "w_rules_started", value: false, }, }, - _raw: "get_field | w_crisis_started : false", + _raw: "get_field | w_rules_started : false", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_crisis_m_w_reminder.sent", + field: "w_rules_completed", value: true, }, }, - _raw: "get_field | w_crisis_m_w_reminder.sent : true", + _raw: "get_field | w_rules_completed: true", }, ], campaign_list: ["weekly_workshops"], icon: "plh_images/icons/bell_white.svg", }, { - id: "w_crisis_m_w_in_progress", + id: "w_rules_m_hp_reminder", click_action_list: [ { trigger: "click", action_id: "pop_up", - args: ["w_crisis_m_w_in_progress"], - _raw: "pop_up: w_crisis_m_w_in_progress", - _cleaned: "click | pop_up: w_crisis_m_w_in_progress", + args: ["w_rules_m_hp_reminder"], + _raw: "pop_up: w_rules_m_hp_reminder", + _cleaned: "click | pop_up: w_rules_m_hp_reminder", }, { trigger: "click", action_id: "set_field", - args: ["w_crisis_m_w_in_progress.sent", true], - _raw: "set_field: w_crisis_m_w_in_progress.sent : true", - _cleaned: "click | set_field: w_crisis_m_w_in_progress.sent : true", + args: ["w_rules_m_hp_reminder.sent", true], + _raw: "set_field: w_rules_m_hp_reminder.sent : true", + _cleaned: "click | set_field: w_rules_m_hp_reminder.sent : true", }, ], - priority: 10.7, + priority: 6.4, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "30", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "7", }, }, - _raw: "first_launch | before: 30 : day", + _raw: "get_field | current_workshop_number : 7", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_crisis_m_w_in_progress.sent", + field: "w_rules_completed", value: true, }, }, - _raw: "get_field | w_crisis_m_w_in_progress.sent : true", + _raw: "get_field | w_rules_completed : true", }, + ], + deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_crisis_started", - value: false, + field: "w_rules_m_hp_reminder.sent", + value: true, }, }, - _raw: "get_field | w_crisis_started : false", + _raw: "get_field | w_rules_m_hp_reminder.sent : true", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_crisis_completed", - value: true, + field: "current_relative_day_number", + value: "0", }, }, - _raw: "get_field | w_crisis_completed: true", - }, - ], - campaign_list: ["weekly_workshops"], - icon: "plh_images/icons/bell_white.svg", - }, - { - id: "w_crisis_m_hp_reminder", - click_action_list: [ - { - trigger: "click", - action_id: "pop_up", - args: ["w_crisis_m_hp_reminder"], - _raw: "pop_up: w_crisis_m_hp_reminder", - _cleaned: "click | pop_up: w_crisis_m_hp_reminder", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_crisis_m_hp_reminder.sent", true], - _raw: "set_field: w_crisis_m_hp_reminder.sent : true", - _cleaned: "click | set_field: w_crisis_m_hp_reminder.sent : true", + _raw: "get_field | current_relative_day_number : 0", }, - ], - priority: 10.8, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "30", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "1", }, }, - _raw: "first_launch | before: 30 : day", + _raw: "get_field | current_relative_day_number : 1", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_crisis_completed", - value: true, + field: "current_relative_day_number", + value: "2", }, }, - _raw: "get_field | w_crisis_completed: true", + _raw: "get_field | current_relative_day_number : 2", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_crisis_m_hp_reminder.sent", - value: true, + field: "current_relative_day_number", + value: "3", }, }, - _raw: "get_field | w_crisis_m_hp_reminder.sent : true", + _raw: "get_field | current_relative_day_number : 3", }, ], campaign_list: ["parent_points"], icon: "plh_images/icons/parent_heart_white.svg", }, { - id: "w_crisis_m_parent_points_overview", + id: "w_rules_m_parent_points_overview", click_action_list: [ { trigger: "click", @@ -6094,380 +5231,234 @@ const data_list: FlowTypes.Data_list[] = [ { trigger: "click", action_id: "set_field", - args: ["w_crisis_m_parent_points_overview.sent", true], - _raw: "set_field: w_crisis_m_parent_points_overview.sent : true", - _cleaned: "click | set_field: w_crisis_m_parent_points_overview.sent : true", + args: ["w_rules_m_parent_points_overview.sent", true], + _raw: "set_field: w_rules_m_parent_points_overview.sent : true", + _cleaned: "click | set_field: w_rules_m_parent_points_overview.sent : true", }, ], - priority: 10.9, + priority: 6.3, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "33", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "7", }, }, - _raw: "first_launch | before: 33 : day", + _raw: "get_field | current_workshop_number : 7", }, + ], + deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "no_parent_points_this_week", - value: false, + field: "w_rules_m_parent_points_overview.sent", + value: true, }, }, - _raw: "get_field | no_parent_points_this_week : false", + _raw: "get_field | w_rules_m_parent_points_overview.sent : true", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_crisis_m_parent_points_overview.sent", - value: true, + field: "current_relative_day_number", + value: "0", }, }, - _raw: "get_field | w_crisis_m_parent_points_overview.sent : true", + _raw: "get_field | current_relative_day_number : 0", }, - ], - campaign_list: ["parent_points"], - icon: "plh_images/icons/star_white.svg", - }, - ], - _xlsxPath: "plh_sheets_beta/plh_templating/campaigns/campaign_quick_starts.xlsx", - }, - { - flow_type: "data_list", - flow_subtype: "campaign_rows", - flow_name: "campaign_workshop_quick_start", - status: "released", - rows: [ - { - id: "default", - click_action_list: [ - { - trigger: "click", - action_id: "set_field", - args: ["default.sent", true], - _raw: "set_field: default.sent : true", - _cleaned: "click | set_field: default.sent : true", - }, - ], - priority: -1, - campaign_list: ["workshop_quick_start"], - icon: "plh_images/icons/play_white.svg", - }, - { - id: "w_self_care_quick_start", - workshop: "w_self_care", - workshop_data: "@data.workshop.w_self_care", - click_action_list: [ - { - trigger: "click", - action_id: "go_to", - args: ["w_self_care_stepper"], - _raw: "go_to: w_self_care_stepper", - _cleaned: "click | go_to: w_self_care_stepper", - }, - ], - priority: 0, - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_self_care_started", - value: true, + field: "current_relative_day_number", + value: "1", }, }, - _raw: "get_field | w_self_care_started : true", + _raw: "get_field | current_relative_day_number : 1", }, - ], - campaign_list: ["weekly_workshops", "workshop_quick_start"], - icon: "plh_images/icons/play_white.svg", - text: "Start", - _translatedFields: { - text: { - eng: "Start", - }, - }, - }, - { - id: "w_self_care_continue", - workshop: "w_self_care", - workshop_data: "@data.workshop.w_self_care", - click_action_list: [ { - trigger: "click", - action_id: "go_to", - args: ["w_self_care_stepper"], - _raw: "go_to: w_self_care_stepper", - _cleaned: "click | go_to: w_self_care_stepper", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "2", + }, + }, + _raw: "get_field | current_relative_day_number : 2", }, - ], - priority: 0, - activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_self_care_started", - value: true, + field: "current_relative_day_number", + value: "3", }, }, - _raw: "get_field | w_self_care_started : true", + _raw: "get_field | current_relative_day_number : 3", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_self_care_completed", - value: true, + field: "current_relative_day_number", + value: "4", }, }, - _raw: "get_field | w_self_care_completed: true", + _raw: "get_field | current_relative_day_number : 4", }, ], - campaign_list: ["weekly_workshops", "workshop_quick_start"], - icon: "plh_images/icons/play_white.svg", - text: "Continue", - _translatedFields: { - text: { - eng: "Continue", - }, - }, + campaign_list: ["parent_points"], + icon: "plh_images/icons/star_white.svg", }, { - id: "w_1on1_quick_start", - workshop: "w_1on1", - workshop_data: "@data.workshop.w_1on1", + id: "w_rules_hp_review", click_action_list: [ { trigger: "click", action_id: "go_to", - args: ["w_1on1_stepper"], - _raw: "go_to: w_1on1_stepper", - _cleaned: "click | go_to: w_1on1_stepper", + args: ["w_rules_hp_review"], + _raw: "go_to: w_rules_hp_review", + _cleaned: "click | go_to: w_rules_hp_review", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_rules_hp_review.sent", true], + _raw: "set_field: w_rules_hp_review.sent : true", + _cleaned: "click | set_field: w_rules_hp_review.sent : true", }, ], - priority: 1, + priority: 6.2, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "6", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "7", }, }, - _raw: "first_launch | before: 6 : day", + _raw: "get_field | current_workshop_number : 7", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_1on1_started", + field: "w_rules_completed", value: true, }, }, - _raw: "get_field | w_1on1_started : true", - }, - ], - campaign_list: ["weekly_workshops", "workshop_quick_start"], - icon: "plh_images/icons/play_white.svg", - text: "Start", - _translatedFields: { - text: { - eng: "Start", - }, - }, - }, - { - id: "w_1on1_continue", - workshop: "w_1on1", - workshop_data: "@data.workshop.w_1on1", - click_action_list: [ - { - trigger: "click", - action_id: "go_to", - args: ["w_1on1_stepper"], - _raw: "go_to: w_1on1_stepper", - _cleaned: "click | go_to: w_1on1_stepper", + _raw: "get_field | w_rules_completed : true", }, ], - priority: 1, - activation_condition_list: [ + deactivation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "6", - unit: "day", - }, + field_evaluation: { + field: "w_rules_hp_review_completed", + value: true, }, }, - _raw: "first_launch | before: 6 : day", + _raw: "get_field | w_rules_hp_review_completed : true", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_1on1_started", - value: true, + field: "current_relative_day_number", + value: "0", }, }, - _raw: "get_field | w_1on1_started : true", + _raw: "get_field | current_relative_day_number : 0", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_1on1_completed", - value: true, + field: "current_relative_day_number", + value: "1", }, }, - _raw: "get_field | w_1on1_completed: true", - }, - ], - campaign_list: ["weekly_workshops", "workshop_quick_start"], - icon: "plh_images/icons/play_white.svg", - text: "Continue", - _translatedFields: { - text: { - eng: "Continue", + _raw: "get_field | current_relative_day_number : 1", }, - }, - }, - { - id: "w_praise_quick_start", - workshop: "w_praise", - workshop_data: "@data.workshop.w_praise", - click_action_list: [ { - trigger: "click", - action_id: "go_to", - args: ["w_praise_stepper"], - _raw: "go_to: w_praise_stepper", - _cleaned: "click | go_to: w_praise_stepper", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "2", + }, + }, + _raw: "get_field | current_relative_day_number : 2", }, - ], - priority: 2, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "13", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "3", }, }, - _raw: "first_launch | before: 13 : day", + _raw: "get_field | current_relative_day_number : 3", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_praise_started", - value: true, + field: "current_relative_day_number", + value: "4", }, }, - _raw: "get_field | w_praise_started : true", + _raw: "get_field | current_relative_day_number : 4", }, ], - campaign_list: ["weekly_workshops", "workshop_quick_start"], - icon: "plh_images/icons/play_white.svg", - text: "Start", - _translatedFields: { - text: { - eng: "Start", - }, - }, + campaign_list: ["parent_centre"], + icon: "plh_images/icons/parent_heart_white.svg", }, { - id: "w_praise_continue", - workshop: "w_praise", - workshop_data: "@data.workshop.w_praise", + id: "w_rules_m_w_tomorrow", click_action_list: [ { trigger: "click", - action_id: "go_to", - args: ["w_praise_stepper"], - _raw: "go_to: w_praise_stepper", - _cleaned: "click | go_to: w_praise_stepper", + action_id: "pop_up", + args: ["w_rules_m_w_tomorrow"], + _raw: "pop_up: w_rules_m_w_tomorrow", + _cleaned: "click | pop_up: w_rules_m_w_tomorrow", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_rules_m_w_tomorrow.sent", true], + _raw: "set_field: w_rules_m_w_tomorrow.sent : true", + _cleaned: "click | set_field: w_rules_m_w_tomorrow.sent : true", }, ], - priority: 2, + priority: 6.1, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "13", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "7", }, }, - _raw: "first_launch | before: 13 : day", + _raw: "get_field | current_workshop_number : 7", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_praise_started", - value: true, + field: "w_rules_completed", + value: false, }, }, - _raw: "get_field | w_praise_started : true", + _raw: "get_field | w_rules_completed : false", }, ], deactivation_condition_list: [ @@ -6475,119 +5466,124 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_praise_completed", + field: "w_rules_m_w_tomorrow.sent", value: true, }, }, - _raw: "get_field | w_praise_completed: true", + _raw: "get_field | w_rules_m_w_tomorrow.sent : true", }, - ], - campaign_list: ["weekly_workshops", "workshop_quick_start"], - icon: "plh_images/icons/play_white.svg", - text: "Continue", - _translatedFields: { - text: { - eng: "Continue", + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, - }, - }, - { - id: "w_instruct_quick_start", - workshop: "w_instruct", - workshop_data: "@data.workshop.w_instruct", - click_action_list: [ { - trigger: "click", - action_id: "go_to", - args: ["w_instruct_stepper"], - _raw: "go_to: w_instruct_stepper", - _cleaned: "click | go_to: w_instruct_stepper", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, - ], - priority: 3, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "20", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "2", }, }, - _raw: "first_launch | before: 20 : day", + _raw: "get_field | current_relative_day_number : 2", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_instruct_started", - value: true, + field: "current_relative_day_number", + value: "3", }, }, - _raw: "get_field | w_instruct_started : true", + _raw: "get_field | current_relative_day_number : 3", }, - ], - campaign_list: ["weekly_workshops", "workshop_quick_start"], - icon: "plh_images/icons/play_white.svg", - text: "Start", - _translatedFields: { - text: { - eng: "Start", + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "4", + }, + }, + _raw: "get_field | current_relative_day_number : 4", }, - }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "5", + }, + }, + _raw: "get_field | current_relative_day_number : 5", + }, + ], + campaign_list: ["weekly_workshops"], + icon: "plh_images/icons/bell_white.svg", }, + ], + _xlsxPath: "plh_sheets_beta/plh_templating/campaigns/campaign_home_screen_quick_start.xlsx", + }, + { + flow_type: "data_list", + flow_subtype: "campaign_rows", + flow_name: "campaign_hs_w_consequence", + status: "released", + rows: [ { - id: "w_instruct_continue", - workshop: "w_instruct", - workshop_data: "@data.workshop.w_instruct", + id: "w_consequence_m_w_released", click_action_list: [ { trigger: "click", - action_id: "go_to", - args: ["w_instruct_stepper"], - _raw: "go_to: w_instruct_stepper", - _cleaned: "click | go_to: w_instruct_stepper", + action_id: "pop_up", + args: ["w_consequence_m_w_released"], + _raw: "pop_up: w_consequence_m_w_released", + _cleaned: "click | pop_up: w_consequence_m_w_released", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_consequence_m_w_released.sent", true], + _raw: "set_field: w_consequence_m_w_released.sent : true", + _cleaned: "click | set_field: w_consequence_m_w_released.sent : true", }, ], - priority: 3, + priority: 5.99, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "20", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "8", }, }, - _raw: "first_launch | before: 20 : day", + _raw: "get_field | current_workshop_number : 8", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_instruct_started", - value: true, + field: "w_consequence_started", + value: false, }, }, - _raw: "get_field | w_instruct_started : true", + _raw: "get_field | w_consequence_started : false", }, ], deactivation_condition_list: [ @@ -6595,54 +5591,45 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_instruct_completed", + field: "w_consequence_m_w_released.sent", value: true, }, }, - _raw: "get_field | w_instruct_completed: true", + _raw: "get_field | w_consequence_m_w_released.sent : true", }, ], - campaign_list: ["weekly_workshops", "workshop_quick_start"], - icon: "plh_images/icons/play_white.svg", - text: "Continue", - _translatedFields: { - text: { - eng: "Continue", - }, - }, + campaign_list: ["weekly_workshops"], + icon: "plh_images/icons/bell_white.svg", }, { - id: "w_stress_quick_start", - workshop: "w_stress", - workshop_data: "@data.workshop.w_stress", + id: "w_consequence_m_relax", click_action_list: [ { trigger: "click", - action_id: "go_to", - args: ["w_stress_stepper"], - _raw: "go_to: w_stress_stepper", - _cleaned: "click | go_to: w_stress_stepper", + action_id: "pop_up", + args: ["w_consequence_m_relax"], + _raw: "pop_up: w_consequence_m_relax", + _cleaned: "click | pop_up: w_consequence_m_relax", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_consequence_m_relax.sent", true], + _raw: "set_field: w_consequence_m_relax.sent : true", + _cleaned: "click | set_field: w_consequence_m_relax.sent : true", }, ], - priority: 4, + priority: 5.9, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "8", }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | current_workshop_number : 8", }, ], deactivation_condition_list: [ @@ -6650,119 +5637,111 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_stress_started", + field: "w_consequence_m_relax.sent", value: true, }, }, - _raw: "get_field | w_stress_started : true", + _raw: "get_field | w_consequence_m_relax.sent : true | before : 1 : day", }, ], - campaign_list: ["weekly_workshops", "workshop_quick_start"], - icon: "plh_images/icons/play_white.svg", - text: "Start", - _translatedFields: { - text: { - eng: "Start", - }, - }, + campaign_list: ["parent_points"], + icon: "plh_images/icons/smile_eyes_down_white.svg", }, { - id: "w_stress_continue", - workshop: "w_stress", - workshop_data: "@data.workshop.w_stress", + id: "w_consequence_m_something_fun", click_action_list: [ { trigger: "click", - action_id: "go_to", - args: ["w_stress_stepper"], - _raw: "go_to: w_stress_stepper", - _cleaned: "click | go_to: w_stress_stepper", + action_id: "pop_up", + args: ["w_consequence_m_something_fun"], + _raw: "pop_up: w_consequence_m_something_fun", + _cleaned: "click | pop_up: w_consequence_m_something_fun", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_consequence_m_something_fun.sent", true], + _raw: "set_field: w_consequence_m_something_fun.sent : true", + _cleaned: "click | set_field: w_consequence_m_something_fun.sent : true", }, ], - priority: 4, + priority: 5.8, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "8", }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | current_workshop_number : 8", }, + ], + deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_stress_started", + field: "w_consequence_m_something_fun.sent", value: true, }, }, - _raw: "get_field | w_stress_started : true", + _raw: "get_field | w_consequence_m_something_fun.sent : true", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_stress_completed", - value: true, + field: "current_relative_day_number", + value: "0", }, }, - _raw: "get_field | w_stress_completed: true", + _raw: "get_field | current_relative_day_number : 0", }, - ], - campaign_list: ["weekly_workshops", "workshop_quick_start"], - icon: "plh_images/icons/play_white.svg", - text: "Continue", - _translatedFields: { - text: { - eng: "Continue", + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, - }, + ], + campaign_list: ["parent_centre"], + icon: "plh_images/icons/smile_eyes_up_white.svg", }, { - id: "w_money_quick_start", - workshop: "w_money", - workshop_data: "@data.workshop.w_money", + id: "w_consequence_m_praise", click_action_list: [ { trigger: "click", - action_id: "go_to", - args: ["w_money_stepper"], - _raw: "go_to: w_money_stepper", - _cleaned: "click | go_to: w_money_stepper", + action_id: "pop_up", + args: ["w_consequence_m_praise"], + _raw: "pop_up: w_consequence_m_praise", + _cleaned: "click | pop_up: w_consequence_m_praise", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_consequence_m_praise.sent", true], + _raw: "set_field: w_consequence_m_praise.sent : true", + _cleaned: "click | set_field: w_consequence_m_praise.sent : true", }, ], - priority: 5, + priority: 5.7, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "8", }, }, - _raw: "first_launch | before: 34 : day", + _raw: "get_field | current_workshop_number : 8", }, ], deactivation_condition_list: [ @@ -6770,239 +5749,161 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_money_started", + field: "w_consequence_m_praise.sent", value: true, }, }, - _raw: "get_field | w_money_started : true", + _raw: "get_field | w_consequence_m_praise.sent : true", }, - ], - campaign_list: ["weekly_workshops", "workshop_quick_start"], - icon: "plh_images/icons/play_white.svg", - text: "Start", - _translatedFields: { - text: { - eng: "Start", - }, - }, - }, - { - id: "w_money_continue", - workshop: "w_money", - workshop_data: "@data.workshop.w_money", - click_action_list: [ - { - trigger: "click", - action_id: "go_to", - args: ["w_money_stepper"], - _raw: "go_to: w_money_stepper", - _cleaned: "click | go_to: w_money_stepper", - }, - ], - priority: 5, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "0", }, }, - _raw: "first_launch | before: 34 : day", + _raw: "get_field | current_relative_day_number : 0", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_money_started", - value: true, + field: "current_relative_day_number", + value: "1", }, }, - _raw: "get_field | w_money_started : true", + _raw: "get_field | current_relative_day_number : 1", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_money_completed", - value: true, + field: "current_relative_day_number", + value: "2", }, }, - _raw: "get_field | w_money_completed: true", + _raw: "get_field | current_relative_day_number : 2", }, ], - campaign_list: ["weekly_workshops", "workshop_quick_start"], - icon: "plh_images/icons/play_white.svg", - text: "Continue", - _translatedFields: { - text: { - eng: "Continue", - }, - }, + campaign_list: ["parent_centre"], + icon: "plh_images/icons/heart_white.svg", }, { - id: "w_rules_quick_start", - workshop: "w_rules", - workshop_data: "@data.workshop.w_rules", + id: "w_consequence_m_w_reminder", click_action_list: [ { trigger: "click", - action_id: "go_to", - args: ["w_rules_stepper"], - _raw: "go_to: w_rules_stepper", - _cleaned: "click | go_to: w_rules_stepper", + action_id: "pop_up", + args: ["w_consequence_m_w_reminder"], + _raw: "pop_up: w_consequence_m_w_reminder", + _cleaned: "click | pop_up: w_consequence_m_w_reminder", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_consequence_m_w_reminder.sent", true], + _raw: "set_field: w_consequence_m_w_reminder.sent : true", + _cleaned: "click | set_field: w_consequence_m_w_reminder.sent : true", }, ], - priority: 6, + priority: 5.6, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "8", }, }, - _raw: "first_launch | before: 34 : day", + _raw: "get_field | current_workshop_number : 8", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_rules_started", - value: true, + field: "w_consequence_started", + value: false, }, }, - _raw: "get_field | w_rules_started : true", + _raw: "get_field | w_consequence_started : false", }, ], - campaign_list: ["weekly_workshops", "workshop_quick_start"], - icon: "plh_images/icons/play_white.svg", - text: "Start", - _translatedFields: { - text: { - eng: "Start", - }, - }, - }, - { - id: "w_rules_continue", - workshop: "w_rules", - workshop_data: "@data.workshop.w_rules", - click_action_list: [ + deactivation_condition_list: [ { - trigger: "click", - action_id: "go_to", - args: ["w_rules_stepper"], - _raw: "go_to: w_rules_stepper", - _cleaned: "click | go_to: w_rules_stepper", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_consequence_m_w_reminder.sent", + value: true, + }, + }, + _raw: "get_field | w_consequence_m_w_reminder.sent : true", }, - ], - priority: 6, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "0", }, }, - _raw: "first_launch | before: 34 : day", + _raw: "get_field | current_relative_day_number : 0", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_rules_started", - value: true, + field: "current_relative_day_number", + value: "1", }, }, - _raw: "get_field | w_rules_started : true", + _raw: "get_field | current_relative_day_number : 1", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_rules_completed", - value: true, + field: "current_relative_day_number", + value: "2", }, }, - _raw: "get_field | w_rules_completed: true", + _raw: "get_field | current_relative_day_number : 2", }, ], - campaign_list: ["weekly_workshops", "workshop_quick_start"], - icon: "plh_images/icons/play_white.svg", - text: "Continue", - _translatedFields: { - text: { - eng: "Continue", - }, - }, + campaign_list: ["weekly_workshops"], + icon: "plh_images/icons/bell_white.svg", }, { - id: "w_consequence_quick_start", - workshop: "w_consequence", - workshop_data: "@data.workshop.w_consequence", + id: "w_consequence_m_w_in_progress", click_action_list: [ { trigger: "click", - action_id: "go_to", - args: ["w_consequence_stepper"], - _raw: "go_to: w_consequence_stepper", - _cleaned: "click | go_to: w_consequence_stepper", + action_id: "pop_up", + args: ["w_consequence_m_w_in_progress"], + _raw: "pop_up: w_consequence_m_w_in_progress", + _cleaned: "click | pop_up: w_consequence_m_w_in_progress", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_consequence_m_w_in_progress.sent", true], + _raw: "set_field: w_consequence_m_w_in_progress.sent : true", + _cleaned: "click | set_field: w_consequence_m_w_in_progress.sent : true", }, ], - priority: 7, + priority: 5.5, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "8", }, }, - _raw: "first_launch | before: 34 : day", + _raw: "get_field | current_workshop_number : 8", }, ], deactivation_condition_list: [ @@ -7010,67 +5911,52 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_consequence_started", + field: "w_consequence_m_w_in_progress.sent", value: true, }, }, - _raw: "get_field | w_consequence_started : true", + _raw: "get_field | w_consequence_m_w_in_progress.sent : true", }, - ], - campaign_list: ["weekly_workshops", "workshop_quick_start"], - icon: "plh_images/icons/play_white.svg", - text: "Start", - _translatedFields: { - text: { - eng: "Start", + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, - }, - }, - { - id: "w_consequence_continue", - workshop: "w_consequence", - workshop_data: "@data.workshop.w_consequence", - click_action_list: [ { - trigger: "click", - action_id: "go_to", - args: ["w_consequence_stepper"], - _raw: "go_to: w_consequence_stepper", - _cleaned: "click | go_to: w_consequence_stepper", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, - ], - priority: 7, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "2", }, }, - _raw: "first_launch | before: 34 : day", + _raw: "get_field | current_relative_day_number : 2", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { field: "w_consequence_started", - value: true, + value: false, }, }, - _raw: "get_field | w_consequence_started : true", + _raw: "get_field | w_consequence_started : false", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { @@ -7082,167 +5968,134 @@ const data_list: FlowTypes.Data_list[] = [ _raw: "get_field | w_consequence_completed: true", }, ], - campaign_list: ["weekly_workshops", "workshop_quick_start"], - icon: "plh_images/icons/play_white.svg", - text: "Continue", - _translatedFields: { - text: { - eng: "Continue", - }, - }, + campaign_list: ["weekly_workshops"], + icon: "plh_images/icons/bell_white.svg", }, { - id: "w_solve_quick_start", - workshop: "w_solve", - workshop_data: "@data.workshop.w_solve", + id: "w_consequence_m_hp_reminder", click_action_list: [ { trigger: "click", - action_id: "go_to", - args: ["w_solve_stepper"], - _raw: "go_to: w_solve_stepper", - _cleaned: "click | go_to: w_solve_stepper", + action_id: "pop_up", + args: ["w_consequence_m_hp_reminder"], + _raw: "pop_up: w_consequence_m_hp_reminder", + _cleaned: "click | pop_up: w_consequence_m_hp_reminder", }, - ], - priority: 8, - activation_condition_list: [ { - condition_type: "db_lookup", - condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, - }, - }, - _raw: "first_launch | before: 34 : day", + trigger: "click", + action_id: "set_field", + args: ["w_consequence_m_hp_reminder.sent", true], + _raw: "set_field: w_consequence_m_hp_reminder.sent : true", + _cleaned: "click | set_field: w_consequence_m_hp_reminder.sent : true", }, ], - deactivation_condition_list: [ + priority: 5.4, + activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_solve_started", + field: "current_workshop_number", + value: "8", + }, + }, + _raw: "get_field | current_workshop_number : 8", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_consequence_completed", value: true, }, }, - _raw: "get_field | w_solve_started : true", + _raw: "get_field | w_consequence_completed : true", }, ], - campaign_list: ["weekly_workshops", "workshop_quick_start"], - icon: "plh_images/icons/play_white.svg", - text: "Start", - _translatedFields: { - text: { - eng: "Start", + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_consequence_m_hp_reminder.sent", + value: true, + }, + }, + _raw: "get_field | w_consequence_m_hp_reminder.sent : true", }, - }, - }, - { - id: "w_solve_continue", - workshop: "w_solve", - workshop_data: "@data.workshop.w_solve", - click_action_list: [ { - trigger: "click", - action_id: "go_to", - args: ["w_solve_stepper"], - _raw: "go_to: w_solve_stepper", - _cleaned: "click | go_to: w_solve_stepper", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, - ], - priority: 8, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "1", }, }, - _raw: "first_launch | before: 34 : day", + _raw: "get_field | current_relative_day_number : 1", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_solve_started", - value: true, + field: "current_relative_day_number", + value: "2", }, }, - _raw: "get_field | w_solve_started : true", + _raw: "get_field | current_relative_day_number : 2", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_solve_completed", - value: true, + field: "current_relative_day_number", + value: "3", }, }, - _raw: "get_field | w_solve_completed: true", + _raw: "get_field | current_relative_day_number : 3", }, ], - campaign_list: ["weekly_workshops", "workshop_quick_start"], - icon: "plh_images/icons/play_white.svg", - text: "Continue", - _translatedFields: { - text: { - eng: "Continue", - }, - }, + campaign_list: ["parent_points"], + icon: "plh_images/icons/parent_heart_white.svg", }, { - id: "w_safe_quick_start", - workshop: "w_safe", - workshop_data: "@data.workshop.w_safe", + id: "w_consequence_m_parent_points_overview", click_action_list: [ { trigger: "click", - action_id: "go_to", - args: ["w_safe_stepper"], - _raw: "go_to: w_safe_stepper", - _cleaned: "click | go_to: w_safe_stepper", + action_id: "pop_up", + args: ["m_parent_points_overview"], + _raw: "pop_up: m_parent_points_overview", + _cleaned: "click | pop_up: m_parent_points_overview", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_consequence_m_parent_points_overview.sent", true], + _raw: "set_field: w_consequence_m_parent_points_overview.sent : true", + _cleaned: "click | set_field: w_consequence_m_parent_points_overview.sent : true", }, ], - priority: 9, + priority: 5.3, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "8", }, }, - _raw: "first_launch | before: 34 : day", + _raw: "get_field | current_workshop_number : 8", }, ], deactivation_condition_list: [ @@ -7250,239 +6103,211 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_safe_started", + field: "w_consequence_m_parent_points_overview.sent", value: true, }, }, - _raw: "get_field | w_safe_started : true", + _raw: "get_field | w_consequence_m_parent_points_overview.sent : true", }, - ], - campaign_list: ["weekly_workshops", "workshop_quick_start"], - icon: "plh_images/icons/play_white.svg", - text: "Start", - _translatedFields: { - text: { - eng: "Start", + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, - }, - }, - { - id: "w_safe_continue", - workshop: "w_safe", - workshop_data: "@data.workshop.w_safe", - click_action_list: [ { - trigger: "click", - action_id: "go_to", - args: ["w_safe_stepper"], - _raw: "go_to: w_safe_stepper", - _cleaned: "click | go_to: w_safe_stepper", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, - ], - priority: 9, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "2", }, }, - _raw: "first_launch | before: 34 : day", + _raw: "get_field | current_relative_day_number : 2", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_safe_started", - value: true, + field: "current_relative_day_number", + value: "3", }, }, - _raw: "get_field | w_safe_started : true", + _raw: "get_field | current_relative_day_number : 3", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_safe_completed", - value: true, + field: "current_relative_day_number", + value: "4", }, }, - _raw: "get_field | w_safe_completed: true", + _raw: "get_field | current_relative_day_number : 4", }, ], - campaign_list: ["weekly_workshops", "workshop_quick_start"], - icon: "plh_images/icons/play_white.svg", - text: "Continue", - _translatedFields: { - text: { - eng: "Continue", - }, - }, + campaign_list: ["parent_points"], + icon: "plh_images/icons/star_white.svg", }, { - id: "w_crisis_quick_start", - workshop: "w_crisis", - workshop_data: "@data.workshop.w_crisis", + id: "w_consequence_hp_review", click_action_list: [ { trigger: "click", action_id: "go_to", - args: ["w_crisis_stepper"], - _raw: "go_to: w_crisis_stepper", - _cleaned: "click | go_to: w_crisis_stepper", + args: ["w_consequence_hp_review"], + _raw: "go_to: w_consequence_hp_review", + _cleaned: "click | go_to: w_consequence_hp_review", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_consequence_hp_review.sent", true], + _raw: "set_field: w_consequence_hp_review.sent : true", + _cleaned: "click | set_field: w_consequence_hp_review.sent : true", }, ], - priority: 10, + priority: 5.2, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "8", }, }, - _raw: "first_launch | before: 34 : day", + _raw: "get_field | current_workshop_number : 8", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_crisis_started", + field: "w_consequence_completed", value: true, }, }, - _raw: "get_field | w_crisis_started : true", + _raw: "get_field | w_consequence_completed : true", }, ], - campaign_list: ["weekly_workshops", "workshop_quick_start"], - icon: "plh_images/icons/play_white.svg", - text: "Start", - _translatedFields: { - text: { - eng: "Start", - }, - }, - }, - { - id: "w_crisis_continue", - workshop: "w_crisis", - workshop_data: "@data.workshop.w_crisis", - click_action_list: [ + deactivation_condition_list: [ { - trigger: "click", - action_id: "go_to", - args: ["w_crisis_stepper"], - _raw: "go_to: w_crisis_stepper", - _cleaned: "click | go_to: w_crisis_stepper", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_consequence_hp_review_completed", + value: true, + }, + }, + _raw: "get_field | w_consequence_hp_review_completed : true", }, - ], - priority: 10, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "0", }, }, - _raw: "first_launch | before: 34 : day", + _raw: "get_field | current_relative_day_number : 0", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_crisis_started", - value: true, + field: "current_relative_day_number", + value: "1", }, }, - _raw: "get_field | w_crisis_started : true", + _raw: "get_field | current_relative_day_number : 1", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_crisis_completed", - value: true, + field: "current_relative_day_number", + value: "2", }, }, - _raw: "get_field | w_crisis_completed: true", + _raw: "get_field | current_relative_day_number : 2", }, - ], - campaign_list: ["weekly_workshops", "workshop_quick_start"], - icon: "plh_images/icons/play_white.svg", - text: "Continue", - _translatedFields: { - text: { - eng: "Continue", + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "3", + }, + }, + _raw: "get_field | current_relative_day_number : 3", }, - }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "4", + }, + }, + _raw: "get_field | current_relative_day_number : 4", + }, + ], + campaign_list: ["parent_centre"], + icon: "plh_images/icons/parent_heart_white.svg", }, { - id: "w_celebrate_quick_start", - workshop: "w_celebrate", - workshop_data: "@data.workshop.w_celebrate", + id: "w_consequence_m_w_tomorrow", click_action_list: [ { trigger: "click", - action_id: "go_to", - args: ["w_celebrate_stepper"], - _raw: "go_to: w_celebrate_stepper", - _cleaned: "click | go_to: w_celebrate_stepper", + action_id: "pop_up", + args: ["w_consequence_m_w_tomorrow"], + _raw: "pop_up: w_consequence_m_w_tomorrow", + _cleaned: "click | pop_up: w_consequence_m_w_tomorrow", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_consequence_m_w_tomorrow.sent", true], + _raw: "set_field: w_consequence_m_w_tomorrow.sent : true", + _cleaned: "click | set_field: w_consequence_m_w_tomorrow.sent : true", }, ], - priority: 11, + priority: 5.1, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "8", + }, + }, + _raw: "get_field | current_workshop_number : 8", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_consequence_completed", + value: false, }, }, - _raw: "first_launch | before: 34 : day", + _raw: "get_field | w_consequence_completed : false", }, ], deactivation_condition_list: [ @@ -7490,1613 +6315,1217 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_celebrate_started", + field: "w_consequence_m_w_tomorrow.sent", value: true, }, }, - _raw: "get_field | w_celebrate_started : true", + _raw: "get_field | w_consequence_m_w_tomorrow.sent : true", }, - ], - campaign_list: ["weekly_workshops", "workshop_quick_start"], - icon: "plh_images/icons/play_white.svg", - text: "Start", - _translatedFields: { - text: { - eng: "Start", + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, - }, - }, - { - id: "w_celebrate_continue", - workshop: "w_celebrate", - workshop_data: "@data.workshop.w_celebrate", - click_action_list: [ { - trigger: "click", - action_id: "go_to", - args: ["w_celebrate_stepper"], - _raw: "go_to: w_celebrate_stepper", - _cleaned: "click | go_to: w_celebrate_stepper", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, - ], - priority: 11, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "2", }, }, - _raw: "first_launch | before: 34 : day", + _raw: "get_field | current_relative_day_number : 2", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_celebrate_started", - value: true, + field: "current_relative_day_number", + value: "3", }, }, - _raw: "get_field | w_celebrate_started : true", + _raw: "get_field | current_relative_day_number : 3", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_celebrate_completed", - value: true, + field: "current_relative_day_number", + value: "4", }, }, - _raw: "get_field | w_celebrate_completed: true", + _raw: "get_field | current_relative_day_number : 4", }, - ], - campaign_list: ["weekly_workshops", "workshop_quick_start"], - icon: "plh_images/icons/play_white.svg", - text: "Continue", - _translatedFields: { - text: { - eng: "Continue", + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "5", + }, + }, + _raw: "get_field | current_relative_day_number : 5", }, - }, + ], + campaign_list: ["weekly_workshops"], + icon: "plh_images/icons/bell_white.svg", }, ], - _xlsxPath: "plh_sheets_beta/plh_templating/campaigns/campaign_quick_starts.xlsx", + _xlsxPath: "plh_sheets_beta/plh_templating/campaigns/campaign_home_screen_quick_start.xlsx", }, { flow_type: "data_list", flow_subtype: "campaign_rows", - flow_name: "campaign_relax", + flow_name: "campaign_hs_w_solve", status: "released", rows: [ { - id: "default", - click_action_list: [ - { - trigger: "click", - action_id: "set_field", - args: ["default.sent", true], - _raw: "set_field: default.sent : true", - _cleaned: "click | set_field: default.sent : true", - }, - ], - priority: -1, - campaign_list: ["relax"], - icon: "plh_images/icons/smile_eyes_down_white.svg", - }, - { - id: "w_self_care_relax", + id: "w_solve_m_w_released", click_action_list: [ { trigger: "click", - action_id: "go_to", - args: ["w_self_care_relax"], - _raw: "go_to: w_self_care_relax", - _cleaned: "click | go_to: w_self_care_relax", + action_id: "pop_up", + args: ["w_solve_m_w_released"], + _raw: "pop_up: w_solve_m_w_released", + _cleaned: "click | pop_up: w_solve_m_w_released", }, { trigger: "click", action_id: "set_field", - args: ["w_self_care_relax.sent", true], - _raw: "set_field: w_self_care_relax.sent : true", - _cleaned: "click | set_field: w_self_care_relax.sent : true", + args: ["w_solve_m_w_released.sent", true], + _raw: "set_field: w_solve_m_w_released.sent : true", + _cleaned: "click | set_field: w_solve_m_w_released.sent : true", }, ], - priority: 0.1, + priority: 4.99, activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_self_care_completed", - value: true, + field: "current_workshop_number", + value: "9", }, }, - _raw: "get_field | w_self_care_completed : true", + _raw: "get_field | current_workshop_number : 9", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_solve_started", + value: false, + }, + }, + _raw: "get_field | w_solve_started : false", }, ], deactivation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "6", - unit: "day", - }, + field_evaluation: { + field: "w_solve_m_w_released.sent", + value: true, }, }, - _raw: "first_launch | before : 6 : day", + _raw: "get_field | w_solve_m_w_released.sent : true", }, ], - campaign_list: ["relax"], - icon: "plh_images/icons/smile_eyes_down_white.svg", + campaign_list: ["weekly_workshops"], + icon: "plh_images/icons/bell_white.svg", }, { - id: "w_1on1_relax", + id: "w_solve_m_relax", click_action_list: [ { trigger: "click", - action_id: "go_to", - args: ["w_1on1_relax"], - _raw: "go_to: w_1on1_relax", - _cleaned: "click | go_to: w_1on1_relax", + action_id: "pop_up", + args: ["w_solve_m_relax"], + _raw: "pop_up: w_solve_m_relax", + _cleaned: "click | pop_up: w_solve_m_relax", }, { trigger: "click", action_id: "set_field", - args: ["w_1on1_relax.sent", true], - _raw: "set_field: w_1on1_relax.sent : true", - _cleaned: "click | set_field: w_1on1_relax.sent : true", + args: ["w_solve_m_relax.sent", true], + _raw: "set_field: w_solve_m_relax.sent : true", + _cleaned: "click | set_field: w_solve_m_relax.sent : true", }, ], - priority: 1.1, + priority: 4.9, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "6", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "9", }, }, - _raw: "first_launch | before: 6 : day", + _raw: "get_field | current_workshop_number : 9", }, ], deactivation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "13", - unit: "day", - }, + field_evaluation: { + field: "w_solve_m_relax.sent", + value: true, }, }, - _raw: "first_launch | before : 13 : day", + _raw: "get_field | w_solve_m_relax.sent : true | before : 1 : day", }, ], - campaign_list: ["relax"], + campaign_list: ["parent_points"], icon: "plh_images/icons/smile_eyes_down_white.svg", }, { - id: "w_praise_relax", + id: "w_solve_m_something_fun", click_action_list: [ { trigger: "click", - action_id: "go_to", - args: ["w_praise_relax"], - _raw: "go_to: w_praise_relax", - _cleaned: "click | go_to: w_praise_relax", + action_id: "pop_up", + args: ["w_solve_m_something_fun"], + _raw: "pop_up: w_solve_m_something_fun", + _cleaned: "click | pop_up: w_solve_m_something_fun", }, { trigger: "click", action_id: "set_field", - args: ["w_praise_relax.sent", true], - _raw: "set_field: w_praise_relax.sent : true", - _cleaned: "click | set_field: w_praise_relax.sent : true", + args: ["w_solve_m_something_fun.sent", true], + _raw: "set_field: w_solve_m_something_fun.sent : true", + _cleaned: "click | set_field: w_solve_m_something_fun.sent : true", }, ], - priority: 2.1, + priority: 4.8, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "13", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "9", }, }, - _raw: "first_launch | before: 13 : day", + _raw: "get_field | current_workshop_number : 9", }, ], deactivation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "20", - unit: "day", - }, + field_evaluation: { + field: "w_solve_m_something_fun.sent", + value: true, + }, + }, + _raw: "get_field | w_solve_m_something_fun.sent : true", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", }, }, - _raw: "first_launch | before : 20 : day", + _raw: "get_field | current_relative_day_number : 1", }, ], - campaign_list: ["relax"], - icon: "plh_images/icons/smile_eyes_down_white.svg", + campaign_list: ["parent_centre"], + icon: "plh_images/icons/smile_eyes_up_white.svg", }, { - id: "w_instruct_relax", + id: "w_solve_m_praise", click_action_list: [ { trigger: "click", - action_id: "go_to", - args: ["w_instruct_relax"], - _raw: "go_to: w_instruct_relax", - _cleaned: "click | go_to: w_instruct_relax", + action_id: "pop_up", + args: ["w_solve_m_praise"], + _raw: "pop_up: w_solve_m_praise", + _cleaned: "click | pop_up: w_solve_m_praise", }, { trigger: "click", action_id: "set_field", - args: ["w_instruct_relax.sent", true], - _raw: "set_field: w_instruct_relax.sent : true", - _cleaned: "click | set_field: w_instruct_relax.sent : true", + args: ["w_solve_m_praise.sent", true], + _raw: "set_field: w_solve_m_praise.sent : true", + _cleaned: "click | set_field: w_solve_m_praise.sent : true", }, ], - priority: 3.1, + priority: 4.7, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "20", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "9", }, }, - _raw: "first_launch | before: 20 : day", + _raw: "get_field | current_workshop_number : 9", }, ], deactivation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "w_solve_m_praise.sent", + value: true, }, }, - _raw: "first_launch | before : 27 : day", - }, - ], - campaign_list: ["relax"], - icon: "plh_images/icons/smile_eyes_down_white.svg", - }, - { - id: "w_stress_relax", - click_action_list: [ - { - trigger: "click", - action_id: "go_to", - args: ["w_stress_relax"], - _raw: "go_to: w_stress_relax", - _cleaned: "click | go_to: w_stress_relax", + _raw: "get_field | w_solve_m_praise.sent : true", }, { - trigger: "click", - action_id: "set_field", - args: ["w_stress_relax.sent", true], - _raw: "set_field: w_stress_relax.sent : true", - _cleaned: "click | set_field: w_stress_relax.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, - ], - priority: 4.1, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "1", }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | current_relative_day_number : 1", }, - ], - deactivation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "2", }, }, - _raw: "first_launch | before : 34 : day", + _raw: "get_field | current_relative_day_number : 2", }, ], - campaign_list: ["relax"], - icon: "plh_images/icons/smile_eyes_down_white.svg", + campaign_list: ["parent_centre"], + icon: "plh_images/icons/heart_white.svg", }, { - id: "w_money_relax", + id: "w_solve_m_w_reminder", click_action_list: [ { trigger: "click", - action_id: "go_to", - args: ["w_money_relax"], - _raw: "go_to: w_money_relax", - _cleaned: "click | go_to: w_money_relax", + action_id: "pop_up", + args: ["w_solve_m_w_reminder"], + _raw: "pop_up: w_solve_m_w_reminder", + _cleaned: "click | pop_up: w_solve_m_w_reminder", }, { trigger: "click", action_id: "set_field", - args: ["w_money_relax.sent", true], - _raw: "set_field: w_money_relax.sent : true", - _cleaned: "click | set_field: w_money_relax.sent : true", + args: ["w_solve_m_w_reminder.sent", true], + _raw: "set_field: w_solve_m_w_reminder.sent : true", + _cleaned: "click | set_field: w_solve_m_w_reminder.sent : true", }, ], - priority: 5.1, + priority: 4.6, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "9", }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | current_workshop_number : 9", }, - ], - deactivation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "w_solve_started", + value: false, }, }, - _raw: "first_launch | before : 34 : day", + _raw: "get_field | w_solve_started : false", }, ], - campaign_list: ["relax"], - icon: "plh_images/icons/smile_eyes_down_white.svg", - }, - { - id: "w_rules_relax", - click_action_list: [ + deactivation_condition_list: [ { - trigger: "click", - action_id: "go_to", - args: ["w_rules_relax"], - _raw: "go_to: w_rules_relax", - _cleaned: "click | go_to: w_rules_relax", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_solve_m_w_reminder.sent", + value: true, + }, + }, + _raw: "get_field | w_solve_m_w_reminder.sent : true", }, { - trigger: "click", - action_id: "set_field", - args: ["w_rules_relax.sent", true], - _raw: "set_field: w_rules_relax.sent : true", - _cleaned: "click | set_field: w_rules_relax.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, - ], - priority: 6.1, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "1", }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | current_relative_day_number : 1", }, - ], - deactivation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "2", }, }, - _raw: "first_launch | before : 34 : day", + _raw: "get_field | current_relative_day_number : 2", }, ], - campaign_list: ["relax"], - icon: "plh_images/icons/smile_eyes_down_white.svg", + campaign_list: ["weekly_workshops"], + icon: "plh_images/icons/bell_white.svg", }, { - id: "w_consequence_relax", + id: "w_solve_m_w_in_progress", click_action_list: [ { trigger: "click", - action_id: "go_to", - args: ["w_consequence_relax"], - _raw: "go_to: w_consequence_relax", - _cleaned: "click | go_to: w_consequence_relax", + action_id: "pop_up", + args: ["w_solve_m_w_in_progress"], + _raw: "pop_up: w_solve_m_w_in_progress", + _cleaned: "click | pop_up: w_solve_m_w_in_progress", }, { trigger: "click", action_id: "set_field", - args: ["w_consequence_relax.sent", true], - _raw: "set_field: w_consequence_relax.sent : true", - _cleaned: "click | set_field: w_consequence_relax.sent : true", + args: ["w_solve_m_w_in_progress.sent", true], + _raw: "set_field: w_solve_m_w_in_progress.sent : true", + _cleaned: "click | set_field: w_solve_m_w_in_progress.sent : true", }, ], - priority: 7.1, + priority: 4.5, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "9", }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | current_workshop_number : 9", }, ], deactivation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "w_solve_m_w_in_progress.sent", + value: true, }, }, - _raw: "first_launch | before : 34 : day", + _raw: "get_field | w_solve_m_w_in_progress.sent : true", }, - ], - campaign_list: ["relax"], - icon: "plh_images/icons/smile_eyes_down_white.svg", - }, - { - id: "w_solve_relax", - click_action_list: [ { - trigger: "click", - action_id: "go_to", - args: ["w_solve_relax"], - _raw: "go_to: w_solve_relax", - _cleaned: "click | go_to: w_solve_relax", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, { - trigger: "click", - action_id: "set_field", - args: ["w_solve_relax.sent", true], - _raw: "set_field: w_solve_relax.sent : true", - _cleaned: "click | set_field: w_solve_relax.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, - ], - priority: 8.1, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "2", }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | current_relative_day_number : 2", }, - ], - deactivation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "w_solve_started", + value: false, }, }, - _raw: "first_launch | before : 34 : day", + _raw: "get_field | w_solve_started : false", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_solve_completed", + value: true, + }, + }, + _raw: "get_field | w_solve_completed: true", }, ], - campaign_list: ["relax"], - icon: "plh_images/icons/smile_eyes_down_white.svg", + campaign_list: ["weekly_workshops"], + icon: "plh_images/icons/bell_white.svg", }, { - id: "w_safe_relax", + id: "w_solve_m_hp_reminder", click_action_list: [ { trigger: "click", - action_id: "go_to", - args: ["w_safe_relax"], - _raw: "go_to: w_safe_relax", - _cleaned: "click | go_to: w_safe_relax", + action_id: "pop_up", + args: ["w_solve_m_hp_reminder"], + _raw: "pop_up: w_solve_m_hp_reminder", + _cleaned: "click | pop_up: w_solve_m_hp_reminder", }, { trigger: "click", action_id: "set_field", - args: ["w_safe_relax.sent", true], - _raw: "set_field: w_safe_relax.sent : true", - _cleaned: "click | set_field: w_safe_relax.sent : true", + args: ["w_solve_m_hp_reminder.sent", true], + _raw: "set_field: w_solve_m_hp_reminder.sent : true", + _cleaned: "click | set_field: w_solve_m_hp_reminder.sent : true", }, ], - priority: 9.1, + priority: 4.4, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "9", }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | current_workshop_number : 9", }, - ], - deactivation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "w_solve_completed", + value: true, }, }, - _raw: "first_launch | before : 34 : day", + _raw: "get_field | w_solve_completed : true", }, ], - campaign_list: ["relax"], - icon: "plh_images/icons/smile_eyes_down_white.svg", - }, - { - id: "w_crisis_relax", - click_action_list: [ + deactivation_condition_list: [ { - trigger: "click", - action_id: "go_to", - args: ["w_crisis_relax"], - _raw: "go_to: w_crisis_relax", - _cleaned: "click | go_to: w_crisis_relax", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_solve_m_hp_reminder.sent", + value: true, + }, + }, + _raw: "get_field | w_solve_m_hp_reminder.sent : true", }, { - trigger: "click", - action_id: "set_field", - args: ["w_crisis_relax.sent", true], - _raw: "set_field: w_crisis_relax.sent : true", - _cleaned: "click | set_field: w_crisis_relax.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, - ], - priority: 10.1, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "1", }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | current_relative_day_number : 1", }, - ], - deactivation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "2", }, }, - _raw: "first_launch | before : 34 : day", + _raw: "get_field | current_relative_day_number : 2", }, - ], - campaign_list: ["relax"], - icon: "plh_images/icons/smile_eyes_down_white.svg", - }, - ], - _xlsxPath: "plh_sheets_beta/plh_templating/campaigns/campaign_quick_starts.xlsx", - }, - { - flow_type: "data_list", - flow_subtype: "campaign_rows", - flow_name: "campaign_something_fun", - status: "released", - rows: [ - { - id: "default", - click_action_list: [ { - trigger: "click", - action_id: "set_field", - args: ["default.sent", true], - _raw: "set_field: default.sent : true", - _cleaned: "click | set_field: default.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "3", + }, + }, + _raw: "get_field | current_relative_day_number : 3", }, ], - priority: -1, - campaign_list: ["something_fun"], - icon: "plh_images/icons/smile_eyes_up_white.svg", + campaign_list: ["parent_points"], + icon: "plh_images/icons/parent_heart_white.svg", }, { - id: "w_1on1_m_something_fun", + id: "w_solve_m_parent_points_overview", click_action_list: [ { trigger: "click", - action_id: "go_to", - args: ["activity_co_chef"], - _raw: "go_to: activity_co_chef", - _cleaned: "click | go_to: activity_co_chef", + action_id: "pop_up", + args: ["m_parent_points_overview"], + _raw: "pop_up: m_parent_points_overview", + _cleaned: "click | pop_up: m_parent_points_overview", }, { trigger: "click", action_id: "set_field", - args: ["w_1on1_m_something_fun.sent", true], - _raw: "set_field: w_1on1_m_something_fun.sent : true", - _cleaned: "click | set_field: w_1on1_m_something_fun.sent : true", + args: ["w_solve_m_parent_points_overview.sent", true], + _raw: "set_field: w_solve_m_parent_points_overview.sent : true", + _cleaned: "click | set_field: w_solve_m_parent_points_overview.sent : true", }, ], - priority: 1.4, + priority: 4.3, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "6", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "9", }, }, - _raw: "first_launch | before: 6 : day", + _raw: "get_field | current_workshop_number : 9", }, ], deactivation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "13", - unit: "day", - }, + field_evaluation: { + field: "w_solve_m_parent_points_overview.sent", + value: true, }, }, - _raw: "first_launch | before : 13 : day", + _raw: "get_field | w_solve_m_parent_points_overview.sent : true", }, - ], - campaign_list: ["something_fun"], - icon: "plh_images/icons/smile_eyes_up_white.svg", - }, - { - id: "w_praise_m_something_fun", - click_action_list: [ { - trigger: "click", - action_id: "go_to", - args: ["activity_reflect_positive"], - _raw: "go_to: activity_reflect_positive", - _cleaned: "click | go_to: activity_reflect_positive", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, { - trigger: "click", - action_id: "set_field", - args: ["w_praise_m_something_fun.sent", true], - _raw: "set_field: w_praise_m_something_fun.sent : true", - _cleaned: "click | set_field: w_praise_m_something_fun.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, - ], - priority: 2.4, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "13", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "2", }, }, - _raw: "first_launch | before: 13 : day", + _raw: "get_field | current_relative_day_number : 2", }, - ], - deactivation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "20", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "3", + }, + }, + _raw: "get_field | current_relative_day_number : 3", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "4", }, }, - _raw: "first_launch | before : 20 : day", + _raw: "get_field | current_relative_day_number : 4", }, ], - campaign_list: ["something_fun"], - icon: "plh_images/icons/smile_eyes_up_white.svg", + campaign_list: ["parent_points"], + icon: "plh_images/icons/star_white.svg", }, { - id: "w_instruct_m_something_fun", + id: "w_solve_hp_review", click_action_list: [ { trigger: "click", action_id: "go_to", - args: ["activity_dance_moves"], - _raw: "go_to: activity_dance_moves", - _cleaned: "click | go_to: activity_dance_moves", + args: ["w_solve_hp_review"], + _raw: "go_to: w_solve_hp_review", + _cleaned: "click | go_to: w_solve_hp_review", }, { trigger: "click", action_id: "set_field", - args: ["w_instruct_m_something_fun.sent", true], - _raw: "set_field: w_instruct_m_something_fun.sent : true", - _cleaned: "click | set_field: w_instruct_m_something_fun.sent : true", + args: ["w_solve_hp_review.sent", true], + _raw: "set_field: w_solve_hp_review.sent : true", + _cleaned: "click | set_field: w_solve_hp_review.sent : true", }, ], - priority: 3.4, + priority: 4.2, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "20", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "9", + }, + }, + _raw: "get_field | current_workshop_number : 9", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_solve_completed", + value: true, }, }, - _raw: "first_launch | before: 20 : day", + _raw: "get_field | w_solve_completed : true", }, ], deactivation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "w_solve_hp_review_completed", + value: true, }, }, - _raw: "first_launch | before : 27 : day", + _raw: "get_field | w_solve_hp_review_completed : true", }, - ], - campaign_list: ["something_fun"], - icon: "plh_images/icons/smile_eyes_up_white.svg", - }, - { - id: "w_stress_m_something_fun", - click_action_list: [ { - trigger: "click", - action_id: "go_to", - args: ["activity_check_in_chat"], - _raw: "go_to: activity_check_in_chat", - _cleaned: "click | go_to: activity_check_in_chat", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, { - trigger: "click", - action_id: "set_field", - args: ["w_stress_m_something_fun.sent", true], - _raw: "set_field: w_stress_m_something_fun.sent : true", - _cleaned: "click | set_field: w_stress_m_something_fun.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, - ], - priority: 4.4, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "2", }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | current_relative_day_number : 2", }, - ], - deactivation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "3", + }, + }, + _raw: "get_field | current_relative_day_number : 3", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "4", }, }, - _raw: "first_launch | before : 34 : day", + _raw: "get_field | current_relative_day_number : 4", }, ], - campaign_list: ["something_fun"], - icon: "plh_images/icons/smile_eyes_up_white.svg", + campaign_list: ["parent_centre"], + icon: "plh_images/icons/parent_heart_white.svg", }, { - id: "w_money_m_something_fun", + id: "w_solve_m_w_tomorrow", click_action_list: [ { trigger: "click", - action_id: "go_to", - args: ["activity_dream_travel"], - _raw: "go_to: activity_dream_travel", - _cleaned: "click | go_to: activity_dream_travel", + action_id: "pop_up", + args: ["w_solve_m_w_tomorrow"], + _raw: "pop_up: w_solve_m_w_tomorrow", + _cleaned: "click | pop_up: w_solve_m_w_tomorrow", }, { trigger: "click", action_id: "set_field", - args: ["w_money_m_something_fun.sent", true], - _raw: "set_field: w_money_m_something_fun.sent : true", - _cleaned: "click | set_field: w_money_m_something_fun.sent : true", + args: ["w_solve_m_w_tomorrow.sent", true], + _raw: "set_field: w_solve_m_w_tomorrow.sent : true", + _cleaned: "click | set_field: w_solve_m_w_tomorrow.sent : true", }, ], - priority: 5.4, + priority: 4.1, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "9", }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | current_workshop_number : 9", }, - ], - deactivation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "w_solve_completed", + value: false, }, }, - _raw: "first_launch | before : 34 : day", + _raw: "get_field | w_solve_completed : false", }, ], - campaign_list: ["something_fun"], - icon: "plh_images/icons/smile_eyes_up_white.svg", - }, - { - id: "w_rules_m_something_fun", - click_action_list: [ + deactivation_condition_list: [ { - trigger: "click", - action_id: "go_to", - args: ["activity_famous_party"], - _raw: "go_to: activity_famous_party", - _cleaned: "click | go_to: activity_famous_party", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_solve_m_w_tomorrow.sent", + value: true, + }, + }, + _raw: "get_field | w_solve_m_w_tomorrow.sent : true", }, { - trigger: "click", - action_id: "set_field", - args: ["w_rules_m_something_fun.sent", true], - _raw: "set_field: w_rules_m_something_fun.sent : true", - _cleaned: "click | set_field: w_rules_m_something_fun.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, - ], - priority: 6.4, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "1", }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | current_relative_day_number : 1", }, - ], - deactivation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "2", }, }, - _raw: "first_launch | before : 34 : day", + _raw: "get_field | current_relative_day_number : 2", }, - ], - campaign_list: ["something_fun"], - icon: "plh_images/icons/smile_eyes_up_white.svg", - }, - { - id: "w_consequence_m_something_fun", - click_action_list: [ { - trigger: "click", - action_id: "go_to", - args: ["activity_two_truths"], - _raw: "go_to: activity_two_truths", - _cleaned: "click | go_to: activity_two_truths", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_consequence_m_something_fun.sent", true], - _raw: "set_field: w_consequence_m_something_fun.sent : true", - _cleaned: "click | set_field: w_consequence_m_something_fun.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "3", + }, + }, + _raw: "get_field | current_relative_day_number : 3", }, - ], - priority: 7.4, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "4", }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | current_relative_day_number : 4", }, - ], - deactivation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "5", }, }, - _raw: "first_launch | before : 34 : day", + _raw: "get_field | current_relative_day_number : 5", }, ], - campaign_list: ["something_fun"], - icon: "plh_images/icons/smile_eyes_up_white.svg", + campaign_list: ["weekly_workshops"], + icon: "plh_images/icons/bell_white.svg", }, + ], + _xlsxPath: "plh_sheets_beta/plh_templating/campaigns/campaign_home_screen_quick_start.xlsx", + }, + { + flow_type: "data_list", + flow_subtype: "campaign_rows", + flow_name: "campaign_hs_w_safe", + status: "released", + rows: [ { - id: "w_solve_m_something_fun", + id: "w_safe_m_w_released", click_action_list: [ { trigger: "click", - action_id: "go_to", - args: ["activity_mirror"], - _raw: "go_to: activity_mirror", - _cleaned: "click | go_to: activity_mirror", + action_id: "pop_up", + args: ["w_safe_m_w_released"], + _raw: "pop_up: w_safe_m_w_released", + _cleaned: "click | pop_up: w_safe_m_w_released", }, { trigger: "click", action_id: "set_field", - args: ["w_solve_m_something_fun.sent", true], - _raw: "set_field: w_solve_m_something_fun.sent : true", - _cleaned: "click | set_field: w_solve_m_something_fun.sent : true", + args: ["w_safe_m_w_released.sent", true], + _raw: "set_field: w_safe_m_w_released.sent : true", + _cleaned: "click | set_field: w_safe_m_w_released.sent : true", }, ], - priority: 8.4, + priority: 3.99, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "10", + }, + }, + _raw: "get_field | current_workshop_number : 10", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_safe_started", + value: false, }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | w_safe_started : false", }, ], deactivation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "w_safe_m_w_released.sent", + value: true, }, }, - _raw: "first_launch | before : 34 : day", + _raw: "get_field | w_safe_m_w_released.sent : true", }, ], - campaign_list: ["something_fun"], - icon: "plh_images/icons/smile_eyes_up_white.svg", + campaign_list: ["weekly_workshops"], + icon: "plh_images/icons/bell_white.svg", }, { - id: "w_safe_m_something_fun", + id: "w_safe_m_relax", click_action_list: [ { trigger: "click", - action_id: "go_to", - args: ["activity_time_machine"], - _raw: "go_to: activity_time_machine", - _cleaned: "click | go_to: activity_time_machine", + action_id: "pop_up", + args: ["w_safe_m_relax"], + _raw: "pop_up: w_safe_m_relax", + _cleaned: "click | pop_up: w_safe_m_relax", }, { trigger: "click", action_id: "set_field", - args: ["w_safe_m_something_fun.sent", true], - _raw: "set_field: w_safe_m_something_fun.sent : true", - _cleaned: "click | set_field: w_safe_m_something_fun.sent : true", + args: ["w_safe_m_relax.sent", true], + _raw: "set_field: w_safe_m_relax.sent : true", + _cleaned: "click | set_field: w_safe_m_relax.sent : true", }, ], - priority: 9.4, + priority: 3.9, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "10", }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | current_workshop_number : 10", }, ], deactivation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "w_safe_m_relax.sent", + value: true, }, }, - _raw: "first_launch | before : 34 : day", + _raw: "get_field | w_safe_m_relax.sent : true | before : 1 : day", }, ], - campaign_list: ["something_fun"], - icon: "plh_images/icons/smile_eyes_up_white.svg", + campaign_list: ["parent_points"], + icon: "plh_images/icons/smile_eyes_down_white.svg", }, { - id: "w_crisis_m_something_fun", + id: "w_safe_m_something_fun", click_action_list: [ { trigger: "click", - action_id: "go_to", - args: ["activity_superpowers"], - _raw: "go_to: activity_superpowers", - _cleaned: "click | go_to: activity_superpowers", + action_id: "pop_up", + args: ["w_safe_m_something_fun"], + _raw: "pop_up: w_safe_m_something_fun", + _cleaned: "click | pop_up: w_safe_m_something_fun", }, { trigger: "click", action_id: "set_field", - args: ["w_crisis_m_something_fun.sent", true], - _raw: "set_field: w_crisis_m_something_fun.sent : true", - _cleaned: "click | set_field: w_crisis_m_something_fun.sent : true", + args: ["w_safe_m_something_fun.sent", true], + _raw: "set_field: w_safe_m_something_fun.sent : true", + _cleaned: "click | set_field: w_safe_m_something_fun.sent : true", }, ], - priority: 10.4, + priority: 3.8, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "27", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "10", }, }, - _raw: "first_launch | before: 27 : day", + _raw: "get_field | current_workshop_number : 10", }, ], deactivation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "34", - unit: "day", - }, + field_evaluation: { + field: "w_safe_m_something_fun.sent", + value: true, + }, + }, + _raw: "get_field | w_safe_m_something_fun.sent : true", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", }, }, - _raw: "first_launch | before : 34 : day", + _raw: "get_field | current_relative_day_number : 1", }, ], - campaign_list: ["something_fun"], + campaign_list: ["parent_centre"], icon: "plh_images/icons/smile_eyes_up_white.svg", }, - ], - _xlsxPath: "plh_sheets_beta/plh_templating/campaigns/campaign_quick_starts.xlsx", - }, - { - flow_type: "data_list", - flow_subtype: "campaign_rows", - flow_name: "campaign_hp_review", - status: "released", - rows: [ { - id: "w_1on1_hp_review", + id: "w_safe_m_praise", click_action_list: [ { trigger: "click", - action_id: "go_to", - args: ["w_1on1_hp_review"], - _raw: "go_to: w_1on1_hp_review", - _cleaned: "click | go_to: w_1on1_hp_review", + action_id: "pop_up", + args: ["w_safe_m_praise"], + _raw: "pop_up: w_safe_m_praise", + _cleaned: "click | pop_up: w_safe_m_praise", }, { trigger: "click", action_id: "set_field", - args: ["w_1on1_hp_review.sent", true], - _raw: "set_field: w_1on1_hp_review.sent : true", - _cleaned: "click | set_field: w_1on1_hp_review.sent : true", + args: ["w_safe_m_praise.sent", true], + _raw: "set_field: w_safe_m_praise.sent : true", + _cleaned: "click | set_field: w_safe_m_praise.sent : true", }, ], - priority: 1.9, + priority: 3.7, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "12", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "10", }, }, - _raw: "first_launch | before: 12 : day", + _raw: "get_field | current_workshop_number : 10", }, + ], + deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_1on1_completed", + field: "w_safe_m_praise.sent", value: true, }, }, - _raw: "get_field | w_1on1_completed : true", + _raw: "get_field | w_safe_m_praise.sent : true", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_1on1_hp_review_completed", - value: true, + field: "current_relative_day_number", + value: "0", }, }, - _raw: "get_field | w_1on1_hp_review_completed : true", - }, - ], - campaign_list: ["parent_centre"], - icon: "plh_images/icons/parent_heart_white.svg", - }, - { - id: "w_praise_hp_review", - click_action_list: [ - { - trigger: "click", - action_id: "go_to", - args: ["w_praise_hp_review"], - _raw: "go_to: w_praise_hp_review", - _cleaned: "click | go_to: w_praise_hp_review", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_praise_hp_review.sent", true], - _raw: "set_field: w_praise_hp_review.sent : true", - _cleaned: "click | set_field: w_praise_hp_review.sent : true", - }, - ], - priority: 2.9, - activation_condition_list: [ - { - condition_type: "db_lookup", - condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "19", - unit: "day", - }, - }, - }, - _raw: "first_launch | before: 19 : day", + _raw: "get_field | current_relative_day_number : 0", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_praise_completed", - value: true, + field: "current_relative_day_number", + value: "1", }, }, - _raw: "get_field | w_praise_completed : true", + _raw: "get_field | current_relative_day_number : 1", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_praise_hp_review_completed", - value: true, + field: "current_relative_day_number", + value: "2", }, }, - _raw: "get_field | w_praise_hp_review_completed : true", + _raw: "get_field | current_relative_day_number : 2", }, ], campaign_list: ["parent_centre"], - icon: "plh_images/icons/parent_heart_white.svg", + icon: "plh_images/icons/heart_white.svg", }, { - id: "w_instruct_hp_review", + id: "w_safe_m_w_reminder", click_action_list: [ { trigger: "click", - action_id: "go_to", - args: ["w_instruct_hp_review"], - _raw: "go_to: w_instruct_hp_review", - _cleaned: "click | go_to: w_instruct_hp_review", + action_id: "pop_up", + args: ["w_safe_m_w_reminder"], + _raw: "pop_up: w_safe_m_w_reminder", + _cleaned: "click | pop_up: w_safe_m_w_reminder", }, { trigger: "click", action_id: "set_field", - args: ["w_instruct_hp_review.sent", true], - _raw: "set_field: w_instruct_hp_review.sent : true", - _cleaned: "click | set_field: w_instruct_hp_review.sent : true", + args: ["w_safe_m_w_reminder.sent", true], + _raw: "set_field: w_safe_m_w_reminder.sent : true", + _cleaned: "click | set_field: w_safe_m_w_reminder.sent : true", }, ], - priority: 3.9, + priority: 3.6, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "26", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "10", }, }, - _raw: "first_launch | before: 26 : day", + _raw: "get_field | current_workshop_number : 10", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_instruct_completed", - value: true, + field: "w_safe_started", + value: false, }, }, - _raw: "get_field | w_instruct_completed : true", + _raw: "get_field | w_safe_started : false", }, ], deactivation_condition_list: [ @@ -9104,255 +7533,181 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_instruct_hp_review_completed", + field: "w_safe_m_w_reminder.sent", value: true, }, }, - _raw: "get_field | w_instruct_hp_review_completed : true", - }, - ], - campaign_list: ["parent_centre"], - icon: "plh_images/icons/parent_heart_white.svg", - }, - { - id: "w_stress_hp_review", - click_action_list: [ - { - trigger: "click", - action_id: "go_to", - args: ["w_stress_hp_review"], - _raw: "go_to: w_stress_hp_review", - _cleaned: "click | go_to: w_stress_hp_review", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_stress_hp_review.sent", true], - _raw: "set_field: w_stress_hp_review.sent : true", - _cleaned: "click | set_field: w_stress_hp_review.sent : true", + _raw: "get_field | w_safe_m_w_reminder.sent : true", }, - ], - priority: 4.9, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "33", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "0", }, }, - _raw: "first_launch | before: 33 : day", + _raw: "get_field | current_relative_day_number : 0", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_stress_completed", - value: true, + field: "current_relative_day_number", + value: "1", }, }, - _raw: "get_field | w_stress_completed : true", + _raw: "get_field | current_relative_day_number : 1", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_stress_hp_review_completed", - value: true, + field: "current_relative_day_number", + value: "2", }, }, - _raw: "get_field | w_stress_hp_review_completed : true", + _raw: "get_field | current_relative_day_number : 2", }, ], - campaign_list: ["parent_centre"], - icon: "plh_images/icons/parent_heart_white.svg", + campaign_list: ["weekly_workshops"], + icon: "plh_images/icons/bell_white.svg", }, { - id: "w_money_hp_review", + id: "w_safe_m_w_in_progress", click_action_list: [ { trigger: "click", - action_id: "go_to", - args: ["w_money_hp_review"], - _raw: "go_to: w_money_hp_review", - _cleaned: "click | go_to: w_money_hp_review", + action_id: "pop_up", + args: ["w_safe_m_w_in_progress"], + _raw: "pop_up: w_safe_m_w_in_progress", + _cleaned: "click | pop_up: w_safe_m_w_in_progress", }, { trigger: "click", action_id: "set_field", - args: ["w_money_hp_review.sent", true], - _raw: "set_field: w_money_hp_review.sent : true", - _cleaned: "click | set_field: w_money_hp_review.sent : true", + args: ["w_safe_m_w_in_progress.sent", true], + _raw: "set_field: w_safe_m_w_in_progress.sent : true", + _cleaned: "click | set_field: w_safe_m_w_in_progress.sent : true", }, ], - priority: 5.9, + priority: 3.5, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "33", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "10", }, }, - _raw: "first_launch | before: 33 : day", + _raw: "get_field | current_workshop_number : 10", }, + ], + deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_money_completed", + field: "w_safe_m_w_in_progress.sent", value: true, }, }, - _raw: "get_field | w_money_completed : true", + _raw: "get_field | w_safe_m_w_in_progress.sent : true", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_money_hp_review_completed", - value: true, + field: "current_relative_day_number", + value: "0", }, }, - _raw: "get_field | w_money_hp_review_completed : true", - }, - ], - campaign_list: ["parent_centre"], - icon: "plh_images/icons/parent_heart_white.svg", - }, - { - id: "w_rules_hp_review", - click_action_list: [ - { - trigger: "click", - action_id: "go_to", - args: ["w_rules_hp_review"], - _raw: "go_to: w_rules_hp_review", - _cleaned: "click | go_to: w_rules_hp_review", + _raw: "get_field | current_relative_day_number : 0", }, { - trigger: "click", - action_id: "set_field", - args: ["w_rules_hp_review.sent", true], - _raw: "set_field: w_rules_hp_review.sent : true", - _cleaned: "click | set_field: w_rules_hp_review.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, - ], - priority: 6.9, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "33", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "2", }, }, - _raw: "first_launch | before: 33 : day", + _raw: "get_field | current_relative_day_number : 2", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_rules_completed", - value: true, + field: "w_safe_started", + value: false, }, }, - _raw: "get_field | w_rules_completed : true", + _raw: "get_field | w_safe_started : false", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_rules_hp_review_completed", + field: "w_safe_completed", value: true, }, }, - _raw: "get_field | w_rules_hp_review_completed : true", + _raw: "get_field | w_safe_completed: true", }, ], - campaign_list: ["parent_centre"], - icon: "plh_images/icons/parent_heart_white.svg", + campaign_list: ["weekly_workshops"], + icon: "plh_images/icons/bell_white.svg", }, { - id: "w_consequence_hp_review", + id: "w_safe_m_hp_reminder", click_action_list: [ { trigger: "click", - action_id: "go_to", - args: ["w_consequence_hp_review"], - _raw: "go_to: w_consequence_hp_review", - _cleaned: "click | go_to: w_consequence_hp_review", + action_id: "pop_up", + args: ["w_safe_m_hp_reminder"], + _raw: "pop_up: w_safe_m_hp_reminder", + _cleaned: "click | pop_up: w_safe_m_hp_reminder", }, { trigger: "click", action_id: "set_field", - args: ["w_consequence_hp_review.sent", true], - _raw: "set_field: w_consequence_hp_review.sent : true", - _cleaned: "click | set_field: w_consequence_hp_review.sent : true", + args: ["w_safe_m_hp_reminder.sent", true], + _raw: "set_field: w_safe_m_hp_reminder.sent : true", + _cleaned: "click | set_field: w_safe_m_hp_reminder.sent : true", }, ], - priority: 7.9, + priority: 3.4, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "33", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "10", }, }, - _raw: "first_launch | before: 33 : day", + _raw: "get_field | current_workshop_number : 10", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_consequence_completed", + field: "w_safe_completed", value: true, }, }, - _raw: "get_field | w_consequence_completed : true", + _raw: "get_field | w_safe_completed : true", }, ], deactivation_condition_list: [ @@ -9360,79 +7715,151 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_consequence_hp_review_completed", + field: "w_safe_m_hp_reminder.sent", value: true, }, }, - _raw: "get_field | w_consequence_hp_review_completed : true", + _raw: "get_field | w_safe_m_hp_reminder.sent : true", }, - ], - campaign_list: ["parent_centre"], + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "2", + }, + }, + _raw: "get_field | current_relative_day_number : 2", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "3", + }, + }, + _raw: "get_field | current_relative_day_number : 3", + }, + ], + campaign_list: ["parent_points"], icon: "plh_images/icons/parent_heart_white.svg", }, { - id: "w_solve_hp_review", + id: "w_safe_m_parent_points_overview", click_action_list: [ { trigger: "click", - action_id: "go_to", - args: ["w_solve_hp_review"], - _raw: "go_to: w_solve_hp_review", - _cleaned: "click | go_to: w_solve_hp_review", + action_id: "pop_up", + args: ["m_parent_points_overview"], + _raw: "pop_up: m_parent_points_overview", + _cleaned: "click | pop_up: m_parent_points_overview", }, { trigger: "click", action_id: "set_field", - args: ["w_solve_hp_review.sent", true], - _raw: "set_field: w_solve_hp_review.sent : true", - _cleaned: "click | set_field: w_solve_hp_review.sent : true", + args: ["w_safe_m_parent_points_overview.sent", true], + _raw: "set_field: w_safe_m_parent_points_overview.sent : true", + _cleaned: "click | set_field: w_safe_m_parent_points_overview.sent : true", }, ], - priority: 8.9, + priority: 3.3, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "33", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "10", }, }, - _raw: "first_launch | before: 33 : day", + _raw: "get_field | current_workshop_number : 10", }, + ], + deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_solve_completed", + field: "w_safe_m_parent_points_overview.sent", value: true, }, }, - _raw: "get_field | w_solve_completed : true", + _raw: "get_field | w_safe_m_parent_points_overview.sent : true", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_solve_hp_review_completed", - value: true, + field: "current_relative_day_number", + value: "0", }, }, - _raw: "get_field | w_solve_hp_review_completed : true", + _raw: "get_field | current_relative_day_number : 0", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "2", + }, + }, + _raw: "get_field | current_relative_day_number : 2", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "3", + }, + }, + _raw: "get_field | current_relative_day_number : 3", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "4", + }, + }, + _raw: "get_field | current_relative_day_number : 4", }, ], - campaign_list: ["parent_centre"], - icon: "plh_images/icons/parent_heart_white.svg", + campaign_list: ["parent_points"], + icon: "plh_images/icons/star_white.svg", }, { id: "w_safe_hp_review", @@ -9452,25 +7879,17 @@ const data_list: FlowTypes.Data_list[] = [ _cleaned: "click | set_field: w_safe_hp_review.sent : true", }, ], - priority: 9.9, + priority: 3.2, activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "33", - unit: "day", - }, + field_evaluation: { + field: "current_workshop_number", + value: "10", }, }, - _raw: "first_launch | before: 33 : day", + _raw: "get_field | current_workshop_number : 10", }, { condition_type: "field_evaluation", @@ -9494,296 +7913,224 @@ const data_list: FlowTypes.Data_list[] = [ }, _raw: "get_field | w_safe_hp_review_completed : true", }, - ], - campaign_list: ["parent_centre"], - icon: "plh_images/icons/parent_heart_white.svg", - }, - { - id: "w_crisis_hp_review", - click_action_list: [ { - trigger: "click", - action_id: "go_to", - args: ["w_crisis_hp_review"], - _raw: "go_to: w_crisis_hp_review", - _cleaned: "click | go_to: w_crisis_hp_review", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, { - trigger: "click", - action_id: "set_field", - args: ["w_crisis_hp_review.sent", true], - _raw: "set_field: w_crisis_hp_review.sent : true", - _cleaned: "click | set_field: w_crisis_hp_review.sent : true", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, - ], - priority: 10.9, - activation_condition_list: [ { - condition_type: "db_lookup", + condition_type: "field_evaluation", condition_args: { - db_lookup: { - table_id: "app_events", - where: { - event_id: "app_launch", - }, - order: "asc", - evaluate: { - operator: ">", - value: "33", - unit: "day", - }, + field_evaluation: { + field: "current_relative_day_number", + value: "2", }, }, - _raw: "first_launch | before: 33 : day", + _raw: "get_field | current_relative_day_number : 2", }, { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_crisis_completed", - value: true, + field: "current_relative_day_number", + value: "3", }, }, - _raw: "get_field | w_crisis_completed : true", + _raw: "get_field | current_relative_day_number : 3", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "w_crisis_hp_review_completed", - value: true, + field: "current_relative_day_number", + value: "4", }, }, - _raw: "get_field | w_crisis_hp_review_completed : true", + _raw: "get_field | current_relative_day_number : 4", }, ], campaign_list: ["parent_centre"], icon: "plh_images/icons/parent_heart_white.svg", }, - ], - _xlsxPath: "plh_sheets_beta/plh_templating/campaigns/campaign_quick_starts.xlsx", - }, - { - flow_type: "data_list", - flow_subtype: "campaign_rows", - flow_name: "campaign_unlock_workshops", - status: "released", - rows: [ { - id: "default", + id: "w_safe_m_w_tomorrow", click_action_list: [ { trigger: "click", - action_id: "set_field", - args: ["default.sent", true], - _raw: "set_field: default.sent : TRUE", - _cleaned: "click | set_field: default.sent : TRUE", + action_id: "pop_up", + args: ["w_safe_m_w_tomorrow"], + _raw: "pop_up: w_safe_m_w_tomorrow", + _cleaned: "click | pop_up: w_safe_m_w_tomorrow", }, - ], - priority: -1, - campaign_list: ["unlock_workshops"], - }, - { - id: "enable_up_to_w_self_care", - click_action_list: [ { trigger: "click", action_id: "set_field", - args: ["w_self_care_disabled", false], - _raw: "set_field: w_self_care_disabled : FALSE", - _cleaned: "click | set_field: w_self_care_disabled : FALSE", + args: ["w_safe_m_w_tomorrow.sent", true], + _raw: "set_field: w_safe_m_w_tomorrow.sent : true", + _cleaned: "click | set_field: w_safe_m_w_tomorrow.sent : true", }, ], - priority: 1, + priority: 3.1, activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { field: "current_workshop_number", - value: "1", + value: "10", }, }, - _raw: "get_field | current_workshop_number : 1", + _raw: "get_field | current_workshop_number : 10", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "enable_up_to_w_self_care.sent", - value: true, + field: "w_safe_completed", + value: false, }, }, - _raw: "get_field | enable_up_to_w_self_care.sent : TRUE", + _raw: "get_field | w_safe_completed : false", }, ], - campaign_list: ["unlock_workshops"], - }, - { - id: "enable_up_to_w_1on1", - click_action_list: [ + deactivation_condition_list: [ { - trigger: "click", - action_id: "set_field", - args: ["w_self_care_disabled", false], - _raw: "set_field: w_self_care_disabled : FALSE", - _cleaned: "click | set_field: w_self_care_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_safe_m_w_tomorrow.sent", + value: true, + }, + }, + _raw: "get_field | w_safe_m_w_tomorrow.sent : true", }, { - trigger: "click", - action_id: "set_field", - args: ["w_1on1_disabled", false], - _raw: "set_field: w_1on1_disabled : FALSE", - _cleaned: "click | set_field: w_1on1_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, { - trigger: "click", - action_id: "set_field", - args: ["enable_up_to_w_1on1.sent", true], - _raw: "set_field: enable_up_to_w_1on1.sent : TRUE", - _cleaned: "click | set_field: enable_up_to_w_1on1.sent : TRUE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, - ], - priority: 2, - activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "current_workshop_number", + field: "current_relative_day_number", value: "2", }, }, - _raw: "get_field | current_workshop_number : 2", + _raw: "get_field | current_relative_day_number : 2", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "enable_up_to_w_1on1.sent", - value: true, + field: "current_relative_day_number", + value: "3", }, }, - _raw: "get_field | enable_up_to_w_1on1.sent : TRUE", - }, - ], - campaign_list: ["unlock_workshops"], - }, - { - id: "enable_up_to_w_praise", - click_action_list: [ - { - trigger: "click", - action_id: "set_field", - args: ["w_self_care_disabled", false], - _raw: "set_field: w_self_care_disabled : FALSE", - _cleaned: "click | set_field: w_self_care_disabled : FALSE", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_1on1_disabled", false], - _raw: "set_field: w_1on1_disabled : FALSE", - _cleaned: "click | set_field: w_1on1_disabled : FALSE", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_praise_disabled", false], - _raw: "set_field: w_praise_disabled : FALSE", - _cleaned: "click | set_field: w_praise_disabled : FALSE", - }, - { - trigger: "click", - action_id: "set_field", - args: ["enable_up_to_w_praise.sent", true], - _raw: "set_field: enable_up_to_w_praise.sent : TRUE", - _cleaned: "click | set_field: enable_up_to_w_praise.sent : TRUE", + _raw: "get_field | current_relative_day_number : 3", }, - ], - priority: 3, - activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "current_workshop_number", - value: "3", + field: "current_relative_day_number", + value: "4", }, }, - _raw: "get_field | current_workshop_number : 3", + _raw: "get_field | current_relative_day_number : 4", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "enable_up_to_w_praise.sent", - value: true, + field: "current_relative_day_number", + value: "5", }, }, - _raw: "get_field | enable_up_to_w_praise.sent : TRUE", + _raw: "get_field | current_relative_day_number : 5", }, ], - campaign_list: ["unlock_workshops"], + campaign_list: ["weekly_workshops"], + icon: "plh_images/icons/bell_white.svg", }, + ], + _xlsxPath: "plh_sheets_beta/plh_templating/campaigns/campaign_home_screen_quick_start.xlsx", + }, + { + flow_type: "data_list", + flow_subtype: "campaign_rows", + flow_name: "campaign_hs_w_crisis", + status: "released", + rows: [ { - id: "enable_up_to_w_instruct", + id: "w_crisis_m_w_released", click_action_list: [ { trigger: "click", - action_id: "set_field", - args: ["w_self_care_disabled", false], - _raw: "set_field: w_self_care_disabled : FALSE", - _cleaned: "click | set_field: w_self_care_disabled : FALSE", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_1on1_disabled", false], - _raw: "set_field: w_1on1_disabled : FALSE", - _cleaned: "click | set_field: w_1on1_disabled : FALSE", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_praise_disabled", false], - _raw: "set_field: w_praise_disabled : FALSE", - _cleaned: "click | set_field: w_praise_disabled : FALSE", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_instruct_disabled", false], - _raw: "set_field: w_instruct_disabled : FALSE", - _cleaned: "click | set_field: w_instruct_disabled : FALSE", + action_id: "pop_up", + args: ["w_crisis_m_w_released"], + _raw: "pop_up: w_crisis_m_w_released", + _cleaned: "click | pop_up: w_crisis_m_w_released", }, { trigger: "click", action_id: "set_field", - args: ["enable_up_to_w_instruct.sent", true], - _raw: "set_field: enable_up_to_w_instruct.sent : TRUE", - _cleaned: "click | set_field: enable_up_to_w_instruct.sent : TRUE", + args: ["w_crisis_m_w_released.sent", true], + _raw: "set_field: w_crisis_m_w_released.sent : true", + _cleaned: "click | set_field: w_crisis_m_w_released.sent : true", }, ], - priority: 4, + priority: 2.99, activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { field: "current_workshop_number", - value: "4", + value: "11", }, }, - _raw: "get_field | current_workshop_number : 4", + _raw: "get_field | current_workshop_number : 11", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_crisis_started", + value: false, + }, + }, + _raw: "get_field | w_crisis_started : false", }, ], deactivation_condition_list: [ @@ -9791,72 +8138,45 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "enable_up_to_w_instruct.sent", + field: "w_crisis_m_w_released.sent", value: true, }, }, - _raw: "get_field | enable_up_to_w_instruct.sent : TRUE", + _raw: "get_field | w_crisis_m_w_released.sent : true", }, ], - campaign_list: ["unlock_workshops"], + campaign_list: ["weekly_workshops"], + icon: "plh_images/icons/bell_white.svg", }, { - id: "enable_up_to_w_stress", + id: "w_crisis_m_relax", click_action_list: [ { trigger: "click", - action_id: "set_field", - args: ["w_self_care_disabled", false], - _raw: "set_field: w_self_care_disabled : FALSE", - _cleaned: "click | set_field: w_self_care_disabled : FALSE", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_1on1_disabled", false], - _raw: "set_field: w_1on1_disabled : FALSE", - _cleaned: "click | set_field: w_1on1_disabled : FALSE", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_praise_disabled", false], - _raw: "set_field: w_praise_disabled : FALSE", - _cleaned: "click | set_field: w_praise_disabled : FALSE", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_instruct_disabled", false], - _raw: "set_field: w_instruct_disabled : FALSE", - _cleaned: "click | set_field: w_instruct_disabled : FALSE", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_stress_disabled", false], - _raw: "set_field: w_stress_disabled : FALSE", - _cleaned: "click | set_field: w_stress_disabled : FALSE", + action_id: "pop_up", + args: ["w_crisis_m_relax"], + _raw: "pop_up: w_crisis_m_relax", + _cleaned: "click | pop_up: w_crisis_m_relax", }, { trigger: "click", action_id: "set_field", - args: ["enable_up_to_w_stress.sent", true], - _raw: "set_field: enable_up_to_w_stress.sent : TRUE", - _cleaned: "click | set_field: enable_up_to_w_stress.sent : TRUE", + args: ["w_crisis_m_relax.sent", true], + _raw: "set_field: w_crisis_m_relax.sent : true", + _cleaned: "click | set_field: w_crisis_m_relax.sent : true", }, ], - priority: 5, + priority: 2.9, activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { field: "current_workshop_number", - value: "5", + value: "11", }, }, - _raw: "get_field | current_workshop_number : 5", + _raw: "get_field | current_workshop_number : 11", }, ], deactivation_condition_list: [ @@ -9864,79 +8184,45 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "enable_up_to_w_stress.sent", + field: "w_crisis_m_relax.sent", value: true, }, }, - _raw: "get_field | enable_up_to_w_stress.sent : TRUE", + _raw: "get_field | w_crisis_m_relax.sent : true | before : 1 : day", }, ], - campaign_list: ["unlock_workshops"], + campaign_list: ["parent_points"], + icon: "plh_images/icons/smile_eyes_down_white.svg", }, { - id: "enable_up_to_w_money", + id: "w_crisis_m_something_fun", click_action_list: [ { trigger: "click", - action_id: "set_field", - args: ["w_self_care_disabled", false], - _raw: "set_field: w_self_care_disabled : FALSE", - _cleaned: "click | set_field: w_self_care_disabled : FALSE", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_1on1_disabled", false], - _raw: "set_field: w_1on1_disabled : FALSE", - _cleaned: "click | set_field: w_1on1_disabled : FALSE", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_praise_disabled", false], - _raw: "set_field: w_praise_disabled : FALSE", - _cleaned: "click | set_field: w_praise_disabled : FALSE", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_instruct_disabled", false], - _raw: "set_field: w_instruct_disabled : FALSE", - _cleaned: "click | set_field: w_instruct_disabled : FALSE", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_stress_disabled", false], - _raw: "set_field: w_stress_disabled : FALSE", - _cleaned: "click | set_field: w_stress_disabled : FALSE", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_money_disabled", false], - _raw: "set_field: w_money_disabled : FALSE", - _cleaned: "click | set_field: w_money_disabled : FALSE", + action_id: "pop_up", + args: ["w_crisis_m_something_fun"], + _raw: "pop_up: w_crisis_m_something_fun", + _cleaned: "click | pop_up: w_crisis_m_something_fun", }, { trigger: "click", action_id: "set_field", - args: ["enable_up_to_w_money.sent", true], - _raw: "set_field: enable_up_to_w_money.sent : TRUE", - _cleaned: "click | set_field: enable_up_to_w_money.sent : TRUE", + args: ["w_crisis_m_something_fun.sent", true], + _raw: "set_field: w_crisis_m_something_fun.sent : true", + _cleaned: "click | set_field: w_crisis_m_something_fun.sent : true", }, ], - priority: 6, + priority: 2.8, activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { field: "current_workshop_number", - value: "6", + value: "11", }, }, - _raw: "get_field | current_workshop_number : 6", + _raw: "get_field | current_workshop_number : 11", }, ], deactivation_condition_list: [ @@ -9944,86 +8230,151 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "enable_up_to_w_money.sent", + field: "w_crisis_m_something_fun.sent", value: true, }, }, - _raw: "get_field | enable_up_to_w_money.sent : TRUE", + _raw: "get_field | w_crisis_m_something_fun.sent : true", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, ], - campaign_list: ["unlock_workshops"], + campaign_list: ["parent_centre"], + icon: "plh_images/icons/smile_eyes_up_white.svg", }, { - id: "enable_up_to_w_rules", + id: "w_crisis_m_praise", click_action_list: [ { trigger: "click", - action_id: "set_field", - args: ["w_self_care_disabled", false], - _raw: "set_field: w_self_care_disabled : FALSE", - _cleaned: "click | set_field: w_self_care_disabled : FALSE", + action_id: "pop_up", + args: ["w_crisis_m_praise"], + _raw: "pop_up: w_crisis_m_praise", + _cleaned: "click | pop_up: w_crisis_m_praise", }, { trigger: "click", action_id: "set_field", - args: ["w_1on1_disabled", false], - _raw: "set_field: w_1on1_disabled : FALSE", - _cleaned: "click | set_field: w_1on1_disabled : FALSE", + args: ["w_crisis_m_praise.sent", true], + _raw: "set_field: w_crisis_m_praise.sent : true", + _cleaned: "click | set_field: w_crisis_m_praise.sent : true", }, + ], + priority: 2.7, + activation_condition_list: [ { - trigger: "click", - action_id: "set_field", - args: ["w_praise_disabled", false], - _raw: "set_field: w_praise_disabled : FALSE", - _cleaned: "click | set_field: w_praise_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "11", + }, + }, + _raw: "get_field | current_workshop_number : 11", }, + ], + deactivation_condition_list: [ { - trigger: "click", - action_id: "set_field", - args: ["w_instruct_disabled", false], - _raw: "set_field: w_instruct_disabled : FALSE", - _cleaned: "click | set_field: w_instruct_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_crisis_m_praise.sent", + value: true, + }, + }, + _raw: "get_field | w_crisis_m_praise.sent : true", }, { - trigger: "click", - action_id: "set_field", - args: ["w_stress_disabled", false], - _raw: "set_field: w_stress_disabled : FALSE", - _cleaned: "click | set_field: w_stress_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, { - trigger: "click", - action_id: "set_field", - args: ["w_money_disabled", false], - _raw: "set_field: w_money_disabled : FALSE", - _cleaned: "click | set_field: w_money_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "2", + }, + }, + _raw: "get_field | current_relative_day_number : 2", }, + ], + campaign_list: ["parent_centre"], + icon: "plh_images/icons/heart_white.svg", + }, + { + id: "w_crisis_m_w_reminder", + click_action_list: [ { trigger: "click", - action_id: "set_field", - args: ["w_consequence_disabled", false], - _raw: "set_field: w_consequence_disabled : FALSE", - _cleaned: "click | set_field: w_consequence_disabled : FALSE", + action_id: "pop_up", + args: ["w_crisis_m_w_reminder"], + _raw: "pop_up: w_crisis_m_w_reminder", + _cleaned: "click | pop_up: w_crisis_m_w_reminder", }, { trigger: "click", action_id: "set_field", - args: ["enable_up_to_w_rules.sent", true], - _raw: "set_field: enable_up_to_w_rules.sent : TRUE", - _cleaned: "click | set_field: enable_up_to_w_rules.sent : TRUE", + args: ["w_crisis_m_w_reminder.sent", true], + _raw: "set_field: w_crisis_m_w_reminder.sent : true", + _cleaned: "click | set_field: w_crisis_m_w_reminder.sent : true", }, ], - priority: 7, + priority: 2.6, activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { field: "current_workshop_number", - value: "7", + value: "11", }, }, - _raw: "get_field | current_workshop_number : 7", + _raw: "get_field | current_workshop_number : 11", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_crisis_started", + value: false, + }, + }, + _raw: "get_field | w_crisis_started : false", }, ], deactivation_condition_list: [ @@ -10031,281 +8382,373 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "enable_up_to_w_rules.sent", + field: "w_crisis_m_w_reminder.sent", value: true, }, }, - _raw: "get_field | enable_up_to_w_rules.sent : TRUE", + _raw: "get_field | w_crisis_m_w_reminder.sent : true", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "2", + }, + }, + _raw: "get_field | current_relative_day_number : 2", }, ], - campaign_list: ["unlock_workshops"], + campaign_list: ["weekly_workshops"], + icon: "plh_images/icons/bell_white.svg", }, { - id: "enable_up_to_w_consequence", + id: "w_crisis_m_w_in_progress", click_action_list: [ { trigger: "click", - action_id: "set_field", - args: ["w_self_care_disabled", false], - _raw: "set_field: w_self_care_disabled : FALSE", - _cleaned: "click | set_field: w_self_care_disabled : FALSE", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_1on1_disabled", false], - _raw: "set_field: w_1on1_disabled : FALSE", - _cleaned: "click | set_field: w_1on1_disabled : FALSE", + action_id: "pop_up", + args: ["w_crisis_m_w_in_progress"], + _raw: "pop_up: w_crisis_m_w_in_progress", + _cleaned: "click | pop_up: w_crisis_m_w_in_progress", }, { trigger: "click", action_id: "set_field", - args: ["w_praise_disabled", false], - _raw: "set_field: w_praise_disabled : FALSE", - _cleaned: "click | set_field: w_praise_disabled : FALSE", + args: ["w_crisis_m_w_in_progress.sent", true], + _raw: "set_field: w_crisis_m_w_in_progress.sent : true", + _cleaned: "click | set_field: w_crisis_m_w_in_progress.sent : true", }, + ], + priority: 2.5, + activation_condition_list: [ { - trigger: "click", - action_id: "set_field", - args: ["w_instruct_disabled", false], - _raw: "set_field: w_instruct_disabled : FALSE", - _cleaned: "click | set_field: w_instruct_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "11", + }, + }, + _raw: "get_field | current_workshop_number : 11", }, + ], + deactivation_condition_list: [ { - trigger: "click", - action_id: "set_field", - args: ["w_stress_disabled", false], - _raw: "set_field: w_stress_disabled : FALSE", - _cleaned: "click | set_field: w_stress_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_crisis_m_w_in_progress.sent", + value: true, + }, + }, + _raw: "get_field | w_crisis_m_w_in_progress.sent : true", }, { - trigger: "click", - action_id: "set_field", - args: ["w_money_disabled", false], - _raw: "set_field: w_money_disabled : FALSE", - _cleaned: "click | set_field: w_money_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, { - trigger: "click", - action_id: "set_field", - args: ["w_consequence_disabled", false], - _raw: "set_field: w_consequence_disabled : FALSE", - _cleaned: "click | set_field: w_consequence_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, { - trigger: "click", - action_id: "set_field", - args: ["enable_up_to_w_consequence.sent", true], - _raw: "set_field: enable_up_to_w_consequence.sent : TRUE", - _cleaned: "click | set_field: enable_up_to_w_consequence.sent : TRUE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "2", + }, + }, + _raw: "get_field | current_relative_day_number : 2", }, - ], - priority: 8, - activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "current_workshop_number", - value: "8", + field: "w_crisis_started", + value: false, }, }, - _raw: "get_field | current_workshop_number : 8", + _raw: "get_field | w_crisis_started : false", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "enable_up_to_w_consequence.sent", + field: "w_crisis_completed", value: true, }, }, - _raw: "get_field | enable_up_to_w_consequence.sent : TRUE", + _raw: "get_field | w_crisis_completed: true", }, ], - campaign_list: ["unlock_workshops"], + campaign_list: ["weekly_workshops"], + icon: "plh_images/icons/bell_white.svg", }, { - id: "enable_up_to_w_solve", + id: "w_crisis_m_hp_reminder", click_action_list: [ { trigger: "click", - action_id: "set_field", - args: ["w_self_care_disabled", false], - _raw: "set_field: w_self_care_disabled : FALSE", - _cleaned: "click | set_field: w_self_care_disabled : FALSE", + action_id: "pop_up", + args: ["w_crisis_m_hp_reminder"], + _raw: "pop_up: w_crisis_m_hp_reminder", + _cleaned: "click | pop_up: w_crisis_m_hp_reminder", }, { trigger: "click", action_id: "set_field", - args: ["w_1on1_disabled", false], - _raw: "set_field: w_1on1_disabled : FALSE", - _cleaned: "click | set_field: w_1on1_disabled : FALSE", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_praise_disabled", false], - _raw: "set_field: w_praise_disabled : FALSE", - _cleaned: "click | set_field: w_praise_disabled : FALSE", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_instruct_disabled", false], - _raw: "set_field: w_instruct_disabled : FALSE", - _cleaned: "click | set_field: w_instruct_disabled : FALSE", + args: ["w_crisis_m_hp_reminder.sent", true], + _raw: "set_field: w_crisis_m_hp_reminder.sent : true", + _cleaned: "click | set_field: w_crisis_m_hp_reminder.sent : true", }, + ], + priority: 2.4, + activation_condition_list: [ { - trigger: "click", - action_id: "set_field", - args: ["w_stress_disabled", false], - _raw: "set_field: w_stress_disabled : FALSE", - _cleaned: "click | set_field: w_stress_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "11", + }, + }, + _raw: "get_field | current_workshop_number : 11", }, { - trigger: "click", - action_id: "set_field", - args: ["w_money_disabled", false], - _raw: "set_field: w_money_disabled : FALSE", - _cleaned: "click | set_field: w_money_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_crisis_completed", + value: true, + }, + }, + _raw: "get_field | w_crisis_completed : true", }, + ], + deactivation_condition_list: [ { - trigger: "click", - action_id: "set_field", - args: ["w_consequence_disabled", false], - _raw: "set_field: w_consequence_disabled : FALSE", - _cleaned: "click | set_field: w_consequence_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_crisis_m_hp_reminder.sent", + value: true, + }, + }, + _raw: "get_field | w_crisis_m_hp_reminder.sent : true", }, { - trigger: "click", - action_id: "set_field", - args: ["w_solve_disabled", false], - _raw: "set_field: w_solve_disabled : FALSE", - _cleaned: "click | set_field: w_solve_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, { - trigger: "click", - action_id: "set_field", - args: ["enable_up_to_w_solve.sent", true], - _raw: "set_field: enable_up_to_w_solve.sent : TRUE", - _cleaned: "click | set_field: enable_up_to_w_solve.sent : TRUE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, - ], - priority: 9, - activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "current_workshop_number", - value: "9", + field: "current_relative_day_number", + value: "2", }, }, - _raw: "get_field | current_workshop_number : 9", + _raw: "get_field | current_relative_day_number : 2", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "enable_up_to_w_solve.sent", - value: true, + field: "current_relative_day_number", + value: "3", }, }, - _raw: "get_field | enable_up_to_w_solve.sent : TRUE", + _raw: "get_field | current_relative_day_number : 3", }, ], - campaign_list: ["unlock_workshops"], + campaign_list: ["parent_points"], + icon: "plh_images/icons/parent_heart_white.svg", }, { - id: "enable_up_to_w_safe", + id: "w_crisis_m_parent_points_overview", click_action_list: [ { trigger: "click", - action_id: "set_field", - args: ["w_self_care_disabled", false], - _raw: "set_field: w_self_care_disabled : FALSE", - _cleaned: "click | set_field: w_self_care_disabled : FALSE", + action_id: "pop_up", + args: ["m_parent_points_overview"], + _raw: "pop_up: m_parent_points_overview", + _cleaned: "click | pop_up: m_parent_points_overview", }, { trigger: "click", action_id: "set_field", - args: ["w_1on1_disabled", false], - _raw: "set_field: w_1on1_disabled : FALSE", - _cleaned: "click | set_field: w_1on1_disabled : FALSE", + args: ["w_crisis_m_parent_points_overview.sent", true], + _raw: "set_field: w_crisis_m_parent_points_overview.sent : true", + _cleaned: "click | set_field: w_crisis_m_parent_points_overview.sent : true", }, + ], + priority: 2.3, + activation_condition_list: [ { - trigger: "click", - action_id: "set_field", - args: ["w_praise_disabled", false], - _raw: "set_field: w_praise_disabled : FALSE", - _cleaned: "click | set_field: w_praise_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "11", + }, + }, + _raw: "get_field | current_workshop_number : 11", }, + ], + deactivation_condition_list: [ { - trigger: "click", - action_id: "set_field", - args: ["w_instruct_disabled", false], - _raw: "set_field: w_instruct_disabled : FALSE", - _cleaned: "click | set_field: w_instruct_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_crisis_m_parent_points_overview.sent", + value: true, + }, + }, + _raw: "get_field | w_crisis_m_parent_points_overview.sent : true", }, { - trigger: "click", - action_id: "set_field", - args: ["w_stress_disabled", false], - _raw: "set_field: w_stress_disabled : FALSE", - _cleaned: "click | set_field: w_stress_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, { - trigger: "click", - action_id: "set_field", - args: ["w_money_disabled", false], - _raw: "set_field: w_money_disabled : FALSE", - _cleaned: "click | set_field: w_money_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, { - trigger: "click", - action_id: "set_field", - args: ["w_consequence_disabled", false], - _raw: "set_field: w_consequence_disabled : FALSE", - _cleaned: "click | set_field: w_consequence_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "2", + }, + }, + _raw: "get_field | current_relative_day_number : 2", }, { - trigger: "click", - action_id: "set_field", - args: ["w_solve_disabled", false], - _raw: "set_field: w_solve_disabled : FALSE", - _cleaned: "click | set_field: w_solve_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "3", + }, + }, + _raw: "get_field | current_relative_day_number : 3", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "4", + }, + }, + _raw: "get_field | current_relative_day_number : 4", }, + ], + campaign_list: ["parent_points"], + icon: "plh_images/icons/star_white.svg", + }, + { + id: "w_crisis_hp_review", + click_action_list: [ { trigger: "click", - action_id: "set_field", - args: ["w_safe_disabled", false], - _raw: "set_field: w_safe_disabled : FALSE", - _cleaned: "click | set_field: w_safe_disabled : FALSE", + action_id: "go_to", + args: ["w_crisis_hp_review"], + _raw: "go_to: w_crisis_hp_review", + _cleaned: "click | go_to: w_crisis_hp_review", }, { trigger: "click", action_id: "set_field", - args: ["enable_up_to_w_safe.sent", true], - _raw: "set_field: enable_up_to_w_safe.sent : TRUE", - _cleaned: "click | set_field: enable_up_to_w_safe.sent : TRUE", + args: ["w_crisis_hp_review.sent", true], + _raw: "set_field: w_crisis_hp_review.sent : true", + _cleaned: "click | set_field: w_crisis_hp_review.sent : true", }, ], - priority: 10, + priority: 2.2, activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { field: "current_workshop_number", - value: "10", + value: "11", }, }, - _raw: "get_field | current_workshop_number : 10", + _raw: "get_field | current_workshop_number : 11", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_crisis_completed", + value: true, + }, + }, + _raw: "get_field | w_crisis_completed : true", }, ], deactivation_condition_list: [ @@ -10313,97 +8756,85 @@ const data_list: FlowTypes.Data_list[] = [ condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "enable_up_to_w_safe.sent", + field: "w_crisis_hp_review_completed", value: true, }, }, - _raw: "get_field | enable_up_to_w_safe.sent : TRUE", + _raw: "get_field | w_crisis_hp_review_completed : true", }, - ], - campaign_list: ["unlock_workshops"], - }, - { - id: "enable_up_to_w_crisis", - click_action_list: [ { - trigger: "click", - action_id: "set_field", - args: ["w_self_care_disabled", false], - _raw: "set_field: w_self_care_disabled : FALSE", - _cleaned: "click | set_field: w_self_care_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, { - trigger: "click", - action_id: "set_field", - args: ["w_1on1_disabled", false], - _raw: "set_field: w_1on1_disabled : FALSE", - _cleaned: "click | set_field: w_1on1_disabled : FALSE", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_praise_disabled", false], - _raw: "set_field: w_praise_disabled : FALSE", - _cleaned: "click | set_field: w_praise_disabled : FALSE", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_instruct_disabled", false], - _raw: "set_field: w_instruct_disabled : FALSE", - _cleaned: "click | set_field: w_instruct_disabled : FALSE", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_stress_disabled", false], - _raw: "set_field: w_stress_disabled : FALSE", - _cleaned: "click | set_field: w_stress_disabled : FALSE", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_money_disabled", false], - _raw: "set_field: w_money_disabled : FALSE", - _cleaned: "click | set_field: w_money_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, { - trigger: "click", - action_id: "set_field", - args: ["w_consequence_disabled", false], - _raw: "set_field: w_consequence_disabled : FALSE", - _cleaned: "click | set_field: w_consequence_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "2", + }, + }, + _raw: "get_field | current_relative_day_number : 2", }, { - trigger: "click", - action_id: "set_field", - args: ["w_solve_disabled", false], - _raw: "set_field: w_solve_disabled : FALSE", - _cleaned: "click | set_field: w_solve_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "3", + }, + }, + _raw: "get_field | current_relative_day_number : 3", }, { - trigger: "click", - action_id: "set_field", - args: ["w_safe_disabled", false], - _raw: "set_field: w_safe_disabled : FALSE", - _cleaned: "click | set_field: w_safe_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "4", + }, + }, + _raw: "get_field | current_relative_day_number : 4", }, + ], + campaign_list: ["parent_centre"], + icon: "plh_images/icons/parent_heart_white.svg", + }, + { + id: "w_crisis_m_w_tomorrow", + click_action_list: [ { trigger: "click", - action_id: "set_field", - args: ["w_crisis_disabled", false], - _raw: "set_field: w_crisis_disabled : FALSE", - _cleaned: "click | set_field: w_crisis_disabled : FALSE", + action_id: "pop_up", + args: ["w_crisis_m_w_tomorrow"], + _raw: "pop_up: w_crisis_m_w_tomorrow", + _cleaned: "click | pop_up: w_crisis_m_w_tomorrow", }, { trigger: "click", action_id: "set_field", - args: ["enable_up_to_w_crisis.sent", true], - _raw: "set_field: enable_up_to_w_crisis.sent : TRUE", - _cleaned: "click | set_field: enable_up_to_w_crisis.sent : TRUE", + args: ["w_crisis_m_w_tomorrow.sent", true], + _raw: "set_field: w_crisis_m_w_tomorrow.sent : true", + _cleaned: "click | set_field: w_crisis_m_w_tomorrow.sent : true", }, ], - priority: 11, + priority: 2.1, activation_condition_list: [ { condition_type: "field_evaluation", @@ -10415,138 +8846,3150 @@ const data_list: FlowTypes.Data_list[] = [ }, _raw: "get_field | current_workshop_number : 11", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "enable_up_to_w_crisis.sent", - value: true, + field: "w_crisis_completed", + value: false, }, }, - _raw: "get_field | enable_up_to_w_crisis.sent : TRUE", + _raw: "get_field | w_crisis_completed : false", }, ], - campaign_list: ["unlock_workshops"], - }, - { - id: "enable_up_to_w_celebrate", - click_action_list: [ - { - trigger: "click", - action_id: "set_field", - args: ["w_self_care_disabled", false], - _raw: "set_field: w_self_care_disabled : FALSE", - _cleaned: "click | set_field: w_self_care_disabled : FALSE", - }, - { - trigger: "click", - action_id: "set_field", - args: ["w_1on1_disabled", false], - _raw: "set_field: w_1on1_disabled : FALSE", - _cleaned: "click | set_field: w_1on1_disabled : FALSE", - }, + deactivation_condition_list: [ { - trigger: "click", - action_id: "set_field", - args: ["w_praise_disabled", false], - _raw: "set_field: w_praise_disabled : FALSE", - _cleaned: "click | set_field: w_praise_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_crisis_m_w_tomorrow.sent", + value: true, + }, + }, + _raw: "get_field | w_crisis_m_w_tomorrow.sent : true", }, { - trigger: "click", - action_id: "set_field", - args: ["w_instruct_disabled", false], - _raw: "set_field: w_instruct_disabled : FALSE", - _cleaned: "click | set_field: w_instruct_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "0", + }, + }, + _raw: "get_field | current_relative_day_number : 0", }, { - trigger: "click", - action_id: "set_field", - args: ["w_stress_disabled", false], - _raw: "set_field: w_stress_disabled : FALSE", - _cleaned: "click | set_field: w_stress_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "1", + }, + }, + _raw: "get_field | current_relative_day_number : 1", }, { - trigger: "click", - action_id: "set_field", - args: ["w_money_disabled", false], - _raw: "set_field: w_money_disabled : FALSE", - _cleaned: "click | set_field: w_money_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "2", + }, + }, + _raw: "get_field | current_relative_day_number : 2", }, { - trigger: "click", - action_id: "set_field", - args: ["w_consequence_disabled", false], - _raw: "set_field: w_consequence_disabled : FALSE", - _cleaned: "click | set_field: w_consequence_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "3", + }, + }, + _raw: "get_field | current_relative_day_number : 3", }, { - trigger: "click", - action_id: "set_field", - args: ["w_solve_disabled", false], - _raw: "set_field: w_solve_disabled : FALSE", - _cleaned: "click | set_field: w_solve_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "4", + }, + }, + _raw: "get_field | current_relative_day_number : 4", }, { - trigger: "click", - action_id: "set_field", - args: ["w_safe_disabled", false], - _raw: "set_field: w_safe_disabled : FALSE", - _cleaned: "click | set_field: w_safe_disabled : FALSE", + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_relative_day_number", + value: "5", + }, + }, + _raw: "get_field | current_relative_day_number : 5", }, + ], + campaign_list: ["weekly_workshops"], + icon: "plh_images/icons/bell_white.svg", + }, + ], + _xlsxPath: "plh_sheets_beta/plh_templating/campaigns/campaign_home_screen_quick_start.xlsx", + }, + { + flow_type: "data_list", + flow_subtype: "campaign_rows", + flow_name: "campaign_relax", + status: "released", + rows: [ + { + id: "default", + click_action_list: [ { trigger: "click", action_id: "set_field", - args: ["w_crisis_disabled", false], - _raw: "set_field: w_crisis_disabled : FALSE", - _cleaned: "click | set_field: w_crisis_disabled : FALSE", + args: ["default.sent", true], + _raw: "set_field: default.sent : true", + _cleaned: "click | set_field: default.sent : true", }, + ], + priority: -1, + campaign_list: ["relax"], + icon: "plh_images/icons/smile_eyes_down_white.svg", + }, + { + id: "w_self_care_relax", + click_action_list: [ { trigger: "click", - action_id: "set_field", - args: ["w_celebrate_disabled", false], - _raw: "set_field: w_celebrate_disabled : FALSE", - _cleaned: "click | set_field: w_celebrate_disabled : FALSE", + action_id: "go_to", + args: ["w_self_care_relax"], + _raw: "go_to: w_self_care_relax", + _cleaned: "click | go_to: w_self_care_relax", }, { trigger: "click", action_id: "set_field", - args: ["enable_up_to_w_celebrate.sent", true], - _raw: "set_field: enable_up_to_w_celebrate.sent : TRUE", - _cleaned: "click | set_field: enable_up_to_w_celebrate.sent : TRUE", + args: ["w_self_care_relax.sent", true], + _raw: "set_field: w_self_care_relax.sent : true", + _cleaned: "click | set_field: w_self_care_relax.sent : true", }, ], - priority: 12, + priority: 0.1, activation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { field: "current_workshop_number", - value: "12", + value: "1", }, }, - _raw: "get_field | current_workshop_number : 12", + _raw: "get_field | current_workshop_number : 1", }, - ], - deactivation_condition_list: [ { condition_type: "field_evaluation", condition_args: { field_evaluation: { - field: "enable_up_to_w_celebrate.sent", + field: "w_self_care_completed", value: true, }, }, - _raw: "get_field | enable_up_to_w_celebrate.sent : TRUE", + _raw: "get_field | w_self_care_completed : true", }, ], - campaign_list: ["unlock_workshops"], + campaign_list: ["relax"], + icon: "plh_images/icons/smile_eyes_down_white.svg", }, - ], - _xlsxPath: "plh_sheets_beta/plh_templating/campaigns/campaign_unlock_workshops.xlsx", + { + id: "w_1on1_relax", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_1on1_relax"], + _raw: "go_to: w_1on1_relax", + _cleaned: "click | go_to: w_1on1_relax", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_1on1_relax.sent", true], + _raw: "set_field: w_1on1_relax.sent : true", + _cleaned: "click | set_field: w_1on1_relax.sent : true", + }, + ], + priority: 1.1, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "2", + }, + }, + _raw: "get_field | current_workshop_number : 2", + }, + ], + campaign_list: ["relax"], + icon: "plh_images/icons/smile_eyes_down_white.svg", + }, + { + id: "w_praise_relax", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_praise_relax"], + _raw: "go_to: w_praise_relax", + _cleaned: "click | go_to: w_praise_relax", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_praise_relax.sent", true], + _raw: "set_field: w_praise_relax.sent : true", + _cleaned: "click | set_field: w_praise_relax.sent : true", + }, + ], + priority: 2.1, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "3", + }, + }, + _raw: "get_field | current_workshop_number : 3", + }, + ], + campaign_list: ["relax"], + icon: "plh_images/icons/smile_eyes_down_white.svg", + }, + { + id: "w_instruct_relax", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_instruct_relax"], + _raw: "go_to: w_instruct_relax", + _cleaned: "click | go_to: w_instruct_relax", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_instruct_relax.sent", true], + _raw: "set_field: w_instruct_relax.sent : true", + _cleaned: "click | set_field: w_instruct_relax.sent : true", + }, + ], + priority: 3.1, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "4", + }, + }, + _raw: "get_field | current_workshop_number : 4", + }, + ], + campaign_list: ["relax"], + icon: "plh_images/icons/smile_eyes_down_white.svg", + }, + { + id: "w_stress_relax", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_stress_relax"], + _raw: "go_to: w_stress_relax", + _cleaned: "click | go_to: w_stress_relax", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_stress_relax.sent", true], + _raw: "set_field: w_stress_relax.sent : true", + _cleaned: "click | set_field: w_stress_relax.sent : true", + }, + ], + priority: 4.1, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "5", + }, + }, + _raw: "get_field | current_workshop_number : 5", + }, + ], + campaign_list: ["relax"], + icon: "plh_images/icons/smile_eyes_down_white.svg", + }, + { + id: "w_money_relax", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_money_relax"], + _raw: "go_to: w_money_relax", + _cleaned: "click | go_to: w_money_relax", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_money_relax.sent", true], + _raw: "set_field: w_money_relax.sent : true", + _cleaned: "click | set_field: w_money_relax.sent : true", + }, + ], + priority: 5.1, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "6", + }, + }, + _raw: "get_field | current_workshop_number : 6", + }, + ], + campaign_list: ["relax"], + icon: "plh_images/icons/smile_eyes_down_white.svg", + }, + { + id: "w_rules_relax", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_rules_relax"], + _raw: "go_to: w_rules_relax", + _cleaned: "click | go_to: w_rules_relax", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_rules_relax.sent", true], + _raw: "set_field: w_rules_relax.sent : true", + _cleaned: "click | set_field: w_rules_relax.sent : true", + }, + ], + priority: 6.1, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "7", + }, + }, + _raw: "get_field | current_workshop_number : 7", + }, + ], + campaign_list: ["relax"], + icon: "plh_images/icons/smile_eyes_down_white.svg", + }, + { + id: "w_consequence_relax", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_consequence_relax"], + _raw: "go_to: w_consequence_relax", + _cleaned: "click | go_to: w_consequence_relax", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_consequence_relax.sent", true], + _raw: "set_field: w_consequence_relax.sent : true", + _cleaned: "click | set_field: w_consequence_relax.sent : true", + }, + ], + priority: 7.1, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "8", + }, + }, + _raw: "get_field | current_workshop_number : 8", + }, + ], + campaign_list: ["relax"], + icon: "plh_images/icons/smile_eyes_down_white.svg", + }, + { + id: "w_solve_relax", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_solve_relax"], + _raw: "go_to: w_solve_relax", + _cleaned: "click | go_to: w_solve_relax", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_solve_relax.sent", true], + _raw: "set_field: w_solve_relax.sent : true", + _cleaned: "click | set_field: w_solve_relax.sent : true", + }, + ], + priority: 8.1, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "9", + }, + }, + _raw: "get_field | current_workshop_number : 9", + }, + ], + campaign_list: ["relax"], + icon: "plh_images/icons/smile_eyes_down_white.svg", + }, + { + id: "w_safe_relax", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_safe_relax"], + _raw: "go_to: w_safe_relax", + _cleaned: "click | go_to: w_safe_relax", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_safe_relax.sent", true], + _raw: "set_field: w_safe_relax.sent : true", + _cleaned: "click | set_field: w_safe_relax.sent : true", + }, + ], + priority: 9.1, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "10", + }, + }, + _raw: "get_field | current_workshop_number : 10", + }, + ], + campaign_list: ["relax"], + icon: "plh_images/icons/smile_eyes_down_white.svg", + }, + { + id: "w_crisis_relax", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_crisis_relax"], + _raw: "go_to: w_crisis_relax", + _cleaned: "click | go_to: w_crisis_relax", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_crisis_relax.sent", true], + _raw: "set_field: w_crisis_relax.sent : true", + _cleaned: "click | set_field: w_crisis_relax.sent : true", + }, + ], + priority: 10.1, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "11", + }, + }, + _raw: "get_field | current_workshop_number : 11", + }, + ], + campaign_list: ["relax"], + icon: "plh_images/icons/smile_eyes_down_white.svg", + }, + ], + _xlsxPath: "plh_sheets_beta/plh_templating/campaigns/campaign_parent_centre_quick_start.xlsx", + }, + { + flow_type: "data_list", + flow_subtype: "campaign_rows", + flow_name: "campaign_something_fun", + status: "released", + rows: [ + { + id: "default", + click_action_list: [ + { + trigger: "click", + action_id: "set_field", + args: ["default.sent", true], + _raw: "set_field: default.sent : true", + _cleaned: "click | set_field: default.sent : true", + }, + ], + priority: -1, + campaign_list: ["something_fun"], + icon: "plh_images/icons/smile_eyes_up_white.svg", + }, + { + id: "w_1on1_m_something_fun", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["activity_co_chef"], + _raw: "go_to: activity_co_chef", + _cleaned: "click | go_to: activity_co_chef", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_1on1_m_something_fun.sent", true], + _raw: "set_field: w_1on1_m_something_fun.sent : true", + _cleaned: "click | set_field: w_1on1_m_something_fun.sent : true", + }, + ], + priority: 1.4, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "2", + }, + }, + _raw: "get_field | current_workshop_number : 2", + }, + ], + campaign_list: ["something_fun"], + icon: "plh_images/icons/smile_eyes_up_white.svg", + }, + { + id: "w_praise_m_something_fun", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["activity_reflect_positive"], + _raw: "go_to: activity_reflect_positive", + _cleaned: "click | go_to: activity_reflect_positive", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_praise_m_something_fun.sent", true], + _raw: "set_field: w_praise_m_something_fun.sent : true", + _cleaned: "click | set_field: w_praise_m_something_fun.sent : true", + }, + ], + priority: 2.4, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "3", + }, + }, + _raw: "get_field | current_workshop_number : 3", + }, + ], + campaign_list: ["something_fun"], + icon: "plh_images/icons/smile_eyes_up_white.svg", + }, + { + id: "w_instruct_m_something_fun", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["activity_dance_moves"], + _raw: "go_to: activity_dance_moves", + _cleaned: "click | go_to: activity_dance_moves", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_instruct_m_something_fun.sent", true], + _raw: "set_field: w_instruct_m_something_fun.sent : true", + _cleaned: "click | set_field: w_instruct_m_something_fun.sent : true", + }, + ], + priority: 3.4, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "4", + }, + }, + _raw: "get_field | current_workshop_number : 4", + }, + ], + campaign_list: ["something_fun"], + icon: "plh_images/icons/smile_eyes_up_white.svg", + }, + { + id: "w_stress_m_something_fun", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["activity_check_in_chat"], + _raw: "go_to: activity_check_in_chat", + _cleaned: "click | go_to: activity_check_in_chat", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_stress_m_something_fun.sent", true], + _raw: "set_field: w_stress_m_something_fun.sent : true", + _cleaned: "click | set_field: w_stress_m_something_fun.sent : true", + }, + ], + priority: 4.4, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "5", + }, + }, + _raw: "get_field | current_workshop_number : 5", + }, + ], + campaign_list: ["something_fun"], + icon: "plh_images/icons/smile_eyes_up_white.svg", + }, + { + id: "w_money_m_something_fun", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["activity_dream_travel"], + _raw: "go_to: activity_dream_travel", + _cleaned: "click | go_to: activity_dream_travel", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_money_m_something_fun.sent", true], + _raw: "set_field: w_money_m_something_fun.sent : true", + _cleaned: "click | set_field: w_money_m_something_fun.sent : true", + }, + ], + priority: 5.4, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "6", + }, + }, + _raw: "get_field | current_workshop_number : 6", + }, + ], + campaign_list: ["something_fun"], + icon: "plh_images/icons/smile_eyes_up_white.svg", + }, + { + id: "w_rules_m_something_fun", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["activity_famous_party"], + _raw: "go_to: activity_famous_party", + _cleaned: "click | go_to: activity_famous_party", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_rules_m_something_fun.sent", true], + _raw: "set_field: w_rules_m_something_fun.sent : true", + _cleaned: "click | set_field: w_rules_m_something_fun.sent : true", + }, + ], + priority: 6.4, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "7", + }, + }, + _raw: "get_field | current_workshop_number : 7", + }, + ], + campaign_list: ["something_fun"], + icon: "plh_images/icons/smile_eyes_up_white.svg", + }, + { + id: "w_consequence_m_something_fun", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["activity_two_truths"], + _raw: "go_to: activity_two_truths", + _cleaned: "click | go_to: activity_two_truths", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_consequence_m_something_fun.sent", true], + _raw: "set_field: w_consequence_m_something_fun.sent : true", + _cleaned: "click | set_field: w_consequence_m_something_fun.sent : true", + }, + ], + priority: 7.4, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "8", + }, + }, + _raw: "get_field | current_workshop_number : 8", + }, + ], + campaign_list: ["something_fun"], + icon: "plh_images/icons/smile_eyes_up_white.svg", + }, + { + id: "w_solve_m_something_fun", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["activity_mirror"], + _raw: "go_to: activity_mirror", + _cleaned: "click | go_to: activity_mirror", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_solve_m_something_fun.sent", true], + _raw: "set_field: w_solve_m_something_fun.sent : true", + _cleaned: "click | set_field: w_solve_m_something_fun.sent : true", + }, + ], + priority: 8.4, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "9", + }, + }, + _raw: "get_field | current_workshop_number : 9", + }, + ], + campaign_list: ["something_fun"], + icon: "plh_images/icons/smile_eyes_up_white.svg", + }, + { + id: "w_safe_m_something_fun", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["activity_time_machine"], + _raw: "go_to: activity_time_machine", + _cleaned: "click | go_to: activity_time_machine", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_safe_m_something_fun.sent", true], + _raw: "set_field: w_safe_m_something_fun.sent : true", + _cleaned: "click | set_field: w_safe_m_something_fun.sent : true", + }, + ], + priority: 9.4, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "10", + }, + }, + _raw: "get_field | current_workshop_number : 10", + }, + ], + campaign_list: ["something_fun"], + icon: "plh_images/icons/smile_eyes_up_white.svg", + }, + { + id: "w_crisis_m_something_fun", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["activity_superpowers"], + _raw: "go_to: activity_superpowers", + _cleaned: "click | go_to: activity_superpowers", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_crisis_m_something_fun.sent", true], + _raw: "set_field: w_crisis_m_something_fun.sent : true", + _cleaned: "click | set_field: w_crisis_m_something_fun.sent : true", + }, + ], + priority: 10.4, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "11", + }, + }, + _raw: "get_field | current_workshop_number : 11", + }, + ], + campaign_list: ["something_fun"], + icon: "plh_images/icons/smile_eyes_up_white.svg", + }, + ], + _xlsxPath: "plh_sheets_beta/plh_templating/campaigns/campaign_parent_centre_quick_start.xlsx", + }, + { + flow_type: "data_list", + flow_subtype: "campaign_rows", + flow_name: "campaign_unlock_workshops", + status: "released", + rows: [ + { + id: "default", + click_action_list: [ + { + trigger: "click", + action_id: "set_field", + args: ["default.sent", true], + _raw: "set_field: default.sent : TRUE", + _cleaned: "click | set_field: default.sent : TRUE", + }, + ], + priority: -1, + campaign_list: ["unlock_workshops"], + }, + { + id: "enable_up_to_w_self_care", + click_action_list: [ + { + trigger: "click", + action_id: "set_field", + args: ["w_self_care_disabled", false], + _raw: "set_field: w_self_care_disabled : FALSE", + _cleaned: "click | set_field: w_self_care_disabled : FALSE", + }, + ], + priority: 1, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "1", + }, + }, + _raw: "get_field | current_workshop_number : 1", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "enable_up_to_w_self_care.sent", + value: true, + }, + }, + _raw: "get_field | enable_up_to_w_self_care.sent : TRUE", + }, + ], + campaign_list: ["unlock_workshops"], + }, + { + id: "enable_up_to_w_1on1", + click_action_list: [ + { + trigger: "click", + action_id: "set_field", + args: ["w_self_care_disabled", false], + _raw: "set_field: w_self_care_disabled : FALSE", + _cleaned: "click | set_field: w_self_care_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_1on1_disabled", false], + _raw: "set_field: w_1on1_disabled : FALSE", + _cleaned: "click | set_field: w_1on1_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["enable_up_to_w_1on1.sent", true], + _raw: "set_field: enable_up_to_w_1on1.sent : TRUE", + _cleaned: "click | set_field: enable_up_to_w_1on1.sent : TRUE", + }, + ], + priority: 2, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "2", + }, + }, + _raw: "get_field | current_workshop_number : 2", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "enable_up_to_w_1on1.sent", + value: true, + }, + }, + _raw: "get_field | enable_up_to_w_1on1.sent : TRUE", + }, + ], + campaign_list: ["unlock_workshops"], + }, + { + id: "enable_up_to_w_praise", + click_action_list: [ + { + trigger: "click", + action_id: "set_field", + args: ["w_self_care_disabled", false], + _raw: "set_field: w_self_care_disabled : FALSE", + _cleaned: "click | set_field: w_self_care_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_1on1_disabled", false], + _raw: "set_field: w_1on1_disabled : FALSE", + _cleaned: "click | set_field: w_1on1_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_praise_disabled", false], + _raw: "set_field: w_praise_disabled : FALSE", + _cleaned: "click | set_field: w_praise_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["enable_up_to_w_praise.sent", true], + _raw: "set_field: enable_up_to_w_praise.sent : TRUE", + _cleaned: "click | set_field: enable_up_to_w_praise.sent : TRUE", + }, + ], + priority: 3, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "3", + }, + }, + _raw: "get_field | current_workshop_number : 3", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "enable_up_to_w_praise.sent", + value: true, + }, + }, + _raw: "get_field | enable_up_to_w_praise.sent : TRUE", + }, + ], + campaign_list: ["unlock_workshops"], + }, + { + id: "enable_up_to_w_instruct", + click_action_list: [ + { + trigger: "click", + action_id: "set_field", + args: ["w_self_care_disabled", false], + _raw: "set_field: w_self_care_disabled : FALSE", + _cleaned: "click | set_field: w_self_care_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_1on1_disabled", false], + _raw: "set_field: w_1on1_disabled : FALSE", + _cleaned: "click | set_field: w_1on1_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_praise_disabled", false], + _raw: "set_field: w_praise_disabled : FALSE", + _cleaned: "click | set_field: w_praise_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_instruct_disabled", false], + _raw: "set_field: w_instruct_disabled : FALSE", + _cleaned: "click | set_field: w_instruct_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["enable_up_to_w_instruct.sent", true], + _raw: "set_field: enable_up_to_w_instruct.sent : TRUE", + _cleaned: "click | set_field: enable_up_to_w_instruct.sent : TRUE", + }, + ], + priority: 4, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "4", + }, + }, + _raw: "get_field | current_workshop_number : 4", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "enable_up_to_w_instruct.sent", + value: true, + }, + }, + _raw: "get_field | enable_up_to_w_instruct.sent : TRUE", + }, + ], + campaign_list: ["unlock_workshops"], + }, + { + id: "enable_up_to_w_stress", + click_action_list: [ + { + trigger: "click", + action_id: "set_field", + args: ["w_self_care_disabled", false], + _raw: "set_field: w_self_care_disabled : FALSE", + _cleaned: "click | set_field: w_self_care_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_1on1_disabled", false], + _raw: "set_field: w_1on1_disabled : FALSE", + _cleaned: "click | set_field: w_1on1_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_praise_disabled", false], + _raw: "set_field: w_praise_disabled : FALSE", + _cleaned: "click | set_field: w_praise_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_instruct_disabled", false], + _raw: "set_field: w_instruct_disabled : FALSE", + _cleaned: "click | set_field: w_instruct_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_stress_disabled", false], + _raw: "set_field: w_stress_disabled : FALSE", + _cleaned: "click | set_field: w_stress_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["enable_up_to_w_stress.sent", true], + _raw: "set_field: enable_up_to_w_stress.sent : TRUE", + _cleaned: "click | set_field: enable_up_to_w_stress.sent : TRUE", + }, + ], + priority: 5, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "5", + }, + }, + _raw: "get_field | current_workshop_number : 5", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "enable_up_to_w_stress.sent", + value: true, + }, + }, + _raw: "get_field | enable_up_to_w_stress.sent : TRUE", + }, + ], + campaign_list: ["unlock_workshops"], + }, + { + id: "enable_up_to_w_money", + click_action_list: [ + { + trigger: "click", + action_id: "set_field", + args: ["w_self_care_disabled", false], + _raw: "set_field: w_self_care_disabled : FALSE", + _cleaned: "click | set_field: w_self_care_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_1on1_disabled", false], + _raw: "set_field: w_1on1_disabled : FALSE", + _cleaned: "click | set_field: w_1on1_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_praise_disabled", false], + _raw: "set_field: w_praise_disabled : FALSE", + _cleaned: "click | set_field: w_praise_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_instruct_disabled", false], + _raw: "set_field: w_instruct_disabled : FALSE", + _cleaned: "click | set_field: w_instruct_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_stress_disabled", false], + _raw: "set_field: w_stress_disabled : FALSE", + _cleaned: "click | set_field: w_stress_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_money_disabled", false], + _raw: "set_field: w_money_disabled : FALSE", + _cleaned: "click | set_field: w_money_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["enable_up_to_w_money.sent", true], + _raw: "set_field: enable_up_to_w_money.sent : TRUE", + _cleaned: "click | set_field: enable_up_to_w_money.sent : TRUE", + }, + ], + priority: 6, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "6", + }, + }, + _raw: "get_field | current_workshop_number : 6", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "enable_up_to_w_money.sent", + value: true, + }, + }, + _raw: "get_field | enable_up_to_w_money.sent : TRUE", + }, + ], + campaign_list: ["unlock_workshops"], + }, + { + id: "enable_up_to_w_rules", + click_action_list: [ + { + trigger: "click", + action_id: "set_field", + args: ["w_self_care_disabled", false], + _raw: "set_field: w_self_care_disabled : FALSE", + _cleaned: "click | set_field: w_self_care_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_1on1_disabled", false], + _raw: "set_field: w_1on1_disabled : FALSE", + _cleaned: "click | set_field: w_1on1_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_praise_disabled", false], + _raw: "set_field: w_praise_disabled : FALSE", + _cleaned: "click | set_field: w_praise_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_instruct_disabled", false], + _raw: "set_field: w_instruct_disabled : FALSE", + _cleaned: "click | set_field: w_instruct_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_stress_disabled", false], + _raw: "set_field: w_stress_disabled : FALSE", + _cleaned: "click | set_field: w_stress_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_money_disabled", false], + _raw: "set_field: w_money_disabled : FALSE", + _cleaned: "click | set_field: w_money_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_rules_disabled", false], + _raw: "set_field: w_rules_disabled : FALSE", + _cleaned: "click | set_field: w_rules_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["enable_up_to_w_rules.sent", true], + _raw: "set_field: enable_up_to_w_rules.sent : TRUE", + _cleaned: "click | set_field: enable_up_to_w_rules.sent : TRUE", + }, + ], + priority: 7, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "7", + }, + }, + _raw: "get_field | current_workshop_number : 7", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "enable_up_to_w_rules.sent", + value: true, + }, + }, + _raw: "get_field | enable_up_to_w_rules.sent : TRUE", + }, + ], + campaign_list: ["unlock_workshops"], + }, + { + id: "enable_up_to_w_consequence", + click_action_list: [ + { + trigger: "click", + action_id: "set_field", + args: ["w_self_care_disabled", false], + _raw: "set_field: w_self_care_disabled : FALSE", + _cleaned: "click | set_field: w_self_care_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_1on1_disabled", false], + _raw: "set_field: w_1on1_disabled : FALSE", + _cleaned: "click | set_field: w_1on1_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_praise_disabled", false], + _raw: "set_field: w_praise_disabled : FALSE", + _cleaned: "click | set_field: w_praise_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_instruct_disabled", false], + _raw: "set_field: w_instruct_disabled : FALSE", + _cleaned: "click | set_field: w_instruct_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_stress_disabled", false], + _raw: "set_field: w_stress_disabled : FALSE", + _cleaned: "click | set_field: w_stress_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_money_disabled", false], + _raw: "set_field: w_money_disabled : FALSE", + _cleaned: "click | set_field: w_money_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_rules_disabled", false], + _raw: "set_field: w_rules_disabled : FALSE", + _cleaned: "click | set_field: w_rules_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_consequence_disabled", false], + _raw: "set_field: w_consequence_disabled : FALSE", + _cleaned: "click | set_field: w_consequence_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["enable_up_to_w_consequence.sent", true], + _raw: "set_field: enable_up_to_w_consequence.sent : TRUE", + _cleaned: "click | set_field: enable_up_to_w_consequence.sent : TRUE", + }, + ], + priority: 8, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "8", + }, + }, + _raw: "get_field | current_workshop_number : 8", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "enable_up_to_w_consequence.sent", + value: true, + }, + }, + _raw: "get_field | enable_up_to_w_consequence.sent : TRUE", + }, + ], + campaign_list: ["unlock_workshops"], + }, + { + id: "enable_up_to_w_solve", + click_action_list: [ + { + trigger: "click", + action_id: "set_field", + args: ["w_self_care_disabled", false], + _raw: "set_field: w_self_care_disabled : FALSE", + _cleaned: "click | set_field: w_self_care_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_1on1_disabled", false], + _raw: "set_field: w_1on1_disabled : FALSE", + _cleaned: "click | set_field: w_1on1_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_praise_disabled", false], + _raw: "set_field: w_praise_disabled : FALSE", + _cleaned: "click | set_field: w_praise_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_instruct_disabled", false], + _raw: "set_field: w_instruct_disabled : FALSE", + _cleaned: "click | set_field: w_instruct_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_stress_disabled", false], + _raw: "set_field: w_stress_disabled : FALSE", + _cleaned: "click | set_field: w_stress_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_money_disabled", false], + _raw: "set_field: w_money_disabled : FALSE", + _cleaned: "click | set_field: w_money_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_rules_disabled", false], + _raw: "set_field: w_rules_disabled : FALSE", + _cleaned: "click | set_field: w_rules_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_consequence_disabled", false], + _raw: "set_field: w_consequence_disabled : FALSE", + _cleaned: "click | set_field: w_consequence_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_solve_disabled", false], + _raw: "set_field: w_solve_disabled : FALSE", + _cleaned: "click | set_field: w_solve_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["enable_up_to_w_solve.sent", true], + _raw: "set_field: enable_up_to_w_solve.sent : TRUE", + _cleaned: "click | set_field: enable_up_to_w_solve.sent : TRUE", + }, + ], + priority: 9, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "9", + }, + }, + _raw: "get_field | current_workshop_number : 9", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "enable_up_to_w_solve.sent", + value: true, + }, + }, + _raw: "get_field | enable_up_to_w_solve.sent : TRUE", + }, + ], + campaign_list: ["unlock_workshops"], + }, + { + id: "enable_up_to_w_safe", + click_action_list: [ + { + trigger: "click", + action_id: "set_field", + args: ["w_self_care_disabled", false], + _raw: "set_field: w_self_care_disabled : FALSE", + _cleaned: "click | set_field: w_self_care_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_1on1_disabled", false], + _raw: "set_field: w_1on1_disabled : FALSE", + _cleaned: "click | set_field: w_1on1_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_praise_disabled", false], + _raw: "set_field: w_praise_disabled : FALSE", + _cleaned: "click | set_field: w_praise_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_instruct_disabled", false], + _raw: "set_field: w_instruct_disabled : FALSE", + _cleaned: "click | set_field: w_instruct_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_stress_disabled", false], + _raw: "set_field: w_stress_disabled : FALSE", + _cleaned: "click | set_field: w_stress_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_money_disabled", false], + _raw: "set_field: w_money_disabled : FALSE", + _cleaned: "click | set_field: w_money_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_rules_disabled", false], + _raw: "set_field: w_rules_disabled : FALSE", + _cleaned: "click | set_field: w_rules_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_consequence_disabled", false], + _raw: "set_field: w_consequence_disabled : FALSE", + _cleaned: "click | set_field: w_consequence_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_solve_disabled", false], + _raw: "set_field: w_solve_disabled : FALSE", + _cleaned: "click | set_field: w_solve_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_safe_disabled", false], + _raw: "set_field: w_safe_disabled : FALSE", + _cleaned: "click | set_field: w_safe_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["enable_up_to_w_safe.sent", true], + _raw: "set_field: enable_up_to_w_safe.sent : TRUE", + _cleaned: "click | set_field: enable_up_to_w_safe.sent : TRUE", + }, + ], + priority: 10, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "10", + }, + }, + _raw: "get_field | current_workshop_number : 10", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "enable_up_to_w_safe.sent", + value: true, + }, + }, + _raw: "get_field | enable_up_to_w_safe.sent : TRUE", + }, + ], + campaign_list: ["unlock_workshops"], + }, + { + id: "enable_up_to_w_crisis", + click_action_list: [ + { + trigger: "click", + action_id: "set_field", + args: ["w_self_care_disabled", false], + _raw: "set_field: w_self_care_disabled : FALSE", + _cleaned: "click | set_field: w_self_care_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_1on1_disabled", false], + _raw: "set_field: w_1on1_disabled : FALSE", + _cleaned: "click | set_field: w_1on1_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_praise_disabled", false], + _raw: "set_field: w_praise_disabled : FALSE", + _cleaned: "click | set_field: w_praise_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_instruct_disabled", false], + _raw: "set_field: w_instruct_disabled : FALSE", + _cleaned: "click | set_field: w_instruct_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_stress_disabled", false], + _raw: "set_field: w_stress_disabled : FALSE", + _cleaned: "click | set_field: w_stress_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_money_disabled", false], + _raw: "set_field: w_money_disabled : FALSE", + _cleaned: "click | set_field: w_money_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_consequence_disabled", false], + _raw: "set_field: w_consequence_disabled : FALSE", + _cleaned: "click | set_field: w_consequence_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_solve_disabled", false], + _raw: "set_field: w_solve_disabled : FALSE", + _cleaned: "click | set_field: w_solve_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_safe_disabled", false], + _raw: "set_field: w_safe_disabled : FALSE", + _cleaned: "click | set_field: w_safe_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_crisis_disabled", false], + _raw: "set_field: w_crisis_disabled : FALSE", + _cleaned: "click | set_field: w_crisis_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["enable_up_to_w_crisis.sent", true], + _raw: "set_field: enable_up_to_w_crisis.sent : TRUE", + _cleaned: "click | set_field: enable_up_to_w_crisis.sent : TRUE", + }, + ], + priority: 11, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "11", + }, + }, + _raw: "get_field | current_workshop_number : 11", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "enable_up_to_w_crisis.sent", + value: true, + }, + }, + _raw: "get_field | enable_up_to_w_crisis.sent : TRUE", + }, + ], + campaign_list: ["unlock_workshops"], + }, + { + id: "enable_up_to_w_celebrate", + click_action_list: [ + { + trigger: "click", + action_id: "set_field", + args: ["w_self_care_disabled", false], + _raw: "set_field: w_self_care_disabled : FALSE", + _cleaned: "click | set_field: w_self_care_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_1on1_disabled", false], + _raw: "set_field: w_1on1_disabled : FALSE", + _cleaned: "click | set_field: w_1on1_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_praise_disabled", false], + _raw: "set_field: w_praise_disabled : FALSE", + _cleaned: "click | set_field: w_praise_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_instruct_disabled", false], + _raw: "set_field: w_instruct_disabled : FALSE", + _cleaned: "click | set_field: w_instruct_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_stress_disabled", false], + _raw: "set_field: w_stress_disabled : FALSE", + _cleaned: "click | set_field: w_stress_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_money_disabled", false], + _raw: "set_field: w_money_disabled : FALSE", + _cleaned: "click | set_field: w_money_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_rules_disabled", false], + _raw: "set_field: w_rules_disabled : FALSE", + _cleaned: "click | set_field: w_rules_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_consequence_disabled", false], + _raw: "set_field: w_consequence_disabled : FALSE", + _cleaned: "click | set_field: w_consequence_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_solve_disabled", false], + _raw: "set_field: w_solve_disabled : FALSE", + _cleaned: "click | set_field: w_solve_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_safe_disabled", false], + _raw: "set_field: w_safe_disabled : FALSE", + _cleaned: "click | set_field: w_safe_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_crisis_disabled", false], + _raw: "set_field: w_crisis_disabled : FALSE", + _cleaned: "click | set_field: w_crisis_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["w_celebrate_disabled", false], + _raw: "set_field: w_celebrate_disabled : FALSE", + _cleaned: "click | set_field: w_celebrate_disabled : FALSE", + }, + { + trigger: "click", + action_id: "set_field", + args: ["enable_up_to_w_celebrate.sent", true], + _raw: "set_field: enable_up_to_w_celebrate.sent : TRUE", + _cleaned: "click | set_field: enable_up_to_w_celebrate.sent : TRUE", + }, + ], + priority: 12, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "current_workshop_number", + value: "12", + }, + }, + _raw: "get_field | current_workshop_number : 12", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "enable_up_to_w_celebrate.sent", + value: true, + }, + }, + _raw: "get_field | enable_up_to_w_celebrate.sent : TRUE", + }, + ], + campaign_list: ["unlock_workshops"], + }, + ], + _xlsxPath: "plh_sheets_beta/plh_templating/campaigns/campaign_unlock_workshops.xlsx", + }, + { + flow_type: "data_list", + flow_subtype: "campaign_rows", + flow_name: "campaign_workshop_quick_start", + status: "released", + rows: [ + { + id: "default", + click_action_list: [ + { + trigger: "click", + action_id: "set_field", + args: ["default.sent", true], + _raw: "set_field: default.sent : true", + _cleaned: "click | set_field: default.sent : true", + }, + ], + priority: -1, + campaign_list: ["workshop_quick_start"], + icon: "plh_images/icons/play_white.svg", + }, + { + id: "w_self_care_quick_start", + workshop: "w_self_care", + workshop_data: "@data.workshop.w_self_care", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_self_care_stepper"], + _raw: "go_to: w_self_care_stepper", + _cleaned: "click | go_to: w_self_care_stepper", + }, + ], + priority: 12, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_self_care_disabled", + value: false, + }, + }, + _raw: "get_field | w_self_care_disabled : false", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_self_care_started", + value: true, + }, + }, + _raw: "get_field | w_self_care_started : true", + }, + ], + campaign_list: ["workshop_quick_start"], + icon: "plh_images/icons/play_white.svg", + text: "Start", + _translatedFields: { + text: { + eng: "Start", + }, + }, + }, + { + id: "w_self_care_continue", + workshop: "w_self_care", + workshop_data: "@data.workshop.w_self_care", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_self_care_stepper"], + _raw: "go_to: w_self_care_stepper", + _cleaned: "click | go_to: w_self_care_stepper", + }, + ], + priority: 12, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_self_care_disabled", + value: false, + }, + }, + _raw: "get_field | w_self_care_disabled : false", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_self_care_started", + value: true, + }, + }, + _raw: "get_field | w_self_care_started : true", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_self_care_completed", + value: true, + }, + }, + _raw: "get_field | w_self_care_completed: true", + }, + ], + campaign_list: ["workshop_quick_start"], + icon: "plh_images/icons/play_white.svg", + text: "Continue", + _translatedFields: { + text: { + eng: "Continue", + }, + }, + }, + { + id: "w_1on1_quick_start", + workshop: "w_1on1", + workshop_data: "@data.workshop.w_1on1", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_1on1_stepper"], + _raw: "go_to: w_1on1_stepper", + _cleaned: "click | go_to: w_1on1_stepper", + }, + ], + priority: 11, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_1on1_disabled", + value: false, + }, + }, + _raw: "get_field | w_1on1_disabled : false", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_1on1_started", + value: true, + }, + }, + _raw: "get_field | w_1on1_started : true", + }, + ], + campaign_list: ["workshop_quick_start"], + icon: "plh_images/icons/play_white.svg", + text: "Start", + _translatedFields: { + text: { + eng: "Start", + }, + }, + }, + { + id: "w_1on1_continue", + workshop: "w_1on1", + workshop_data: "@data.workshop.w_1on1", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_1on1_stepper"], + _raw: "go_to: w_1on1_stepper", + _cleaned: "click | go_to: w_1on1_stepper", + }, + ], + priority: 11, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_1on1_disabled", + value: false, + }, + }, + _raw: "get_field | w_1on1_disabled : false", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_1on1_started", + value: true, + }, + }, + _raw: "get_field | w_1on1_started : true", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_1on1_completed", + value: true, + }, + }, + _raw: "get_field | w_1on1_completed: true", + }, + ], + campaign_list: ["workshop_quick_start"], + icon: "plh_images/icons/play_white.svg", + text: "Continue", + _translatedFields: { + text: { + eng: "Continue", + }, + }, + }, + { + id: "w_praise_quick_start", + workshop: "w_praise", + workshop_data: "@data.workshop.w_praise", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_praise_stepper"], + _raw: "go_to: w_praise_stepper", + _cleaned: "click | go_to: w_praise_stepper", + }, + ], + priority: 10, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_praise_disabled", + value: false, + }, + }, + _raw: "get_field | w_praise_disabled : false", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_praise_started", + value: true, + }, + }, + _raw: "get_field | w_praise_started : true", + }, + ], + campaign_list: ["workshop_quick_start"], + icon: "plh_images/icons/play_white.svg", + text: "Start", + _translatedFields: { + text: { + eng: "Start", + }, + }, + }, + { + id: "w_praise_continue", + workshop: "w_praise", + workshop_data: "@data.workshop.w_praise", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_praise_stepper"], + _raw: "go_to: w_praise_stepper", + _cleaned: "click | go_to: w_praise_stepper", + }, + ], + priority: 10, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_praise_disabled", + value: false, + }, + }, + _raw: "get_field | w_praise_disabled : false", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_praise_started", + value: true, + }, + }, + _raw: "get_field | w_praise_started : true", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_praise_completed", + value: true, + }, + }, + _raw: "get_field | w_praise_completed: true", + }, + ], + campaign_list: ["workshop_quick_start"], + icon: "plh_images/icons/play_white.svg", + text: "Continue", + _translatedFields: { + text: { + eng: "Continue", + }, + }, + }, + { + id: "w_instruct_quick_start", + workshop: "w_instruct", + workshop_data: "@data.workshop.w_instruct", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_instruct_stepper"], + _raw: "go_to: w_instruct_stepper", + _cleaned: "click | go_to: w_instruct_stepper", + }, + ], + priority: 9, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_instruct_disabled", + value: false, + }, + }, + _raw: "get_field | w_instruct_disabled : false", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_instruct_started", + value: true, + }, + }, + _raw: "get_field | w_instruct_started : true", + }, + ], + campaign_list: ["workshop_quick_start"], + icon: "plh_images/icons/play_white.svg", + text: "Start", + _translatedFields: { + text: { + eng: "Start", + }, + }, + }, + { + id: "w_instruct_continue", + workshop: "w_instruct", + workshop_data: "@data.workshop.w_instruct", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_instruct_stepper"], + _raw: "go_to: w_instruct_stepper", + _cleaned: "click | go_to: w_instruct_stepper", + }, + ], + priority: 9, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_instruct_disabled", + value: false, + }, + }, + _raw: "get_field | w_instruct_disabled : false", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_instruct_started", + value: true, + }, + }, + _raw: "get_field | w_instruct_started : true", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_instruct_completed", + value: true, + }, + }, + _raw: "get_field | w_instruct_completed: true", + }, + ], + campaign_list: ["workshop_quick_start"], + icon: "plh_images/icons/play_white.svg", + text: "Continue", + _translatedFields: { + text: { + eng: "Continue", + }, + }, + }, + { + id: "w_stress_quick_start", + workshop: "w_stress", + workshop_data: "@data.workshop.w_stress", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_stress_stepper"], + _raw: "go_to: w_stress_stepper", + _cleaned: "click | go_to: w_stress_stepper", + }, + ], + priority: 8, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_stress_disabled", + value: false, + }, + }, + _raw: "get_field | w_stress_disabled : false", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_stress_started", + value: true, + }, + }, + _raw: "get_field | w_stress_started : true", + }, + ], + campaign_list: ["workshop_quick_start"], + icon: "plh_images/icons/play_white.svg", + text: "Start", + _translatedFields: { + text: { + eng: "Start", + }, + }, + }, + { + id: "w_stress_continue", + workshop: "w_stress", + workshop_data: "@data.workshop.w_stress", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_stress_stepper"], + _raw: "go_to: w_stress_stepper", + _cleaned: "click | go_to: w_stress_stepper", + }, + ], + priority: 8, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_stress_disabled", + value: false, + }, + }, + _raw: "get_field | w_stress_disabled : false", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_stress_started", + value: true, + }, + }, + _raw: "get_field | w_stress_started : true", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_stress_completed", + value: true, + }, + }, + _raw: "get_field | w_stress_completed: true", + }, + ], + campaign_list: ["workshop_quick_start"], + icon: "plh_images/icons/play_white.svg", + text: "Continue", + _translatedFields: { + text: { + eng: "Continue", + }, + }, + }, + { + id: "w_money_quick_start", + workshop: "w_money", + workshop_data: "@data.workshop.w_money", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_money_stepper"], + _raw: "go_to: w_money_stepper", + _cleaned: "click | go_to: w_money_stepper", + }, + ], + priority: 7, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_money_disabled", + value: false, + }, + }, + _raw: "get_field | w_money_disabled : false", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_money_started", + value: true, + }, + }, + _raw: "get_field | w_money_started : true", + }, + ], + campaign_list: ["workshop_quick_start"], + icon: "plh_images/icons/play_white.svg", + text: "Start", + _translatedFields: { + text: { + eng: "Start", + }, + }, + }, + { + id: "w_money_continue", + workshop: "w_money", + workshop_data: "@data.workshop.w_money", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_money_stepper"], + _raw: "go_to: w_money_stepper", + _cleaned: "click | go_to: w_money_stepper", + }, + ], + priority: 7, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_money_disabled", + value: false, + }, + }, + _raw: "get_field | w_money_disabled : false", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_money_started", + value: true, + }, + }, + _raw: "get_field | w_money_started : true", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_money_completed", + value: true, + }, + }, + _raw: "get_field | w_money_completed: true", + }, + ], + campaign_list: ["workshop_quick_start"], + icon: "plh_images/icons/play_white.svg", + text: "Continue", + _translatedFields: { + text: { + eng: "Continue", + }, + }, + }, + { + id: "w_rules_quick_start", + workshop: "w_rules", + workshop_data: "@data.workshop.w_rules", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_rules_stepper"], + _raw: "go_to: w_rules_stepper", + _cleaned: "click | go_to: w_rules_stepper", + }, + ], + priority: 6, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_rules_disabled", + value: false, + }, + }, + _raw: "get_field | w_rules_disabled : false", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_rules_started", + value: true, + }, + }, + _raw: "get_field | w_rules_started : true", + }, + ], + campaign_list: ["workshop_quick_start"], + icon: "plh_images/icons/play_white.svg", + text: "Start", + _translatedFields: { + text: { + eng: "Start", + }, + }, + }, + { + id: "w_rules_continue", + workshop: "w_rules", + workshop_data: "@data.workshop.w_rules", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_rules_stepper"], + _raw: "go_to: w_rules_stepper", + _cleaned: "click | go_to: w_rules_stepper", + }, + ], + priority: 6, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_rules_disabled", + value: false, + }, + }, + _raw: "get_field | w_rules_disabled : false", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_rules_started", + value: true, + }, + }, + _raw: "get_field | w_rules_started : true", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_rules_completed", + value: true, + }, + }, + _raw: "get_field | w_rules_completed: true", + }, + ], + campaign_list: ["workshop_quick_start"], + icon: "plh_images/icons/play_white.svg", + text: "Continue", + _translatedFields: { + text: { + eng: "Continue", + }, + }, + }, + { + id: "w_consequence_quick_start", + workshop: "w_consequence", + workshop_data: "@data.workshop.w_consequence", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_consequence_stepper"], + _raw: "go_to: w_consequence_stepper", + _cleaned: "click | go_to: w_consequence_stepper", + }, + ], + priority: 5, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_consequence_disabled", + value: false, + }, + }, + _raw: "get_field | w_consequence_disabled : false", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_consequence_started", + value: true, + }, + }, + _raw: "get_field | w_consequence_started : true", + }, + ], + campaign_list: ["workshop_quick_start"], + icon: "plh_images/icons/play_white.svg", + text: "Start", + _translatedFields: { + text: { + eng: "Start", + }, + }, + }, + { + id: "w_consequence_continue", + workshop: "w_consequence", + workshop_data: "@data.workshop.w_consequence", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_consequence_stepper"], + _raw: "go_to: w_consequence_stepper", + _cleaned: "click | go_to: w_consequence_stepper", + }, + ], + priority: 5, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_consequence_disabled", + value: false, + }, + }, + _raw: "get_field | w_consequence_disabled : false", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_consequence_started", + value: true, + }, + }, + _raw: "get_field | w_consequence_started : true", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_consequence_completed", + value: true, + }, + }, + _raw: "get_field | w_consequence_completed: true", + }, + ], + campaign_list: ["workshop_quick_start"], + icon: "plh_images/icons/play_white.svg", + text: "Continue", + _translatedFields: { + text: { + eng: "Continue", + }, + }, + }, + { + id: "w_solve_quick_start", + workshop: "w_solve", + workshop_data: "@data.workshop.w_solve", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_solve_stepper"], + _raw: "go_to: w_solve_stepper", + _cleaned: "click | go_to: w_solve_stepper", + }, + ], + priority: 4, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_solve_disabled", + value: false, + }, + }, + _raw: "get_field | w_solve_disabled : false", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_solve_started", + value: true, + }, + }, + _raw: "get_field | w_solve_started : true", + }, + ], + campaign_list: ["workshop_quick_start"], + icon: "plh_images/icons/play_white.svg", + text: "Start", + _translatedFields: { + text: { + eng: "Start", + }, + }, + }, + { + id: "w_solve_continue", + workshop: "w_solve", + workshop_data: "@data.workshop.w_solve", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_solve_stepper"], + _raw: "go_to: w_solve_stepper", + _cleaned: "click | go_to: w_solve_stepper", + }, + ], + priority: 4, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_solve_disabled", + value: false, + }, + }, + _raw: "get_field | w_solve_disabled : false", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_solve_started", + value: true, + }, + }, + _raw: "get_field | w_solve_started : true", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_solve_completed", + value: true, + }, + }, + _raw: "get_field | w_solve_completed: true", + }, + ], + campaign_list: ["workshop_quick_start"], + icon: "plh_images/icons/play_white.svg", + text: "Continue", + _translatedFields: { + text: { + eng: "Continue", + }, + }, + }, + { + id: "w_safe_quick_start", + workshop: "w_safe", + workshop_data: "@data.workshop.w_safe", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_safe_stepper"], + _raw: "go_to: w_safe_stepper", + _cleaned: "click | go_to: w_safe_stepper", + }, + ], + priority: 3, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_safe_disabled", + value: false, + }, + }, + _raw: "get_field | w_safe_disabled : false", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_safe_started", + value: true, + }, + }, + _raw: "get_field | w_safe_started : true", + }, + ], + campaign_list: ["workshop_quick_start"], + icon: "plh_images/icons/play_white.svg", + text: "Start", + _translatedFields: { + text: { + eng: "Start", + }, + }, + }, + { + id: "w_safe_continue", + workshop: "w_safe", + workshop_data: "@data.workshop.w_safe", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_safe_stepper"], + _raw: "go_to: w_safe_stepper", + _cleaned: "click | go_to: w_safe_stepper", + }, + ], + priority: 3, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_safe_disabled", + value: false, + }, + }, + _raw: "get_field | w_safe_disabled : false", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_safe_started", + value: true, + }, + }, + _raw: "get_field | w_safe_started : true", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_safe_completed", + value: true, + }, + }, + _raw: "get_field | w_safe_completed: true", + }, + ], + campaign_list: ["workshop_quick_start"], + icon: "plh_images/icons/play_white.svg", + text: "Continue", + _translatedFields: { + text: { + eng: "Continue", + }, + }, + }, + { + id: "w_crisis_quick_start", + workshop: "w_crisis", + workshop_data: "@data.workshop.w_crisis", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_crisis_stepper"], + _raw: "go_to: w_crisis_stepper", + _cleaned: "click | go_to: w_crisis_stepper", + }, + ], + priority: 2, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_crisis_disabled", + value: false, + }, + }, + _raw: "get_field | w_crisis_disabled : false", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_crisis_started", + value: true, + }, + }, + _raw: "get_field | w_crisis_started : true", + }, + ], + campaign_list: ["workshop_quick_start"], + icon: "plh_images/icons/play_white.svg", + text: "Start", + _translatedFields: { + text: { + eng: "Start", + }, + }, + }, + { + id: "w_crisis_continue", + workshop: "w_crisis", + workshop_data: "@data.workshop.w_crisis", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_crisis_stepper"], + _raw: "go_to: w_crisis_stepper", + _cleaned: "click | go_to: w_crisis_stepper", + }, + ], + priority: 2, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_crisis_disabled", + value: false, + }, + }, + _raw: "get_field | w_crisis_disabled : false", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_crisis_started", + value: true, + }, + }, + _raw: "get_field | w_crisis_started : true", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_crisis_completed", + value: true, + }, + }, + _raw: "get_field | w_crisis_completed: true", + }, + ], + campaign_list: ["workshop_quick_start"], + icon: "plh_images/icons/play_white.svg", + text: "Continue", + _translatedFields: { + text: { + eng: "Continue", + }, + }, + }, + { + id: "w_celebrate_quick_start", + workshop: "w_celebrate", + workshop_data: "@data.workshop.w_celebrate", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_celebrate_stepper"], + _raw: "go_to: w_celebrate_stepper", + _cleaned: "click | go_to: w_celebrate_stepper", + }, + ], + priority: 1, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_celebrate_disabled", + value: false, + }, + }, + _raw: "get_field | w_celebrate_disabled : false", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_celebrate_started", + value: true, + }, + }, + _raw: "get_field | w_celebrate_started : true", + }, + ], + campaign_list: ["workshop_quick_start"], + icon: "plh_images/icons/play_white.svg", + text: "Start", + _translatedFields: { + text: { + eng: "Start", + }, + }, + }, + { + id: "w_celebrate_continue", + workshop: "w_celebrate", + workshop_data: "@data.workshop.w_celebrate", + click_action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["w_celebrate_stepper"], + _raw: "go_to: w_celebrate_stepper", + _cleaned: "click | go_to: w_celebrate_stepper", + }, + ], + priority: 1, + activation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_celebrate_disabled", + value: false, + }, + }, + _raw: "get_field | w_celebrate_disabled : false", + }, + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_celebrate_started", + value: true, + }, + }, + _raw: "get_field | w_celebrate_started : true", + }, + ], + deactivation_condition_list: [ + { + condition_type: "field_evaluation", + condition_args: { + field_evaluation: { + field: "w_celebrate_completed", + value: true, + }, + }, + _raw: "get_field | w_celebrate_completed: true", + }, + ], + campaign_list: ["workshop_quick_start"], + icon: "plh_images/icons/play_white.svg", + text: "Continue", + _translatedFields: { + text: { + eng: "Continue", + }, + }, + }, + ], + _xlsxPath: + "plh_sheets_beta/plh_templating/campaigns/campaign_weekly_workshops_quick_start.xlsx", }, { flow_type: "data_list", diff --git a/packages/plh-data/data/template/template.debug.ts b/packages/plh-data/data/template/template.debug.ts index 41bec51978..c4a0de333c 100644 --- a/packages/plh-data/data/template/template.debug.ts +++ b/packages/plh-data/data/template/template.debug.ts @@ -13843,6 +13843,139 @@ const template: FlowTypes.Template[] = [ _xlsxPath: "plh_sheets_beta/plh_templating/quality_assurance/debug_templates/debug_text_wrapping.xlsx", }, + { + flow_type: "template", + flow_name: "debug_tile_text", + status: "released", + flow_subtype: "debug", + rows: [ + { + type: "text", + name: "text", + value: + "All the tiles in the display group below should be the same height. \n\nText in the tiles below should be vertically centred, not fixed to top. You can see how the text in the tiles with short text is not vertically centred.", + _nested_name: "text", + }, + { + type: "display_group", + name: "tool_tiles", + exclude_from_translation: true, + parameter_list: { + style: "two_columns", + }, + rows: [ + { + type: "tile_component", + name: "tile_1", + exclude_from_translation: true, + parameter_list: { + style: "image_text", + first_line_text: "short text", + icon_src: "@data.workshop.w_1on1.image_asset", + }, + _nested_name: "tool_tiles.tile_1", + _dynamicFields: { + parameter_list: { + icon_src: [ + { + fullExpression: "@data.workshop.w_1on1.image_asset", + matchedExpression: "@data.workshop.w_1on1.image_asset", + type: "data", + fieldName: "workshop", + }, + ], + }, + }, + _dynamicDependencies: { + "@data.workshop.w_1on1.image_asset": ["parameter_list.icon_src"], + }, + }, + { + type: "tile_component", + name: "tile_2", + exclude_from_translation: true, + parameter_list: { + style: "image_text", + first_line_text: + "This is a very long text that should wrap into several lines within the tile tomponent.", + icon_src: "@data.workshop.w_1on1.image_asset", + }, + _nested_name: "tool_tiles.tile_2", + _dynamicFields: { + parameter_list: { + icon_src: [ + { + fullExpression: "@data.workshop.w_1on1.image_asset", + matchedExpression: "@data.workshop.w_1on1.image_asset", + type: "data", + fieldName: "workshop", + }, + ], + }, + }, + _dynamicDependencies: { + "@data.workshop.w_1on1.image_asset": ["parameter_list.icon_src"], + }, + }, + { + type: "tile_component", + name: "tile_3", + exclude_from_translation: true, + parameter_list: { + style: "image_text", + first_line_text: "short text", + icon_src: "@data.workshop.w_1on1.image_asset", + }, + _nested_name: "tool_tiles.tile_3", + _dynamicFields: { + parameter_list: { + icon_src: [ + { + fullExpression: "@data.workshop.w_1on1.image_asset", + matchedExpression: "@data.workshop.w_1on1.image_asset", + type: "data", + fieldName: "workshop", + }, + ], + }, + }, + _dynamicDependencies: { + "@data.workshop.w_1on1.image_asset": ["parameter_list.icon_src"], + }, + }, + { + type: "tile_component", + name: "tile_4", + exclude_from_translation: true, + parameter_list: { + style: "image_text", + first_line_text: "short text", + icon_src: "@data.workshop.w_1on1.image_asset", + }, + _nested_name: "tool_tiles.tile_4", + _dynamicFields: { + parameter_list: { + icon_src: [ + { + fullExpression: "@data.workshop.w_1on1.image_asset", + matchedExpression: "@data.workshop.w_1on1.image_asset", + type: "data", + fieldName: "workshop", + }, + ], + }, + }, + _dynamicDependencies: { + "@data.workshop.w_1on1.image_asset": ["parameter_list.icon_src"], + }, + }, + ], + _nested_name: "tool_tiles", + }, + ], + _xlsxPath: + "plh_sheets_beta/plh_templating/quality_assurance/debug_templates/debug_tile_text.xlsx", + }, { flow_type: "template", flow_name: "example_radio_group", diff --git a/packages/plh-data/data/template/template.ts b/packages/plh-data/data/template/template.ts index 6ed6ea9305..7c7c47a772 100644 --- a/packages/plh-data/data/template/template.ts +++ b/packages/plh-data/data/template/template.ts @@ -7,196 +7,1344 @@ const template: FlowTypes.Template[] = [ status: "released", rows: [ { - name: "sunday", + type: "display_group", + name: "benchmarks", + condition: "!@fields.benchmark_date", + parameter_list: { + style: "column", + }, + rows: [ + { + type: "set_field", + name: "benchmark_date", + value: "@calc(Date())", + exclude_from_translation: true, + _nested_name: "benchmarks.benchmark_date", + _dynamicFields: { + value: [ + { + fullExpression: "@calc(Date())", + matchedExpression: "@calc(Date())", + type: "calc", + fieldName: "Date()", + }, + ], + }, + _dynamicDependencies: { + "@calc(Date())": ["value"], + }, + }, + { + type: "set_field", + name: "benchmark_date_time", + value: "@calc((new Date()).setHours(0,0,0,0))", + exclude_from_translation: true, + _nested_name: "benchmarks.benchmark_date_time", + _dynamicFields: { + value: [ + { + fullExpression: "@calc((new Date()).setHours(0,0,0,0))", + matchedExpression: "@calc((new Date()).setHours(0,0,0,0))", + type: "calc", + fieldName: "(new Date()).setHours(0,0,0,0)", + }, + ], + }, + _dynamicDependencies: { + "@calc((new Date()).setHours(0,0,0,0))": ["value"], + }, + }, + { + name: "workshop_current_workshop", + value: "workshop.@fields.current_workshop", + exclude_from_translation: true, + type: "set_variable", + _nested_name: "benchmarks.workshop_current_workshop", + _dynamicFields: { + value: [ + { + fullExpression: "workshop.@fields.current_workshop", + matchedExpression: "@fields.current_workshop", + type: "fields", + fieldName: "current_workshop", + }, + ], + }, + _dynamicDependencies: { + "@fields.current_workshop": ["value"], + }, + }, + { + name: "current_workshop_data", + value: "@data.@local.workshop_current_workshop", + exclude_from_translation: true, + type: "set_variable", + _nested_name: "benchmarks.current_workshop_data", + _dynamicFields: { + value: [ + { + fullExpression: "@data.@local.workshop_current_workshop", + matchedExpression: "@local.workshop_current_workshop", + type: "local", + fieldName: "workshop_current_workshop", + }, + ], + }, + _dynamicDependencies: { + "@local.workshop_current_workshop": ["value"], + }, + }, + { + type: "set_field", + name: "benchmark_workshop_number", + value: "@local.current_workshop_data.number", + exclude_from_translation: true, + _nested_name: "benchmarks.benchmark_workshop_number", + _dynamicFields: { + value: [ + { + fullExpression: "@local.current_workshop_data.number", + matchedExpression: "@local.current_workshop_data.number", + type: "local", + fieldName: "current_workshop_data", + }, + ], + }, + _dynamicDependencies: { + "@local.current_workshop_data.number": ["value"], + }, + }, + { + name: "local_benchmark_absolute_day_number", + value: "@calc((new Date()).getDay())", + exclude_from_translation: true, + type: "set_variable", + _nested_name: "benchmarks.local_benchmark_absolute_day_number", + _dynamicFields: { + value: [ + { + fullExpression: "@calc((new Date()).getDay())", + matchedExpression: "@calc((new Date()).getDay())", + type: "calc", + fieldName: "(new Date()).getDay()", + }, + ], + }, + _dynamicDependencies: { + "@calc((new Date()).getDay())": ["value"], + }, + }, + { + name: "sunday_number", + value: 0, + exclude_from_translation: true, + type: "set_variable", + _nested_name: "benchmarks.sunday_number", + }, + { + name: "monday_number", + value: 1, + exclude_from_translation: true, + type: "set_variable", + _nested_name: "benchmarks.monday_number", + }, + { + name: "tuesday_number", + value: 2, + exclude_from_translation: true, + type: "set_variable", + _nested_name: "benchmarks.tuesday_number", + }, + { + name: "wednesday_number", + value: 3, + exclude_from_translation: true, + type: "set_variable", + _nested_name: "benchmarks.wednesday_number", + }, + { + name: "thursday_number", + value: 4, + exclude_from_translation: true, + type: "set_variable", + _nested_name: "benchmarks.thursday_number", + }, + { + name: "friday_number", + value: 5, + exclude_from_translation: true, + type: "set_variable", + _nested_name: "benchmarks.friday_number", + }, + { + name: "saturday_number", + value: 6, + exclude_from_translation: true, + type: "set_variable", + _nested_name: "benchmarks.saturday_number", + }, + { + name: "number", + value: "_number", + exclude_from_translation: true, + type: "set_variable", + _nested_name: "benchmarks.number", + }, + { + name: "local_workshop_day_number_word", + value: "@fields.workshop_day@local.number", + exclude_from_translation: true, + type: "set_variable", + _nested_name: "benchmarks.local_workshop_day_number_word", + _dynamicFields: { + value: [ + { + fullExpression: "@fields.workshop_day@local.number", + matchedExpression: "@fields.workshop_day", + type: "fields", + fieldName: "workshop_day", + }, + { + fullExpression: "@fields.workshop_day@local.number", + matchedExpression: "@local.number", + type: "local", + fieldName: "number", + }, + ], + }, + _dynamicDependencies: { + "@fields.workshop_day": ["value"], + "@local.number": ["value"], + }, + }, + { + name: "local_workshop_day_number", + value: "+@local.@local.local_workshop_day_number_word", + exclude_from_translation: true, + type: "set_variable", + _nested_name: "benchmarks.local_workshop_day_number", + _dynamicFields: { + value: [ + { + fullExpression: "+@local.@local.local_workshop_day_number_word", + matchedExpression: "@local.local_workshop_day_number_word", + type: "local", + fieldName: "local_workshop_day_number_word", + }, + ], + }, + _dynamicDependencies: { + "@local.local_workshop_day_number_word": ["value"], + }, + }, + { + type: "set_field", + name: "benchmark_relative_day_number", + value: + "@calc( (@local.local_benchmark_absolute_day_number - @local.local_workshop_day_number +7) % 7)", + exclude_from_translation: true, + _nested_name: "benchmarks.benchmark_relative_day_number", + _dynamicFields: { + value: [ + { + fullExpression: + "@calc( (@local.local_benchmark_absolute_day_number - @local.local_workshop_day_number +7) % 7)", + matchedExpression: "@local.local_benchmark_absolute_day_number", + type: "local", + fieldName: "local_benchmark_absolute_day_number", + }, + { + fullExpression: + "@calc( (@local.local_benchmark_absolute_day_number - @local.local_workshop_day_number +7) % 7)", + matchedExpression: "@local.local_workshop_day_number", + type: "local", + fieldName: "local_workshop_day_number", + }, + { + fullExpression: + "@calc( (@local.local_benchmark_absolute_day_number - @local.local_workshop_day_number +7) % 7)", + matchedExpression: + "@calc( (@local.local_benchmark_absolute_day_number - @local.local_workshop_day_number +7) % 7)", + type: "calc", + fieldName: + " (@local.local_benchmark_absolute_day_number - @local.local_workshop_day_number +7) % 7", + }, + ], + }, + _dynamicDependencies: { + "@local.local_benchmark_absolute_day_number": ["value"], + "@local.local_workshop_day_number": ["value"], + "@calc( (@local.local_benchmark_absolute_day_number - @local.local_workshop_day_number +7) % 7)": + ["value"], + }, + }, + ], + _nested_name: "benchmarks", + _dynamicFields: { + condition: [ + { + fullExpression: "!@fields.benchmark_date", + matchedExpression: "!@fields.benchmark_date", + type: "fields", + fieldName: "benchmark_date", + }, + ], + }, + _dynamicDependencies: { + "!@fields.benchmark_date": ["condition"], + }, + }, + { + name: "current_date", + value: "@calc(Date())", + type: "set_variable", + _nested_name: "current_date", + _dynamicFields: { + value: [ + { + fullExpression: "@calc(Date())", + matchedExpression: "@calc(Date())", + type: "calc", + fieldName: "Date()", + }, + ], + }, + _dynamicDependencies: { + "@calc(Date())": ["value"], + }, + }, + { + name: "current_date_time", + value: "@calc((new Date()).getTime())", + type: "set_variable", + _nested_name: "current_date_time", + _dynamicFields: { + value: [ + { + fullExpression: "@calc((new Date()).getTime())", + matchedExpression: "@calc((new Date()).getTime())", + type: "calc", + fieldName: "(new Date()).getTime()", + }, + ], + }, + _dynamicDependencies: { + "@calc((new Date()).getTime())": ["value"], + }, + }, + { + name: "days_after_benchmark_date", + value: + "@calc( Math.floor((@local.current_date_time - @fields.benchmark_date_time) / (1000 * 3600 * 24)) )", + type: "set_variable", + _nested_name: "days_after_benchmark_date", + _dynamicFields: { + value: [ + { + fullExpression: + "@calc( Math.floor((@local.current_date_time - @fields.benchmark_date_time) / (1000 * 3600 * 24)) )", + matchedExpression: "@local.current_date_time", + type: "local", + fieldName: "current_date_time", + }, + { + fullExpression: + "@calc( Math.floor((@local.current_date_time - @fields.benchmark_date_time) / (1000 * 3600 * 24)) )", + matchedExpression: "@fields.benchmark_date_time", + type: "fields", + fieldName: "benchmark_date_time", + }, + { + fullExpression: + "@calc( Math.floor((@local.current_date_time - @fields.benchmark_date_time) / (1000 * 3600 * 24)) )", + matchedExpression: + "@calc( Math.floor((@local.current_date_time - @fields.benchmark_date_time) / (1000 * 3600 * 24)) )", + type: "calc", + fieldName: + " Math.floor((@local.current_date_time - @fields.benchmark_date_time) / (1000 * 3600 * 24)) ", + }, + ], + }, + _dynamicDependencies: { + "@local.current_date_time": ["value"], + "@fields.benchmark_date_time": ["value"], + "@calc( Math.floor((@local.current_date_time - @fields.benchmark_date_time) / (1000 * 3600 * 24)) )": + ["value"], + }, + }, + { + type: "set_field", + name: "current_workshop_number", + value: + "@calc( +@fields.benchmark_workshop_number + Math.floor((@local.days_after_benchmark_date + @fields.benchmark_relative_day_number)/7) )", + _nested_name: "current_workshop_number", + _dynamicFields: { + value: [ + { + fullExpression: + "@calc( +@fields.benchmark_workshop_number + Math.floor((@local.days_after_benchmark_date + @fields.benchmark_relative_day_number)/7) )", + matchedExpression: "@fields.benchmark_workshop_number", + type: "fields", + fieldName: "benchmark_workshop_number", + }, + { + fullExpression: + "@calc( +@fields.benchmark_workshop_number + Math.floor((@local.days_after_benchmark_date + @fields.benchmark_relative_day_number)/7) )", + matchedExpression: "@local.days_after_benchmark_date", + type: "local", + fieldName: "days_after_benchmark_date", + }, + { + fullExpression: + "@calc( +@fields.benchmark_workshop_number + Math.floor((@local.days_after_benchmark_date + @fields.benchmark_relative_day_number)/7) )", + matchedExpression: "@fields.benchmark_relative_day_number", + type: "fields", + fieldName: "benchmark_relative_day_number", + }, + { + fullExpression: + "@calc( +@fields.benchmark_workshop_number + Math.floor((@local.days_after_benchmark_date + @fields.benchmark_relative_day_number)/7) )", + matchedExpression: + "@calc( +@fields.benchmark_workshop_number + Math.floor((@local.days_after_benchmark_date + @fields.benchmark_relative_day_number)/7) )", + type: "calc", + fieldName: + " +@fields.benchmark_workshop_number + Math.floor((@local.days_after_benchmark_date + @fields.benchmark_relative_day_number)/7) ", + }, + ], + }, + _dynamicDependencies: { + "@fields.benchmark_workshop_number": ["value"], + "@local.days_after_benchmark_date": ["value"], + "@fields.benchmark_relative_day_number": ["value"], + "@calc( +@fields.benchmark_workshop_number + Math.floor((@local.days_after_benchmark_date + @fields.benchmark_relative_day_number)/7) )": + ["value"], + }, + }, + { + type: "set_field", + name: "current_relative_day_number", + value: + "@calc( (@local.days_after_benchmark_date + @fields.benchmark_relative_day_number)% 7 )", + _nested_name: "current_relative_day_number", + _dynamicFields: { + value: [ + { + fullExpression: + "@calc( (@local.days_after_benchmark_date + @fields.benchmark_relative_day_number)% 7 )", + matchedExpression: "@local.days_after_benchmark_date", + type: "local", + fieldName: "days_after_benchmark_date", + }, + { + fullExpression: + "@calc( (@local.days_after_benchmark_date + @fields.benchmark_relative_day_number)% 7 )", + matchedExpression: "@fields.benchmark_relative_day_number", + type: "fields", + fieldName: "benchmark_relative_day_number", + }, + { + fullExpression: + "@calc( (@local.days_after_benchmark_date + @fields.benchmark_relative_day_number)% 7 )", + matchedExpression: + "@calc( (@local.days_after_benchmark_date + @fields.benchmark_relative_day_number)% 7 )", + type: "calc", + fieldName: + " (@local.days_after_benchmark_date + @fields.benchmark_relative_day_number)% 7 ", + }, + ], + }, + _dynamicDependencies: { + "@local.days_after_benchmark_date": ["value"], + "@fields.benchmark_relative_day_number": ["value"], + "@calc( (@local.days_after_benchmark_date + @fields.benchmark_relative_day_number)% 7 )": + ["value"], + }, + }, + { + type: "set_field", + name: "current_workshop", + value: "w_self_care", + condition: "@fields.current_workshop_number == 1", + exclude_from_translation: true, + _nested_name: "current_workshop", + _dynamicFields: { + condition: [ + { + fullExpression: "@fields.current_workshop_number == 1", + matchedExpression: "@fields.current_workshop_number", + type: "fields", + fieldName: "current_workshop_number", + }, + ], + }, + _dynamicDependencies: { + "@fields.current_workshop_number": ["condition"], + }, + }, + { + type: "set_field", + name: "current_workshop", + value: "w_1on1", + condition: "@fields.current_workshop_number == 2", + exclude_from_translation: true, + _nested_name: "current_workshop", + _dynamicFields: { + condition: [ + { + fullExpression: "@fields.current_workshop_number == 2", + matchedExpression: "@fields.current_workshop_number", + type: "fields", + fieldName: "current_workshop_number", + }, + ], + }, + _dynamicDependencies: { + "@fields.current_workshop_number": ["condition"], + }, + }, + { + type: "set_field", + name: "current_workshop", + value: "w_praise", + condition: "@fields.current_workshop_number == 3", + exclude_from_translation: true, + _nested_name: "current_workshop", + _dynamicFields: { + condition: [ + { + fullExpression: "@fields.current_workshop_number == 3", + matchedExpression: "@fields.current_workshop_number", + type: "fields", + fieldName: "current_workshop_number", + }, + ], + }, + _dynamicDependencies: { + "@fields.current_workshop_number": ["condition"], + }, + }, + { + type: "set_field", + name: "current_workshop", + value: "w_instruct", + condition: "@fields.current_workshop_number == 4", + exclude_from_translation: true, + _nested_name: "current_workshop", + _dynamicFields: { + condition: [ + { + fullExpression: "@fields.current_workshop_number == 4", + matchedExpression: "@fields.current_workshop_number", + type: "fields", + fieldName: "current_workshop_number", + }, + ], + }, + _dynamicDependencies: { + "@fields.current_workshop_number": ["condition"], + }, + }, + { + type: "set_field", + name: "current_workshop", + value: "w_stress", + condition: "@fields.current_workshop_number == 5", + exclude_from_translation: true, + _nested_name: "current_workshop", + _dynamicFields: { + condition: [ + { + fullExpression: "@fields.current_workshop_number == 5", + matchedExpression: "@fields.current_workshop_number", + type: "fields", + fieldName: "current_workshop_number", + }, + ], + }, + _dynamicDependencies: { + "@fields.current_workshop_number": ["condition"], + }, + }, + { + type: "set_field", + name: "current_workshop", + value: "w_money", + condition: "@fields.current_workshop_number == 6", + exclude_from_translation: true, + _nested_name: "current_workshop", + _dynamicFields: { + condition: [ + { + fullExpression: "@fields.current_workshop_number == 6", + matchedExpression: "@fields.current_workshop_number", + type: "fields", + fieldName: "current_workshop_number", + }, + ], + }, + _dynamicDependencies: { + "@fields.current_workshop_number": ["condition"], + }, + }, + { + type: "set_field", + name: "current_workshop", + value: "w_rules", + condition: "@fields.current_workshop_number == 7", + exclude_from_translation: true, + _nested_name: "current_workshop", + _dynamicFields: { + condition: [ + { + fullExpression: "@fields.current_workshop_number == 7", + matchedExpression: "@fields.current_workshop_number", + type: "fields", + fieldName: "current_workshop_number", + }, + ], + }, + _dynamicDependencies: { + "@fields.current_workshop_number": ["condition"], + }, + }, + { + type: "set_field", + name: "current_workshop", + value: "w_consequence", + condition: "@fields.current_workshop_number == 8", + exclude_from_translation: true, + _nested_name: "current_workshop", + _dynamicFields: { + condition: [ + { + fullExpression: "@fields.current_workshop_number == 8", + matchedExpression: "@fields.current_workshop_number", + type: "fields", + fieldName: "current_workshop_number", + }, + ], + }, + _dynamicDependencies: { + "@fields.current_workshop_number": ["condition"], + }, + }, + { + type: "set_field", + name: "current_workshop", + value: "w_solve", + condition: "@fields.current_workshop_number == 9", + exclude_from_translation: true, + _nested_name: "current_workshop", + _dynamicFields: { + condition: [ + { + fullExpression: "@fields.current_workshop_number == 9", + matchedExpression: "@fields.current_workshop_number", + type: "fields", + fieldName: "current_workshop_number", + }, + ], + }, + _dynamicDependencies: { + "@fields.current_workshop_number": ["condition"], + }, + }, + { + type: "set_field", + name: "current_workshop", + value: "w_safe", + condition: "@fields.current_workshop_number == 10", + exclude_from_translation: true, + _nested_name: "current_workshop", + _dynamicFields: { + condition: [ + { + fullExpression: "@fields.current_workshop_number == 10", + matchedExpression: "@fields.current_workshop_number", + type: "fields", + fieldName: "current_workshop_number", + }, + ], + }, + _dynamicDependencies: { + "@fields.current_workshop_number": ["condition"], + }, + }, + { + type: "set_field", + name: "current_workshop", + value: "w_crisis", + condition: "@fields.current_workshop_number == 11", + exclude_from_translation: true, + _nested_name: "current_workshop", + _dynamicFields: { + condition: [ + { + fullExpression: "@fields.current_workshop_number == 11", + matchedExpression: "@fields.current_workshop_number", + type: "fields", + fieldName: "current_workshop_number", + }, + ], + }, + _dynamicDependencies: { + "@fields.current_workshop_number": ["condition"], + }, + }, + { + type: "set_field", + name: "current_workshop", + value: "w_celebrate", + condition: "@fields.current_workshop_number == 12", + exclude_from_translation: true, + _nested_name: "current_workshop", + _dynamicFields: { + condition: [ + { + fullExpression: "@fields.current_workshop_number == 12", + matchedExpression: "@fields.current_workshop_number", + type: "fields", + fieldName: "current_workshop_number", + }, + ], + }, + _dynamicDependencies: { + "@fields.current_workshop_number": ["condition"], + }, + }, + ], + _xlsxPath: "plh_sheets_beta/plh_templating/campaigns/campaign_unlock_workshops.xlsx", + }, + { + flow_type: "template", + flow_name: "new_benchmarks", + status: "released", + rows: [ + { + name: "current_workshop", + value: "@fields.current_workshop", + exclude_from_translation: true, + type: "set_variable", + _nested_name: "current_workshop", + _dynamicFields: { + value: [ + { + fullExpression: "@fields.current_workshop", + matchedExpression: "@fields.current_workshop", + type: "fields", + fieldName: "current_workshop", + }, + ], + }, + _dynamicDependencies: { + "@fields.current_workshop": ["value"], + }, + }, + { + name: "workshop_day", + value: "@fields.workshop_day", + exclude_from_translation: true, + type: "set_variable", + _nested_name: "workshop_day", + _dynamicFields: { + value: [ + { + fullExpression: "@fields.workshop_day", + matchedExpression: "@fields.workshop_day", + type: "fields", + fieldName: "workshop_day", + }, + ], + }, + _dynamicDependencies: { + "@fields.workshop_day": ["value"], + }, + }, + { + name: "workshop_local_current_workshop", + value: "workshop.@local.current_workshop", + exclude_from_translation: true, + type: "set_variable", + _nested_name: "workshop_local_current_workshop", + _dynamicFields: { + value: [ + { + fullExpression: "workshop.@local.current_workshop", + matchedExpression: "@local.current_workshop", + type: "local", + fieldName: "current_workshop", + }, + ], + }, + _dynamicDependencies: { + "@local.current_workshop": ["value"], + }, + }, + { + name: "local_benchmark_workshop_data", + value: "@data.@local.workshop_local_current_workshop", + exclude_from_translation: true, + type: "set_variable", + _nested_name: "local_benchmark_workshop_data", + _dynamicFields: { + value: [ + { + fullExpression: "@data.@local.workshop_local_current_workshop", + matchedExpression: "@local.workshop_local_current_workshop", + type: "local", + fieldName: "workshop_local_current_workshop", + }, + ], + }, + _dynamicDependencies: { + "@local.workshop_local_current_workshop": ["value"], + }, + }, + { + name: "local_benchmark_workshop_number", + value: "+@local.local_benchmark_workshop_data.number", + exclude_from_translation: true, + type: "set_variable", + _nested_name: "local_benchmark_workshop_number", + _dynamicFields: { + value: [ + { + fullExpression: "+@local.local_benchmark_workshop_data.number", + matchedExpression: "@local.local_benchmark_workshop_data.number", + type: "local", + fieldName: "local_benchmark_workshop_data", + }, + ], + }, + _dynamicDependencies: { + "@local.local_benchmark_workshop_data.number": ["value"], + }, + }, + { + name: "local_benchmark_date", + value: "@calc(Date())", + exclude_from_translation: true, + type: "set_variable", + _nested_name: "local_benchmark_date", + _dynamicFields: { + value: [ + { + fullExpression: "@calc(Date())", + matchedExpression: "@calc(Date())", + type: "calc", + fieldName: "Date()", + }, + ], + }, + _dynamicDependencies: { + "@calc(Date())": ["value"], + }, + }, + { + name: "local_benchmark_date_time", + value: "@calc((new Date()).setHours(0,0,0,0))", + exclude_from_translation: true, + type: "set_variable", + _nested_name: "local_benchmark_date_time", + _dynamicFields: { + value: [ + { + fullExpression: "@calc((new Date()).setHours(0,0,0,0))", + matchedExpression: "@calc((new Date()).setHours(0,0,0,0))", + type: "calc", + fieldName: "(new Date()).setHours(0,0,0,0)", + }, + ], + }, + _dynamicDependencies: { + "@calc((new Date()).setHours(0,0,0,0))": ["value"], + }, + }, + { + name: "local_benchmark_absolute_day_number", + value: "@calc((new Date()).getDay())", + exclude_from_translation: true, + type: "set_variable", + _nested_name: "local_benchmark_absolute_day_number", + _dynamicFields: { + value: [ + { + fullExpression: "@calc((new Date()).getDay())", + matchedExpression: "@calc((new Date()).getDay())", + type: "calc", + fieldName: "(new Date()).getDay()", + }, + ], + }, + _dynamicDependencies: { + "@calc((new Date()).getDay())": ["value"], + }, + }, + { + name: "sunday_number", value: 0, + exclude_from_translation: true, type: "set_variable", - _nested_name: "sunday", + _nested_name: "sunday_number", }, { - name: "monday", + name: "monday_number", value: 1, + exclude_from_translation: true, type: "set_variable", - _nested_name: "monday", + _nested_name: "monday_number", }, { - name: "tuesday", + name: "tuesday_number", value: 2, + exclude_from_translation: true, type: "set_variable", - _nested_name: "tuesday", + _nested_name: "tuesday_number", }, { - name: "wednesday", + name: "wednesday_number", value: 3, + exclude_from_translation: true, type: "set_variable", - _nested_name: "wednesday", + _nested_name: "wednesday_number", }, { - name: "thursday", + name: "thursday_number", value: 4, + exclude_from_translation: true, type: "set_variable", - _nested_name: "thursday", + _nested_name: "thursday_number", }, { - name: "friday", + name: "friday_number", value: 5, + exclude_from_translation: true, type: "set_variable", - _nested_name: "friday", + _nested_name: "friday_number", }, { - name: "saturday", + name: "saturday_number", value: 6, + exclude_from_translation: true, type: "set_variable", - _nested_name: "saturday", + _nested_name: "saturday_number", + }, + { + name: "number", + value: "_number", + exclude_from_translation: true, + type: "set_variable", + _nested_name: "number", }, { - name: "workshop_day_number", - value: "+@local.@fields.workshop_day", + name: "local_workshop_day_number_word", + value: "@local.workshop_day@local.number", + exclude_from_translation: true, type: "set_variable", - _nested_name: "workshop_day_number", + _nested_name: "local_workshop_day_number_word", _dynamicFields: { value: [ { - fullExpression: "+@local.@fields.workshop_day", - matchedExpression: "@fields.workshop_day", - type: "fields", + fullExpression: "@local.workshop_day@local.number", + matchedExpression: "@local.workshop_day", + type: "local", fieldName: "workshop_day", }, + { + fullExpression: "@local.workshop_day@local.number", + matchedExpression: "@local.number", + type: "local", + fieldName: "number", + }, ], }, _dynamicDependencies: { - "@fields.workshop_day": ["value"], + "@local.workshop_day": ["value"], + "@local.number": ["value"], }, }, { - name: "absolute_day_number", - value: "@calc((new Date()).getDay())", + name: "local_workshop_day_number", + value: "+@local.@local.local_workshop_day_number_word", + exclude_from_translation: true, type: "set_variable", - _nested_name: "absolute_day_number", + _nested_name: "local_workshop_day_number", _dynamicFields: { value: [ { - fullExpression: "@calc((new Date()).getDay())", - matchedExpression: "@calc((new Date()).getDay())", - type: "calc", - fieldName: "(new Date()).getDay()", + fullExpression: "+@local.@local.local_workshop_day_number_word", + matchedExpression: "@local.local_workshop_day_number_word", + type: "local", + fieldName: "local_workshop_day_number_word", }, ], }, _dynamicDependencies: { - "@calc((new Date()).getDay())": ["value"], + "@local.local_workshop_day_number_word": ["value"], }, }, { - type: "set_field", - name: "relative_day_number", - value: "@calc( (@local.absolute_day_number - @local.workshop_day_number +7) % 7)", - _nested_name: "relative_day_number", + name: "local_benchmark_relative_day_number", + value: + "@calc( (@local.local_benchmark_absolute_day_number - @local.local_workshop_day_number +7) % 7)", + exclude_from_translation: true, + type: "set_variable", + _nested_name: "local_benchmark_relative_day_number", _dynamicFields: { value: [ { fullExpression: - "@calc( (@local.absolute_day_number - @local.workshop_day_number +7) % 7)", - matchedExpression: "@local.absolute_day_number", + "@calc( (@local.local_benchmark_absolute_day_number - @local.local_workshop_day_number +7) % 7)", + matchedExpression: "@local.local_benchmark_absolute_day_number", type: "local", - fieldName: "absolute_day_number", + fieldName: "local_benchmark_absolute_day_number", }, { fullExpression: - "@calc( (@local.absolute_day_number - @local.workshop_day_number +7) % 7)", - matchedExpression: "@local.workshop_day_number", + "@calc( (@local.local_benchmark_absolute_day_number - @local.local_workshop_day_number +7) % 7)", + matchedExpression: "@local.local_workshop_day_number", type: "local", - fieldName: "workshop_day_number", + fieldName: "local_workshop_day_number", }, { fullExpression: - "@calc( (@local.absolute_day_number - @local.workshop_day_number +7) % 7)", + "@calc( (@local.local_benchmark_absolute_day_number - @local.local_workshop_day_number +7) % 7)", matchedExpression: - "@calc( (@local.absolute_day_number - @local.workshop_day_number +7) % 7)", + "@calc( (@local.local_benchmark_absolute_day_number - @local.local_workshop_day_number +7) % 7)", type: "calc", - fieldName: " (@local.absolute_day_number - @local.workshop_day_number +7) % 7", + fieldName: + " (@local.local_benchmark_absolute_day_number - @local.local_workshop_day_number +7) % 7", }, ], }, _dynamicDependencies: { - "@local.absolute_day_number": ["value"], - "@local.workshop_day_number": ["value"], - "@calc( (@local.absolute_day_number - @local.workshop_day_number +7) % 7)": ["value"], + "@local.local_benchmark_absolute_day_number": ["value"], + "@local.local_workshop_day_number": ["value"], + "@calc( (@local.local_benchmark_absolute_day_number - @local.local_workshop_day_number +7) % 7)": + ["value"], }, }, { - name: "current_workshop", - value: "@fields.current_workshop", - type: "set_variable", - _nested_name: "current_workshop", + type: "template", + name: "nav_buttons", + value: "nav_buttons", + action_list: [ + { + trigger: "completed", + action_id: "set_field", + args: ["benchmark_date", "@local.local_benchmark_date"], + _raw: "completed | set_field: benchmark_date: @local.local_benchmark_date", + _cleaned: "completed | set_field: benchmark_date: @local.local_benchmark_date", + }, + { + trigger: "completed", + action_id: "set_field", + args: ["benchmark_date_time", "@local.local_benchmark_date_time"], + _raw: "completed | set_field: benchmark_date_time: @local.local_benchmark_date_time", + _cleaned: + "completed | set_field: benchmark_date_time: @local.local_benchmark_date_time", + }, + { + trigger: "completed", + action_id: "set_field", + args: ["benchmark_relative_day_number", "@local.local_benchmark_relative_day_number"], + _raw: "completed | set_field: benchmark_relative_day_number: @local.local_benchmark_relative_day_number", + _cleaned: + "completed | set_field: benchmark_relative_day_number: @local.local_benchmark_relative_day_number", + }, + { + trigger: "completed", + action_id: "set_field", + args: ["benchmark_workshop_number", "@local.local_benchmark_workshop_number"], + _raw: "completed | set_field: benchmark_workshop_number: @local.local_benchmark_workshop_number", + _cleaned: + "completed | set_field: benchmark_workshop_number: @local.local_benchmark_workshop_number", + }, + { + trigger: "completed", + action_id: "set_field", + args: ["current_workshop", "@local.current_workshop"], + _raw: "completed | set_field: current_workshop: @local.current_workshop", + _cleaned: "completed | set_field: current_workshop: @local.current_workshop", + }, + { + trigger: "completed", + action_id: "set_field", + args: ["current_workshop_number", "@local.local_benchmark_workshop_number"], + _raw: "completed | set_field: current_workshop_number: @local.local_benchmark_workshop_number", + _cleaned: + "completed | set_field: current_workshop_number: @local.local_benchmark_workshop_number", + }, + { + trigger: "completed", + action_id: "set_field", + args: ["workshop_day", "@local.workshop_day"], + _raw: "completed | set_field: workshop_day: @local.workshop_day", + _cleaned: "completed | set_field: workshop_day: @local.workshop_day", + }, + { + trigger: "completed", + action_id: "emit", + args: ["completed"], + _raw: "completed | emit: completed", + _cleaned: "completed | emit: completed", + }, + { + trigger: "uncompleted", + action_id: "emit", + args: ["uncompleted"], + _raw: "uncompleted | emit: uncompleted", + _cleaned: "uncompleted | emit: uncompleted", + }, + ], + rows: [], + _nested_name: "nav_buttons", _dynamicFields: { - value: [ - { - fullExpression: "@fields.current_workshop", - matchedExpression: "@fields.current_workshop", - type: "fields", - fieldName: "current_workshop", + action_list: { + "0": { + args: { + "1": [ + { + fullExpression: "@local.local_benchmark_date", + matchedExpression: "@local.local_benchmark_date", + type: "local", + fieldName: "local_benchmark_date", + }, + ], + }, + _raw: [ + { + fullExpression: + "completed | set_field: benchmark_date: @local.local_benchmark_date", + matchedExpression: "@local.local_benchmark_date", + type: "local", + fieldName: "local_benchmark_date", + }, + ], + _cleaned: [ + { + fullExpression: + "completed | set_field: benchmark_date: @local.local_benchmark_date", + matchedExpression: "@local.local_benchmark_date", + type: "local", + fieldName: "local_benchmark_date", + }, + ], }, - ], - }, - _dynamicDependencies: { - "@fields.current_workshop": ["value"], - }, - }, - { - name: "workshop_current_workshop", - value: "workshop.@local.current_workshop", - type: "set_variable", - _nested_name: "workshop_current_workshop", - _dynamicFields: { - value: [ - { - fullExpression: "workshop.@local.current_workshop", - matchedExpression: "@local.current_workshop", - type: "local", - fieldName: "current_workshop", + "1": { + args: { + "1": [ + { + fullExpression: "@local.local_benchmark_date_time", + matchedExpression: "@local.local_benchmark_date_time", + type: "local", + fieldName: "local_benchmark_date_time", + }, + ], + }, + _raw: [ + { + fullExpression: + "completed | set_field: benchmark_date_time: @local.local_benchmark_date_time", + matchedExpression: "@local.local_benchmark_date_time", + type: "local", + fieldName: "local_benchmark_date_time", + }, + ], + _cleaned: [ + { + fullExpression: + "completed | set_field: benchmark_date_time: @local.local_benchmark_date_time", + matchedExpression: "@local.local_benchmark_date_time", + type: "local", + fieldName: "local_benchmark_date_time", + }, + ], }, - ], - }, - _dynamicDependencies: { - "@local.current_workshop": ["value"], - }, - }, - { - name: "current_workshop_data", - value: "@data.@local.workshop_current_workshop", - type: "set_variable", - _nested_name: "current_workshop_data", - _dynamicFields: { - value: [ - { - fullExpression: "@data.@local.workshop_current_workshop", - matchedExpression: "@local.workshop_current_workshop", - type: "local", - fieldName: "workshop_current_workshop", + "2": { + args: { + "1": [ + { + fullExpression: "@local.local_benchmark_relative_day_number", + matchedExpression: "@local.local_benchmark_relative_day_number", + type: "local", + fieldName: "local_benchmark_relative_day_number", + }, + ], + }, + _raw: [ + { + fullExpression: + "completed | set_field: benchmark_relative_day_number: @local.local_benchmark_relative_day_number", + matchedExpression: "@local.local_benchmark_relative_day_number", + type: "local", + fieldName: "local_benchmark_relative_day_number", + }, + ], + _cleaned: [ + { + fullExpression: + "completed | set_field: benchmark_relative_day_number: @local.local_benchmark_relative_day_number", + matchedExpression: "@local.local_benchmark_relative_day_number", + type: "local", + fieldName: "local_benchmark_relative_day_number", + }, + ], }, - ], - }, - _dynamicDependencies: { - "@local.workshop_current_workshop": ["value"], - }, - }, - { - type: "set_field", - name: "current_workshop_number", - value: "@local.current_workshop_data.number", - _nested_name: "current_workshop_number", - _dynamicFields: { - value: [ - { - fullExpression: "@local.current_workshop_data.number", - matchedExpression: "@local.current_workshop_data.number", - type: "local", - fieldName: "current_workshop_data", + "3": { + args: { + "1": [ + { + fullExpression: "@local.local_benchmark_workshop_number", + matchedExpression: "@local.local_benchmark_workshop_number", + type: "local", + fieldName: "local_benchmark_workshop_number", + }, + ], + }, + _raw: [ + { + fullExpression: + "completed | set_field: benchmark_workshop_number: @local.local_benchmark_workshop_number", + matchedExpression: "@local.local_benchmark_workshop_number", + type: "local", + fieldName: "local_benchmark_workshop_number", + }, + ], + _cleaned: [ + { + fullExpression: + "completed | set_field: benchmark_workshop_number: @local.local_benchmark_workshop_number", + matchedExpression: "@local.local_benchmark_workshop_number", + type: "local", + fieldName: "local_benchmark_workshop_number", + }, + ], }, - ], + "4": { + args: { + "1": [ + { + fullExpression: "@local.current_workshop", + matchedExpression: "@local.current_workshop", + type: "local", + fieldName: "current_workshop", + }, + ], + }, + _raw: [ + { + fullExpression: + "completed | set_field: current_workshop: @local.current_workshop", + matchedExpression: "@local.current_workshop", + type: "local", + fieldName: "current_workshop", + }, + ], + _cleaned: [ + { + fullExpression: + "completed | set_field: current_workshop: @local.current_workshop", + matchedExpression: "@local.current_workshop", + type: "local", + fieldName: "current_workshop", + }, + ], + }, + "5": { + args: { + "1": [ + { + fullExpression: "@local.local_benchmark_workshop_number", + matchedExpression: "@local.local_benchmark_workshop_number", + type: "local", + fieldName: "local_benchmark_workshop_number", + }, + ], + }, + _raw: [ + { + fullExpression: + "completed | set_field: current_workshop_number: @local.local_benchmark_workshop_number", + matchedExpression: "@local.local_benchmark_workshop_number", + type: "local", + fieldName: "local_benchmark_workshop_number", + }, + ], + _cleaned: [ + { + fullExpression: + "completed | set_field: current_workshop_number: @local.local_benchmark_workshop_number", + matchedExpression: "@local.local_benchmark_workshop_number", + type: "local", + fieldName: "local_benchmark_workshop_number", + }, + ], + }, + "6": { + args: { + "1": [ + { + fullExpression: "@local.workshop_day", + matchedExpression: "@local.workshop_day", + type: "local", + fieldName: "workshop_day", + }, + ], + }, + _raw: [ + { + fullExpression: "completed | set_field: workshop_day: @local.workshop_day", + matchedExpression: "@local.workshop_day", + type: "local", + fieldName: "workshop_day", + }, + ], + _cleaned: [ + { + fullExpression: "completed | set_field: workshop_day: @local.workshop_day", + matchedExpression: "@local.workshop_day", + type: "local", + fieldName: "workshop_day", + }, + ], + }, + }, }, _dynamicDependencies: { - "@local.current_workshop_data.number": ["value"], + "@local.local_benchmark_date": [ + "action_list.0.args.1", + "action_list.0._raw", + "action_list.0._cleaned", + ], + "@local.local_benchmark_date_time": [ + "action_list.1.args.1", + "action_list.1._raw", + "action_list.1._cleaned", + ], + "@local.local_benchmark_relative_day_number": [ + "action_list.2.args.1", + "action_list.2._raw", + "action_list.2._cleaned", + ], + "@local.local_benchmark_workshop_number": [ + "action_list.3.args.1", + "action_list.3._raw", + "action_list.3._cleaned", + "action_list.5.args.1", + "action_list.5._raw", + "action_list.5._cleaned", + ], + "@local.current_workshop": [ + "action_list.4.args.1", + "action_list.4._raw", + "action_list.4._cleaned", + ], + "@local.workshop_day": [ + "action_list.6.args.1", + "action_list.6._raw", + "action_list.6._cleaned", + ], }, }, ], @@ -687,7 +1835,7 @@ const template: FlowTypes.Template[] = [ status: "released", rows: [ { - type: "text", + type: "debug_toggle", name: "debug_toggle_bar", value: "The debug toggle bar would go here", condition: "!@fields.user_mode", @@ -755,6 +1903,15 @@ const template: FlowTypes.Template[] = [ type: "button", name: "button_4", value: "Template", + action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["/template"], + _raw: "click | go_to:/template", + _cleaned: "click | go_to:/template", + }, + ], condition: "!@fields.user_mode", parameter_list: { text_align: "centre", @@ -778,6 +1935,15 @@ const template: FlowTypes.Template[] = [ type: "button", name: "button_5", value: "Tour", + action_list: [ + { + trigger: "click", + action_id: "start_tour", + args: ["intro_tour_quickstart"], + _raw: "click | start_tour:intro_tour_quickstart", + _cleaned: "click | start_tour:intro_tour_quickstart", + }, + ], condition: "!@fields.user_mode", parameter_list: { text_align: "centre", @@ -833,6 +1999,15 @@ const template: FlowTypes.Template[] = [ type: "button", name: "button_7", value: "Campaigns", + action_list: [ + { + trigger: "click", + action_id: "go_to", + args: ["/campaigns"], + _raw: "click | go_to:/campaigns", + _cleaned: "click | go_to:/campaigns", + }, + ], condition: "!@fields.user_mode", parameter_list: { text_align: "centre", @@ -939,16 +2114,30 @@ const template: FlowTypes.Template[] = [ action_list: [ { trigger: "click", - action_id: "reset_app", - args: [], - _raw: "click | reset_app", - _cleaned: "click | reset_app", + action_id: "pop_up", + args: ["app_menu_reset_app_pop"], + _raw: "click | pop_up:app_menu_reset_app_pop", + _cleaned: "click | pop_up:app_menu_reset_app_pop", }, ], + condition: "!@fields.user_mode", parameter_list: { text_align: "centre", }, _nested_name: "button_3", + _dynamicFields: { + condition: [ + { + fullExpression: "!@fields.user_mode", + matchedExpression: "!@fields.user_mode", + type: "fields", + fieldName: "user_mode", + }, + ], + }, + _dynamicDependencies: { + "!@fields.user_mode": ["condition"], + }, }, { type: "button", @@ -1207,6 +2396,42 @@ const template: FlowTypes.Template[] = [ ], _xlsxPath: "plh_sheets_beta/plh_templating/core_templates/core_templates_menu.xlsx", }, + { + flow_type: "template", + flow_name: "app_menu_reset_app_pop", + status: "released", + rows: [ + { + type: "title", + name: "title", + value: "Reset App", + _nested_name: "title", + }, + { + type: "text", + name: "text_1", + value: + "By clicking in the button below you will reset the app to its initial settings. \n\nThis means that all your progress and usage data will be deleted and your app will work as if it was just installed for the first time.\n\nNOTE: Resetting the app is permanent and you will not be able to recover any information.", + _nested_name: "text_1", + }, + { + type: "button", + name: "button_1", + value: "Reset App", + action_list: [ + { + trigger: "click", + action_id: "reset_app", + args: [], + _raw: "click | reset_app", + _cleaned: "click | reset_app", + }, + ], + _nested_name: "button_1", + }, + ], + _xlsxPath: "plh_sheets_beta/plh_templating/core_templates/core_templates_menu.xlsx", + }, { flow_type: "template", flow_name: "app_menu_terms", @@ -1461,6 +2686,8 @@ const template: FlowTypes.Template[] = [ { type: "text", name: "text_13", + value: + "If you have any questions or suggestions about our Terms and Conditions, do not hesitate to contact us at apps@idems.international.", exclude_from_translation: true, _nested_name: "text_13", }, @@ -1818,6 +3045,8 @@ const template: FlowTypes.Template[] = [ { type: "text", name: "text_18", + value: + "If you have any questions or suggestions about our Privacy Policy, do not hesitate to contact us at apps@idems.international.", exclude_from_translation: true, _nested_name: "text_18", }, @@ -5815,63 +7044,6 @@ const template: FlowTypes.Template[] = [ "@global.tap_and_type": ["parameter_list.placeholder"], }, }, - { - name: "local_user_name", - value: "@local.text_box_1", - condition: "@local.text_box_1", - type: "set_variable", - _nested_name: "local_user_name", - _dynamicFields: { - value: [ - { - fullExpression: "@local.text_box_1", - matchedExpression: "@local.text_box_1", - type: "local", - fieldName: "text_box_1", - }, - ], - condition: [ - { - fullExpression: "@local.text_box_1", - matchedExpression: "@local.text_box_1", - type: "local", - fieldName: "text_box_1", - }, - ], - }, - _dynamicDependencies: { - "@local.text_box_1": ["value", "condition"], - }, - }, - { - name: "local_user_name", - value: "@global.user_name_default", - condition: "!@local.text_box_1", - type: "set_variable", - _nested_name: "local_user_name", - _dynamicFields: { - value: [ - { - fullExpression: "@global.user_name_default", - matchedExpression: "@global.user_name_default", - type: "global", - fieldName: "user_name_default", - }, - ], - condition: [ - { - fullExpression: "!@local.text_box_1", - matchedExpression: "!@local.text_box_1", - type: "local", - fieldName: "text_box_1", - }, - ], - }, - _dynamicDependencies: { - "@global.user_name_default": ["value"], - "!@local.text_box_1": ["condition"], - }, - }, { type: "text", name: "workshop_day_text", @@ -5924,63 +7096,6 @@ const template: FlowTypes.Template[] = [ "@local.answer_list_2": ["parameter_list.answer_list"], }, }, - { - name: "local_workshop_day", - value: "@local.combo_box_1", - condition: "@local.combo_box_1", - type: "set_variable", - _nested_name: "local_workshop_day", - _dynamicFields: { - value: [ - { - fullExpression: "@local.combo_box_1", - matchedExpression: "@local.combo_box_1", - type: "local", - fieldName: "combo_box_1", - }, - ], - condition: [ - { - fullExpression: "@local.combo_box_1", - matchedExpression: "@local.combo_box_1", - type: "local", - fieldName: "combo_box_1", - }, - ], - }, - _dynamicDependencies: { - "@local.combo_box_1": ["value", "condition"], - }, - }, - { - name: "local_workshop_day", - value: "@global.workshop_day_default", - condition: "!@local.combo_box_1", - type: "set_variable", - _nested_name: "local_workshop_day", - _dynamicFields: { - value: [ - { - fullExpression: "@global.workshop_day_default", - matchedExpression: "@global.workshop_day_default", - type: "global", - fieldName: "workshop_day_default", - }, - ], - condition: [ - { - fullExpression: "!@local.combo_box_1", - matchedExpression: "!@local.combo_box_1", - type: "local", - fieldName: "combo_box_1", - }, - ], - }, - _dynamicDependencies: { - "@global.workshop_day_default": ["value"], - "!@local.combo_box_1": ["condition"], - }, - }, { name: "list_current_workshop", value: "workshop.@fields.current_workshop", @@ -6004,6 +7119,7 @@ const template: FlowTypes.Template[] = [ { name: "workshop_data", value: "@data.@local.list_current_workshop", + exclude_from_translation: true, type: "set_variable", _nested_name: "workshop_data", _dynamicFields: { @@ -6334,6 +7450,146 @@ const template: FlowTypes.Template[] = [ "@local.radio_group_1": ["condition"], }, }, + { + name: "local_user_name", + value: "@local.text_box_1", + condition: "@local.text_box_1", + type: "set_variable", + _nested_name: "local_user_name", + _dynamicFields: { + value: [ + { + fullExpression: "@local.text_box_1", + matchedExpression: "@local.text_box_1", + type: "local", + fieldName: "text_box_1", + }, + ], + condition: [ + { + fullExpression: "@local.text_box_1", + matchedExpression: "@local.text_box_1", + type: "local", + fieldName: "text_box_1", + }, + ], + }, + _dynamicDependencies: { + "@local.text_box_1": ["value", "condition"], + }, + }, + { + name: "local_user_name", + value: "@global.user_name_default", + condition: "!@local.text_box_1", + type: "set_variable", + _nested_name: "local_user_name", + _dynamicFields: { + value: [ + { + fullExpression: "@global.user_name_default", + matchedExpression: "@global.user_name_default", + type: "global", + fieldName: "user_name_default", + }, + ], + condition: [ + { + fullExpression: "!@local.text_box_1", + matchedExpression: "!@local.text_box_1", + type: "local", + fieldName: "text_box_1", + }, + ], + }, + _dynamicDependencies: { + "@global.user_name_default": ["value"], + "!@local.text_box_1": ["condition"], + }, + }, + { + name: "local_workshop_day", + value: "@local.combo_box_1", + condition: "@local.combo_box_1", + type: "set_variable", + _nested_name: "local_workshop_day", + _dynamicFields: { + value: [ + { + fullExpression: "@local.combo_box_1", + matchedExpression: "@local.combo_box_1", + type: "local", + fieldName: "combo_box_1", + }, + ], + condition: [ + { + fullExpression: "@local.combo_box_1", + matchedExpression: "@local.combo_box_1", + type: "local", + fieldName: "combo_box_1", + }, + ], + }, + _dynamicDependencies: { + "@local.combo_box_1": ["value", "condition"], + }, + }, + { + name: "local_workshop_day", + value: "@global.workshop_day_default", + condition: "!@local.combo_box_1", + type: "set_variable", + _nested_name: "local_workshop_day", + _dynamicFields: { + value: [ + { + fullExpression: "@global.workshop_day_default", + matchedExpression: "@global.workshop_day_default", + type: "global", + fieldName: "workshop_day_default", + }, + ], + condition: [ + { + fullExpression: "!@local.combo_box_1", + matchedExpression: "!@local.combo_box_1", + type: "local", + fieldName: "combo_box_1", + }, + ], + }, + _dynamicDependencies: { + "@global.workshop_day_default": ["value"], + "!@local.combo_box_1": ["condition"], + }, + }, + { + name: "workshop_day_changed", + value: "@local.local_workshop_day != @fields.workshop_day", + type: "set_variable", + _nested_name: "workshop_day_changed", + _dynamicFields: { + value: [ + { + fullExpression: "@local.local_workshop_day != @fields.workshop_day", + matchedExpression: "@local.local_workshop_day", + type: "local", + fieldName: "local_workshop_day", + }, + { + fullExpression: "@local.local_workshop_day != @fields.workshop_day", + matchedExpression: "@fields.workshop_day", + type: "fields", + fieldName: "workshop_day", + }, + ], + }, + _dynamicDependencies: { + "@local.local_workshop_day": ["value"], + "@fields.workshop_day": ["value"], + }, + }, { name: "local_group_name", value: "@local.text_box_2", @@ -6448,10 +7704,36 @@ const template: FlowTypes.Template[] = [ "!@local.combo_box_2": ["condition"], }, }, + { + name: "current_workshop_changed", + value: "@local.local_current_workshop != @fields.current_workshop", + type: "set_variable", + _nested_name: "current_workshop_changed", + _dynamicFields: { + value: [ + { + fullExpression: "@local.local_current_workshop != @fields.current_workshop", + matchedExpression: "@local.local_current_workshop", + type: "local", + fieldName: "local_current_workshop", + }, + { + fullExpression: "@local.local_current_workshop != @fields.current_workshop", + matchedExpression: "@fields.current_workshop", + type: "fields", + fieldName: "current_workshop", + }, + ], + }, + _dynamicDependencies: { + "@local.local_current_workshop": ["value"], + "@fields.current_workshop": ["value"], + }, + }, { type: "template", - name: "nav_buttons", - value: "nav_buttons", + name: "new_benchmarks", + value: "new_benchmarks", action_list: [ { trigger: "completed", @@ -6461,20 +7743,6 @@ const template: FlowTypes.Template[] = [ _cleaned: "completed | set_field: do_workshops_together: @local.local_do_workshops_together", }, - { - trigger: "completed", - action_id: "set_field", - args: ["workshop_day", "@local.local_workshop_day"], - _raw: "completed | set_field: workshop_day: @local.local_workshop_day", - _cleaned: "completed | set_field: workshop_day: @local.local_workshop_day", - }, - { - trigger: "completed", - action_id: "set_field", - args: ["current_workshop", "@local.local_current_workshop"], - _raw: "completed | set_field: current_workshop: @local.local_current_workshop", - _cleaned: "completed | set_field: current_workshop: @local.local_current_workshop", - }, { trigger: "completed", action_id: "set_field", @@ -6489,6 +7757,13 @@ const template: FlowTypes.Template[] = [ _raw: "completed | set_field: group_name: @local.local_group_name", _cleaned: "completed | set_field: group_name: @local.local_group_name", }, + { + trigger: "completed", + action_id: "trigger_actions", + args: ["@campaign.unlock_workshops.click_action_list"], + _raw: "completed | trigger_actions: @campaign.unlock_workshops.click_action_list", + _cleaned: "completed | trigger_actions: @campaign.unlock_workshops.click_action_list", + }, { trigger: "completed", action_id: "emit", @@ -6497,35 +7772,81 @@ const template: FlowTypes.Template[] = [ _cleaned: "completed | emit:completed", }, ], + condition: "@local.workshop_day_changed || @local.current_workshop_changed", rows: [ { - name: "display_back", - value: false, - exclude_from_translation: true, + name: "current_workshop", + value: "@local.local_current_workshop", type: "set_variable", - _nested_name: "nav_buttons.display_back", + _nested_name: "new_benchmarks.current_workshop", + _dynamicFields: { + value: [ + { + fullExpression: "@local.local_current_workshop", + matchedExpression: "@local.local_current_workshop", + type: "local", + fieldName: "local_current_workshop", + }, + ], + }, + _dynamicDependencies: { + "@local.local_current_workshop": ["value"], + }, }, { - name: "button_completed", - value: "@global.save_button", + name: "workshop_day", + value: "@local.local_workshop_day", type: "set_variable", - _nested_name: "nav_buttons.button_completed", + _nested_name: "new_benchmarks.workshop_day", _dynamicFields: { value: [ { - fullExpression: "@global.save_button", - matchedExpression: "@global.save_button", - type: "global", - fieldName: "save_button", + fullExpression: "@local.local_workshop_day", + matchedExpression: "@local.local_workshop_day", + type: "local", + fieldName: "local_workshop_day", }, ], }, _dynamicDependencies: { - "@global.save_button": ["value"], + "@local.local_workshop_day": ["value"], }, }, + { + type: "nested_properties", + name: "nav_buttons", + rows: [ + { + name: "display_back", + value: false, + exclude_from_translation: true, + type: "set_variable", + _nested_name: "new_benchmarks.nav_buttons.display_back", + }, + { + name: "button_completed", + value: "@global.save_button", + type: "set_variable", + _nested_name: "new_benchmarks.nav_buttons.button_completed", + _dynamicFields: { + value: [ + { + fullExpression: "@global.save_button", + matchedExpression: "@global.save_button", + type: "global", + fieldName: "save_button", + }, + ], + }, + _dynamicDependencies: { + "@global.save_button": ["value"], + }, + }, + ], + _nested_name: "new_benchmarks.nav_buttons", + }, ], - _nested_name: "nav_buttons", + _nested_name: "new_benchmarks", _dynamicFields: { action_list: { "0": { @@ -6559,64 +7880,6 @@ const template: FlowTypes.Template[] = [ ], }, "1": { - args: { - "1": [ - { - fullExpression: "@local.local_workshop_day", - matchedExpression: "@local.local_workshop_day", - type: "local", - fieldName: "local_workshop_day", - }, - ], - }, - _raw: [ - { - fullExpression: "completed | set_field: workshop_day: @local.local_workshop_day", - matchedExpression: "@local.local_workshop_day", - type: "local", - fieldName: "local_workshop_day", - }, - ], - _cleaned: [ - { - fullExpression: "completed | set_field: workshop_day: @local.local_workshop_day", - matchedExpression: "@local.local_workshop_day", - type: "local", - fieldName: "local_workshop_day", - }, - ], - }, - "2": { - args: { - "1": [ - { - fullExpression: "@local.local_current_workshop", - matchedExpression: "@local.local_current_workshop", - type: "local", - fieldName: "local_current_workshop", - }, - ], - }, - _raw: [ - { - fullExpression: - "completed | set_field: current_workshop: @local.local_current_workshop", - matchedExpression: "@local.local_current_workshop", - type: "local", - fieldName: "local_current_workshop", - }, - ], - _cleaned: [ - { - fullExpression: - "completed | set_field: current_workshop: @local.local_current_workshop", - matchedExpression: "@local.local_current_workshop", - type: "local", - fieldName: "local_current_workshop", - }, - ], - }, - "3": { args: { "1": [ { @@ -6644,7 +7907,7 @@ const template: FlowTypes.Template[] = [ }, ], }, - "4": { + "2": { args: { "1": [ { @@ -6672,7 +7935,51 @@ const template: FlowTypes.Template[] = [ }, ], }, + "3": { + args: { + "0": [ + { + fullExpression: "@campaign.unlock_workshops.click_action_list", + matchedExpression: "@campaign.unlock_workshops.click_action_list", + type: "campaign", + fieldName: "unlock_workshops", + }, + ], + }, + _raw: [ + { + fullExpression: + "completed | trigger_actions: @campaign.unlock_workshops.click_action_list", + matchedExpression: "@campaign.unlock_workshops.click_action_list", + type: "campaign", + fieldName: "unlock_workshops", + }, + ], + _cleaned: [ + { + fullExpression: + "completed | trigger_actions: @campaign.unlock_workshops.click_action_list", + matchedExpression: "@campaign.unlock_workshops.click_action_list", + type: "campaign", + fieldName: "unlock_workshops", + }, + ], + }, }, + condition: [ + { + fullExpression: "@local.workshop_day_changed || @local.current_workshop_changed", + matchedExpression: "@local.workshop_day_changed", + type: "local", + fieldName: "workshop_day_changed", + }, + { + fullExpression: "@local.workshop_day_changed || @local.current_workshop_changed", + matchedExpression: "@local.current_workshop_changed", + type: "local", + fieldName: "current_workshop_changed", + }, + ], }, _dynamicDependencies: { "@local.local_do_workshops_together": [ @@ -6680,26 +7987,212 @@ const template: FlowTypes.Template[] = [ "action_list.0._raw", "action_list.0._cleaned", ], - "@local.local_workshop_day": [ + "@local.local_user_name": [ "action_list.1.args.1", "action_list.1._raw", "action_list.1._cleaned", ], - "@local.local_current_workshop": [ + "@local.local_group_name": [ "action_list.2.args.1", "action_list.2._raw", "action_list.2._cleaned", ], - "@local.local_user_name": [ - "action_list.3.args.1", + "@campaign.unlock_workshops.click_action_list": [ + "action_list.3.args.0", "action_list.3._raw", "action_list.3._cleaned", ], + "@local.workshop_day_changed": ["condition"], + "@local.current_workshop_changed": ["condition"], + }, + }, + { + type: "template", + name: "nav_buttons", + value: "nav_buttons", + action_list: [ + { + trigger: "completed", + action_id: "set_field", + args: ["do_workshops_together", "@local.local_do_workshops_together"], + _raw: "completed | set_field: do_workshops_together: @local.local_do_workshops_together", + _cleaned: + "completed | set_field: do_workshops_together: @local.local_do_workshops_together", + }, + { + trigger: "completed", + action_id: "set_field", + args: ["user_name", "@local.local_user_name"], + _raw: "completed | set_field: user_name: @local.local_user_name", + _cleaned: "completed | set_field: user_name: @local.local_user_name", + }, + { + trigger: "completed", + action_id: "set_field", + args: ["group_name", "@local.local_group_name"], + _raw: "completed | set_field: group_name: @local.local_group_name", + _cleaned: "completed | set_field: group_name: @local.local_group_name", + }, + { + trigger: "completed", + action_id: "emit", + args: ["completed"], + _raw: "completed | emit:completed", + _cleaned: "completed | emit:completed", + }, + ], + condition: "!(@local.workshop_day_changed || @local.current_workshop_changed)", + rows: [ + { + name: "display_back", + value: false, + exclude_from_translation: true, + type: "set_variable", + _nested_name: "nav_buttons.display_back", + }, + { + name: "button_completed", + value: "@global.save_button", + type: "set_variable", + _nested_name: "nav_buttons.button_completed", + _dynamicFields: { + value: [ + { + fullExpression: "@global.save_button", + matchedExpression: "@global.save_button", + type: "global", + fieldName: "save_button", + }, + ], + }, + _dynamicDependencies: { + "@global.save_button": ["value"], + }, + }, + ], + _nested_name: "nav_buttons", + _dynamicFields: { + action_list: { + "0": { + args: { + "1": [ + { + fullExpression: "@local.local_do_workshops_together", + matchedExpression: "@local.local_do_workshops_together", + type: "local", + fieldName: "local_do_workshops_together", + }, + ], + }, + _raw: [ + { + fullExpression: + "completed | set_field: do_workshops_together: @local.local_do_workshops_together", + matchedExpression: "@local.local_do_workshops_together", + type: "local", + fieldName: "local_do_workshops_together", + }, + ], + _cleaned: [ + { + fullExpression: + "completed | set_field: do_workshops_together: @local.local_do_workshops_together", + matchedExpression: "@local.local_do_workshops_together", + type: "local", + fieldName: "local_do_workshops_together", + }, + ], + }, + "1": { + args: { + "1": [ + { + fullExpression: "@local.local_user_name", + matchedExpression: "@local.local_user_name", + type: "local", + fieldName: "local_user_name", + }, + ], + }, + _raw: [ + { + fullExpression: "completed | set_field: user_name: @local.local_user_name", + matchedExpression: "@local.local_user_name", + type: "local", + fieldName: "local_user_name", + }, + ], + _cleaned: [ + { + fullExpression: "completed | set_field: user_name: @local.local_user_name", + matchedExpression: "@local.local_user_name", + type: "local", + fieldName: "local_user_name", + }, + ], + }, + "2": { + args: { + "1": [ + { + fullExpression: "@local.local_group_name", + matchedExpression: "@local.local_group_name", + type: "local", + fieldName: "local_group_name", + }, + ], + }, + _raw: [ + { + fullExpression: "completed | set_field: group_name: @local.local_group_name", + matchedExpression: "@local.local_group_name", + type: "local", + fieldName: "local_group_name", + }, + ], + _cleaned: [ + { + fullExpression: "completed | set_field: group_name: @local.local_group_name", + matchedExpression: "@local.local_group_name", + type: "local", + fieldName: "local_group_name", + }, + ], + }, + }, + condition: [ + { + fullExpression: "!(@local.workshop_day_changed || @local.current_workshop_changed)", + matchedExpression: "@local.workshop_day_changed", + type: "local", + fieldName: "workshop_day_changed", + }, + { + fullExpression: "!(@local.workshop_day_changed || @local.current_workshop_changed)", + matchedExpression: "@local.current_workshop_changed", + type: "local", + fieldName: "current_workshop_changed", + }, + ], + }, + _dynamicDependencies: { + "@local.local_do_workshops_together": [ + "action_list.0.args.1", + "action_list.0._raw", + "action_list.0._cleaned", + ], + "@local.local_user_name": [ + "action_list.1.args.1", + "action_list.1._raw", + "action_list.1._cleaned", + ], "@local.local_group_name": [ - "action_list.4.args.1", - "action_list.4._raw", - "action_list.4._cleaned", + "action_list.2.args.1", + "action_list.2._raw", + "action_list.2._cleaned", ], + "@local.workshop_day_changed": ["condition"], + "@local.current_workshop_changed": ["condition"], }, }, ], @@ -35629,22 +37122,22 @@ const template: FlowTypes.Template[] = [ { name: "text", value: - "Hi @field.user_name! Your @local.workshop_data.in_text_title is ready for you! ", - condition: "!@field.do_workshops_together", + "Hi @fields.user_name! Your @local.workshop_data.in_text_title is ready for you! ", + condition: "!@fields.do_workshops_together", type: "set_variable", _nested_name: "m_workshop_released.in_week_message.text", _dynamicFields: { value: [ { fullExpression: - "Hi @field.user_name! Your @local.workshop_data.in_text_title is ready for you! ", - matchedExpression: "@field.user_name", - type: "field", + "Hi @fields.user_name! Your @local.workshop_data.in_text_title is ready for you! ", + matchedExpression: "@fields.user_name", + type: "fields", fieldName: "user_name", }, { fullExpression: - "Hi @field.user_name! Your @local.workshop_data.in_text_title is ready for you! ", + "Hi @fields.user_name! Your @local.workshop_data.in_text_title is ready for you! ", matchedExpression: "@local.workshop_data.in_text_title", type: "local", fieldName: "workshop_data", @@ -35652,38 +37145,38 @@ const template: FlowTypes.Template[] = [ ], condition: [ { - fullExpression: "!@field.do_workshops_together", - matchedExpression: "!@field.do_workshops_together", - type: "field", + fullExpression: "!@fields.do_workshops_together", + matchedExpression: "!@fields.do_workshops_together", + type: "fields", fieldName: "do_workshops_together", }, ], }, _dynamicDependencies: { - "@field.user_name": ["value"], + "@fields.user_name": ["value"], "@local.workshop_data.in_text_title": ["value"], - "!@field.do_workshops_together": ["condition"], + "!@fields.do_workshops_together": ["condition"], }, }, { name: "text", value: - "Hi @field.group_name! Your @local.workshop_data.in_text_title is ready for you!", - condition: "@field.do_workshops_together", + "Hi @fields.group_name! Your @local.workshop_data.in_text_title is ready for you!", + condition: "@fields.do_workshops_together", type: "set_variable", _nested_name: "m_workshop_released.in_week_message.text", _dynamicFields: { value: [ { fullExpression: - "Hi @field.group_name! Your @local.workshop_data.in_text_title is ready for you!", - matchedExpression: "@field.group_name", - type: "field", + "Hi @fields.group_name! Your @local.workshop_data.in_text_title is ready for you!", + matchedExpression: "@fields.group_name", + type: "fields", fieldName: "group_name", }, { fullExpression: - "Hi @field.group_name! Your @local.workshop_data.in_text_title is ready for you!", + "Hi @fields.group_name! Your @local.workshop_data.in_text_title is ready for you!", matchedExpression: "@local.workshop_data.in_text_title", type: "local", fieldName: "workshop_data", @@ -35691,17 +37184,17 @@ const template: FlowTypes.Template[] = [ ], condition: [ { - fullExpression: "@field.do_workshops_together", - matchedExpression: "@field.do_workshops_together", - type: "field", + fullExpression: "@fields.do_workshops_together", + matchedExpression: "@fields.do_workshops_together", + type: "fields", fieldName: "do_workshops_together", }, ], }, _dynamicDependencies: { - "@field.group_name": ["value"], + "@fields.group_name": ["value"], "@local.workshop_data.in_text_title": ["value"], - "@field.do_workshops_together": ["condition"], + "@fields.do_workshops_together": ["condition"], }, }, ], @@ -60255,6 +61748,25 @@ const template: FlowTypes.Template[] = [ value: "Today", _nested_name: "title_1", }, + { + type: "text", + name: "text_1", + value: "Today is @fields.current_date", + _nested_name: "text_1", + _dynamicFields: { + value: [ + { + fullExpression: "Today is @fields.current_date", + matchedExpression: "@fields.current_date", + type: "fields", + fieldName: "current_date", + }, + ], + }, + _dynamicDependencies: { + "@fields.current_date": ["value"], + }, + }, { type: "set_variable", name: "date", @@ -60276,9 +61788,9 @@ const template: FlowTypes.Template[] = [ }, { type: "text", - name: "text_1", + name: "text_2", value: "Today is @local.date", - _nested_name: "text_1", + _nested_name: "text_2", _dynamicFields: { value: [ { @@ -60314,9 +61826,9 @@ const template: FlowTypes.Template[] = [ }, { type: "text", - name: "text_2", + name: "text_3", value: "Today is @local.day", - _nested_name: "text_2", + _nested_name: "text_3", _dynamicFields: { value: [ { @@ -60331,23 +61843,206 @@ const template: FlowTypes.Template[] = [ "@local.day": ["value"], }, }, + { + type: "set_variable", + name: "christmas", + value: "@calc(new Date(2021,12, 25))", + _nested_name: "christmas", + _dynamicFields: { + value: [ + { + fullExpression: "@calc(new Date(2021,12, 25))", + matchedExpression: "@calc(new Date(2021,12, 25))", + type: "calc", + fieldName: "new Date(2021,12, 25)", + }, + ], + }, + _dynamicDependencies: { + "@calc(new Date(2021,12, 25))": ["value"], + }, + }, { type: "text", - name: "text_3", - value: "Today is @fields.current_date", - _nested_name: "text_3", + name: "text_4", + value: "Christmas is @local.christmas", + _nested_name: "text_4", _dynamicFields: { value: [ { - fullExpression: "Today is @fields.current_date", - matchedExpression: "@fields.current_date", - type: "fields", - fieldName: "current_date", + fullExpression: "Christmas is @local.christmas", + matchedExpression: "@local.christmas", + type: "local", + fieldName: "christmas", }, ], }, _dynamicDependencies: { - "@fields.current_date": ["value"], + "@local.christmas": ["value"], + }, + }, + { + type: "set_variable", + name: "christmas_time", + value: "@calc((new Date(2021,12, 25)).getTime())", + _nested_name: "christmas_time", + _dynamicFields: { + value: [ + { + fullExpression: "@calc((new Date(2021,12, 25)).getTime())", + matchedExpression: "@calc((new Date(2021,12, 25)).getTime())", + type: "calc", + fieldName: "(new Date(2021,12, 25)).getTime()", + }, + ], + }, + _dynamicDependencies: { + "@calc((new Date(2021,12, 25)).getTime())": ["value"], + }, + }, + { + type: "text", + name: "text_5", + value: "Christmas time is @local.christmas_time", + _nested_name: "text_5", + _dynamicFields: { + value: [ + { + fullExpression: "Christmas time is @local.christmas_time", + matchedExpression: "@local.christmas_time", + type: "local", + fieldName: "christmas_time", + }, + ], + }, + _dynamicDependencies: { + "@local.christmas_time": ["value"], + }, + }, + { + type: "set_variable", + name: "days_to_christmas", + value: "@calc( (@local.christmas_time - (new Date()).getTime()) / (1000 * 3600 * 24) )", + _nested_name: "days_to_christmas", + _dynamicFields: { + value: [ + { + fullExpression: + "@calc( (@local.christmas_time - (new Date()).getTime()) / (1000 * 3600 * 24) )", + matchedExpression: "@local.christmas_time", + type: "local", + fieldName: "christmas_time", + }, + { + fullExpression: + "@calc( (@local.christmas_time - (new Date()).getTime()) / (1000 * 3600 * 24) )", + matchedExpression: + "@calc( (@local.christmas_time - (new Date()).getTime()) / (1000 * 3600 * 24) )", + type: "calc", + fieldName: " (@local.christmas_time - (new Date()).getTime()) / (1000 * 3600 * 24) ", + }, + ], + }, + _dynamicDependencies: { + "@local.christmas_time": ["value"], + "@calc( (@local.christmas_time - (new Date()).getTime()) / (1000 * 3600 * 24) )": [ + "value", + ], + }, + }, + { + type: "text", + name: "text_6", + value: "Christmas is in @local.days_to_christmas days", + _nested_name: "text_6", + _dynamicFields: { + value: [ + { + fullExpression: "Christmas is in @local.days_to_christmas days", + matchedExpression: "@local.days_to_christmas", + type: "local", + fieldName: "days_to_christmas", + }, + ], + }, + _dynamicDependencies: { + "@local.days_to_christmas": ["value"], + }, + }, + { + type: "set_variable", + name: "midnight", + value: "@calc((new Date()).setHours(0,0,0,0))", + _nested_name: "midnight", + _dynamicFields: { + value: [ + { + fullExpression: "@calc((new Date()).setHours(0,0,0,0))", + matchedExpression: "@calc((new Date()).setHours(0,0,0,0))", + type: "calc", + fieldName: "(new Date()).setHours(0,0,0,0)", + }, + ], + }, + _dynamicDependencies: { + "@calc((new Date()).setHours(0,0,0,0))": ["value"], + }, + }, + { + type: "text", + name: "text_7", + value: "Midnight was at @local.midnight", + _nested_name: "text_7", + _dynamicFields: { + value: [ + { + fullExpression: "Midnight was at @local.midnight", + matchedExpression: "@local.midnight", + type: "local", + fieldName: "midnight", + }, + ], + }, + _dynamicDependencies: { + "@local.midnight": ["value"], + }, + }, + { + type: "set_variable", + name: "midnight_time", + value: "@calc(((new Date()).setHours(0,0,0,0)))", + _nested_name: "midnight_time", + _dynamicFields: { + value: [ + { + fullExpression: "@calc(((new Date()).setHours(0,0,0,0)))", + matchedExpression: "@calc(((new Date()).setHours(0,0,0,0)))", + type: "calc", + fieldName: "((new Date()).setHours(0,0,0,0))", + }, + ], + }, + _dynamicDependencies: { + "@calc(((new Date()).setHours(0,0,0,0)))": ["value"], + }, + }, + { + type: "text", + name: "text_8", + value: "Midnight time was @local.midnight_time", + _nested_name: "text_8", + _dynamicFields: { + value: [ + { + fullExpression: "Midnight time was @local.midnight_time", + matchedExpression: "@local.midnight_time", + type: "local", + fieldName: "midnight_time", + }, + ], + }, + _dynamicDependencies: { + "@local.midnight_time": ["value"], }, }, ], @@ -79971,6 +81666,32 @@ const template: FlowTypes.Template[] = [ "!@local.combo_box": ["condition"], }, }, + { + name: "workshop_day_changed", + value: "@local.local_workshop_day != @fields.workshop_day", + type: "set_variable", + _nested_name: "workshop_day_changed", + _dynamicFields: { + value: [ + { + fullExpression: "@local.local_workshop_day != @fields.workshop_day", + matchedExpression: "@local.local_workshop_day", + type: "local", + fieldName: "local_workshop_day", + }, + { + fullExpression: "@local.local_workshop_day != @fields.workshop_day", + matchedExpression: "@fields.workshop_day", + type: "fields", + fieldName: "workshop_day", + }, + ], + }, + _dynamicDependencies: { + "@local.local_workshop_day": ["value"], + "@fields.workshop_day": ["value"], + }, + }, { type: "display_group", name: "combo_box_replies", @@ -80076,8 +81797,8 @@ const template: FlowTypes.Template[] = [ }, { type: "template", - name: "nav_buttons", - value: "nav_buttons", + name: "new_benchmarks", + value: "new_benchmarks", action_list: [ { trigger: "completed", @@ -80109,20 +81830,6 @@ const template: FlowTypes.Template[] = [ _cleaned: "uncompleted | set_field: do_workshops_together: @local.local_do_workshops_together", }, - { - trigger: "completed", - action_id: "set_field", - args: ["workshop_day", "@local.local_workshop_day"], - _raw: "completed | set_field: workshop_day: @local.local_workshop_day", - _cleaned: "completed | set_field: workshop_day: @local.local_workshop_day", - }, - { - trigger: "uncompleted", - action_id: "set_field", - args: ["workshop_day", "@local.local_workshop_day"], - _raw: "uncompleted | set_field: workshop_day: @local.local_workshop_day", - _cleaned: "uncompleted | set_field: workshop_day: @local.local_workshop_day", - }, { trigger: "completed", action_id: "emit", @@ -80138,16 +81845,43 @@ const template: FlowTypes.Template[] = [ _cleaned: "uncompleted | emit:uncompleted", }, ], + condition: "@local.workshop_day_changed ", rows: [ { - name: "use_completed_chevron", - value: true, - exclude_from_translation: true, + name: "workshop_day", + value: "@local.local_workshop_day", type: "set_variable", - _nested_name: "nav_buttons.use_completed_chevron", + _nested_name: "new_benchmarks.workshop_day", + _dynamicFields: { + value: [ + { + fullExpression: "@local.local_workshop_day", + matchedExpression: "@local.local_workshop_day", + type: "local", + fieldName: "local_workshop_day", + }, + ], + }, + _dynamicDependencies: { + "@local.local_workshop_day": ["value"], + }, + }, + { + type: "nested_properties", + name: "nav_buttons", + rows: [ + { + name: "use_completed_chevron", + value: true, + exclude_from_translation: true, + type: "set_variable", + _nested_name: "new_benchmarks.nav_buttons.use_completed_chevron", + }, + ], + _nested_name: "new_benchmarks.nav_buttons", }, ], - _nested_name: "nav_buttons", + _nested_name: "new_benchmarks", _dynamicFields: { action_list: { "0": { @@ -80266,65 +82000,224 @@ const template: FlowTypes.Template[] = [ }, ], }, - "4": { + }, + condition: [ + { + fullExpression: "@local.workshop_day_changed ", + matchedExpression: "@local.workshop_day_changed", + type: "local", + fieldName: "workshop_day_changed", + }, + ], + }, + _dynamicDependencies: { + "@local.local_group_name": [ + "action_list.0.args.1", + "action_list.0._raw", + "action_list.0._cleaned", + "action_list.1.args.1", + "action_list.1._raw", + "action_list.1._cleaned", + ], + "@local.local_do_workshops_together": [ + "action_list.2.args.1", + "action_list.2._raw", + "action_list.2._cleaned", + "action_list.3.args.1", + "action_list.3._raw", + "action_list.3._cleaned", + ], + "@local.workshop_day_changed": ["condition"], + }, + }, + { + type: "template", + name: "nav_buttons", + value: "nav_buttons", + action_list: [ + { + trigger: "completed", + action_id: "set_field", + args: ["group_name", "@local.local_group_name"], + _raw: "completed | set_field: group_name: @local.local_group_name", + _cleaned: "completed | set_field: group_name: @local.local_group_name", + }, + { + trigger: "uncompleted", + action_id: "set_field", + args: ["group_name", "@local.local_group_name"], + _raw: "uncompleted | set_field: group_name: @local.local_group_name", + _cleaned: "uncompleted | set_field: group_name: @local.local_group_name", + }, + { + trigger: "completed", + action_id: "set_field", + args: ["do_workshops_together", "@local.local_do_workshops_together"], + _raw: "completed | set_field: do_workshops_together: @local.local_do_workshops_together", + _cleaned: + "completed | set_field: do_workshops_together: @local.local_do_workshops_together", + }, + { + trigger: "uncompleted", + action_id: "set_field", + args: ["do_workshops_together", "@local.local_do_workshops_together"], + _raw: "uncompleted | set_field: do_workshops_together: @local.local_do_workshops_together", + _cleaned: + "uncompleted | set_field: do_workshops_together: @local.local_do_workshops_together", + }, + { + trigger: "completed", + action_id: "emit", + args: ["completed"], + _raw: "completed | emit:completed", + _cleaned: "completed | emit:completed", + }, + { + trigger: "uncompleted", + action_id: "emit", + args: ["uncompleted"], + _raw: "uncompleted | emit:uncompleted", + _cleaned: "uncompleted | emit:uncompleted", + }, + ], + condition: "!@local.workshop_day_changed ", + rows: [ + { + name: "use_completed_chevron", + value: true, + exclude_from_translation: true, + type: "set_variable", + _nested_name: "nav_buttons.use_completed_chevron", + }, + ], + _nested_name: "nav_buttons", + _dynamicFields: { + action_list: { + "0": { args: { "1": [ { - fullExpression: "@local.local_workshop_day", - matchedExpression: "@local.local_workshop_day", + fullExpression: "@local.local_group_name", + matchedExpression: "@local.local_group_name", type: "local", - fieldName: "local_workshop_day", + fieldName: "local_group_name", }, ], }, _raw: [ { - fullExpression: "completed | set_field: workshop_day: @local.local_workshop_day", - matchedExpression: "@local.local_workshop_day", + fullExpression: "completed | set_field: group_name: @local.local_group_name", + matchedExpression: "@local.local_group_name", type: "local", - fieldName: "local_workshop_day", + fieldName: "local_group_name", }, ], _cleaned: [ { - fullExpression: "completed | set_field: workshop_day: @local.local_workshop_day", - matchedExpression: "@local.local_workshop_day", + fullExpression: "completed | set_field: group_name: @local.local_group_name", + matchedExpression: "@local.local_group_name", type: "local", - fieldName: "local_workshop_day", + fieldName: "local_group_name", }, ], }, - "5": { + "1": { + args: { + "1": [ + { + fullExpression: "@local.local_group_name", + matchedExpression: "@local.local_group_name", + type: "local", + fieldName: "local_group_name", + }, + ], + }, + _raw: [ + { + fullExpression: "uncompleted | set_field: group_name: @local.local_group_name", + matchedExpression: "@local.local_group_name", + type: "local", + fieldName: "local_group_name", + }, + ], + _cleaned: [ + { + fullExpression: "uncompleted | set_field: group_name: @local.local_group_name", + matchedExpression: "@local.local_group_name", + type: "local", + fieldName: "local_group_name", + }, + ], + }, + "2": { args: { "1": [ { - fullExpression: "@local.local_workshop_day", - matchedExpression: "@local.local_workshop_day", + fullExpression: "@local.local_do_workshops_together", + matchedExpression: "@local.local_do_workshops_together", type: "local", - fieldName: "local_workshop_day", + fieldName: "local_do_workshops_together", }, ], }, _raw: [ { fullExpression: - "uncompleted | set_field: workshop_day: @local.local_workshop_day", - matchedExpression: "@local.local_workshop_day", + "completed | set_field: do_workshops_together: @local.local_do_workshops_together", + matchedExpression: "@local.local_do_workshops_together", type: "local", - fieldName: "local_workshop_day", + fieldName: "local_do_workshops_together", }, ], _cleaned: [ { fullExpression: - "uncompleted | set_field: workshop_day: @local.local_workshop_day", - matchedExpression: "@local.local_workshop_day", + "completed | set_field: do_workshops_together: @local.local_do_workshops_together", + matchedExpression: "@local.local_do_workshops_together", type: "local", - fieldName: "local_workshop_day", + fieldName: "local_do_workshops_together", + }, + ], + }, + "3": { + args: { + "1": [ + { + fullExpression: "@local.local_do_workshops_together", + matchedExpression: "@local.local_do_workshops_together", + type: "local", + fieldName: "local_do_workshops_together", + }, + ], + }, + _raw: [ + { + fullExpression: + "uncompleted | set_field: do_workshops_together: @local.local_do_workshops_together", + matchedExpression: "@local.local_do_workshops_together", + type: "local", + fieldName: "local_do_workshops_together", + }, + ], + _cleaned: [ + { + fullExpression: + "uncompleted | set_field: do_workshops_together: @local.local_do_workshops_together", + matchedExpression: "@local.local_do_workshops_together", + type: "local", + fieldName: "local_do_workshops_together", }, ], }, }, + condition: [ + { + fullExpression: "!@local.workshop_day_changed ", + matchedExpression: "!@local.workshop_day_changed", + type: "local", + fieldName: "workshop_day_changed", + }, + ], }, _dynamicDependencies: { "@local.local_group_name": [ @@ -80343,14 +82236,7 @@ const template: FlowTypes.Template[] = [ "action_list.3._raw", "action_list.3._cleaned", ], - "@local.local_workshop_day": [ - "action_list.4.args.1", - "action_list.4._raw", - "action_list.4._cleaned", - "action_list.5.args.1", - "action_list.5._raw", - "action_list.5._cleaned", - ], + "!@local.workshop_day_changed": ["condition"], }, }, {