) {
+ setInterval(() => {
+ console.log('Processed:', (RedisStreamService.processed / 30).toFixed(), '/s');
+ RedisStreamService.processed = 0;
+ }, 30_000)
+
try {
console.log('Start reading loop');
await this.client.xGroupCreate(options.streamName, 'broker', '0', { MKSTREAM: true, });
diff --git a/shared/services/email_templates/Limit50Email.ts b/shared/services/email_templates/Limit50Email.ts
index e23b8b9..8b9ca46 100644
--- a/shared/services/email_templates/Limit50Email.ts
+++ b/shared/services/email_templates/Limit50Email.ts
@@ -1,101 +1,31 @@
-export const LIMIT_50_EMAIL = `
-
+export const LIMIT_50_EMAIL = `
-
+
- LitLyx Limit Reached Email
-
+ You’ve reached 50% limit on Litlyx
+
+
+ Dear User,
+
+ We wanted to let you know that [Project Name] on Litlyx has reached 50% of its data collection limit for this month.
+
+ To avoid losing precious data, please remember to monitor your usage on the Litlyx Dashboard. You can find your current usage details under Settings > Billing Tab.
+
+ If you need more data collection storage, you may consider upgrading your plan to get additional benefits and ensure uninterrupted data collection.
+
+ Feel free to reply to this email or contact us at help@litlyx.com if you have any questions or need assistance.
+
+ Thank you for choosing Litlyx every day as your analytics tool.
+
+ Have a nice day!
+
+ Antonio,
+ CEO | Litlyx
-
-
-
-
-
-
How can I upgrade the plan?
-
We offer different plans, each of them follows the stage of your project, so based on the reach, you should upgrade to the most appropriate one for your web platform. It takes 1 minute to upgrade the plan! You can find everything in the "Billing" section in the left menu of your dashboard.
-
Visit your dashboard
-
-
-
We are in early phases!
-
Want to become an early adopter? Book a demo with me! I'm Antonio & I'll guide you through all the features and benefits of LitLyx. A big discount is waiting for you❗️❗️❗️
-
Book a Demo with Me!
-
-
-
-
+
`
diff --git a/shared/services/email_templates/Limit90Email.ts b/shared/services/email_templates/Limit90Email.ts
new file mode 100644
index 0000000..97e9f7a
--- /dev/null
+++ b/shared/services/email_templates/Limit90Email.ts
@@ -0,0 +1,31 @@
+export const LIMIT_90_EMAIL = `
+
+
+
+
+
+ You’ve reached 90% limit on Litlyx
+
+
+
+ Dear User,
+
+ We wanted to let you know that [Project Name] on Litlyx has reached 90% of its data collection limit for this month.
+
+ To avoid losing precious data, please remember to monitor your usage on the Litlyx Dashboard. You can find your current usage details under Settings > Billing Tab.
+
+ If you need more data collection storage, you may consider upgrading your plan to get additional benefits and ensure uninterrupted data collection.
+
+ Feel free to reply to this email or contact us at help@litlyx.com if you have any questions or need assistance.
+
+ Thank you for choosing Litlyx every day as your analytics tool.
+
+ Have a nice day!
+
+ Antonio,
+ CEO | Litlyx
+
+
+
+
+`
diff --git a/shared/services/email_templates/LimitMaxEmail.ts b/shared/services/email_templates/LimitMaxEmail.ts
new file mode 100644
index 0000000..ec01294
--- /dev/null
+++ b/shared/services/email_templates/LimitMaxEmail.ts
@@ -0,0 +1,32 @@
+export const LIMIT_MAX_EMAIL = `
+
+
+
+
+
+ ❗️ You’ve reached your limit on Litlyx!
+
+
+
+ Dear User,
+
+ We wanted to let you know that [Project Name] on Litlyx has reached the limit of your current plan.
+
+ To avoid losing precious data, please remember to monitor your usage on the Litlyx Dashboard. You can find your current usage details under Settings > Billing Tab.
+
+ If you need more data collection storage, you may consider upgrading your plan to get additional benefits and ensure uninterrupted data collection.
+
+ Feel free to reply to this email or contact us at help@litlyx.com if you have any questions or need assistance.
+
+ Thank you for choosing Litlyx every day as your analytics tool.
+
+ Have a nice day!
+
+ Antonio,
+ CEO | Litlyx
+
+
+
+
+
+`
diff --git a/shared/services/email_templates/WelcomeEmail.ts b/shared/services/email_templates/WelcomeEmail.ts
index fc100c8..3e9da62 100644
--- a/shared/services/email_templates/WelcomeEmail.ts
+++ b/shared/services/email_templates/WelcomeEmail.ts
@@ -1,378 +1,39 @@
export const WELCOME_EMAIL = `
-
+
-
+
+
+
-
- Welcome Email Litlyx
-
-
-
-
-
- | |
-
-
-
-
-
-
-
-
-
- |
- Hi 👋 Welcome to Litlyx!
- We value your time so we will keep this simple.
- We are happy to have you onboard! 🎊
- We leave you a super fast video tutorial, just 1 minute where our CEO, Antonio, explain the very basics of Litlyx and will guide you to start logging analytics today for your website or web app!
-
- Good luck! Enjoy your KPIs in real-time. Start now visiting the dashboard!
-
- If you have any question, you can find us at: help@litlyx.com, we will respond in less than a work day.
- |
-
-
-
-
-
-
-
-
-
-
-
- |
- |
-
-
-
+
`
\ No newline at end of file
diff --git a/shared/services/email_templates/limit_50.html b/shared/services/email_templates/limit_50.html
new file mode 100644
index 0000000..b068122
--- /dev/null
+++ b/shared/services/email_templates/limit_50.html
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+ You’ve reached 50% limit on Litlyx
+
+
+
+
+ You’ve reached 50% limit on Litlyx
+
+ Dear User,
+
+ We wanted to let you know that [Project Name] on Litlyx has reached 50% of its data collection limit for this month.
+
+ To avoid losing precious data, please remember to monitor your usage on the Litlyx Dashboard. You can find your current usage details under Settings > Billing Tab.
+
+ If you need more data collection storage, you may consider upgrading your plan to get additional benefits and ensure uninterrupted data collection.
+
+ Feel free to reply to this email or contact us at help@litlyx.com if you have any questions or need assistance.
+
+ Thank you for choosing Litlyx every day as your analytics tool.
+
+ Have a nice day!
+
+ Antonio,
+ CEO | Litlyx
+
+
+
diff --git a/shared/services/email_templates/limit_90.html b/shared/services/email_templates/limit_90.html
new file mode 100644
index 0000000..49fc892
--- /dev/null
+++ b/shared/services/email_templates/limit_90.html
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+ You’ve reached 90% limit on Litlyx
+
+
+
+
+ You’ve reached 90% limit on Litlyx
+
+ Dear User,
+
+ We wanted to let you know that [Project Name] on Litlyx has reached 90% of its data collection limit for this month.
+
+ To avoid losing precious data, please remember to monitor your usage on the Litlyx Dashboard. You can find your current usage details under Settings > Billing Tab.
+
+ If you need more data collection storage, you may consider upgrading your plan to get additional benefits and ensure uninterrupted data collection.
+
+ Feel free to reply to this email or contact us at help@litlyx.com if you have any questions or need assistance.
+
+ Thank you for choosing Litlyx every day as your analytics tool.
+
+ Have a nice day!
+
+ Antonio,
+ CEO | Litlyx
+
+
+
diff --git a/shared/services/email_templates/limit_max.html b/shared/services/email_templates/limit_max.html
new file mode 100644
index 0000000..ea69d2c
--- /dev/null
+++ b/shared/services/email_templates/limit_max.html
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+ ❗️ You’ve reached your limit on Litlyx!
+
+
+
+
+ ❗️ You’ve reached your limit on Litlyx!
+
+ Dear User,
+
+ We wanted to let you know that [Project Name] on Litlyx has reached the limit of your current plan.
+
+ To avoid losing precious data, please remember to monitor your usage on the Litlyx Dashboard. You can find your current usage details under Settings > Billing Tab.
+
+ If you need more data collection storage, you may consider upgrading your plan to get additional benefits and ensure uninterrupted data collection.
+
+ Feel free to reply to this email or contact us at help@litlyx.com if you have any questions or need assistance.
+
+ Thank you for choosing Litlyx every day as your analytics tool.
+
+ Have a nice day!
+
+ Antonio,
+ CEO | Litlyx
+
+
+
diff --git a/shared/services/email_templates/welcome.html b/shared/services/email_templates/welcome.html
new file mode 100644
index 0000000..0b2764d
--- /dev/null
+++ b/shared/services/email_templates/welcome.html
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+ Welcome to Litlyx!
+
+
+
+
+ Welcome to Litlyx!
+
+ We’re happy to have you onboard,
+
+ At Litlyx, we’re committed to creating the best analytics collection experience for everybody, starting from developers.
+
+ Here are a few things you can do to get started tracking analytics today:
+
+
+ - Create a new project – by just naming it
+ - Copy the universal Script – we provide you the snippets to copy in your index.html file and start instantly to track metrics on your website or web app.
+ - Third Step – Encourage engagement or interaction.
+
+
+ If you have any questions or need support, visit docs.litlyx.com.
+
+ Feel free to reply to this email or reach out to our team at help@litlyx.com. We’re here to help!
+
+ Link to Discord for developer support: https://discord.com/invite/9cQykjsmWX
+
+ Thank you for joining us, and we look forward to seeing you around.
+
+ We want to make analytics the freshest thing on the web.
+
+ Antonio,
+ CEO | Litlyx
+
+
+
\ No newline at end of file