@wrcb/cb-common 1.0.425 → 1.0.427
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/subjects.js
CHANGED
|
@@ -25,6 +25,7 @@ var Subjects;
|
|
|
25
25
|
Subjects["BetMade"] = "BetMade";
|
|
26
26
|
Subjects["ChargeMade"] = "ChargeMade";
|
|
27
27
|
Subjects["WithdrawalMade"] = "WithdrawalMade";
|
|
28
|
+
Subjects["UserFollowed"] = "UserFollowed";
|
|
28
29
|
// private show
|
|
29
30
|
Subjects["FeedPostCreated"] = "FeedPostCreated";
|
|
30
31
|
Subjects["LiveEnded"] = "LiveEnded";
|
|
@@ -26,7 +26,7 @@ function signUpReturnCookieAdmin(id, overrides) {
|
|
|
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.
|
|
29
|
+
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.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
|
}
|