@starklabs/forge 1.3.24-beta.0 → 1.3.24-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/js/account/me.get.js +1 -1
- package/dist/js/account/me.get.js.map +1 -1
- package/dist/js/admin/builtin/admin.collection.d.ts +4 -0
- package/dist/js/admin/builtin/admin.collection.d.ts.map +1 -0
- package/dist/js/admin/builtin/admin.collection.js +17 -0
- package/dist/js/admin/builtin/admin.collection.js.map +1 -0
- package/dist/js/admin/bunch.admin.d.ts +3 -0
- package/dist/js/admin/bunch.admin.d.ts.map +1 -0
- package/dist/js/admin/bunch.admin.js +3 -0
- package/dist/js/admin/bunch.admin.js.map +1 -0
- package/dist/js/admin/check.admin.d.ts +2 -0
- package/dist/js/admin/check.admin.d.ts.map +1 -0
- package/dist/js/admin/check.admin.js +2 -0
- package/dist/js/admin/check.admin.js.map +1 -0
- package/dist/js/admin/check.d.ts +7 -0
- package/dist/js/admin/check.d.ts.map +1 -0
- package/dist/js/admin/check.js +38 -0
- package/dist/js/admin/check.js.map +1 -0
- package/dist/js/admin/index.d.ts +3 -2
- package/dist/js/admin/index.d.ts.map +1 -1
- package/dist/js/admin/index.js +46 -2
- package/dist/js/admin/index.js.map +1 -1
- package/dist/js/app.d.ts.map +1 -1
- package/dist/js/app.js +13 -9
- package/dist/js/app.js.map +1 -1
- package/dist/js/auth/builtin/auth.collection.d.ts.map +1 -1
- package/dist/js/auth/builtin/auth.collection.js +12 -2
- package/dist/js/auth/builtin/auth.collection.js.map +1 -1
- package/dist/js/auth/builtin/getValidations.js +2 -2
- package/dist/js/auth/builtin/getValidations.js.map +1 -1
- package/dist/js/auth/forgotPassword.js +2 -2
- package/dist/js/auth/forgotPassword.js.map +1 -1
- package/dist/js/auth/index.js +5 -5
- package/dist/js/auth/index.js.map +1 -1
- package/dist/js/auth/login.js +2 -2
- package/dist/js/auth/login.js.map +1 -1
- package/dist/js/auth/logout.js +3 -3
- package/dist/js/auth/logout.js.map +1 -1
- package/dist/js/auth/refresh.js +4 -4
- package/dist/js/auth/refresh.js.map +1 -1
- package/dist/js/auth/resendOTP.js +2 -2
- package/dist/js/auth/resendOTP.js.map +1 -1
- package/dist/js/auth/resetPassword.js +2 -2
- package/dist/js/auth/resetPassword.js.map +1 -1
- package/dist/js/auth/signup.js +2 -2
- package/dist/js/auth/signup.js.map +1 -1
- package/dist/js/auth/utils/authenticateUser.js +6 -6
- package/dist/js/auth/utils/authenticateUser.js.map +1 -1
- package/dist/js/auth/utils/createOTPModel.js +2 -2
- package/dist/js/auth/utils/createOTPModel.js.map +1 -1
- package/dist/js/auth/utils/createOTPUser.js +2 -2
- package/dist/js/auth/utils/createOTPUser.js.map +1 -1
- package/dist/js/auth/utils/createUser.js +6 -6
- package/dist/js/auth/utils/createUser.js.map +1 -1
- package/dist/js/auth/utils/getOTPUser.js +2 -2
- package/dist/js/auth/utils/getOTPUser.js.map +1 -1
- package/dist/js/auth/utils/getUser.js +2 -2
- package/dist/js/auth/utils/getUser.js.map +1 -1
- package/dist/js/auth/utils/handleGetToken.d.ts.map +1 -1
- package/dist/js/auth/utils/handleGetToken.js +4 -4
- package/dist/js/auth/utils/handleGetToken.js.map +1 -1
- package/dist/js/auth/utils/handleRotateRefreshToken.js +2 -2
- package/dist/js/auth/utils/handleRotateRefreshToken.js.map +1 -1
- package/dist/js/auth/utils/otpVerifiedResponse.js +2 -2
- package/dist/js/auth/utils/otpVerifiedResponse.js.map +1 -1
- package/dist/js/auth/utils/sendCookie.js +3 -3
- package/dist/js/auth/utils/sendCookie.js.map +1 -1
- package/dist/js/auth/utils/sendOTP.d.ts.map +1 -1
- package/dist/js/auth/utils/sendOTP.js +15 -14
- package/dist/js/auth/utils/sendOTP.js.map +1 -1
- package/dist/js/auth/utils/verifyCredentials.js +2 -2
- package/dist/js/auth/utils/verifyCredentials.js.map +1 -1
- package/dist/js/auth/verifyOTP.js +2 -2
- package/dist/js/auth/verifyOTP.js.map +1 -1
- package/dist/js/config/auth.envs.d.ts +4 -0
- package/dist/js/config/auth.envs.d.ts.map +1 -0
- package/dist/js/config/auth.envs.js +79 -0
- package/dist/js/config/auth.envs.js.map +1 -0
- package/dist/js/config/defaultConfig.d.ts.map +1 -1
- package/dist/js/config/defaultConfig.js +4 -1
- package/dist/js/config/defaultConfig.js.map +1 -1
- package/dist/js/config/email.envs.d.ts +4 -0
- package/dist/js/config/email.envs.d.ts.map +1 -0
- package/dist/js/config/email.envs.js +54 -0
- package/dist/js/config/email.envs.js.map +1 -0
- package/dist/js/config/envs.d.ts.map +1 -1
- package/dist/js/config/envs.js +6 -76
- package/dist/js/config/envs.js.map +1 -1
- package/dist/js/config/handleReqType.d.ts.map +1 -1
- package/dist/js/config/handleReqType.js +3 -1
- package/dist/js/config/handleReqType.js.map +1 -1
- package/dist/js/config/handlerMap.d.ts.map +1 -1
- package/dist/js/config/handlerMap.js +8 -1
- package/dist/js/config/handlerMap.js.map +1 -1
- package/dist/js/config/sendEmail.d.ts.map +1 -1
- package/dist/js/config/sendEmail.js +3 -1
- package/dist/js/config/sendEmail.js.map +1 -1
- package/dist/js/crud/read.d.ts.map +1 -1
- package/dist/js/crud/read.js +3 -4
- package/dist/js/crud/read.js.map +1 -1
- package/dist/js/crud/readAll.d.ts.map +1 -1
- package/dist/js/crud/readAll.js.map +1 -1
- package/dist/js/crud/utils/runActions.d.ts +2 -3
- package/dist/js/crud/utils/runActions.d.ts.map +1 -1
- package/dist/js/crud/utils/runActions.js +13 -4
- package/dist/js/crud/utils/runActions.js.map +1 -1
- package/dist/js/email/index.d.ts +4 -0
- package/dist/js/email/index.d.ts.map +1 -0
- package/dist/js/email/index.js +180 -0
- package/dist/js/email/index.js.map +1 -0
- package/dist/js/email/templates/account.created.d.ts +4 -0
- package/dist/js/email/templates/account.created.d.ts.map +1 -0
- package/dist/js/email/templates/account.created.email.d.ts +4 -0
- package/dist/js/email/templates/account.created.email.d.ts.map +1 -0
- package/dist/js/email/templates/account.created.email.js +165 -0
- package/dist/js/email/templates/account.created.email.js.map +1 -0
- package/dist/js/email/templates/account.created.js +122 -0
- package/dist/js/email/templates/account.created.js.map +1 -0
- package/dist/js/email/templates/account.deleted.d.ts +4 -0
- package/dist/js/email/templates/account.deleted.d.ts.map +1 -0
- package/dist/js/email/templates/account.deleted.js +111 -0
- package/dist/js/email/templates/account.deleted.js.map +1 -0
- package/dist/js/email/templates/account.updated.d.ts +4 -0
- package/dist/js/email/templates/account.updated.d.ts.map +1 -0
- package/dist/js/email/templates/account.updated.js +128 -0
- package/dist/js/email/templates/account.updated.js.map +1 -0
- package/dist/js/email/templates/announcement.d.ts +4 -0
- package/dist/js/email/templates/announcement.d.ts.map +1 -0
- package/dist/js/email/templates/announcement.js +122 -0
- package/dist/js/email/templates/announcement.js.map +1 -0
- package/dist/js/email/templates/api.key.created.d.ts +4 -0
- package/dist/js/email/templates/api.key.created.d.ts.map +1 -0
- package/dist/js/email/templates/api.key.created.js +159 -0
- package/dist/js/email/templates/api.key.created.js.map +1 -0
- package/dist/js/email/templates/api.key.revoked.d.ts +4 -0
- package/dist/js/email/templates/api.key.revoked.d.ts.map +1 -0
- package/dist/js/email/templates/api.key.revoked.js +134 -0
- package/dist/js/email/templates/api.key.revoked.js.map +1 -0
- package/dist/js/email/templates/contact.form.d.ts +4 -0
- package/dist/js/email/templates/contact.form.d.ts.map +1 -0
- package/dist/js/email/templates/contact.form.js +134 -0
- package/dist/js/email/templates/contact.form.js.map +1 -0
- package/dist/js/email/templates/daily.report.d.ts +4 -0
- package/dist/js/email/templates/daily.report.d.ts.map +1 -0
- package/dist/js/email/templates/daily.report.js +143 -0
- package/dist/js/email/templates/daily.report.js.map +1 -0
- package/dist/js/email/templates/email.changed.d.ts +4 -0
- package/dist/js/email/templates/email.changed.d.ts.map +1 -0
- package/dist/js/email/templates/email.changed.js +122 -0
- package/dist/js/email/templates/email.changed.js.map +1 -0
- package/dist/js/email/templates/feedback.d.ts +4 -0
- package/dist/js/email/templates/feedback.d.ts.map +1 -0
- package/dist/js/email/templates/feedback.js +136 -0
- package/dist/js/email/templates/feedback.js.map +1 -0
- package/dist/js/email/templates/index.d.ts +46 -0
- package/dist/js/email/templates/index.d.ts.map +1 -0
- package/dist/js/email/templates/index.js +46 -0
- package/dist/js/email/templates/index.js.map +1 -0
- package/dist/js/email/templates/invoice.d.ts +4 -0
- package/dist/js/email/templates/invoice.d.ts.map +1 -0
- package/dist/js/email/templates/invoice.js +147 -0
- package/dist/js/email/templates/invoice.js.map +1 -0
- package/dist/js/email/templates/login.alert.d.ts +4 -0
- package/dist/js/email/templates/login.alert.d.ts.map +1 -0
- package/dist/js/email/templates/login.alert.js +147 -0
- package/dist/js/email/templates/login.alert.js.map +1 -0
- package/dist/js/email/templates/magic.link.d.ts +4 -0
- package/dist/js/email/templates/magic.link.d.ts.map +1 -0
- package/dist/js/email/templates/magic.link.js +126 -0
- package/dist/js/email/templates/magic.link.js.map +1 -0
- package/dist/js/email/templates/maintenance.d.ts +4 -0
- package/dist/js/email/templates/maintenance.d.ts.map +1 -0
- package/dist/js/email/templates/maintenance.js +132 -0
- package/dist/js/email/templates/maintenance.js.map +1 -0
- package/dist/js/email/templates/member.added.d.ts +4 -0
- package/dist/js/email/templates/member.added.d.ts.map +1 -0
- package/dist/js/email/templates/member.added.js +122 -0
- package/dist/js/email/templates/member.added.js.map +1 -0
- package/dist/js/email/templates/member.removed.d.ts +4 -0
- package/dist/js/email/templates/member.removed.d.ts.map +1 -0
- package/dist/js/email/templates/member.removed.js +122 -0
- package/dist/js/email/templates/member.removed.js.map +1 -0
- package/dist/js/email/templates/mention.d.ts +4 -0
- package/dist/js/email/templates/mention.d.ts.map +1 -0
- package/dist/js/email/templates/mention.js +134 -0
- package/dist/js/email/templates/mention.js.map +1 -0
- package/dist/js/email/templates/monthly.report.d.ts +4 -0
- package/dist/js/email/templates/monthly.report.d.ts.map +1 -0
- package/dist/js/email/templates/monthly.report.js +143 -0
- package/dist/js/email/templates/monthly.report.js.map +1 -0
- package/dist/js/email/templates/new.comment.d.ts +4 -0
- package/dist/js/email/templates/new.comment.d.ts.map +1 -0
- package/dist/js/email/templates/new.comment.js +134 -0
- package/dist/js/email/templates/new.comment.js.map +1 -0
- package/dist/js/email/templates/new.device.login.d.ts +4 -0
- package/dist/js/email/templates/new.device.login.d.ts.map +1 -0
- package/dist/js/email/templates/new.device.login.js +147 -0
- package/dist/js/email/templates/new.device.login.js.map +1 -0
- package/dist/js/email/templates/new.message.d.ts +4 -0
- package/dist/js/email/templates/new.message.d.ts.map +1 -0
- package/dist/js/email/templates/new.message.js +134 -0
- package/dist/js/email/templates/new.message.js.map +1 -0
- package/dist/js/email/templates/notification.d.ts +4 -0
- package/dist/js/email/templates/notification.d.ts.map +1 -0
- package/dist/js/email/templates/notification.js +122 -0
- package/dist/js/email/templates/notification.js.map +1 -0
- package/dist/js/email/templates/order.cancelled.d.ts +4 -0
- package/dist/js/email/templates/order.cancelled.d.ts.map +1 -0
- package/dist/js/email/templates/order.cancelled.js +132 -0
- package/dist/js/email/templates/order.cancelled.js.map +1 -0
- package/dist/js/email/templates/order.confirmation.d.ts +4 -0
- package/dist/js/email/templates/order.confirmation.d.ts.map +1 -0
- package/dist/js/email/templates/order.confirmation.js +143 -0
- package/dist/js/email/templates/order.confirmation.js.map +1 -0
- package/dist/js/email/templates/order.delivered.d.ts +4 -0
- package/dist/js/email/templates/order.delivered.d.ts.map +1 -0
- package/dist/js/email/templates/order.delivered.js +122 -0
- package/dist/js/email/templates/order.delivered.js.map +1 -0
- package/dist/js/email/templates/order.shipped.d.ts +4 -0
- package/dist/js/email/templates/order.shipped.d.ts.map +1 -0
- package/dist/js/email/templates/order.shipped.js +143 -0
- package/dist/js/email/templates/order.shipped.js.map +1 -0
- package/dist/js/email/templates/organization.invitation.d.ts +4 -0
- package/dist/js/email/templates/organization.invitation.d.ts.map +1 -0
- package/dist/js/email/templates/organization.invitation.js +126 -0
- package/dist/js/email/templates/organization.invitation.js.map +1 -0
- package/dist/js/email/templates/otp.verfication.d.ts +4 -0
- package/dist/js/email/templates/otp.verfication.d.ts.map +1 -0
- package/dist/js/email/templates/otp.verfication.js +117 -0
- package/dist/js/email/templates/otp.verfication.js.map +1 -0
- package/dist/js/email/templates/password.changed.d.ts +4 -0
- package/dist/js/email/templates/password.changed.d.ts.map +1 -0
- package/dist/js/email/templates/password.changed.js +155 -0
- package/dist/js/email/templates/password.changed.js.map +1 -0
- package/dist/js/email/templates/password.expiring.d.ts +4 -0
- package/dist/js/email/templates/password.expiring.d.ts.map +1 -0
- package/dist/js/email/templates/password.expiring.js +122 -0
- package/dist/js/email/templates/password.expiring.js.map +1 -0
- package/dist/js/email/templates/password.reset.d.ts +4 -0
- package/dist/js/email/templates/password.reset.d.ts.map +1 -0
- package/dist/js/email/templates/password.reset.js +138 -0
- package/dist/js/email/templates/password.reset.js.map +1 -0
- package/dist/js/email/templates/payment.failed.d.ts +4 -0
- package/dist/js/email/templates/payment.failed.d.ts.map +1 -0
- package/dist/js/email/templates/payment.failed.js +155 -0
- package/dist/js/email/templates/payment.failed.js.map +1 -0
- package/dist/js/email/templates/payment.success.d.ts +4 -0
- package/dist/js/email/templates/payment.success.d.ts.map +1 -0
- package/dist/js/email/templates/payment.success.js +143 -0
- package/dist/js/email/templates/payment.success.js.map +1 -0
- package/dist/js/email/templates/receipt.d.ts +4 -0
- package/dist/js/email/templates/receipt.d.ts.map +1 -0
- package/dist/js/email/templates/receipt.js +147 -0
- package/dist/js/email/templates/receipt.js.map +1 -0
- package/dist/js/email/templates/reminder.d.ts +4 -0
- package/dist/js/email/templates/reminder.d.ts.map +1 -0
- package/dist/js/email/templates/reminder.js +122 -0
- package/dist/js/email/templates/reminder.js.map +1 -0
- package/dist/js/email/templates/security.alert.d.ts +4 -0
- package/dist/js/email/templates/security.alert.d.ts.map +1 -0
- package/dist/js/email/templates/security.alert.js +155 -0
- package/dist/js/email/templates/security.alert.js.map +1 -0
- package/dist/js/email/templates/subscription.cancelled.d.ts +4 -0
- package/dist/js/email/templates/subscription.cancelled.d.ts.map +1 -0
- package/dist/js/email/templates/subscription.cancelled.js +122 -0
- package/dist/js/email/templates/subscription.cancelled.js.map +1 -0
- package/dist/js/email/templates/subscription.created.d.ts +4 -0
- package/dist/js/email/templates/subscription.created.d.ts.map +1 -0
- package/dist/js/email/templates/subscription.created.js +143 -0
- package/dist/js/email/templates/subscription.created.js.map +1 -0
- package/dist/js/email/templates/subscription.renewed.d.ts +4 -0
- package/dist/js/email/templates/subscription.renewed.d.ts.map +1 -0
- package/dist/js/email/templates/subscription.renewed.js +143 -0
- package/dist/js/email/templates/subscription.renewed.js.map +1 -0
- package/dist/js/email/templates/support.ticket.d.ts +4 -0
- package/dist/js/email/templates/support.ticket.d.ts.map +1 -0
- package/dist/js/email/templates/support.ticket.js +143 -0
- package/dist/js/email/templates/support.ticket.js.map +1 -0
- package/dist/js/email/templates/team.invitation.d.ts +4 -0
- package/dist/js/email/templates/team.invitation.d.ts.map +1 -0
- package/dist/js/email/templates/team.invitation.js +126 -0
- package/dist/js/email/templates/team.invitation.js.map +1 -0
- package/dist/js/email/templates/trial.ending.d.ts +4 -0
- package/dist/js/email/templates/trial.ending.d.ts.map +1 -0
- package/dist/js/email/templates/trial.ending.js +122 -0
- package/dist/js/email/templates/trial.ending.js.map +1 -0
- package/dist/js/email/templates/two.factor.code.d.ts +4 -0
- package/dist/js/email/templates/two.factor.code.d.ts.map +1 -0
- package/dist/js/email/templates/two.factor.code.js +121 -0
- package/dist/js/email/templates/two.factor.code.js.map +1 -0
- package/dist/js/email/templates/verify.email.d.ts +4 -0
- package/dist/js/email/templates/verify.email.d.ts.map +1 -0
- package/dist/js/email/templates/verify.email.js +126 -0
- package/dist/js/email/templates/verify.email.js.map +1 -0
- package/dist/js/email/templates/weekly.report.d.ts +4 -0
- package/dist/js/email/templates/weekly.report.d.ts.map +1 -0
- package/dist/js/email/templates/weekly.report.js +143 -0
- package/dist/js/email/templates/weekly.report.js.map +1 -0
- package/dist/js/email/templates/welcome.d.ts +4 -0
- package/dist/js/email/templates/welcome.d.ts.map +1 -0
- package/dist/js/email/templates/welcome.email.d.ts +4 -0
- package/dist/js/email/templates/welcome.email.d.ts.map +1 -0
- package/dist/js/email/templates/welcome.email.js +417 -0
- package/dist/js/email/templates/welcome.email.js.map +1 -0
- package/dist/js/email/templates/welcome.js +122 -0
- package/dist/js/email/templates/welcome.js.map +1 -0
- package/dist/js/email/utils/auto-fields.d.ts +68 -0
- package/dist/js/email/utils/auto-fields.d.ts.map +1 -0
- package/dist/js/email/utils/auto-fields.js +232 -0
- package/dist/js/email/utils/auto-fields.js.map +1 -0
- package/dist/js/email/utils/auto-fields.type.d.ts +18 -0
- package/dist/js/email/utils/auto-fields.type.d.ts.map +1 -0
- package/dist/js/email/utils/auto-fields.type.js +2 -0
- package/dist/js/email/utils/auto-fields.type.js.map +1 -0
- package/dist/js/email/utils/emailTemplates.d.ts +2 -0
- package/dist/js/email/utils/emailTemplates.d.ts.map +1 -0
- package/dist/js/email/utils/emailTemplates.js +49 -0
- package/dist/js/email/utils/emailTemplates.js.map +1 -0
- package/dist/js/email/utils/handleEmailTemplateConfig.d.ts +4 -0
- package/dist/js/email/utils/handleEmailTemplateConfig.d.ts.map +1 -0
- package/dist/js/email/utils/handleEmailTemplateConfig.js +47 -0
- package/dist/js/email/utils/handleEmailTemplateConfig.js.map +1 -0
- package/dist/js/lib/db.js +5 -1
- package/dist/js/lib/db.js.map +1 -1
- package/dist/js/lib/model.factory.js +1 -1
- package/dist/js/lib/model.factory.js.map +1 -1
- package/dist/js/middleware/auth.middleware.d.ts +20 -1
- package/dist/js/middleware/auth.middleware.d.ts.map +1 -1
- package/dist/js/middleware/auth.middleware.js +27 -26
- package/dist/js/middleware/auth.middleware.js.map +1 -1
- package/dist/js/terminal/appInfo.js +3 -3
- package/dist/js/terminal/appInfo.js.map +1 -1
- package/dist/js/terminal/logger.d.ts +23 -1
- package/dist/js/terminal/logger.d.ts.map +1 -1
- package/dist/js/terminal/logger.js +221 -51
- package/dist/js/terminal/logger.js.map +1 -1
- package/dist/js/terminal/loggerConfig.js.map +1 -1
- package/dist/js/types/ActionHandler.d.ts +49 -56
- package/dist/js/types/ActionHandler.d.ts.map +1 -1
- package/dist/js/types/Collection.d.ts +1 -1
- package/dist/js/types/Collection.d.ts.map +1 -1
- package/dist/js/types/Constructor.d.ts +8 -2
- package/dist/js/types/Constructor.d.ts.map +1 -1
- package/dist/js/types/EmailActionTemplate.d.ts +52 -0
- package/dist/js/types/EmailActionTemplate.d.ts.map +1 -0
- package/dist/js/types/EmailActionTemplate.js +2 -0
- package/dist/js/types/EmailActionTemplate.js.map +1 -0
- package/dist/js/types/Route.d.ts +4 -3
- package/dist/js/types/Route.d.ts.map +1 -1
- package/dist/js/types/adminHandlers.d.ts +2 -0
- package/dist/js/types/adminHandlers.d.ts.map +1 -0
- package/dist/js/types/adminHandlers.js +2 -0
- package/dist/js/types/adminHandlers.js.map +1 -0
- package/dist/js/types/email/account.created.type.d.ts +10 -0
- package/dist/js/types/email/account.created.type.d.ts.map +1 -0
- package/dist/js/types/email/account.created.type.js +2 -0
- package/dist/js/types/email/account.created.type.js.map +1 -0
- package/dist/js/types/email/account.deleted.type.d.ts +10 -0
- package/dist/js/types/email/account.deleted.type.d.ts.map +1 -0
- package/dist/js/types/email/account.deleted.type.js +2 -0
- package/dist/js/types/email/account.deleted.type.js.map +1 -0
- package/dist/js/types/email/account.updated.type.d.ts +12 -0
- package/dist/js/types/email/account.updated.type.d.ts.map +1 -0
- package/dist/js/types/email/account.updated.type.js +2 -0
- package/dist/js/types/email/account.updated.type.js.map +1 -0
- package/dist/js/types/email/announcement.type.d.ts +13 -0
- package/dist/js/types/email/announcement.type.d.ts.map +1 -0
- package/dist/js/types/email/announcement.type.js +2 -0
- package/dist/js/types/email/announcement.type.js.map +1 -0
- package/dist/js/types/email/api.key.created.type.d.ts +14 -0
- package/dist/js/types/email/api.key.created.type.d.ts.map +1 -0
- package/dist/js/types/email/api.key.created.type.js +2 -0
- package/dist/js/types/email/api.key.created.type.js.map +1 -0
- package/dist/js/types/email/api.key.revoked.type.d.ts +14 -0
- package/dist/js/types/email/api.key.revoked.type.d.ts.map +1 -0
- package/dist/js/types/email/api.key.revoked.type.js +2 -0
- package/dist/js/types/email/api.key.revoked.type.js.map +1 -0
- package/dist/js/types/email/contact.form.type.d.ts +11 -0
- package/dist/js/types/email/contact.form.type.d.ts.map +1 -0
- package/dist/js/types/email/contact.form.type.js +2 -0
- package/dist/js/types/email/contact.form.type.js.map +1 -0
- package/dist/js/types/email/daily.report.type.d.ts +14 -0
- package/dist/js/types/email/daily.report.type.d.ts.map +1 -0
- package/dist/js/types/email/daily.report.type.js +2 -0
- package/dist/js/types/email/daily.report.type.js.map +1 -0
- package/dist/js/types/email/email.changed.type.d.ts +12 -0
- package/dist/js/types/email/email.changed.type.d.ts.map +1 -0
- package/dist/js/types/email/email.changed.type.js +2 -0
- package/dist/js/types/email/email.changed.type.js.map +1 -0
- package/dist/js/types/email/feedback.type.d.ts +11 -0
- package/dist/js/types/email/feedback.type.d.ts.map +1 -0
- package/dist/js/types/email/feedback.type.js +2 -0
- package/dist/js/types/email/feedback.type.js.map +1 -0
- package/dist/js/types/email/index.d.ts +46 -0
- package/dist/js/types/email/index.d.ts.map +1 -0
- package/dist/js/types/email/index.js +2 -0
- package/dist/js/types/email/index.js.map +1 -0
- package/dist/js/types/email/invoice.type.d.ts +14 -0
- package/dist/js/types/email/invoice.type.d.ts.map +1 -0
- package/dist/js/types/email/invoice.type.js +2 -0
- package/dist/js/types/email/invoice.type.js.map +1 -0
- package/dist/js/types/email/login.alert.type.d.ts +12 -0
- package/dist/js/types/email/login.alert.type.d.ts.map +1 -0
- package/dist/js/types/email/login.alert.type.js +2 -0
- package/dist/js/types/email/login.alert.type.js.map +1 -0
- package/dist/js/types/email/magic.link.type.d.ts +11 -0
- package/dist/js/types/email/magic.link.type.d.ts.map +1 -0
- package/dist/js/types/email/magic.link.type.js +2 -0
- package/dist/js/types/email/magic.link.type.js.map +1 -0
- package/dist/js/types/email/maintenance.type.d.ts +13 -0
- package/dist/js/types/email/maintenance.type.d.ts.map +1 -0
- package/dist/js/types/email/maintenance.type.js +2 -0
- package/dist/js/types/email/maintenance.type.js.map +1 -0
- package/dist/js/types/email/member.added.type.d.ts +14 -0
- package/dist/js/types/email/member.added.type.d.ts.map +1 -0
- package/dist/js/types/email/member.added.type.js +2 -0
- package/dist/js/types/email/member.added.type.js.map +1 -0
- package/dist/js/types/email/member.removed.type.d.ts +14 -0
- package/dist/js/types/email/member.removed.type.d.ts.map +1 -0
- package/dist/js/types/email/member.removed.type.js +2 -0
- package/dist/js/types/email/member.removed.type.js.map +1 -0
- package/dist/js/types/email/mention.type.d.ts +12 -0
- package/dist/js/types/email/mention.type.d.ts.map +1 -0
- package/dist/js/types/email/mention.type.js +2 -0
- package/dist/js/types/email/mention.type.js.map +1 -0
- package/dist/js/types/email/monthly.report.type.d.ts +14 -0
- package/dist/js/types/email/monthly.report.type.d.ts.map +1 -0
- package/dist/js/types/email/monthly.report.type.js +2 -0
- package/dist/js/types/email/monthly.report.type.js.map +1 -0
- package/dist/js/types/email/new.comment.type.d.ts +12 -0
- package/dist/js/types/email/new.comment.type.d.ts.map +1 -0
- package/dist/js/types/email/new.comment.type.js +2 -0
- package/dist/js/types/email/new.comment.type.js.map +1 -0
- package/dist/js/types/email/new.device.login.type.d.ts +11 -0
- package/dist/js/types/email/new.device.login.type.d.ts.map +1 -0
- package/dist/js/types/email/new.device.login.type.js +2 -0
- package/dist/js/types/email/new.device.login.type.js.map +1 -0
- package/dist/js/types/email/new.message.type.d.ts +11 -0
- package/dist/js/types/email/new.message.type.d.ts.map +1 -0
- package/dist/js/types/email/new.message.type.js +2 -0
- package/dist/js/types/email/new.message.type.js.map +1 -0
- package/dist/js/types/email/notification.type.d.ts +13 -0
- package/dist/js/types/email/notification.type.d.ts.map +1 -0
- package/dist/js/types/email/notification.type.js +2 -0
- package/dist/js/types/email/notification.type.js.map +1 -0
- package/dist/js/types/email/order.cancelled.type.d.ts +12 -0
- package/dist/js/types/email/order.cancelled.type.d.ts.map +1 -0
- package/dist/js/types/email/order.cancelled.type.js +2 -0
- package/dist/js/types/email/order.cancelled.type.js.map +1 -0
- package/dist/js/types/email/order.confirmation.type.d.ts +13 -0
- package/dist/js/types/email/order.confirmation.type.d.ts.map +1 -0
- package/dist/js/types/email/order.confirmation.type.js +2 -0
- package/dist/js/types/email/order.confirmation.type.js.map +1 -0
- package/dist/js/types/email/order.delivered.type.d.ts +12 -0
- package/dist/js/types/email/order.delivered.type.d.ts.map +1 -0
- package/dist/js/types/email/order.delivered.type.js +2 -0
- package/dist/js/types/email/order.delivered.type.js.map +1 -0
- package/dist/js/types/email/order.shipped.type.d.ts +14 -0
- package/dist/js/types/email/order.shipped.type.d.ts.map +1 -0
- package/dist/js/types/email/order.shipped.type.js +2 -0
- package/dist/js/types/email/order.shipped.type.js.map +1 -0
- package/dist/js/types/email/organization.invitation.type.d.ts +13 -0
- package/dist/js/types/email/organization.invitation.type.d.ts.map +1 -0
- package/dist/js/types/email/organization.invitation.type.js +2 -0
- package/dist/js/types/email/organization.invitation.type.js.map +1 -0
- package/dist/js/types/email/otp.verification.type.d.ts +11 -0
- package/dist/js/types/email/otp.verification.type.d.ts.map +1 -0
- package/dist/js/types/email/otp.verification.type.js +2 -0
- package/dist/js/types/email/otp.verification.type.js.map +1 -0
- package/dist/js/types/email/password.changed.type.d.ts +12 -0
- package/dist/js/types/email/password.changed.type.d.ts.map +1 -0
- package/dist/js/types/email/password.changed.type.js +2 -0
- package/dist/js/types/email/password.changed.type.js.map +1 -0
- package/dist/js/types/email/password.expiring.type.d.ts +12 -0
- package/dist/js/types/email/password.expiring.type.d.ts.map +1 -0
- package/dist/js/types/email/password.expiring.type.js +2 -0
- package/dist/js/types/email/password.expiring.type.js.map +1 -0
- package/dist/js/types/email/password.reset.type.d.ts +11 -0
- package/dist/js/types/email/password.reset.type.d.ts.map +1 -0
- package/dist/js/types/email/password.reset.type.js +2 -0
- package/dist/js/types/email/password.reset.type.js.map +1 -0
- package/dist/js/types/email/payment.failed.type.d.ts +14 -0
- package/dist/js/types/email/payment.failed.type.d.ts.map +1 -0
- package/dist/js/types/email/payment.failed.type.js +2 -0
- package/dist/js/types/email/payment.failed.type.js.map +1 -0
- package/dist/js/types/email/payment.success.type.d.ts +13 -0
- package/dist/js/types/email/payment.success.type.d.ts.map +1 -0
- package/dist/js/types/email/payment.success.type.js +2 -0
- package/dist/js/types/email/payment.success.type.js.map +1 -0
- package/dist/js/types/email/receipt.type.d.ts +14 -0
- package/dist/js/types/email/receipt.type.d.ts.map +1 -0
- package/dist/js/types/email/receipt.type.js +2 -0
- package/dist/js/types/email/receipt.type.js.map +1 -0
- package/dist/js/types/email/reminder.type.d.ts +12 -0
- package/dist/js/types/email/reminder.type.d.ts.map +1 -0
- package/dist/js/types/email/reminder.type.js +2 -0
- package/dist/js/types/email/reminder.type.js.map +1 -0
- package/dist/js/types/email/security.alert.type.d.ts +12 -0
- package/dist/js/types/email/security.alert.type.d.ts.map +1 -0
- package/dist/js/types/email/security.alert.type.js +2 -0
- package/dist/js/types/email/security.alert.type.js.map +1 -0
- package/dist/js/types/email/static-config.type.d.ts +8 -0
- package/dist/js/types/email/static-config.type.d.ts.map +1 -0
- package/dist/js/types/email/static-config.type.js +2 -0
- package/dist/js/types/email/static-config.type.js.map +1 -0
- package/dist/js/types/email/subscription.cancelled.type.d.ts +12 -0
- package/dist/js/types/email/subscription.cancelled.type.d.ts.map +1 -0
- package/dist/js/types/email/subscription.cancelled.type.js +2 -0
- package/dist/js/types/email/subscription.cancelled.type.js.map +1 -0
- package/dist/js/types/email/subscription.created.type.d.ts +13 -0
- package/dist/js/types/email/subscription.created.type.d.ts.map +1 -0
- package/dist/js/types/email/subscription.created.type.js +2 -0
- package/dist/js/types/email/subscription.created.type.js.map +1 -0
- package/dist/js/types/email/subscription.renewed.type.d.ts +14 -0
- package/dist/js/types/email/subscription.renewed.type.d.ts.map +1 -0
- package/dist/js/types/email/subscription.renewed.type.js +2 -0
- package/dist/js/types/email/subscription.renewed.type.js.map +1 -0
- package/dist/js/types/email/support.ticket.type.d.ts +14 -0
- package/dist/js/types/email/support.ticket.type.d.ts.map +1 -0
- package/dist/js/types/email/support.ticket.type.js +2 -0
- package/dist/js/types/email/support.ticket.type.js.map +1 -0
- package/dist/js/types/email/team.invitation.type.d.ts +13 -0
- package/dist/js/types/email/team.invitation.type.d.ts.map +1 -0
- package/dist/js/types/email/team.invitation.type.js +2 -0
- package/dist/js/types/email/team.invitation.type.js.map +1 -0
- package/dist/js/types/email/trial.ending.type.d.ts +13 -0
- package/dist/js/types/email/trial.ending.type.d.ts.map +1 -0
- package/dist/js/types/email/trial.ending.type.js +2 -0
- package/dist/js/types/email/trial.ending.type.js.map +1 -0
- package/dist/js/types/email/two.factor.code.type.d.ts +11 -0
- package/dist/js/types/email/two.factor.code.type.d.ts.map +1 -0
- package/dist/js/types/email/two.factor.code.type.js +2 -0
- package/dist/js/types/email/two.factor.code.type.js.map +1 -0
- package/dist/js/types/email/verify.email.type.d.ts +11 -0
- package/dist/js/types/email/verify.email.type.d.ts.map +1 -0
- package/dist/js/types/email/verify.email.type.js +2 -0
- package/dist/js/types/email/verify.email.type.js.map +1 -0
- package/dist/js/types/email/weekly.report.type.d.ts +14 -0
- package/dist/js/types/email/weekly.report.type.d.ts.map +1 -0
- package/dist/js/types/email/weekly.report.type.js +2 -0
- package/dist/js/types/email/weekly.report.type.js.map +1 -0
- package/dist/js/types/email/welcome.type.d.ts +10 -0
- package/dist/js/types/email/welcome.type.d.ts.map +1 -0
- package/dist/js/types/email/welcome.type.js +2 -0
- package/dist/js/types/email/welcome.type.js.map +1 -0
- package/dist/js/types/email.js +0 -13
- package/dist/js/types/email.js.map +1 -1
- package/dist/js/utils/getErrorDetail.d.ts +1 -1
- package/dist/js/utils/handleJWT.js +1 -1
- package/dist/js/utils/handleJWT.js.map +1 -1
- package/dist/js/utils/response.js +3 -3
- package/dist/js/utils/response.js.map +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
const newCommentEmail = ({ commentAuthor, postTitle, companyUrl, companyName, commentText, commentUrl, companyAddress, userEmail, supportEmail, unsubscribeUrl, currentYear, }) => {
|
|
2
|
+
return `<!DOCTYPE html>
|
|
3
|
+
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
7
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
8
|
+
<meta name="color-scheme" content="light">
|
|
9
|
+
<meta name="supported-color-schemes" content="light">
|
|
10
|
+
<title>${commentAuthor} commented on ${postTitle}</title>
|
|
11
|
+
<!--[if mso]>
|
|
12
|
+
<noscript>
|
|
13
|
+
<xml>
|
|
14
|
+
<o:OfficeDocumentSettings>
|
|
15
|
+
<o:PixelsPerInch>96</o:PixelsPerInch>
|
|
16
|
+
</o:OfficeDocumentSettings>
|
|
17
|
+
</xml>
|
|
18
|
+
</noscript>
|
|
19
|
+
<style>table {border-collapse:collapse;} .fallback-font {font-family: Arial, sans-serif;}</style>
|
|
20
|
+
<![endif]-->
|
|
21
|
+
<style>
|
|
22
|
+
body, table, td, a { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
|
|
23
|
+
table, td { mso-table-lspace: 0pt; mso-table-rspace: 0pt; }
|
|
24
|
+
img { -ms-interpolation-mode: bicubic; border: 0; height: auto; line-height: 100%; outline: none; text-decoration: none; }
|
|
25
|
+
body { margin: 0; padding: 0; width: 100% !important; background-color: #F1F5F9; }
|
|
26
|
+
a { color: #F59E0B; }
|
|
27
|
+
@media screen and (max-width: 600px) {
|
|
28
|
+
.email-container { width: 100% !important; }
|
|
29
|
+
.fluid-padding { padding-left: 24px !important; padding-right: 24px !important; }
|
|
30
|
+
}
|
|
31
|
+
</style>
|
|
32
|
+
</head>
|
|
33
|
+
<body style="margin:0;padding:0;background-color:#F1F5F9;">
|
|
34
|
+
<div style="display:none;max-height:0;overflow:hidden;mso-hide:all;font-size:1px;line-height:1px;color:#F1F5F9;">
|
|
35
|
+
New comment on ${postTitle}.
|
|
36
|
+
‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌
|
|
37
|
+
</div>
|
|
38
|
+
<center style="width:100%;background-color:#F1F5F9;">
|
|
39
|
+
<!--[if mso]>
|
|
40
|
+
<table role="presentation" width="600" align="center" cellpadding="0" cellspacing="0"><tr><td>
|
|
41
|
+
<![endif]-->
|
|
42
|
+
<div class="email-container" style="max-width:600px;margin:0 auto;">
|
|
43
|
+
|
|
44
|
+
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="max-width:600px;margin:0 auto;">
|
|
45
|
+
<tr>
|
|
46
|
+
<td style="padding:36px 24px 20px 24px;text-align:center;">
|
|
47
|
+
<a href="${companyUrl}" target="_blank" style="text-decoration:none;">
|
|
48
|
+
<span style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:19px;font-weight:700;color:#0F172A;letter-spacing:-0.02em;">${companyName}</span>
|
|
49
|
+
</a>
|
|
50
|
+
</td>
|
|
51
|
+
</tr>
|
|
52
|
+
</table>
|
|
53
|
+
|
|
54
|
+
<table role="presentation" width="100%" cellpadding="0" cellspacing="0"
|
|
55
|
+
style="max-width:600px;margin:0 auto;background-color:#FFFFFF;border-radius:16px;border:1px solid #E2E8F0;">
|
|
56
|
+
<tr><td style="height:4px;line-height:4px;font-size:4px;background-color:#F59E0B;border-radius:16px 16px 0 0;" bgcolor="#F59E0B"> </td></tr>
|
|
57
|
+
<tr>
|
|
58
|
+
<td class="fluid-padding" style="padding:40px 40px 36px 40px;">
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
<table role="presentation" cellpadding="0" cellspacing="0" style="margin:0 0 24px 0;">
|
|
62
|
+
<tr>
|
|
63
|
+
<td width="56" height="56" style="width:56px;height:56px;border-radius:16px;background-color:#FEF3E2;text-align:center;vertical-align:middle;" bgcolor="#FEF3E2">
|
|
64
|
+
<div style="font-size:0;line-height:0;"><svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="#F59E0B" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M4 5.5h16V16H8.5L4.5 19V16H4z"/></svg></div>
|
|
65
|
+
</td>
|
|
66
|
+
</tr>
|
|
67
|
+
</table>
|
|
68
|
+
|
|
69
|
+
<h1 style="margin:0 0 16px 0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:22px;line-height:28px;font-weight:700;color:#0F172A;letter-spacing:-0.02em;">
|
|
70
|
+
New comment on your post
|
|
71
|
+
</h1>
|
|
72
|
+
|
|
73
|
+
<p style="margin:0 0 14px 0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:15px;line-height:24px;color:#475569;"><strong>${commentAuthor}</strong> commented on <strong>${postTitle}</strong>:</p>
|
|
74
|
+
|
|
75
|
+
<table role="presentation" cellpadding="0" cellspacing="0" width="100%" style="margin:24px 0;">
|
|
76
|
+
<tr>
|
|
77
|
+
<td style="background-color:#FEF5E7;border-left:3px solid #F59E0B;border-radius:8px;padding:14px 18px;">
|
|
78
|
+
<table role="presentation" cellpadding="0" cellspacing="0">
|
|
79
|
+
<tr>
|
|
80
|
+
<td style="vertical-align:top;padding-right:10px;padding-top:1px;"><svg width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="#F59E0B" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M4 5.5h16V16H8.5L4.5 19V16H4z"/></svg></td>
|
|
81
|
+
<td style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:13.5px;line-height:20px;color:#0F172A;">${commentText}</td>
|
|
82
|
+
</tr>
|
|
83
|
+
</table>
|
|
84
|
+
</td>
|
|
85
|
+
</tr>
|
|
86
|
+
</table>
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
<table role="presentation" cellpadding="0" cellspacing="0" style="margin:28px 0 4px 0;">
|
|
91
|
+
<tr>
|
|
92
|
+
<td style="border-radius:10px;background-color:#F59E0B;" bgcolor="#F59E0B">
|
|
93
|
+
<a href="${commentUrl}" target="_blank"
|
|
94
|
+
style="display:inline-block;padding:13px 28px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:15px;font-weight:600;
|
|
95
|
+
color:#ffffff;text-decoration:none;border-radius:10px;letter-spacing:-0.01em;">
|
|
96
|
+
View comment
|
|
97
|
+
</a>
|
|
98
|
+
</td>
|
|
99
|
+
</tr>
|
|
100
|
+
</table>
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
</td>
|
|
105
|
+
</tr>
|
|
106
|
+
</table>
|
|
107
|
+
|
|
108
|
+
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="max-width:600px;margin:0 auto;">
|
|
109
|
+
<tr>
|
|
110
|
+
<td style="padding:28px 24px 8px 24px;text-align:center;">
|
|
111
|
+
<p style="margin:0 0 6px 0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:12.5px;line-height:18px;color:#94A3B8;">
|
|
112
|
+
${companyName} · ${companyAddress}
|
|
113
|
+
</p>
|
|
114
|
+
<p style="margin:0 0 6px 0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:12.5px;line-height:18px;color:#94A3B8;">
|
|
115
|
+
This email was sent to ${userEmail}. Need help? <a href="mailto:${supportEmail}" style="color:#94A3B8;text-decoration:underline;">${supportEmail}</a>
|
|
116
|
+
</p>
|
|
117
|
+
<p style="margin:0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:12.5px;line-height:18px;color:#94A3B8;">
|
|
118
|
+
<a href="${unsubscribeUrl}" style="color:#94A3B8;text-decoration:underline;">Unsubscribe</a>
|
|
119
|
+
·
|
|
120
|
+
© ${currentYear} ${companyName}. All rights reserved.
|
|
121
|
+
</p>
|
|
122
|
+
</td>
|
|
123
|
+
</tr>
|
|
124
|
+
</table>
|
|
125
|
+
|
|
126
|
+
</div>
|
|
127
|
+
<!--[if mso]></td></tr></table><![endif]-->
|
|
128
|
+
</center>
|
|
129
|
+
</body>
|
|
130
|
+
</html>
|
|
131
|
+
`;
|
|
132
|
+
};
|
|
133
|
+
export default newCommentEmail;
|
|
134
|
+
//# sourceMappingURL=new.comment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"new.comment.js","sourceRoot":"","sources":["../../../../src/js/email/templates/new.comment.ts"],"names":[],"mappings":"AAEA,MAAM,eAAe,GAAG,CAAC,EACvB,aAAa,EACb,SAAS,EACT,UAAU,EACV,WAAW,EACX,WAAW,EACX,UAAU,EACV,cAAc,EACd,SAAS,EACT,YAAY,EACZ,cAAc,EACd,WAAW,GACiB,EAAU,EAAE;IACxC,OAAO;;;;;;;;SAQA,aAAa,iBAAiB,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;qBAyB3B,SAAS;;;;;;;;;;;;uBAYP,UAAU;6LAC4J,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;4LAyBZ,aAAa,kCAAkC,SAAS;;;;;;;;uKAQ7E,WAAW;;;;;;;;;;;;qBAY7J,UAAU;;;;;;;;;;;;;;;;;;;gBAmBf,WAAW,aAAa,cAAc;;;uCAGf,SAAS,gCAAgC,YAAY,sDAAsD,YAAY;;;yBAGrI,cAAc;;uBAEhB,WAAW,IAAI,WAAW;;;;;;;;;;;CAWhD,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { NewDeviceLoginEmailPlaceholders } from "../../types/email/new.device.login.type.js";
|
|
2
|
+
declare const newDeviceLoginEmail: ({ deviceName, companyUrl, companyName, userName, location, loginTime, ipAddress, secureAccountUrl, companyAddress, userEmail, supportEmail, unsubscribeUrl, currentYear, }: NewDeviceLoginEmailPlaceholders) => string;
|
|
3
|
+
export default newDeviceLoginEmail;
|
|
4
|
+
//# sourceMappingURL=new.device.login.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"new.device.login.d.ts","sourceRoot":"","sources":["../../../../src/js/email/templates/new.device.login.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,4CAA4C,CAAC;AAElG,QAAA,MAAM,mBAAmB,GAAI,4KAc1B,+BAA+B,KAAG,MAgJpC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
const newDeviceLoginEmail = ({ deviceName, companyUrl, companyName, userName, location, loginTime, ipAddress, secureAccountUrl, companyAddress, userEmail, supportEmail, unsubscribeUrl, currentYear, }) => {
|
|
2
|
+
return `<!DOCTYPE html>
|
|
3
|
+
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
7
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
8
|
+
<meta name="color-scheme" content="light">
|
|
9
|
+
<meta name="supported-color-schemes" content="light">
|
|
10
|
+
<title>New device signed in to your account</title>
|
|
11
|
+
<!--[if mso]>
|
|
12
|
+
<noscript>
|
|
13
|
+
<xml>
|
|
14
|
+
<o:OfficeDocumentSettings>
|
|
15
|
+
<o:PixelsPerInch>96</o:PixelsPerInch>
|
|
16
|
+
</o:OfficeDocumentSettings>
|
|
17
|
+
</xml>
|
|
18
|
+
</noscript>
|
|
19
|
+
<style>table {border-collapse:collapse;} .fallback-font {font-family: Arial, sans-serif;}</style>
|
|
20
|
+
<![endif]-->
|
|
21
|
+
<style>
|
|
22
|
+
body, table, td, a { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
|
|
23
|
+
table, td { mso-table-lspace: 0pt; mso-table-rspace: 0pt; }
|
|
24
|
+
img { -ms-interpolation-mode: bicubic; border: 0; height: auto; line-height: 100%; outline: none; text-decoration: none; }
|
|
25
|
+
body { margin: 0; padding: 0; width: 100% !important; background-color: #F1F5F9; }
|
|
26
|
+
a { color: #D97706; }
|
|
27
|
+
@media screen and (max-width: 600px) {
|
|
28
|
+
.email-container { width: 100% !important; }
|
|
29
|
+
.fluid-padding { padding-left: 24px !important; padding-right: 24px !important; }
|
|
30
|
+
}
|
|
31
|
+
</style>
|
|
32
|
+
</head>
|
|
33
|
+
<body style="margin:0;padding:0;background-color:#F1F5F9;">
|
|
34
|
+
<div style="display:none;max-height:0;overflow:hidden;mso-hide:all;font-size:1px;line-height:1px;color:#F1F5F9;">
|
|
35
|
+
${deviceName} just signed in.
|
|
36
|
+
‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌
|
|
37
|
+
</div>
|
|
38
|
+
<center style="width:100%;background-color:#F1F5F9;">
|
|
39
|
+
<!--[if mso]>
|
|
40
|
+
<table role="presentation" width="600" align="center" cellpadding="0" cellspacing="0"><tr><td>
|
|
41
|
+
<![endif]-->
|
|
42
|
+
<div class="email-container" style="max-width:600px;margin:0 auto;">
|
|
43
|
+
|
|
44
|
+
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="max-width:600px;margin:0 auto;">
|
|
45
|
+
<tr>
|
|
46
|
+
<td style="padding:36px 24px 20px 24px;text-align:center;">
|
|
47
|
+
<a href="${companyUrl}" target="_blank" style="text-decoration:none;">
|
|
48
|
+
<span style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:19px;font-weight:700;color:#0F172A;letter-spacing:-0.02em;">${companyName}</span>
|
|
49
|
+
</a>
|
|
50
|
+
</td>
|
|
51
|
+
</tr>
|
|
52
|
+
</table>
|
|
53
|
+
|
|
54
|
+
<table role="presentation" width="100%" cellpadding="0" cellspacing="0"
|
|
55
|
+
style="max-width:600px;margin:0 auto;background-color:#FFFFFF;border-radius:16px;border:1px solid #E2E8F0;">
|
|
56
|
+
<tr><td style="height:4px;line-height:4px;font-size:4px;background-color:#D97706;border-radius:16px 16px 0 0;" bgcolor="#D97706"> </td></tr>
|
|
57
|
+
<tr>
|
|
58
|
+
<td class="fluid-padding" style="padding:40px 40px 36px 40px;">
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
<table role="presentation" cellpadding="0" cellspacing="0" style="margin:0 0 24px 0;">
|
|
62
|
+
<tr>
|
|
63
|
+
<td width="56" height="56" style="width:56px;height:56px;border-radius:16px;background-color:#FAEFE1;text-align:center;vertical-align:middle;" bgcolor="#FAEFE1">
|
|
64
|
+
<div style="font-size:0;line-height:0;"><svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="#D97706" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="4.5" width="18" height="12" rx="1.5"/><path d="M8 20h8M12 16.5V20"/></svg></div>
|
|
65
|
+
</td>
|
|
66
|
+
</tr>
|
|
67
|
+
</table>
|
|
68
|
+
|
|
69
|
+
<h1 style="margin:0 0 16px 0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:22px;line-height:28px;font-weight:700;color:#0F172A;letter-spacing:-0.02em;">
|
|
70
|
+
New device signed in
|
|
71
|
+
</h1>
|
|
72
|
+
|
|
73
|
+
<p style="margin:0 0 14px 0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:15px;line-height:24px;color:#475569;">Hi ${userName}, <strong>${deviceName}</strong> just signed in to your ${companyName} account.</p>
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
<table role="presentation" cellpadding="0" cellspacing="0" width="100%" style="margin:24px 0;">
|
|
77
|
+
<tr>
|
|
78
|
+
<td style="background-color:#F8FAFC;border:1px solid #E2E8F0;border-radius:12px;padding:4px 20px;">
|
|
79
|
+
<table role="presentation" cellpadding="0" cellspacing="0" width="100%">
|
|
80
|
+
|
|
81
|
+
<tr>
|
|
82
|
+
<td style="padding:12px 0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:14px;color:#94A3B8;" width="42%">Device</td>
|
|
83
|
+
<td style="padding:12px 0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:14px;color:#0F172A;font-weight:600;text-align:right;">${deviceName}</td>
|
|
84
|
+
</tr>
|
|
85
|
+
<tr>
|
|
86
|
+
<td style="padding:12px 0;border-top:1px solid #E2E8F0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:14px;color:#94A3B8;" width="42%">Location</td>
|
|
87
|
+
<td style="padding:12px 0;border-top:1px solid #E2E8F0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:14px;color:#0F172A;font-weight:600;text-align:right;">${location}</td>
|
|
88
|
+
</tr>
|
|
89
|
+
<tr>
|
|
90
|
+
<td style="padding:12px 0;border-top:1px solid #E2E8F0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:14px;color:#94A3B8;" width="42%">Time</td>
|
|
91
|
+
<td style="padding:12px 0;border-top:1px solid #E2E8F0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:14px;color:#0F172A;font-weight:600;text-align:right;">${loginTime}</td>
|
|
92
|
+
</tr>
|
|
93
|
+
<tr>
|
|
94
|
+
<td style="padding:12px 0;border-top:1px solid #E2E8F0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:14px;color:#94A3B8;" width="42%">IP address</td>
|
|
95
|
+
<td style="padding:12px 0;border-top:1px solid #E2E8F0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:14px;color:#0F172A;font-weight:600;text-align:right;">${ipAddress}</td>
|
|
96
|
+
</tr>
|
|
97
|
+
</table>
|
|
98
|
+
</td>
|
|
99
|
+
</tr>
|
|
100
|
+
</table>
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
<table role="presentation" cellpadding="0" cellspacing="0" style="margin:28px 0 4px 0;">
|
|
104
|
+
<tr>
|
|
105
|
+
<td style="border-radius:10px;background-color:#D97706;" bgcolor="#D97706">
|
|
106
|
+
<a href="${secureAccountUrl}" target="_blank"
|
|
107
|
+
style="display:inline-block;padding:13px 28px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:15px;font-weight:600;
|
|
108
|
+
color:#ffffff;text-decoration:none;border-radius:10px;letter-spacing:-0.01em;">
|
|
109
|
+
Not me — secure my account
|
|
110
|
+
</a>
|
|
111
|
+
</td>
|
|
112
|
+
</tr>
|
|
113
|
+
</table>
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
</td>
|
|
118
|
+
</tr>
|
|
119
|
+
</table>
|
|
120
|
+
|
|
121
|
+
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="max-width:600px;margin:0 auto;">
|
|
122
|
+
<tr>
|
|
123
|
+
<td style="padding:28px 24px 8px 24px;text-align:center;">
|
|
124
|
+
<p style="margin:0 0 6px 0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:12.5px;line-height:18px;color:#94A3B8;">
|
|
125
|
+
${companyName} · ${companyAddress}
|
|
126
|
+
</p>
|
|
127
|
+
<p style="margin:0 0 6px 0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:12.5px;line-height:18px;color:#94A3B8;">
|
|
128
|
+
This email was sent to ${userEmail}. Need help? <a href="mailto:${supportEmail}" style="color:#94A3B8;text-decoration:underline;">${supportEmail}</a>
|
|
129
|
+
</p>
|
|
130
|
+
<p style="margin:0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:12.5px;line-height:18px;color:#94A3B8;">
|
|
131
|
+
<a href="${unsubscribeUrl}" style="color:#94A3B8;text-decoration:underline;">Unsubscribe</a>
|
|
132
|
+
·
|
|
133
|
+
© ${currentYear} ${companyName}. All rights reserved.
|
|
134
|
+
</p>
|
|
135
|
+
</td>
|
|
136
|
+
</tr>
|
|
137
|
+
</table>
|
|
138
|
+
|
|
139
|
+
</div>
|
|
140
|
+
<!--[if mso]></td></tr></table><![endif]-->
|
|
141
|
+
</center>
|
|
142
|
+
</body>
|
|
143
|
+
</html>
|
|
144
|
+
`;
|
|
145
|
+
};
|
|
146
|
+
export default newDeviceLoginEmail;
|
|
147
|
+
//# sourceMappingURL=new.device.login.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"new.device.login.js","sourceRoot":"","sources":["../../../../src/js/email/templates/new.device.login.ts"],"names":[],"mappings":"AAEA,MAAM,mBAAmB,GAAG,CAAC,EAC3B,UAAU,EACV,UAAU,EACV,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,YAAY,EACZ,cAAc,EACd,WAAW,GACqB,EAAU,EAAE;IAC5C,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiCH,UAAU;;;;;;;;;;;;uBAYO,UAAU;6LAC4J,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;uLAyBjB,QAAQ,aAAa,UAAU,oCAAoC,WAAW;;;;;;;;;;kMAUnE,UAAU;;;;+NAImB,QAAQ;;;;+NAIR,SAAS;;;;+NAIT,SAAS;;;;;;;;;;;qBAWnN,gBAAgB;;;;;;;;;;;;;;;;;;;gBAmBrB,WAAW,aAAa,cAAc;;;uCAGf,SAAS,gCAAgC,YAAY,sDAAsD,YAAY;;;yBAGrI,cAAc;;uBAEhB,WAAW,IAAI,WAAW;;;;;;;;;;;CAWhD,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { NewMessageEmailPlaceholders } from "../../types/email/new.message.type.js";
|
|
2
|
+
declare const newMessageEmail: ({ senderName, companyName, companyUrl, messagePreview, messageUrl, companyAddress, userEmail, supportEmail, unsubscribeUrl, currentYear, }: NewMessageEmailPlaceholders) => string;
|
|
3
|
+
export default newMessageEmail;
|
|
4
|
+
//# sourceMappingURL=new.message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"new.message.d.ts","sourceRoot":"","sources":["../../../../src/js/email/templates/new.message.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AAEzF,QAAA,MAAM,eAAe,GAAI,4IAWtB,2BAA2B,KAAG,MAmIhC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
const newMessageEmail = ({ senderName, companyName, companyUrl, messagePreview, messageUrl, companyAddress, userEmail, supportEmail, unsubscribeUrl, currentYear, }) => {
|
|
2
|
+
return `<!DOCTYPE html>
|
|
3
|
+
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
7
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
8
|
+
<meta name="color-scheme" content="light">
|
|
9
|
+
<meta name="supported-color-schemes" content="light">
|
|
10
|
+
<title>New message from ${senderName}</title>
|
|
11
|
+
<!--[if mso]>
|
|
12
|
+
<noscript>
|
|
13
|
+
<xml>
|
|
14
|
+
<o:OfficeDocumentSettings>
|
|
15
|
+
<o:PixelsPerInch>96</o:PixelsPerInch>
|
|
16
|
+
</o:OfficeDocumentSettings>
|
|
17
|
+
</xml>
|
|
18
|
+
</noscript>
|
|
19
|
+
<style>table {border-collapse:collapse;} .fallback-font {font-family: Arial, sans-serif;}</style>
|
|
20
|
+
<![endif]-->
|
|
21
|
+
<style>
|
|
22
|
+
body, table, td, a { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
|
|
23
|
+
table, td { mso-table-lspace: 0pt; mso-table-rspace: 0pt; }
|
|
24
|
+
img { -ms-interpolation-mode: bicubic; border: 0; height: auto; line-height: 100%; outline: none; text-decoration: none; }
|
|
25
|
+
body { margin: 0; padding: 0; width: 100% !important; background-color: #F1F5F9; }
|
|
26
|
+
a { color: #F59E0B; }
|
|
27
|
+
@media screen and (max-width: 600px) {
|
|
28
|
+
.email-container { width: 100% !important; }
|
|
29
|
+
.fluid-padding { padding-left: 24px !important; padding-right: 24px !important; }
|
|
30
|
+
}
|
|
31
|
+
</style>
|
|
32
|
+
</head>
|
|
33
|
+
<body style="margin:0;padding:0;background-color:#F1F5F9;">
|
|
34
|
+
<div style="display:none;max-height:0;overflow:hidden;mso-hide:all;font-size:1px;line-height:1px;color:#F1F5F9;">
|
|
35
|
+
${senderName} sent you a message on ${companyName}.
|
|
36
|
+
‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌
|
|
37
|
+
</div>
|
|
38
|
+
<center style="width:100%;background-color:#F1F5F9;">
|
|
39
|
+
<!--[if mso]>
|
|
40
|
+
<table role="presentation" width="600" align="center" cellpadding="0" cellspacing="0"><tr><td>
|
|
41
|
+
<![endif]-->
|
|
42
|
+
<div class="email-container" style="max-width:600px;margin:0 auto;">
|
|
43
|
+
|
|
44
|
+
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="max-width:600px;margin:0 auto;">
|
|
45
|
+
<tr>
|
|
46
|
+
<td style="padding:36px 24px 20px 24px;text-align:center;">
|
|
47
|
+
<a href="${companyUrl}" target="_blank" style="text-decoration:none;">
|
|
48
|
+
<span style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:19px;font-weight:700;color:#0F172A;letter-spacing:-0.02em;">${companyName}</span>
|
|
49
|
+
</a>
|
|
50
|
+
</td>
|
|
51
|
+
</tr>
|
|
52
|
+
</table>
|
|
53
|
+
|
|
54
|
+
<table role="presentation" width="100%" cellpadding="0" cellspacing="0"
|
|
55
|
+
style="max-width:600px;margin:0 auto;background-color:#FFFFFF;border-radius:16px;border:1px solid #E2E8F0;">
|
|
56
|
+
<tr><td style="height:4px;line-height:4px;font-size:4px;background-color:#F59E0B;border-radius:16px 16px 0 0;" bgcolor="#F59E0B"> </td></tr>
|
|
57
|
+
<tr>
|
|
58
|
+
<td class="fluid-padding" style="padding:40px 40px 36px 40px;">
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
<table role="presentation" cellpadding="0" cellspacing="0" style="margin:0 0 24px 0;">
|
|
62
|
+
<tr>
|
|
63
|
+
<td width="56" height="56" style="width:56px;height:56px;border-radius:16px;background-color:#FEF3E2;text-align:center;vertical-align:middle;" bgcolor="#FEF3E2">
|
|
64
|
+
<div style="font-size:0;line-height:0;"><svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="#F59E0B" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M4 5.5h16V16H8.5L4.5 19V16H4z"/></svg></div>
|
|
65
|
+
</td>
|
|
66
|
+
</tr>
|
|
67
|
+
</table>
|
|
68
|
+
|
|
69
|
+
<h1 style="margin:0 0 16px 0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:22px;line-height:28px;font-weight:700;color:#0F172A;letter-spacing:-0.02em;">
|
|
70
|
+
You have a new message
|
|
71
|
+
</h1>
|
|
72
|
+
|
|
73
|
+
<p style="margin:0 0 14px 0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:15px;line-height:24px;color:#475569;"><strong>${senderName}</strong> sent you a message:</p>
|
|
74
|
+
|
|
75
|
+
<table role="presentation" cellpadding="0" cellspacing="0" width="100%" style="margin:24px 0;">
|
|
76
|
+
<tr>
|
|
77
|
+
<td style="background-color:#FEF5E7;border-left:3px solid #F59E0B;border-radius:8px;padding:14px 18px;">
|
|
78
|
+
<table role="presentation" cellpadding="0" cellspacing="0">
|
|
79
|
+
<tr>
|
|
80
|
+
<td style="vertical-align:top;padding-right:10px;padding-top:1px;"><svg width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="#F59E0B" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M4 5.5h16V16H8.5L4.5 19V16H4z"/></svg></td>
|
|
81
|
+
<td style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:13.5px;line-height:20px;color:#0F172A;">${messagePreview}</td>
|
|
82
|
+
</tr>
|
|
83
|
+
</table>
|
|
84
|
+
</td>
|
|
85
|
+
</tr>
|
|
86
|
+
</table>
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
<table role="presentation" cellpadding="0" cellspacing="0" style="margin:28px 0 4px 0;">
|
|
91
|
+
<tr>
|
|
92
|
+
<td style="border-radius:10px;background-color:#F59E0B;" bgcolor="#F59E0B">
|
|
93
|
+
<a href="${messageUrl}" target="_blank"
|
|
94
|
+
style="display:inline-block;padding:13px 28px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:15px;font-weight:600;
|
|
95
|
+
color:#ffffff;text-decoration:none;border-radius:10px;letter-spacing:-0.01em;">
|
|
96
|
+
View message
|
|
97
|
+
</a>
|
|
98
|
+
</td>
|
|
99
|
+
</tr>
|
|
100
|
+
</table>
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
</td>
|
|
105
|
+
</tr>
|
|
106
|
+
</table>
|
|
107
|
+
|
|
108
|
+
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="max-width:600px;margin:0 auto;">
|
|
109
|
+
<tr>
|
|
110
|
+
<td style="padding:28px 24px 8px 24px;text-align:center;">
|
|
111
|
+
<p style="margin:0 0 6px 0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:12.5px;line-height:18px;color:#94A3B8;">
|
|
112
|
+
${companyName} · ${companyAddress}
|
|
113
|
+
</p>
|
|
114
|
+
<p style="margin:0 0 6px 0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:12.5px;line-height:18px;color:#94A3B8;">
|
|
115
|
+
This email was sent to ${userEmail}. Need help? <a href="mailto:${supportEmail}" style="color:#94A3B8;text-decoration:underline;">${supportEmail}</a>
|
|
116
|
+
</p>
|
|
117
|
+
<p style="margin:0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:12.5px;line-height:18px;color:#94A3B8;">
|
|
118
|
+
<a href="${unsubscribeUrl}" style="color:#94A3B8;text-decoration:underline;">Unsubscribe</a>
|
|
119
|
+
·
|
|
120
|
+
© ${currentYear} ${companyName}. All rights reserved.
|
|
121
|
+
</p>
|
|
122
|
+
</td>
|
|
123
|
+
</tr>
|
|
124
|
+
</table>
|
|
125
|
+
|
|
126
|
+
</div>
|
|
127
|
+
<!--[if mso]></td></tr></table><![endif]-->
|
|
128
|
+
</center>
|
|
129
|
+
</body>
|
|
130
|
+
</html>
|
|
131
|
+
`;
|
|
132
|
+
};
|
|
133
|
+
export default newMessageEmail;
|
|
134
|
+
//# sourceMappingURL=new.message.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"new.message.js","sourceRoot":"","sources":["../../../../src/js/email/templates/new.message.ts"],"names":[],"mappings":"AAEA,MAAM,eAAe,GAAG,CAAC,EACvB,UAAU,EACV,WAAW,EACX,UAAU,EACV,cAAc,EACd,UAAU,EACV,cAAc,EACd,SAAS,EACT,YAAY,EACZ,cAAc,EACd,WAAW,GACiB,EAAU,EAAE;IACxC,OAAO;;;;;;;;0BAQiB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;MAyB9B,UAAU,0BAA0B,WAAW;;;;;;;;;;;;uBAY9B,UAAU;6LAC4J,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;4LAyBZ,UAAU;;;;;;;;uKAQ/B,cAAc;;;;;;;;;;;;qBAYhK,UAAU;;;;;;;;;;;;;;;;;;;gBAmBf,WAAW,aAAa,cAAc;;;uCAGf,SAAS,gCAAgC,YAAY,sDAAsD,YAAY;;;yBAGrI,cAAc;;uBAEhB,WAAW,IAAI,WAAW;;;;;;;;;;;CAWhD,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { NotificationEmailPlaceholders } from "../../types/email/notification.type.js";
|
|
2
|
+
declare const notificationEmail: ({ notificationTitle, notificationSummary, companyUrl, companyName, userName, notificationBody, notificationUrl, companyAddress, userEmail, supportEmail, unsubscribeUrl, currentYear, }: NotificationEmailPlaceholders) => string;
|
|
3
|
+
export default notificationEmail;
|
|
4
|
+
//# sourceMappingURL=notification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../../src/js/email/templates/notification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AAE5F,QAAA,MAAM,iBAAiB,GAAI,yLAaxB,6BAA6B,KAAG,MAuHlC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
const notificationEmail = ({ notificationTitle, notificationSummary, companyUrl, companyName, userName, notificationBody, notificationUrl, companyAddress, userEmail, supportEmail, unsubscribeUrl, currentYear, }) => {
|
|
2
|
+
return `<!DOCTYPE html>
|
|
3
|
+
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
7
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
8
|
+
<meta name="color-scheme" content="light">
|
|
9
|
+
<meta name="supported-color-schemes" content="light">
|
|
10
|
+
<title>${notificationTitle}</title>
|
|
11
|
+
<!--[if mso]>
|
|
12
|
+
<noscript>
|
|
13
|
+
<xml>
|
|
14
|
+
<o:OfficeDocumentSettings>
|
|
15
|
+
<o:PixelsPerInch>96</o:PixelsPerInch>
|
|
16
|
+
</o:OfficeDocumentSettings>
|
|
17
|
+
</xml>
|
|
18
|
+
</noscript>
|
|
19
|
+
<style>table {border-collapse:collapse;} .fallback-font {font-family: Arial, sans-serif;}</style>
|
|
20
|
+
<![endif]-->
|
|
21
|
+
<style>
|
|
22
|
+
body, table, td, a { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
|
|
23
|
+
table, td { mso-table-lspace: 0pt; mso-table-rspace: 0pt; }
|
|
24
|
+
img { -ms-interpolation-mode: bicubic; border: 0; height: auto; line-height: 100%; outline: none; text-decoration: none; }
|
|
25
|
+
body { margin: 0; padding: 0; width: 100% !important; background-color: #F1F5F9; }
|
|
26
|
+
a { color: #F59E0B; }
|
|
27
|
+
@media screen and (max-width: 600px) {
|
|
28
|
+
.email-container { width: 100% !important; }
|
|
29
|
+
.fluid-padding { padding-left: 24px !important; padding-right: 24px !important; }
|
|
30
|
+
}
|
|
31
|
+
</style>
|
|
32
|
+
</head>
|
|
33
|
+
<body style="margin:0;padding:0;background-color:#F1F5F9;">
|
|
34
|
+
<div style="display:none;max-height:0;overflow:hidden;mso-hide:all;font-size:1px;line-height:1px;color:#F1F5F9;">
|
|
35
|
+
${notificationSummary}
|
|
36
|
+
‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌
|
|
37
|
+
</div>
|
|
38
|
+
<center style="width:100%;background-color:#F1F5F9;">
|
|
39
|
+
<!--[if mso]>
|
|
40
|
+
<table role="presentation" width="600" align="center" cellpadding="0" cellspacing="0"><tr><td>
|
|
41
|
+
<![endif]-->
|
|
42
|
+
<div class="email-container" style="max-width:600px;margin:0 auto;">
|
|
43
|
+
|
|
44
|
+
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="max-width:600px;margin:0 auto;">
|
|
45
|
+
<tr>
|
|
46
|
+
<td style="padding:36px 24px 20px 24px;text-align:center;">
|
|
47
|
+
<a href="${companyUrl}" target="_blank" style="text-decoration:none;">
|
|
48
|
+
<span style="font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:19px;font-weight:700;color:#0F172A;letter-spacing:-0.02em;">${companyName}</span>
|
|
49
|
+
</a>
|
|
50
|
+
</td>
|
|
51
|
+
</tr>
|
|
52
|
+
</table>
|
|
53
|
+
|
|
54
|
+
<table role="presentation" width="100%" cellpadding="0" cellspacing="0"
|
|
55
|
+
style="max-width:600px;margin:0 auto;background-color:#FFFFFF;border-radius:16px;border:1px solid #E2E8F0;">
|
|
56
|
+
<tr><td style="height:4px;line-height:4px;font-size:4px;background-color:#F59E0B;border-radius:16px 16px 0 0;" bgcolor="#F59E0B"> </td></tr>
|
|
57
|
+
<tr>
|
|
58
|
+
<td class="fluid-padding" style="padding:40px 40px 36px 40px;">
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
<table role="presentation" cellpadding="0" cellspacing="0" style="margin:0 0 24px 0;">
|
|
62
|
+
<tr>
|
|
63
|
+
<td width="56" height="56" style="width:56px;height:56px;border-radius:16px;background-color:#FEF3E2;text-align:center;vertical-align:middle;" bgcolor="#FEF3E2">
|
|
64
|
+
<div style="font-size:0;line-height:0;"><svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="#F59E0B" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M6 10.2a6 6 0 0112 0c0 4.8 1.8 6 1.8 6H4.2s1.8-1.2 1.8-6z"/><path d="M10 19.8a2 2 0 004 0"/></svg></div>
|
|
65
|
+
</td>
|
|
66
|
+
</tr>
|
|
67
|
+
</table>
|
|
68
|
+
|
|
69
|
+
<h1 style="margin:0 0 16px 0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:22px;line-height:28px;font-weight:700;color:#0F172A;letter-spacing:-0.02em;">
|
|
70
|
+
${notificationTitle}
|
|
71
|
+
</h1>
|
|
72
|
+
|
|
73
|
+
<p style="margin:0 0 14px 0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:15px;line-height:24px;color:#475569;">Hi ${userName}, ${notificationBody}</p>
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
<table role="presentation" cellpadding="0" cellspacing="0" style="margin:28px 0 4px 0;">
|
|
79
|
+
<tr>
|
|
80
|
+
<td style="border-radius:10px;background-color:#F59E0B;" bgcolor="#F59E0B">
|
|
81
|
+
<a href="${notificationUrl}" target="_blank"
|
|
82
|
+
style="display:inline-block;padding:13px 28px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:15px;font-weight:600;
|
|
83
|
+
color:#ffffff;text-decoration:none;border-radius:10px;letter-spacing:-0.01em;">
|
|
84
|
+
View details
|
|
85
|
+
</a>
|
|
86
|
+
</td>
|
|
87
|
+
</tr>
|
|
88
|
+
</table>
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
</td>
|
|
93
|
+
</tr>
|
|
94
|
+
</table>
|
|
95
|
+
|
|
96
|
+
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="max-width:600px;margin:0 auto;">
|
|
97
|
+
<tr>
|
|
98
|
+
<td style="padding:28px 24px 8px 24px;text-align:center;">
|
|
99
|
+
<p style="margin:0 0 6px 0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:12.5px;line-height:18px;color:#94A3B8;">
|
|
100
|
+
${companyName} · ${companyAddress}
|
|
101
|
+
</p>
|
|
102
|
+
<p style="margin:0 0 6px 0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:12.5px;line-height:18px;color:#94A3B8;">
|
|
103
|
+
This email was sent to ${userEmail}. Need help? <a href="mailto:${supportEmail}" style="color:#94A3B8;text-decoration:underline;">${supportEmail}</a>
|
|
104
|
+
</p>
|
|
105
|
+
<p style="margin:0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:12.5px;line-height:18px;color:#94A3B8;">
|
|
106
|
+
<a href="${unsubscribeUrl}" style="color:#94A3B8;text-decoration:underline;">Unsubscribe</a>
|
|
107
|
+
·
|
|
108
|
+
© ${currentYear} ${companyName}. All rights reserved.
|
|
109
|
+
</p>
|
|
110
|
+
</td>
|
|
111
|
+
</tr>
|
|
112
|
+
</table>
|
|
113
|
+
|
|
114
|
+
</div>
|
|
115
|
+
<!--[if mso]></td></tr></table><![endif]-->
|
|
116
|
+
</center>
|
|
117
|
+
</body>
|
|
118
|
+
</html>
|
|
119
|
+
`;
|
|
120
|
+
};
|
|
121
|
+
export default notificationEmail;
|
|
122
|
+
//# sourceMappingURL=notification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.js","sourceRoot":"","sources":["../../../../src/js/email/templates/notification.ts"],"names":[],"mappings":"AAEA,MAAM,iBAAiB,GAAG,CAAC,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,UAAU,EACV,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,SAAS,EACT,YAAY,EACZ,cAAc,EACd,WAAW,GACmB,EAAU,EAAE;IAC1C,OAAO;;;;;;;;SAQA,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;MAyBpB,mBAAmB;;;;;;;;;;;;uBAYF,UAAU;6LAC4J,WAAW;;;;;;;;;;;;;;;;;;;;;;gBAsBxL,iBAAiB;;;uLAGsJ,QAAQ,KAAK,gBAAgB;;;;;;;;qBAQ/L,eAAe;;;;;;;;;;;;;;;;;;;gBAmBpB,WAAW,aAAa,cAAc;;;uCAGf,SAAS,gCAAgC,YAAY,sDAAsD,YAAY;;;yBAGrI,cAAc;;uBAEhB,WAAW,IAAI,WAAW;;;;;;;;;;;CAWhD,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { OrderCancelledEmailPlaceholders } from "../../types/email/order.cancelled.type.js";
|
|
2
|
+
declare const orderCancelledEmail: ({ orderNumber, companyUrl, companyName, userName, cancellationReason, refundAmount, supportEmail, companyAddress, userEmail, unsubscribeUrl, currentYear, }: OrderCancelledEmailPlaceholders) => string;
|
|
3
|
+
export default orderCancelledEmail;
|
|
4
|
+
//# sourceMappingURL=order.cancelled.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order.cancelled.d.ts","sourceRoot":"","sources":["../../../../src/js/email/templates/order.cancelled.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,2CAA2C,CAAC;AAEjG,QAAA,MAAM,mBAAmB,GAAI,6JAY1B,+BAA+B,KAAG,MAiIpC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|