From aec84718bf6163caf2b0de706c40fd24b7414d5a Mon Sep 17 00:00:00 2001 From: Patrick Malouin Date: Thu, 28 Jan 2021 16:43:40 -0500 Subject: [PATCH] [CAUTH-837] add `verify_email_by_code` email template (#309) * add `verify_email_by_code` email template * update test/context/yaml/context.test.js * bump auth0-source-control-extension-tools to 4.3.0 * update CHANGELOG * bump to v5.4.0 --- CHANGELOG.md | 8 +++++++- .../directory/emails/verify_email_by_code.html | 5 +++++ .../directory/emails/verify_email_by_code.json | 8 ++++++++ package-lock.json | 14 +++++++------- package.json | 4 ++-- test/context/yaml/context.test.js | 3 +++ 6 files changed, 32 insertions(+), 10 deletions(-) create mode 100644 examples/directory/emails/verify_email_by_code.html create mode 100644 examples/directory/emails/verify_email_by_code.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f0b54f61..e2dc2a0ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [5.4.0] - 2021-01-28 +### Added +- Add support for `verify_email_by_code` email template [#309] + ## [5.3.2] - 2020-12-17 ### Fixed - Fix keyword mapping in client page templates [ESD-10528] [#291] @@ -282,8 +286,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [#287]: https://github.com/auth0/auth0-deploy-cli/issues/287 [#289]: https://github.com/auth0/auth0-deploy-cli/issues/289 [#291]: https://github.com/auth0/auth0-deploy-cli/issues/291 +[#309]: https://github.com/auth0/auth0-deploy-cli/issues/309 -[Unreleased]: https://github.com/auth0/auth0-deploy-cli/compare/v5.3.2...HEAD +[Unreleased]: https://github.com/auth0/auth0-deploy-cli/compare/v5.4.0...HEAD +[5.4.0]: https://github.com/auth0/auth0-deploy-cli/compare/v5.3.2...v5.4.0 [5.3.2]: https://github.com/auth0/auth0-deploy-cli/compare/v5.3.1...v5.3.2 [5.3.1]: https://github.com/auth0/auth0-deploy-cli/compare/v5.3.0...v5.3.1 [5.3.0]: https://github.com/auth0/auth0-deploy-cli/compare/v5.2.1...v5.3.0 diff --git a/examples/directory/emails/verify_email_by_code.html b/examples/directory/emails/verify_email_by_code.html new file mode 100644 index 000000000..9d0e0a041 --- /dev/null +++ b/examples/directory/emails/verify_email_by_code.html @@ -0,0 +1,5 @@ + + +Example Email + + diff --git a/examples/directory/emails/verify_email_by_code.json b/examples/directory/emails/verify_email_by_code.json new file mode 100644 index 000000000..c7d20058e --- /dev/null +++ b/examples/directory/emails/verify_email_by_code.json @@ -0,0 +1,8 @@ +{ + "template": "verify_email_by_code", + "from": "", + "subject": "", + "syntax": "liquid", + "body": "./verify_email_by_code.html", + "enabled": true +} diff --git a/package-lock.json b/package-lock.json index e64a27c44..d88019b85 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "auth0-deploy-cli", - "version": "5.3.2", + "version": "5.4.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -1774,9 +1774,9 @@ } }, "auth0-source-control-extension-tools": { - "version": "4.1.12", - "resolved": "https://registry.npmjs.org/auth0-source-control-extension-tools/-/auth0-source-control-extension-tools-4.1.12.tgz", - "integrity": "sha512-mJOX6u1GV2ecTCIjgHtUBzLbpPZYLdYdRvY5N3TYMP+acs/6s4mLUvcfH9hcFbvgBkf1I5XUDgvB985i3Cf+8g==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/auth0-source-control-extension-tools/-/auth0-source-control-extension-tools-4.3.0.tgz", + "integrity": "sha512-lNPnQFm6N6MzTMjSDivhikVAoyKQKdg/J/DTrqYEvbsq6XvpA6GbzCEZ99cgEmGTqhAFlIJThoo4f6URA1gMBw==", "requires": { "ajv": "^6.5.2", "auth0-extension-tools": "^1.5.0", @@ -6833,9 +6833,9 @@ }, "dependencies": { "debug": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.2.0.tgz", - "integrity": "sha512-IX2ncY78vDTjZMFUdmsvIRFY2Cf4FnD0wRs+nQwJU8Lu99/tPFdb0VybiiMTPe3I6rQmwsqQqRBvxU+bZ/I8sg==", + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz", + "integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==", "requires": { "ms": "2.1.2" } diff --git a/package.json b/package.json index f1b89acf0..a8e2a3006 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "auth0-deploy-cli", - "version": "5.3.2", + "version": "5.4.0", "description": "A command line tool for deploying updates to your Auth0 tenant", "main": "lib/index.js", "bin": { @@ -29,7 +29,7 @@ "dependencies": { "auth0": "^2.27.0", "auth0-extension-tools": "^1.4.4", - "auth0-source-control-extension-tools": "^4.1.12", + "auth0-source-control-extension-tools": "~4.3.0", "dot-prop": "^5.2.0", "fs-extra": "^7.0.0", "global-agent": "^2.1.12", diff --git a/test/context/yaml/context.test.js b/test/context/yaml/context.test.js index bbfe567b3..3cf3750d3 100644 --- a/test/context/yaml/context.test.js +++ b/test/context/yaml/context.test.js @@ -135,6 +135,7 @@ describe('#YAML context validation', () => { { body: './emailTemplates/reset_email.html', enabled: true, template: 'reset_email' }, { body: './emailTemplates/stolen_credentials.html', enabled: true, template: 'stolen_credentials' }, { body: './emailTemplates/verify_email.html', enabled: true, template: 'verify_email' }, + { body: './emailTemplates/verify_email_by_code.html', enabled: true, template: 'verify_email_by_code' }, { body: './emailTemplates/welcome_email.html', enabled: true, template: 'welcome_email' } ], pages: [ @@ -203,6 +204,7 @@ describe('#YAML context validation', () => { { body: './emailTemplates/reset_email.html', enabled: true, template: 'reset_email' }, { body: './emailTemplates/stolen_credentials.html', enabled: true, template: 'stolen_credentials' }, { body: './emailTemplates/verify_email.html', enabled: true, template: 'verify_email' }, + { body: './emailTemplates/verify_email_by_code.html', enabled: true, template: 'verify_email_by_code' }, { body: './emailTemplates/welcome_email.html', enabled: true, template: 'welcome_email' } ], pages: [ @@ -275,6 +277,7 @@ describe('#YAML context validation', () => { { body: './emailTemplates/reset_email.html', enabled: true, template: 'reset_email' }, { body: './emailTemplates/stolen_credentials.html', enabled: true, template: 'stolen_credentials' }, { body: './emailTemplates/verify_email.html', enabled: true, template: 'verify_email' }, + { body: './emailTemplates/verify_email_by_code.html', enabled: true, template: 'verify_email_by_code' }, { body: './emailTemplates/welcome_email.html', enabled: true, template: 'welcome_email' } ], pages: [