@wrcb/cb-common 1.0.482 → 1.0.485
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/helpers/authHelper.js +3 -3
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/services/TenantDataService.js +4 -4
- package/build/types/giftType.js +2 -2
- package/build/types/reactionTypes.d.ts +2 -0
- package/build/types/reactionTypes.js +4 -0
- package/build/types/userPayload.d.ts +2 -0
- package/package.json +1 -1
|
@@ -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.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, isPhoneNumberVerified: 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
|
|
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, isPhoneNumberVerified: false, isWhatsappVerified: false, isPersonalDataProvided: false, isAddressDataProvided: false, isBusinessDataProvided: false, category: userCategory_1.UserCategory.Male, tags: [], 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.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, isPhoneNumberVerified: 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
|
|
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, isPhoneNumberVerified: false, isWhatsappVerified: false, isPersonalDataProvided: false, isAddressDataProvided: false, isBusinessDataProvided: false, category: userCategory_1.UserCategory.Male, tags: [], 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.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, isPhoneNumberVerified: 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
|
|
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, isPhoneNumberVerified: false, isWhatsappVerified: false, isPersonalDataProvided: false, isAddressDataProvided: false, isBusinessDataProvided: false, category: userCategory_1.UserCategory.Male, tags: [], profilePhoto: 'https://criptobet.com/logo.jpg' }, overrides // sobrescreve os valores padrão
|
|
30
30
|
);
|
|
31
31
|
return buildCookie(payload);
|
|
32
32
|
}
|
package/build/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * from './types/couponType';
|
|
|
16
16
|
export * from './types/tenant';
|
|
17
17
|
export * from './types/userTags';
|
|
18
18
|
export * from './types/likeUnlikeType';
|
|
19
|
+
export * from './types/reactionTypes';
|
|
19
20
|
export * from './types/userCategory';
|
|
20
21
|
export * from './types/productTypes';
|
|
21
22
|
export * from './types/orderStatus';
|
package/build/index.js
CHANGED
|
@@ -32,6 +32,7 @@ __exportStar(require("./types/couponType"), exports);
|
|
|
32
32
|
__exportStar(require("./types/tenant"), exports);
|
|
33
33
|
__exportStar(require("./types/userTags"), exports);
|
|
34
34
|
__exportStar(require("./types/likeUnlikeType"), exports);
|
|
35
|
+
__exportStar(require("./types/reactionTypes"), exports);
|
|
35
36
|
__exportStar(require("./types/userCategory"), exports);
|
|
36
37
|
__exportStar(require("./types/productTypes"), exports);
|
|
37
38
|
__exportStar(require("./types/orderStatus"), exports);
|
|
@@ -182,14 +182,14 @@ TenantDataService.tenantDataMap = {
|
|
|
182
182
|
SOCIAL_INSTAGRAM: 'https://instagram.com/privateshow',
|
|
183
183
|
SOCIAL_FACEBOOK: 'https://facebook.com/privateshow',
|
|
184
184
|
USER_CATEGORIES_CONFIG: {
|
|
185
|
-
[userCategory_1.UserCategory.Male]: {
|
|
186
|
-
allowedTags: userTags_1.PRIVATE_SHOW_MALE_TAGS,
|
|
187
|
-
allowedProducts: productTypes_1.DIGITAL_CONTENT_BASED_PRODUCTS
|
|
188
|
-
},
|
|
189
185
|
[userCategory_1.UserCategory.Female]: {
|
|
190
186
|
allowedTags: userTags_1.PRIVATE_SHOW_FEMALE_TAGS,
|
|
191
187
|
allowedProducts: productTypes_1.DIGITAL_CONTENT_BASED_PRODUCTS
|
|
192
188
|
},
|
|
189
|
+
[userCategory_1.UserCategory.Male]: {
|
|
190
|
+
allowedTags: userTags_1.PRIVATE_SHOW_MALE_TAGS,
|
|
191
|
+
allowedProducts: productTypes_1.DIGITAL_CONTENT_BASED_PRODUCTS
|
|
192
|
+
},
|
|
193
193
|
[userCategory_1.UserCategory.Couple]: {
|
|
194
194
|
allowedTags: userTags_1.PRIVATE_SHOW_COUPLE_TAGS,
|
|
195
195
|
allowedProducts: productTypes_1.DIGITAL_CONTENT_BASED_PRODUCTS
|
package/build/types/giftType.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AVAILABLE_GIFTS = void 0;
|
|
4
4
|
exports.AVAILABLE_GIFTS = [
|
|
5
|
-
{ id: 'rose', name: 'Rose', emoji: '🌹', value: 100 }, // R$ 1,00
|
|
6
5
|
{ id: 'kiss', name: 'Kiss', emoji: '💋', value: 200 }, // R$ 2,00
|
|
7
6
|
{ id: 'heart', name: 'Heart', emoji: '❤️', value: 500 }, // R$ 5,00
|
|
8
7
|
{ id: 'pussy', name: 'Pussy', emoji: '🐸', value: 1000 }, // R$ 10,00
|
|
9
8
|
{ id: 'cock', name: 'Cock', emoji: '🍆', value: 2000 }, // R$ 20,00
|
|
10
|
-
{ id: 'crown', name: 'Crown', emoji: '👑', value: 5000 } // R$ 50,00
|
|
9
|
+
{ id: 'crown', name: 'Crown', emoji: '👑', value: 5000 }, // R$ 50,00
|
|
10
|
+
{ id: 'ring', name: 'Ring', emoji: '🌹', value: 10000 } // R$ 1,00
|
|
11
11
|
];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Country, Language } from './country';
|
|
2
2
|
import { Tenant } from './tenant';
|
|
3
3
|
import { UserCategory } from './userCategory';
|
|
4
|
+
import { UserTags } from './userTags';
|
|
4
5
|
export interface UserPayload {
|
|
5
6
|
id: string;
|
|
6
7
|
tenant: Tenant;
|
|
@@ -18,4 +19,5 @@ export interface UserPayload {
|
|
|
18
19
|
profilePhoto: string;
|
|
19
20
|
country: Country;
|
|
20
21
|
role: string;
|
|
22
|
+
tags: UserTags[];
|
|
21
23
|
}
|