@wrcb/cb-common 1.0.822 → 1.0.824

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.
@@ -680,6 +680,56 @@ TenantDataService.tenantDataMap = {
680
680
  maxCriteriaCount: 5
681
681
  }
682
682
  },
683
+ [tenant_1.Tenant.Babelia]: {
684
+ TENANT: tenant_1.Tenant.Babelia,
685
+ BACKEND_API_VERSION: '2',
686
+ SITE_NAME: 'Babelia',
687
+ SITE_URL: 'https://wrsolucoesdigitais.com.br/babelia',
688
+ SITE_WHATSAPP_SUPPORT: '',
689
+ SITE_WHATSAPP_BOT: '',
690
+ WHATSAPP_BOT_NUMBER_ID: '',
691
+ WHATSAPP_TOKEN: '',
692
+ WHATSAPP_API_URL: '',
693
+ WHATSAPP_API_VERSION: '',
694
+ IOS_APP_DOWNLOAD_LINK: 'https://linkios.com',
695
+ ANDROID_APP_DOWNLOAD_LINK: 'https://linkandroid.com',
696
+ SITE_DESCRIPTION: 'Babelia é o seu tradutor universal para o mundo digital, quebrando barreiras linguísticas e conectando pessoas de todas as culturas com facilidade e precisão.',
697
+ KEYWORDS: ['tradução'],
698
+ SOCIAL_X: 'https://x.com/babelia',
699
+ SOCIAL_YOUTUBE: 'https://youtube.com/babelia',
700
+ SOCIAL_INSTAGRAM: 'https://instagram.com/babelia',
701
+ SOCIAL_FACEBOOK: 'https://facebook.com/babelia',
702
+ USER_CATEGORIES_CONFIG: {},
703
+ COUPONS_TYPE_ALLOWED_TO_BE_CREATED_BY_SELLER: [],
704
+ COUPONS_TYPE_ALLOWED_TO_BE_CREATED_BY_ADMIN: [],
705
+ EMAIL_HOST: 'smtp.gmail.com',
706
+ EMAIL_PORT: '587',
707
+ EMAIL_USER: 'wrsolucoesdig@gmail.com',
708
+ EMAIL_PASS: 'lwegguaqrzauawsg', // CORRETO lwegguaqrzauawsg
709
+ AUTH_FACEBOOK_APP_ID: '',
710
+ AUTH_GOOGLE_ID: '',
711
+ AUTH_GOOGLE_SECRET: '',
712
+ GOOGLE_ANALYTICS_MEASUREMENT_ID: '',
713
+ GOOGLE_VERIFICATION: '',
714
+ MEDIA_CONFIG: {
715
+ maxPhotoSizeMB: 5,
716
+ maxVideoSizeMB: 20,
717
+ allowedImageFormats: ['jpg', 'jpeg', 'png', 'webp'],
718
+ allowedVideoFormats: ['mp4', 'webm'],
719
+ imageQualities: {
720
+ thumbnail: { width: 150, height: 150, quality: 80 },
721
+ medium: { width: 800, height: 800, quality: 85 },
722
+ large: { width: 1200, height: 1200, quality: 90 }
723
+ }
724
+ },
725
+ RATING_CRITERIA: {
726
+ criteriaOptions: [
727
+ 'learning' // Custo-benefício
728
+ ],
729
+ minCriteriaCount: 1,
730
+ maxCriteriaCount: 5
731
+ }
732
+ },
683
733
  [tenant_1.Tenant.BrainrotColoring]: {
684
734
  TENANT: tenant_1.Tenant.BrainrotColoring,
685
735
  BACKEND_API_VERSION: '1',
@@ -10,3 +10,5 @@ export declare const SMA_PLAN_WEEKLY_LIMITS: Record<SmaSubscriptionPlan, {
10
10
  posts: number | null;
11
11
  carousels: number | null;
12
12
  }>;
13
+ /** null = ilimitado. Limite de empresas por plano (aplicado a usuários Consumer). */
14
+ export declare const SMA_PLAN_BUSINESS_LIMIT: Record<SmaSubscriptionPlan, number | null>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SMA_PLAN_WEEKLY_LIMITS = exports.SMA_FREE_LIFETIME_POSTS = exports.SmaSubscriptionPlan = void 0;
3
+ exports.SMA_PLAN_BUSINESS_LIMIT = exports.SMA_PLAN_WEEKLY_LIMITS = exports.SMA_FREE_LIFETIME_POSTS = exports.SmaSubscriptionPlan = void 0;
4
4
  var SmaSubscriptionPlan;
5
5
  (function (SmaSubscriptionPlan) {
6
6
  SmaSubscriptionPlan["Free"] = "free";
@@ -13,6 +13,13 @@ exports.SMA_FREE_LIFETIME_POSTS = 3;
13
13
  exports.SMA_PLAN_WEEKLY_LIMITS = {
14
14
  [SmaSubscriptionPlan.Free]: { posts: null, carousels: 0 },
15
15
  [SmaSubscriptionPlan.Essencial]: { posts: 3, carousels: 3 },
16
- [SmaSubscriptionPlan.Crescimento]: { posts: 6, carousels: 6 },
16
+ [SmaSubscriptionPlan.Crescimento]: { posts: 6, carousels: 6 }, // total entre todas as empresas
17
17
  [SmaSubscriptionPlan.Escala]: { posts: null, carousels: null },
18
18
  };
19
+ /** null = ilimitado. Limite de empresas por plano (aplicado a usuários Consumer). */
20
+ exports.SMA_PLAN_BUSINESS_LIMIT = {
21
+ [SmaSubscriptionPlan.Free]: 1,
22
+ [SmaSubscriptionPlan.Essencial]: 1,
23
+ [SmaSubscriptionPlan.Crescimento]: 2,
24
+ [SmaSubscriptionPlan.Escala]: null,
25
+ };
@@ -8,6 +8,7 @@ export declare enum Tenant {
8
8
  RealStateVideos = "RealStateVideos",
9
9
  CaloriesNutri = "CaloriesNutri",
10
10
  YoutubeDark = "YoutubeDark",
11
+ Babelia = "Babelia",
11
12
  LeadAutomator = "LeadAutomator",
12
13
  SocialMediaAutomator = "SocialMediaAutomator"
13
14
  }
@@ -12,6 +12,7 @@ var Tenant;
12
12
  Tenant["RealStateVideos"] = "RealStateVideos";
13
13
  Tenant["CaloriesNutri"] = "CaloriesNutri";
14
14
  Tenant["YoutubeDark"] = "YoutubeDark";
15
+ Tenant["Babelia"] = "Babelia";
15
16
  Tenant["LeadAutomator"] = "LeadAutomator";
16
17
  Tenant["SocialMediaAutomator"] = "SocialMediaAutomator";
17
18
  })(Tenant || (exports.Tenant = Tenant = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrcb/cb-common",
3
- "version": "1.0.822",
3
+ "version": "1.0.824",
4
4
  "description": "Common resources between services",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",