@wrcb/cb-common 1.0.420 → 1.0.425
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/events/private-show/giftSentEvent.d.ts +17 -0
- package/build/events/private-show/giftSentEvent.js +2 -0
- package/build/events/subjects.d.ts +2 -1
- package/build/events/subjects.js +1 -0
- package/build/helpers/authHelper.js +3 -3
- package/build/server.d.ts +1 -0
- package/build/server.js +1 -0
- package/build/types/userTags.d.ts +0 -2
- package/build/types/userTags.js +0 -4
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Tenant } from 'src/types/tenant';
|
|
2
|
+
import { Subjects } from '../subjects';
|
|
3
|
+
export interface GiftSentEvent {
|
|
4
|
+
subject: Subjects.GiftSent;
|
|
5
|
+
data: {
|
|
6
|
+
tenant: Tenant.PrivateShow;
|
|
7
|
+
liveId: string;
|
|
8
|
+
sessionId: string;
|
|
9
|
+
streamerId: string;
|
|
10
|
+
viewerNickName: string;
|
|
11
|
+
viewerId: string;
|
|
12
|
+
giftId: string;
|
|
13
|
+
giftName: string;
|
|
14
|
+
quantity: string;
|
|
15
|
+
totalValye: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
package/build/events/subjects.js
CHANGED
|
@@ -14,19 +14,19 @@ const tenant_1 = require("../types/tenant");
|
|
|
14
14
|
const userCategory_1 = require("../types/userCategory");
|
|
15
15
|
function signUpReturnCookie(id, overrides) {
|
|
16
16
|
// Build a JWT payload
|
|
17
|
-
const payload = Object.assign({ id: id !== null && id !== void 0 ? id : new mongoose_1.default.Types.ObjectId().toHexString(), tenant: tenant_1.Tenant.
|
|
17
|
+
const payload = Object.assign({ id: id !== null && id !== void 0 ? id : new mongoose_1.default.Types.ObjectId().toHexString(), tenant: tenant_1.Tenant.PrivateShow, email: 'test@test.com', nickName: 'apelido', role: userRole_1.UserRole.Consumer, language: country_1.Language.Português, country: country_1.Country.Brasil, isKycDone: true, isEmailVerified: false, isWhatsappVerified: false, isPersonalDataProvided: false, isAddressDataProvided: false, isBusinessDataProvided: false, category: userCategory_1.UserCategory.Male, profilePhoto: 'https://criptobet.com/logo.jpg' }, overrides // sobrescreve os valores padrão
|
|
18
18
|
);
|
|
19
19
|
return buildCookie(payload);
|
|
20
20
|
}
|
|
21
21
|
function signUpReturnCookieAdmin(id, overrides) {
|
|
22
22
|
// Build a JWT payload
|
|
23
|
-
const payload = Object.assign({ id: id !== null && id !== void 0 ? id : new mongoose_1.default.Types.ObjectId().toHexString(), tenant: tenant_1.Tenant.
|
|
23
|
+
const payload = Object.assign({ id: id !== null && id !== void 0 ? id : new mongoose_1.default.Types.ObjectId().toHexString(), tenant: tenant_1.Tenant.PrivateShow, email: 'test@test.com', nickName: 'apelido', role: userRole_1.UserRole.Admin, isKycDone: true, language: country_1.Language.Português, country: country_1.Country.Brasil, isEmailVerified: false, isWhatsappVerified: false, isPersonalDataProvided: false, isAddressDataProvided: false, isBusinessDataProvided: false, category: userCategory_1.UserCategory.Male, profilePhoto: 'https://criptobet.com/logo.jpg' }, overrides // sobrescreve os valores padrão
|
|
24
24
|
);
|
|
25
25
|
return buildCookie(payload);
|
|
26
26
|
}
|
|
27
27
|
function signUpReturnCookieSeller(id, overrides) {
|
|
28
28
|
// Build a JWT payload
|
|
29
|
-
const payload = Object.assign({ id: id !== null && id !== void 0 ? id : new mongoose_1.default.Types.ObjectId().toHexString(), tenant: tenant_1.Tenant.TourismApp, email: 'test@test.com', nickName: 'apelido', role: userRole_1.UserRole.Seller, isKycDone: true, language: country_1.Language.Português, country: country_1.Country.Brasil, isEmailVerified: false, isWhatsappVerified: false, isPersonalDataProvided: false, isAddressDataProvided: false, isBusinessDataProvided: false, category: userCategory_1.UserCategory.
|
|
29
|
+
const payload = Object.assign({ id: id !== null && id !== void 0 ? id : new mongoose_1.default.Types.ObjectId().toHexString(), tenant: tenant_1.Tenant.TourismApp, email: 'test@test.com', nickName: 'apelido', role: userRole_1.UserRole.Seller, isKycDone: true, language: country_1.Language.Português, country: country_1.Country.Brasil, isEmailVerified: false, isWhatsappVerified: false, isPersonalDataProvided: false, isAddressDataProvided: false, isBusinessDataProvided: false, category: userCategory_1.UserCategory.Male, profilePhoto: 'https://criptobet.com/logo.jpg' }, overrides // sobrescreve os valores padrão
|
|
30
30
|
);
|
|
31
31
|
return buildCookie(payload);
|
|
32
32
|
}
|
package/build/server.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ export * from './events/private-show/viewerJoinedEvent';
|
|
|
52
52
|
export * from './events/private-show/viewerLeftEvent';
|
|
53
53
|
export * from './events/private-show/viewerKickedEvent';
|
|
54
54
|
export * from './events/private-show/viewerAutoKickedEvent';
|
|
55
|
+
export * from './events/private-show/giftSentEvent';
|
|
55
56
|
export * from './services/RedisService';
|
|
56
57
|
export * from './services/TenantDataService';
|
|
57
58
|
export * from './storage/services/storageService';
|
package/build/server.js
CHANGED
|
@@ -68,6 +68,7 @@ __exportStar(require("./events/private-show/viewerJoinedEvent"), exports);
|
|
|
68
68
|
__exportStar(require("./events/private-show/viewerLeftEvent"), exports);
|
|
69
69
|
__exportStar(require("./events/private-show/viewerKickedEvent"), exports);
|
|
70
70
|
__exportStar(require("./events/private-show/viewerAutoKickedEvent"), exports);
|
|
71
|
+
__exportStar(require("./events/private-show/giftSentEvent"), exports);
|
|
71
72
|
__exportStar(require("./services/RedisService"), exports);
|
|
72
73
|
__exportStar(require("./services/TenantDataService"), exports);
|
|
73
74
|
__exportStar(require("./storage/services/storageService"), exports);
|
|
@@ -47,7 +47,6 @@ export declare enum UserTags {
|
|
|
47
47
|
FashionAndBeautyEvent = "FashionAndBeautyEvent",
|
|
48
48
|
FamilyAndKidsEvent = "FamilyAndKidsEvent",
|
|
49
49
|
AdventureAndEcoTourismEvent = "AdventureAndEcoTourismEvent",
|
|
50
|
-
Couple = "Couple",
|
|
51
50
|
Group = "Group",
|
|
52
51
|
BBW = "BBW",
|
|
53
52
|
Slim = "Slim",
|
|
@@ -69,7 +68,6 @@ export declare enum UserTags {
|
|
|
69
68
|
Voyeur = "Voyeur",
|
|
70
69
|
Cuckold = "Cuckold",
|
|
71
70
|
ASMR = "ASMR",
|
|
72
|
-
Solo = "Solo",
|
|
73
71
|
InteractiveToys = "InteractiveToys",
|
|
74
72
|
OilShow = "OilShow",
|
|
75
73
|
Striptease = "Striptease",
|
package/build/types/userTags.js
CHANGED
|
@@ -59,7 +59,6 @@ var UserTags;
|
|
|
59
59
|
UserTags["FamilyAndKidsEvent"] = "FamilyAndKidsEvent";
|
|
60
60
|
UserTags["AdventureAndEcoTourismEvent"] = "AdventureAndEcoTourismEvent";
|
|
61
61
|
// Private show
|
|
62
|
-
UserTags["Couple"] = "Couple";
|
|
63
62
|
UserTags["Group"] = "Group";
|
|
64
63
|
UserTags["BBW"] = "BBW";
|
|
65
64
|
UserTags["Slim"] = "Slim";
|
|
@@ -81,7 +80,6 @@ var UserTags;
|
|
|
81
80
|
UserTags["Voyeur"] = "Voyeur";
|
|
82
81
|
UserTags["Cuckold"] = "Cuckold";
|
|
83
82
|
UserTags["ASMR"] = "ASMR";
|
|
84
|
-
UserTags["Solo"] = "Solo";
|
|
85
83
|
UserTags["InteractiveToys"] = "InteractiveToys";
|
|
86
84
|
UserTags["OilShow"] = "OilShow";
|
|
87
85
|
UserTags["Striptease"] = "Striptease";
|
|
@@ -196,8 +194,6 @@ exports.EVENT_TAGS = [
|
|
|
196
194
|
UserTags.AdventureAndEcoTourismEvent
|
|
197
195
|
];
|
|
198
196
|
exports.PRIVATE_SHOW_COMMON_TAGS = [
|
|
199
|
-
UserTags.Solo,
|
|
200
|
-
UserTags.Couple,
|
|
201
197
|
UserTags.Group,
|
|
202
198
|
UserTags.BBW,
|
|
203
199
|
UserTags.Slim,
|