@wrcb/cb-common 1.0.82 → 1.0.85

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.
@@ -16,6 +16,7 @@ function signUpReturnCookie(id) {
16
16
  cpf: '05854744600',
17
17
  nickName: 'apelido',
18
18
  role: userRole_1.UserRole.User,
19
+ isVerified: true
19
20
  };
20
21
  // Create the JWT
21
22
  const token = jsonwebtoken_1.default.sign(payload, process.env.JWT_KEY);
@@ -37,6 +38,7 @@ function signUpReturnCookieAdmin(id) {
37
38
  cpf: '05854744600',
38
39
  nickName: 'apelido',
39
40
  role: userRole_1.UserRole.Admin,
41
+ isVerified: true
40
42
  };
41
43
  // Create the JWT
42
44
  const token = jsonwebtoken_1.default.sign(payload, process.env.JWT_KEY);
@@ -27,4 +27,7 @@ export declare function BuildBetObject(prediction: any, userId: string, value?:
27
27
  userId: string;
28
28
  value: number;
29
29
  odd: number;
30
+ description: string;
31
+ optionId: string;
32
+ optionLabel: string;
30
33
  };
@@ -65,5 +65,8 @@ function BuildBetObject(prediction, userId, value, odd) {
65
65
  userId: userId !== null && userId !== void 0 ? userId : (0, createIdMongoose_1.default)(),
66
66
  value: value !== null && value !== void 0 ? value : 150,
67
67
  odd: odd !== null && odd !== void 0 ? odd : 1.5,
68
+ description: 'descricao',
69
+ optionId: '3124',
70
+ optionLabel: 'Sim'
68
71
  };
69
72
  }
@@ -4,6 +4,7 @@ export interface UserPayload {
4
4
  email: string;
5
5
  cpf: string;
6
6
  nickName: string;
7
+ isVerified: boolean;
7
8
  role?: string;
8
9
  }
9
10
  declare global {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrcb/cb-common",
3
- "version": "1.0.82",
3
+ "version": "1.0.85",
4
4
  "description": "Common resources between services",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",