@wrcb/cb-common 1.0.728 → 1.0.730

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.
@@ -14,7 +14,7 @@ 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, myAffiliateCode: '123456', affiliateCode: '654321', affiliateId: new mongoose_1.default.Types.ObjectId().toHexString(), tags: [], profilePhoto: 'https://criptobet.com/logo.jpg', location: {
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: true, whatsapp: '37988083717', isPersonalDataProvided: false, isAddressDataProvided: false, isBusinessDataProvided: false, category: userCategory_1.UserCategory.Male, myAffiliateCode: '123456', affiliateCode: '654321', affiliateId: new mongoose_1.default.Types.ObjectId().toHexString(), tags: [], profilePhoto: 'https://criptobet.com/logo.jpg', location: {
18
18
  type: 'Point',
19
19
  coordinates: [-46.6333, -23.5505] // [lng, lat]
20
20
  } }, overrides // sobrescreve os valores padrão
@@ -23,7 +23,7 @@ function signUpReturnCookie(id, overrides) {
23
23
  }
24
24
  function signUpReturnCookieAdmin(id, overrides) {
25
25
  // Build a JWT payload
26
- 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: [], myAffiliateCode: '123456', affiliateCode: '654321', affiliateId: new mongoose_1.default.Types.ObjectId().toHexString(), profilePhoto: 'https://criptobet.com/logo.jpg', location: {
26
+ 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: true, whatsapp: '37988083717', isPersonalDataProvided: false, isAddressDataProvided: false, isBusinessDataProvided: false, category: userCategory_1.UserCategory.Male, tags: [], myAffiliateCode: '123456', affiliateCode: '654321', affiliateId: new mongoose_1.default.Types.ObjectId().toHexString(), profilePhoto: 'https://criptobet.com/logo.jpg', location: {
27
27
  type: 'Point',
28
28
  coordinates: [-46.6333, -23.5505] // [lng, lat]
29
29
  } }, overrides // sobrescreve os valores padrão
@@ -32,7 +32,7 @@ function signUpReturnCookieAdmin(id, overrides) {
32
32
  }
33
33
  function signUpReturnCookieSeller(id, overrides) {
34
34
  // Build a JWT payload
35
- 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: [], myAffiliateCode: '123456', affiliateCode: '654321', affiliateId: new mongoose_1.default.Types.ObjectId().toHexString(), profilePhoto: 'https://criptobet.com/logo.jpg', location: {
35
+ 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: true, whatsapp: '37988083717', isPersonalDataProvided: false, isAddressDataProvided: false, isBusinessDataProvided: false, category: userCategory_1.UserCategory.Male, tags: [], myAffiliateCode: '123456', affiliateCode: '654321', affiliateId: new mongoose_1.default.Types.ObjectId().toHexString(), profilePhoto: 'https://criptobet.com/logo.jpg', location: {
36
36
  type: 'Point',
37
37
  coordinates: [-46.6333, -23.5505] // [lng, lat]
38
38
  } }, overrides // sobrescreve os valores padrão
@@ -18,6 +18,7 @@ export interface UserPayload {
18
18
  language: Language;
19
19
  category: UserCategory;
20
20
  profilePhoto: string;
21
+ whatsapp: string;
21
22
  country: Country;
22
23
  role: UserRole;
23
24
  myAffiliateCode: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrcb/cb-common",
3
- "version": "1.0.728",
3
+ "version": "1.0.730",
4
4
  "description": "Common resources between services",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",