@wrcb/cb-common 1.0.823 → 1.0.825
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 +1 -0
- package/build/index.js +2 -0
- package/build/services/RedisService.d.ts +5 -0
- package/build/services/RedisService.js +16 -0
- package/build/services/TenantDataService.js +50 -0
- package/build/types/babelia.d.ts +69 -0
- package/build/types/babelia.js +81 -0
- package/build/types/tenant.d.ts +1 -0
- package/build/types/tenant.js +1 -0
- package/package.json +1 -1
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/babelia';
|
|
45
46
|
export * from './types/politicaBetCategory';
|
|
46
47
|
export * from './types/predictionStatus';
|
|
47
48
|
export * from './types/disputeStatus';
|
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
|
+
// babelia
|
|
65
|
+
__exportStar(require("./types/babelia"), exports);
|
|
64
66
|
// politicabet
|
|
65
67
|
__exportStar(require("./types/politicaBetCategory"), exports);
|
|
66
68
|
__exportStar(require("./types/predictionStatus"), exports);
|
|
@@ -10,4 +10,9 @@ export declare class RedisService {
|
|
|
10
10
|
static sellerProductDataKey(tenant: Tenant, productId: string): string;
|
|
11
11
|
static bannedViewerKey(streamerId: string, viewerId: string): string;
|
|
12
12
|
static sellerProfileKey(tenant: Tenant, sellerId: string): string;
|
|
13
|
+
static babeliaTopicQuestionsKey(topicId: string): string;
|
|
14
|
+
static babeliaTopicTheoryKey(topicId: string, nativeLanguage: string): string;
|
|
15
|
+
static babeliaUserHeartsKey(userId: string): string;
|
|
16
|
+
static babeliaPlacementQuestionsKey(language: string): string;
|
|
17
|
+
static babeliaWordQuestionsKey(word: string, language: string): string;
|
|
13
18
|
}
|
|
@@ -32,5 +32,21 @@ class RedisService {
|
|
|
32
32
|
static sellerProfileKey(tenant, sellerId) {
|
|
33
33
|
return `${tenant}:seller:${sellerId}:profile`;
|
|
34
34
|
}
|
|
35
|
+
// babelia
|
|
36
|
+
static babeliaTopicQuestionsKey(topicId) {
|
|
37
|
+
return `babelia:topic:${topicId}:questions`;
|
|
38
|
+
}
|
|
39
|
+
static babeliaTopicTheoryKey(topicId, nativeLanguage) {
|
|
40
|
+
return `babelia:topic:${topicId}:theory:${nativeLanguage}`;
|
|
41
|
+
}
|
|
42
|
+
static babeliaUserHeartsKey(userId) {
|
|
43
|
+
return `babelia:user:${userId}:hearts`;
|
|
44
|
+
}
|
|
45
|
+
static babeliaPlacementQuestionsKey(language) {
|
|
46
|
+
return `babelia:placement:${language}:questions`;
|
|
47
|
+
}
|
|
48
|
+
static babeliaWordQuestionsKey(word, language) {
|
|
49
|
+
return `babelia:word:${language}:${word}:questions`;
|
|
50
|
+
}
|
|
35
51
|
}
|
|
36
52
|
exports.RedisService = RedisService;
|
|
@@ -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',
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export declare enum BabeliaTargetLanguage {
|
|
2
|
+
English = "English",
|
|
3
|
+
Spanish = "Spanish",
|
|
4
|
+
French = "French",
|
|
5
|
+
German = "German",
|
|
6
|
+
Italian = "Italian"
|
|
7
|
+
}
|
|
8
|
+
export declare enum BabeliaNativeLanguage {
|
|
9
|
+
Portuguese = "Portuguese",
|
|
10
|
+
English = "English",
|
|
11
|
+
Spanish = "Spanish",
|
|
12
|
+
French = "French",
|
|
13
|
+
German = "German",
|
|
14
|
+
Italian = "Italian"
|
|
15
|
+
}
|
|
16
|
+
export declare enum BabeliaLevel {
|
|
17
|
+
A1 = "A1",
|
|
18
|
+
A2 = "A2",
|
|
19
|
+
B1 = "B1",
|
|
20
|
+
B2 = "B2",
|
|
21
|
+
C1 = "C1",
|
|
22
|
+
C2 = "C2"
|
|
23
|
+
}
|
|
24
|
+
export declare enum BabeliaActivityType {
|
|
25
|
+
Reading = "Reading",
|
|
26
|
+
Listening = "Listening",
|
|
27
|
+
Writing = "Writing",
|
|
28
|
+
Speaking = "Speaking"
|
|
29
|
+
}
|
|
30
|
+
export declare enum BabeliaQuestionType {
|
|
31
|
+
MultipleChoice = "MultipleChoice",
|
|
32
|
+
FillBlank = "FillBlank",
|
|
33
|
+
TrueFalse = "TrueFalse",
|
|
34
|
+
OrderSentence = "OrderSentence",
|
|
35
|
+
OpenText = "OpenText"
|
|
36
|
+
}
|
|
37
|
+
export declare enum BabeliaTopicType {
|
|
38
|
+
Grammar = "Grammar",
|
|
39
|
+
Vocabulary = "Vocabulary",
|
|
40
|
+
Situation = "Situation",
|
|
41
|
+
Culture = "Culture"
|
|
42
|
+
}
|
|
43
|
+
export declare enum BabeliaBadgeType {
|
|
44
|
+
FirstLesson = "FirstLesson",
|
|
45
|
+
Streak7Days = "Streak7Days",
|
|
46
|
+
Streak30Days = "Streak30Days",
|
|
47
|
+
Streak100Days = "Streak100Days",
|
|
48
|
+
LevelA1Complete = "LevelA1Complete",
|
|
49
|
+
LevelA2Complete = "LevelA2Complete",
|
|
50
|
+
LevelB1Complete = "LevelB1Complete",
|
|
51
|
+
LevelB2Complete = "LevelB2Complete",
|
|
52
|
+
LevelC1Complete = "LevelC1Complete",
|
|
53
|
+
LevelC2Complete = "LevelC2Complete",
|
|
54
|
+
FirstSpeaking = "FirstSpeaking",
|
|
55
|
+
Words10Marked = "Words10Marked",
|
|
56
|
+
Words50Marked = "Words50Marked",
|
|
57
|
+
Words100Marked = "Words100Marked"
|
|
58
|
+
}
|
|
59
|
+
export declare enum BabeliaMissionType {
|
|
60
|
+
CompleteQuestions = "CompleteQuestions",
|
|
61
|
+
PracticeSpeaking = "PracticeSpeaking",
|
|
62
|
+
CompleteTopic = "CompleteTopic",
|
|
63
|
+
MarkWord = "MarkWord"
|
|
64
|
+
}
|
|
65
|
+
export declare enum BabeliaFriendshipStatus {
|
|
66
|
+
Pending = "Pending",
|
|
67
|
+
Accepted = "Accepted",
|
|
68
|
+
Rejected = "Rejected"
|
|
69
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BabeliaFriendshipStatus = exports.BabeliaMissionType = exports.BabeliaBadgeType = exports.BabeliaTopicType = exports.BabeliaQuestionType = exports.BabeliaActivityType = exports.BabeliaLevel = exports.BabeliaNativeLanguage = exports.BabeliaTargetLanguage = void 0;
|
|
4
|
+
var BabeliaTargetLanguage;
|
|
5
|
+
(function (BabeliaTargetLanguage) {
|
|
6
|
+
BabeliaTargetLanguage["English"] = "English";
|
|
7
|
+
BabeliaTargetLanguage["Spanish"] = "Spanish";
|
|
8
|
+
BabeliaTargetLanguage["French"] = "French";
|
|
9
|
+
BabeliaTargetLanguage["German"] = "German";
|
|
10
|
+
BabeliaTargetLanguage["Italian"] = "Italian";
|
|
11
|
+
})(BabeliaTargetLanguage || (exports.BabeliaTargetLanguage = BabeliaTargetLanguage = {}));
|
|
12
|
+
var BabeliaNativeLanguage;
|
|
13
|
+
(function (BabeliaNativeLanguage) {
|
|
14
|
+
BabeliaNativeLanguage["Portuguese"] = "Portuguese";
|
|
15
|
+
BabeliaNativeLanguage["English"] = "English";
|
|
16
|
+
BabeliaNativeLanguage["Spanish"] = "Spanish";
|
|
17
|
+
BabeliaNativeLanguage["French"] = "French";
|
|
18
|
+
BabeliaNativeLanguage["German"] = "German";
|
|
19
|
+
BabeliaNativeLanguage["Italian"] = "Italian";
|
|
20
|
+
})(BabeliaNativeLanguage || (exports.BabeliaNativeLanguage = BabeliaNativeLanguage = {}));
|
|
21
|
+
var BabeliaLevel;
|
|
22
|
+
(function (BabeliaLevel) {
|
|
23
|
+
BabeliaLevel["A1"] = "A1";
|
|
24
|
+
BabeliaLevel["A2"] = "A2";
|
|
25
|
+
BabeliaLevel["B1"] = "B1";
|
|
26
|
+
BabeliaLevel["B2"] = "B2";
|
|
27
|
+
BabeliaLevel["C1"] = "C1";
|
|
28
|
+
BabeliaLevel["C2"] = "C2";
|
|
29
|
+
})(BabeliaLevel || (exports.BabeliaLevel = BabeliaLevel = {}));
|
|
30
|
+
var BabeliaActivityType;
|
|
31
|
+
(function (BabeliaActivityType) {
|
|
32
|
+
BabeliaActivityType["Reading"] = "Reading";
|
|
33
|
+
BabeliaActivityType["Listening"] = "Listening";
|
|
34
|
+
BabeliaActivityType["Writing"] = "Writing";
|
|
35
|
+
BabeliaActivityType["Speaking"] = "Speaking";
|
|
36
|
+
})(BabeliaActivityType || (exports.BabeliaActivityType = BabeliaActivityType = {}));
|
|
37
|
+
var BabeliaQuestionType;
|
|
38
|
+
(function (BabeliaQuestionType) {
|
|
39
|
+
BabeliaQuestionType["MultipleChoice"] = "MultipleChoice";
|
|
40
|
+
BabeliaQuestionType["FillBlank"] = "FillBlank";
|
|
41
|
+
BabeliaQuestionType["TrueFalse"] = "TrueFalse";
|
|
42
|
+
BabeliaQuestionType["OrderSentence"] = "OrderSentence";
|
|
43
|
+
BabeliaQuestionType["OpenText"] = "OpenText";
|
|
44
|
+
})(BabeliaQuestionType || (exports.BabeliaQuestionType = BabeliaQuestionType = {}));
|
|
45
|
+
var BabeliaTopicType;
|
|
46
|
+
(function (BabeliaTopicType) {
|
|
47
|
+
BabeliaTopicType["Grammar"] = "Grammar";
|
|
48
|
+
BabeliaTopicType["Vocabulary"] = "Vocabulary";
|
|
49
|
+
BabeliaTopicType["Situation"] = "Situation";
|
|
50
|
+
BabeliaTopicType["Culture"] = "Culture";
|
|
51
|
+
})(BabeliaTopicType || (exports.BabeliaTopicType = BabeliaTopicType = {}));
|
|
52
|
+
var BabeliaBadgeType;
|
|
53
|
+
(function (BabeliaBadgeType) {
|
|
54
|
+
BabeliaBadgeType["FirstLesson"] = "FirstLesson";
|
|
55
|
+
BabeliaBadgeType["Streak7Days"] = "Streak7Days";
|
|
56
|
+
BabeliaBadgeType["Streak30Days"] = "Streak30Days";
|
|
57
|
+
BabeliaBadgeType["Streak100Days"] = "Streak100Days";
|
|
58
|
+
BabeliaBadgeType["LevelA1Complete"] = "LevelA1Complete";
|
|
59
|
+
BabeliaBadgeType["LevelA2Complete"] = "LevelA2Complete";
|
|
60
|
+
BabeliaBadgeType["LevelB1Complete"] = "LevelB1Complete";
|
|
61
|
+
BabeliaBadgeType["LevelB2Complete"] = "LevelB2Complete";
|
|
62
|
+
BabeliaBadgeType["LevelC1Complete"] = "LevelC1Complete";
|
|
63
|
+
BabeliaBadgeType["LevelC2Complete"] = "LevelC2Complete";
|
|
64
|
+
BabeliaBadgeType["FirstSpeaking"] = "FirstSpeaking";
|
|
65
|
+
BabeliaBadgeType["Words10Marked"] = "Words10Marked";
|
|
66
|
+
BabeliaBadgeType["Words50Marked"] = "Words50Marked";
|
|
67
|
+
BabeliaBadgeType["Words100Marked"] = "Words100Marked";
|
|
68
|
+
})(BabeliaBadgeType || (exports.BabeliaBadgeType = BabeliaBadgeType = {}));
|
|
69
|
+
var BabeliaMissionType;
|
|
70
|
+
(function (BabeliaMissionType) {
|
|
71
|
+
BabeliaMissionType["CompleteQuestions"] = "CompleteQuestions";
|
|
72
|
+
BabeliaMissionType["PracticeSpeaking"] = "PracticeSpeaking";
|
|
73
|
+
BabeliaMissionType["CompleteTopic"] = "CompleteTopic";
|
|
74
|
+
BabeliaMissionType["MarkWord"] = "MarkWord";
|
|
75
|
+
})(BabeliaMissionType || (exports.BabeliaMissionType = BabeliaMissionType = {}));
|
|
76
|
+
var BabeliaFriendshipStatus;
|
|
77
|
+
(function (BabeliaFriendshipStatus) {
|
|
78
|
+
BabeliaFriendshipStatus["Pending"] = "Pending";
|
|
79
|
+
BabeliaFriendshipStatus["Accepted"] = "Accepted";
|
|
80
|
+
BabeliaFriendshipStatus["Rejected"] = "Rejected";
|
|
81
|
+
})(BabeliaFriendshipStatus || (exports.BabeliaFriendshipStatus = BabeliaFriendshipStatus = {}));
|
package/build/types/tenant.d.ts
CHANGED
package/build/types/tenant.js
CHANGED
|
@@ -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 = {}));
|