@wrcb/cb-common 1.0.301 → 1.0.302

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.
@@ -11,7 +11,7 @@ const userRole_1 = require("../types/userRole");
11
11
  const country_1 = require("../types/country");
12
12
  function signUpReturnCookie(id, overrides) {
13
13
  // Build a JWT payload
14
- const payload = Object.assign({ id: id !== null && id !== void 0 ? id : new mongoose_1.default.Types.ObjectId().toHexString(), email: 'test@test.com', nickName: 'apelido', role: userRole_1.UserRole.User, language: country_1.Language.Português, country: country_1.Country.Brasil, isKycDone: true, isEmailVerified: false, isWhatsappVerified: false, isPersonalDataProvided: false, isAddressDataProvided: false }, overrides // sobrescreve os valores padrão
14
+ const payload = Object.assign({ id: id !== null && id !== void 0 ? id : new mongoose_1.default.Types.ObjectId().toHexString(), 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 }, overrides // sobrescreve os valores padrão
15
15
  );
16
16
  return buildCookie(payload);
17
17
  }
@@ -2,5 +2,5 @@ export declare enum UserRole {
2
2
  Admin = "Admin",
3
3
  Assistant = "Assistant",
4
4
  Seller = "Seller",
5
- User = "User"
5
+ Consumer = "Consumer"
6
6
  }
@@ -6,5 +6,5 @@ var UserRole;
6
6
  UserRole["Admin"] = "Admin";
7
7
  UserRole["Assistant"] = "Assistant";
8
8
  UserRole["Seller"] = "Seller";
9
- UserRole["User"] = "User";
9
+ UserRole["Consumer"] = "Consumer";
10
10
  })(UserRole || (exports.UserRole = UserRole = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrcb/cb-common",
3
- "version": "1.0.301",
3
+ "version": "1.0.302",
4
4
  "description": "Common resources between services",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",