From e1eceb5b8caa8c21300ac3abe97c569c66143774 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Wed, 26 Mar 2025 15:28:48 -0700 Subject: [PATCH] Add sendInvitationToken --- src/Utils/NetworkService.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/Utils/NetworkService.js b/src/Utils/NetworkService.js index 78183e24f..11cccc979 100644 --- a/src/Utils/NetworkService.js +++ b/src/Utils/NetworkService.js @@ -530,6 +530,24 @@ class NetworkService { async requestInvitationToken(config) { return this.axiosInstance.post(`/invite`, { email: config.email, role: config.role }); } + /** + * ************************************ + * Sends an invitation token + * ************************************ + * + * @async + * @param {Object} config - The configuration object. + * @param {string} config.email - The email of the user to be invited. + * @param {string} config.role - The role of the user to be invited. + * @returns {Promise} The response from the axios POST request. + * + */ + async sendInvitationToken(config) { + return this.axiosInstance.post(`/invite/send`, { + email: config.email, + role: config.role, + }); + } /** * ************************************