/** * Auto-generated JavaScript stub for User_Invite_Model * DO NOT EDIT - This file is automatically regenerated */ class User_Invite_Model extends Rsx_Js_Model { static get name() { return 'User_Invite_Model'; } /** * Fetch inviter relationship * @returns {Promise} Related model instance(s) or false */ async inviter() { if (!this.id) { shouldnt_happen('Cannot fetch relationship without id property'); } const response = await $.ajax({ url: `/_fetch_rel/User_Invite_Model/${this.id}/inviter`, method: 'POST', dataType: 'json' }); if (!response) return false; // Convert response to model instance(s) // Framework handles instantiation based on relationship type return response; } /** * Fetch site relationship * @returns {Promise} Related model instance(s) or false */ async site() { if (!this.id) { shouldnt_happen('Cannot fetch relationship without id property'); } const response = await $.ajax({ url: `/_fetch_rel/User_Invite_Model/${this.id}/site`, method: 'POST', dataType: 'json' }); if (!response) return false; // Convert response to model instance(s) // Framework handles instantiation based on relationship type return response; } }