UNPKG

@gmetrixr/rjson

Version:
69 lines (68 loc) 2.55 kB
export declare enum RuleEvent { on_preload = "on_preload", on_load = "on_load", /** Used to communicate from the element / scene / experience if it is ready to start or not */ on_ready = "on_ready", on_click = "on_click", on_been_clicked = "on_been_clicked", on_press = "on_press", on_release = "on_release", on_select = "on_select", on_end = "on_end", on_timermatch = "on_timermatch", on_swipeup = "on_swipeup", on_swipedown = "on_swipedown", on_swipeleft = "on_swipeleft", on_swiperight = "on_swiperight", /** * The reason on_phrase_match is used instead of on_match, is because the text displaed in whenEvent is different in both cases * on_match: "Matches data" * on_phrase_match: "matches phrase" */ on_phrase_match = "on_phrase_match", on_phrase_nomatch = "on_phrase_nomatch", on_click_item = "on_click_item", on_var_change = "on_var_change", on_set_eq = "on_set_eq", on_set_not_eq = "on_set_not_eq", on_set_true = "on_set_true", on_set_false = "on_set_false", on_set_gt = "on_set_gt", on_set_gte = "on_set_gte", on_set_lt = "on_set_lt", on_set_lte = "on_set_lte", on_set_between = "on_set_between", on_capture_input = "on_capture_input", on_hover = "on_hover", on_match = "on_match", on_nomatch = "on_nomatch", on_is_in_list = "on_is_in_list", on_is_not_in_list = "on_is_not_in_list", on_product_card_cta1_click = "on_product_card_cta1_click", on_scorm_set_score = "on_scorm_set_score", on_scorm_initialize = "on_scorm_initialize", on_scorm_finish = "on_scorm_finish", on_successful_upload = "on_successful_upload", on_close = "on_close", on_duration_match = "on_duration_match", on_enter = "on_enter", on_leave = "on_leave" } export declare enum WhenEventProperty { index = "index", timer_value = "timer_value", phrase = "phrase", id = "id", value = "value", number_value = "number_value", number_value_lower = "number_value_lower", number_value_greater = "number_value_greater", duration = "duration", match_strings = "match_strings", list_value = "list_value", score = "score", duration_value = "duration_value" } export declare const rEventProperties: Record<RuleEvent, Array<WhenEventProperty | unknown>>; export declare const rEventPropertyDefaults: Record<WhenEventProperty, Array<unknown> | string | number | null>; export declare const rEventDisplayName: Record<RuleEvent, string>;