diff --git a/src/Auth0.ManagementApi/Models/EmailTemplate/EmailTemplateName.cs b/src/Auth0.ManagementApi/Models/EmailTemplate/EmailTemplateName.cs index 4c94e985..7bf2c679 100644 --- a/src/Auth0.ManagementApi/Models/EmailTemplate/EmailTemplateName.cs +++ b/src/Auth0.ManagementApi/Models/EmailTemplate/EmailTemplateName.cs @@ -59,6 +59,24 @@ public enum EmailTemplateName /// This email will provide the MFA verification code to a user that is using a MFA email verifier. /// [EnumMember(Value = "mfa_oob_code")] - MfaOobCode + MfaOobCode, + + /// + /// + /// + [EnumMember(Value = "verify_email_by_code")] + VerifyEmailByCode, + + /// + /// + /// + [EnumMember(Value = "reset_email_by_code")] + ResetEmailByCode, + + /// + /// + /// + [EnumMember(Value = "user_invitation")] + UserInvitation } } \ No newline at end of file diff --git a/tests/Auth0.ManagementApi.IntegrationTests/EmailTemplatesTests.cs b/tests/Auth0.ManagementApi.IntegrationTests/EmailTemplatesTests.cs index f1b637db..92c8708e 100644 --- a/tests/Auth0.ManagementApi.IntegrationTests/EmailTemplatesTests.cs +++ b/tests/Auth0.ManagementApi.IntegrationTests/EmailTemplatesTests.cs @@ -75,20 +75,12 @@ public async Task Test_email_templates_crud_sequence() }); } - - // Patch each template - foreach (var _emailTemplateName in emailTemplateNames) + var updatedTemplate = await fixture.ApiClient.EmailTemplates.PatchAsync(emailTemplate.Template, new EmailTemplatePatchRequest { - // Try and create the template. If it already exisits, we'll just update it - var _emailTemplate = await fixture.ApiClient.EmailTemplates.PatchAsync(_emailTemplateName, new EmailTemplatePatchRequest - { - Enabled = false, - From = "test2@test.com" - }); - } + Enabled = false, + From = "test2@test.com" + }); } - } - } }