@wrcb/cb-common 1.0.848 → 1.0.849

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.
@@ -0,0 +1,12 @@
1
+ import { Subjects } from '../subjects';
2
+ export interface LinkedinPostGeneratedEvent {
3
+ subject: Subjects.LinkedinPostGenerated;
4
+ data: {
5
+ userId: string;
6
+ email: string;
7
+ postId: string;
8
+ postTitle: string;
9
+ postText: string;
10
+ scheduledPublishAt: string;
11
+ };
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { Publisher } from '../basePublisher';
2
+ import { LinkedinPostGeneratedEvent } from './linkedinPostGeneratedEvent';
3
+ import { Subjects } from '../subjects';
4
+ export declare class LinkedinPostGeneratedPublisher extends Publisher<LinkedinPostGeneratedEvent> {
5
+ subject: Subjects.LinkedinPostGenerated;
6
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LinkedinPostGeneratedPublisher = void 0;
4
+ const basePublisher_1 = require("../basePublisher");
5
+ const subjects_1 = require("../subjects");
6
+ class LinkedinPostGeneratedPublisher extends basePublisher_1.Publisher {
7
+ constructor() {
8
+ super(...arguments);
9
+ this.subject = subjects_1.Subjects.LinkedinPostGenerated;
10
+ }
11
+ }
12
+ exports.LinkedinPostGeneratedPublisher = LinkedinPostGeneratedPublisher;
@@ -0,0 +1,12 @@
1
+ import { Subjects } from '../subjects';
2
+ export interface LinkedinPostPublishedEvent {
3
+ subject: Subjects.LinkedinPostPublished;
4
+ data: {
5
+ userId: string;
6
+ email: string;
7
+ postId: string;
8
+ postTitle: string;
9
+ postText: string;
10
+ publishedAt: string;
11
+ };
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { Publisher } from '../basePublisher';
2
+ import { LinkedinPostPublishedEvent } from './linkedinPostPublishedEvent';
3
+ import { Subjects } from '../subjects';
4
+ export declare class LinkedinPostPublishedPublisher extends Publisher<LinkedinPostPublishedEvent> {
5
+ subject: Subjects.LinkedinPostPublished;
6
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LinkedinPostPublishedPublisher = void 0;
4
+ const basePublisher_1 = require("../basePublisher");
5
+ const subjects_1 = require("../subjects");
6
+ class LinkedinPostPublishedPublisher extends basePublisher_1.Publisher {
7
+ constructor() {
8
+ super(...arguments);
9
+ this.subject = subjects_1.Subjects.LinkedinPostPublished;
10
+ }
11
+ }
12
+ exports.LinkedinPostPublishedPublisher = LinkedinPostPublishedPublisher;
@@ -62,5 +62,7 @@ export declare enum Subjects {
62
62
  SMAVideoReady = "sma:video:ready",
63
63
  SMAPostPublished = "sma:post:published",
64
64
  SMAPostFailed = "sma:post:failed",
65
- AIRequestMade = "ai:request:made"
65
+ AIRequestMade = "ai:request:made",
66
+ LinkedinPostGenerated = "linkedin:post:generated",
67
+ LinkedinPostPublished = "linkedin:post:published"
66
68
  }
@@ -75,4 +75,7 @@ var Subjects;
75
75
  Subjects["SMAPostFailed"] = "sma:post:failed";
76
76
  // ai tracking
77
77
  Subjects["AIRequestMade"] = "ai:request:made";
78
+ // linkedin-automator
79
+ Subjects["LinkedinPostGenerated"] = "linkedin:post:generated";
80
+ Subjects["LinkedinPostPublished"] = "linkedin:post:published";
78
81
  })(Subjects || (exports.Subjects = Subjects = {}));
package/build/index.d.ts CHANGED
@@ -42,6 +42,7 @@ export * from './types/socialMediaAutomator';
42
42
  export * from './types/smaSubscriptionPlan';
43
43
  export * from './types/smaSubscriptionStatus';
44
44
  export * from './types/calNutri';
45
+ export * from './types/linkedinAutomator';
45
46
  export * from './types/babelia';
46
47
  export * from './types/socialCredential';
47
48
  export * from './types/politicaBetCategory';
package/build/index.js CHANGED
@@ -61,6 +61,8 @@ __exportStar(require("./types/smaSubscriptionPlan"), exports);
61
61
  __exportStar(require("./types/smaSubscriptionStatus"), exports);
62
62
  // cal-nutri
63
63
  __exportStar(require("./types/calNutri"), exports);
64
+ // linkedin-automator
65
+ __exportStar(require("./types/linkedinAutomator"), exports);
64
66
  // babelia
65
67
  __exportStar(require("./types/babelia"), exports);
66
68
  // social credentials (multi-tenant, multi-platform)
package/build/server.d.ts CHANGED
@@ -88,6 +88,10 @@ export * from './events/compranomia/sellerProductDeletedEvent';
88
88
  export * from './events/apps/imageCreatedEvent';
89
89
  export * from './events/apps/creativeVideoReadyEvent';
90
90
  export * from './events/realstate/realStateVideoCreatedEvent';
91
+ export * from './events/linkedin-automator/linkedinPostGeneratedEvent';
92
+ export * from './events/linkedin-automator/linkedinPostGeneratedPublisher';
93
+ export * from './events/linkedin-automator/linkedinPostPublishedEvent';
94
+ export * from './events/linkedin-automator/linkedinPostPublishedPublisher';
91
95
  export * from './services/RedisService';
92
96
  export * from './services/TenantDataService';
93
97
  export * from './services/WasabiUploader';
package/build/server.js CHANGED
@@ -104,6 +104,11 @@ __exportStar(require("./events/compranomia/sellerProductDeletedEvent"), exports)
104
104
  __exportStar(require("./events/apps/imageCreatedEvent"), exports);
105
105
  __exportStar(require("./events/apps/creativeVideoReadyEvent"), exports);
106
106
  __exportStar(require("./events/realstate/realStateVideoCreatedEvent"), exports);
107
+ // linkedin-automator
108
+ __exportStar(require("./events/linkedin-automator/linkedinPostGeneratedEvent"), exports);
109
+ __exportStar(require("./events/linkedin-automator/linkedinPostGeneratedPublisher"), exports);
110
+ __exportStar(require("./events/linkedin-automator/linkedinPostPublishedEvent"), exports);
111
+ __exportStar(require("./events/linkedin-automator/linkedinPostPublishedPublisher"), exports);
107
112
  __exportStar(require("./services/RedisService"), exports);
108
113
  __exportStar(require("./services/TenantDataService"), exports);
109
114
  __exportStar(require("./services/WasabiUploader"), exports);
@@ -1052,5 +1052,49 @@ TenantDataService.tenantDataMap = {
1052
1052
  }
1053
1053
  },
1054
1054
  RATING_CRITERIA: undefined
1055
+ },
1056
+ [tenant_1.Tenant.LinkedinAutomator]: {
1057
+ TENANT: tenant_1.Tenant.LinkedinAutomator,
1058
+ BACKEND_API_VERSION: '1',
1059
+ SITE_NAME: 'LinkedIn Automator',
1060
+ SITE_URL: 'https://linkedinautomator.com',
1061
+ SITE_WHATSAPP_SUPPORT: '37988083717',
1062
+ SITE_WHATSAPP_BOT: '',
1063
+ WHATSAPP_BOT_NUMBER_ID: '',
1064
+ WHATSAPP_TOKEN: '',
1065
+ WHATSAPP_API_URL: '',
1066
+ WHATSAPP_API_VERSION: '',
1067
+ IOS_APP_DOWNLOAD_LINK: '',
1068
+ ANDROID_APP_DOWNLOAD_LINK: '',
1069
+ SITE_DESCRIPTION: 'Automatize seu conteúdo no LinkedIn com IA',
1070
+ KEYWORDS: ['linkedin', 'conteudo', 'ia', 'carreira', 'automacao'],
1071
+ SOCIAL_X: '',
1072
+ SOCIAL_YOUTUBE: '',
1073
+ SOCIAL_INSTAGRAM: '',
1074
+ SOCIAL_FACEBOOK: '',
1075
+ USER_CATEGORIES_CONFIG: {},
1076
+ COUPONS_TYPE_ALLOWED_TO_BE_CREATED_BY_SELLER: [],
1077
+ COUPONS_TYPE_ALLOWED_TO_BE_CREATED_BY_ADMIN: [],
1078
+ EMAIL_HOST: 'smtp.gmail.com',
1079
+ EMAIL_PORT: '587',
1080
+ EMAIL_USER: 'wrsolucoesdig@gmail.com',
1081
+ EMAIL_PASS: 'lwegguaqrzauawsg',
1082
+ AUTH_FACEBOOK_APP_ID: '',
1083
+ AUTH_GOOGLE_ID: '',
1084
+ AUTH_GOOGLE_SECRET: '',
1085
+ GOOGLE_ANALYTICS_MEASUREMENT_ID: '',
1086
+ GOOGLE_VERIFICATION: '',
1087
+ MEDIA_CONFIG: {
1088
+ maxPhotoSizeMB: 10,
1089
+ maxVideoSizeMB: 500,
1090
+ allowedImageFormats: ['jpg', 'jpeg', 'png', 'webp'],
1091
+ allowedVideoFormats: ['mp4', 'webm', 'mov'],
1092
+ imageQualities: {
1093
+ thumbnail: { width: 150, height: 150, quality: 80 },
1094
+ medium: { width: 800, height: 800, quality: 85 },
1095
+ large: { width: 1200, height: 1200, quality: 90 }
1096
+ }
1097
+ },
1098
+ RATING_CRITERIA: undefined
1055
1099
  }
1056
1100
  };
@@ -0,0 +1,17 @@
1
+ export declare enum LiPostStatus {
2
+ Draft = "draft",
3
+ Pending = "pending",
4
+ Published = "published",
5
+ Failed = "failed"
6
+ }
7
+ export declare enum LiApprovalMode {
8
+ Manual = "manual",
9
+ SemiAutomatic = "semiAutomatic",
10
+ Automatic = "automatic"
11
+ }
12
+ export declare enum LiVoiceTone {
13
+ Fun = "fun",
14
+ Serious = "serious",
15
+ Technical = "technical",
16
+ Inspirational = "inspirational"
17
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LiVoiceTone = exports.LiApprovalMode = exports.LiPostStatus = void 0;
4
+ var LiPostStatus;
5
+ (function (LiPostStatus) {
6
+ LiPostStatus["Draft"] = "draft";
7
+ LiPostStatus["Pending"] = "pending";
8
+ LiPostStatus["Published"] = "published";
9
+ LiPostStatus["Failed"] = "failed";
10
+ })(LiPostStatus || (exports.LiPostStatus = LiPostStatus = {}));
11
+ var LiApprovalMode;
12
+ (function (LiApprovalMode) {
13
+ LiApprovalMode["Manual"] = "manual";
14
+ LiApprovalMode["SemiAutomatic"] = "semiAutomatic";
15
+ LiApprovalMode["Automatic"] = "automatic";
16
+ })(LiApprovalMode || (exports.LiApprovalMode = LiApprovalMode = {}));
17
+ var LiVoiceTone;
18
+ (function (LiVoiceTone) {
19
+ LiVoiceTone["Fun"] = "fun";
20
+ LiVoiceTone["Serious"] = "serious";
21
+ LiVoiceTone["Technical"] = "technical";
22
+ LiVoiceTone["Inspirational"] = "inspirational";
23
+ })(LiVoiceTone || (exports.LiVoiceTone = LiVoiceTone = {}));
@@ -11,5 +11,6 @@ export declare enum Tenant {
11
11
  Babelia = "Babelia",
12
12
  LeadAutomator = "LeadAutomator",
13
13
  SocialMediaAutomator = "SocialMediaAutomator",
14
- BreadOfLife = "BreadOfLife"
14
+ BreadOfLife = "BreadOfLife",
15
+ LinkedinAutomator = "LinkedinAutomator"
15
16
  }
@@ -16,4 +16,5 @@ var Tenant;
16
16
  Tenant["LeadAutomator"] = "LeadAutomator";
17
17
  Tenant["SocialMediaAutomator"] = "SocialMediaAutomator";
18
18
  Tenant["BreadOfLife"] = "BreadOfLife";
19
+ Tenant["LinkedinAutomator"] = "LinkedinAutomator";
19
20
  })(Tenant || (exports.Tenant = Tenant = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrcb/cb-common",
3
- "version": "1.0.848",
3
+ "version": "1.0.849",
4
4
  "description": "Common resources between services",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",