@wrcb/cb-common 1.0.822 → 1.0.823

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.
@@ -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
+ };
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.823",
4
4
  "description": "Common resources between services",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",