@wrcb/cb-common 1.0.820 → 1.0.822

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/build/index.d.ts CHANGED
@@ -39,6 +39,8 @@ export * from './types/imageProcessingStatus';
39
39
  export * from './types/whatsapp';
40
40
  export * from './types/leadAutomator';
41
41
  export * from './types/socialMediaAutomator';
42
+ export * from './types/smaSubscriptionPlan';
43
+ export * from './types/smaSubscriptionStatus';
42
44
  export * from './types/calNutri';
43
45
  export * from './types/politicaBetCategory';
44
46
  export * from './types/predictionStatus';
package/build/index.js CHANGED
@@ -57,6 +57,8 @@ __exportStar(require("./types/whatsapp"), exports);
57
57
  __exportStar(require("./types/leadAutomator"), exports);
58
58
  // social-media-automator
59
59
  __exportStar(require("./types/socialMediaAutomator"), exports);
60
+ __exportStar(require("./types/smaSubscriptionPlan"), exports);
61
+ __exportStar(require("./types/smaSubscriptionStatus"), exports);
60
62
  // cal-nutri
61
63
  __exportStar(require("./types/calNutri"), exports);
62
64
  // politicabet
@@ -0,0 +1,12 @@
1
+ export declare enum SmaSubscriptionPlan {
2
+ Free = "free",
3
+ Essencial = "essencial",
4
+ Crescimento = "crescimento",
5
+ Escala = "escala"
6
+ }
7
+ export declare const SMA_FREE_LIFETIME_POSTS = 3;
8
+ /** null = sem limite (Escala personalizado). Free usa limite vitalício, não semanal. */
9
+ export declare const SMA_PLAN_WEEKLY_LIMITS: Record<SmaSubscriptionPlan, {
10
+ posts: number | null;
11
+ carousels: number | null;
12
+ }>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SMA_PLAN_WEEKLY_LIMITS = exports.SMA_FREE_LIFETIME_POSTS = exports.SmaSubscriptionPlan = void 0;
4
+ var SmaSubscriptionPlan;
5
+ (function (SmaSubscriptionPlan) {
6
+ SmaSubscriptionPlan["Free"] = "free";
7
+ SmaSubscriptionPlan["Essencial"] = "essencial";
8
+ SmaSubscriptionPlan["Crescimento"] = "crescimento";
9
+ SmaSubscriptionPlan["Escala"] = "escala";
10
+ })(SmaSubscriptionPlan || (exports.SmaSubscriptionPlan = SmaSubscriptionPlan = {}));
11
+ exports.SMA_FREE_LIFETIME_POSTS = 3;
12
+ /** null = sem limite (Escala personalizado). Free usa limite vitalício, não semanal. */
13
+ exports.SMA_PLAN_WEEKLY_LIMITS = {
14
+ [SmaSubscriptionPlan.Free]: { posts: null, carousels: 0 },
15
+ [SmaSubscriptionPlan.Essencial]: { posts: 3, carousels: 3 },
16
+ [SmaSubscriptionPlan.Crescimento]: { posts: 6, carousels: 6 },
17
+ [SmaSubscriptionPlan.Escala]: { posts: null, carousels: null },
18
+ };
@@ -0,0 +1,5 @@
1
+ export declare enum SmaSubscriptionStatus {
2
+ Active = "active",
3
+ PastDue = "past_due",
4
+ Cancelled = "cancelled"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SmaSubscriptionStatus = void 0;
4
+ var SmaSubscriptionStatus;
5
+ (function (SmaSubscriptionStatus) {
6
+ SmaSubscriptionStatus["Active"] = "active";
7
+ SmaSubscriptionStatus["PastDue"] = "past_due";
8
+ SmaSubscriptionStatus["Cancelled"] = "cancelled";
9
+ })(SmaSubscriptionStatus || (exports.SmaSubscriptionStatus = SmaSubscriptionStatus = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrcb/cb-common",
3
- "version": "1.0.820",
3
+ "version": "1.0.822",
4
4
  "description": "Common resources between services",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",