|
| 1 | +from .general_actions import claimed, reset_claim |
| 2 | +from .help_ticket import open_ticket, ticket_status |
| 3 | +from .report_message import open_report_dialog, send_report |
| 4 | +from .mentor_request import mentor_request_submit, cancel_mentor_request, add_skillset, \ |
| 5 | + clear_skillsets, open_details_dialog, mentor_details_submit, claim_mentee, set_requested_mentor, set_requested_service, \ |
| 6 | + set_group |
| 7 | +from .new_member import member_greeted, open_suggestion, post_suggestion, reset_greet, resource_buttons |
| 8 | + |
| 9 | + |
| 10 | +def create_endpoints(plugin): |
| 11 | + # simple actions that can be used in multiple scenarios |
| 12 | + plugin.on_action("claimed", claimed, name='claimed', wait=False) |
| 13 | + plugin.on_action("claimed", reset_claim, name='reset_claim', wait=False) |
| 14 | + |
| 15 | + # new member interactive actions |
| 16 | + plugin.on_action("resource_buttons", resource_buttons, wait=False) |
| 17 | + plugin.on_action("greeted", member_greeted, name='greeted', wait=False) |
| 18 | + plugin.on_action("greeted", reset_greet, name='reset_greet', wait=False) |
| 19 | + plugin.on_action("suggestion", open_suggestion, wait=False) |
| 20 | + plugin.on_action("suggestion_modal", post_suggestion, wait=False) |
| 21 | + |
| 22 | + # reporting related interactive actions |
| 23 | + plugin.on_action("report_message", open_report_dialog, wait=False) |
| 24 | + plugin.on_action("report_dialog", send_report, wait=False) |
| 25 | + |
| 26 | + # help ticket/request interactive actions |
| 27 | + plugin.on_action("open_ticket", open_ticket, wait=False) |
| 28 | + plugin.on_action("ticket_status", ticket_status, wait=False) |
| 29 | + |
| 30 | + # mentorship related interactive actions |
| 31 | + plugin.on_action("mentor_request_submit", mentor_request_submit, name='submit', wait=False) |
| 32 | + plugin.on_action("mentor_request_submit", cancel_mentor_request, name='cancel', wait=False) |
| 33 | + |
| 34 | + # plugin.on_action("mentor_request_update", mentor_request_update, wait=False) |
| 35 | + plugin.on_action("mentor_request_update", add_skillset, name='skillset', wait=False) |
| 36 | + plugin.on_action("mentor_request_update", clear_skillsets, name='clearSkills', wait=False) |
| 37 | + plugin.on_action("mentor_request_update", open_details_dialog, name='addDetails', wait=False) |
| 38 | + plugin.on_action("mentor_request_update", set_requested_mentor, name='mentor', wait=False) |
| 39 | + plugin.on_action("mentor_request_update", set_requested_service, name='service', wait=False) |
| 40 | + plugin.on_action("mentor_request_update", set_group, name='group', wait=False) |
| 41 | + |
| 42 | + plugin.on_action("mentor_details_submit", mentor_details_submit, wait=False) |
| 43 | + plugin.on_action("claim_mentee", claim_mentee, wait=False) |
| 44 | + plugin.on_action("reset_claim_mentee", claim_mentee, wait=False) |
0 commit comments