@wrcb/cb-common 1.0.70 → 1.0.72

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,6 +14,7 @@ function signUpReturnCookie(id) {
14
14
  id: id !== null && id !== void 0 ? id : new mongoose_1.default.Types.ObjectId().toHexString(),
15
15
  email: 'test@test.com',
16
16
  cpf: '05854744600',
17
+ nickName: 'apelido',
17
18
  role: userRole_1.UserRole.User,
18
19
  };
19
20
  // Create the JWT
@@ -34,6 +35,7 @@ function signUpReturnCookieAdmin(id) {
34
35
  id: id !== null && id !== void 0 ? id : new mongoose_1.default.Types.ObjectId().toHexString(),
35
36
  email: 'test@test.com',
36
37
  cpf: '05854744600',
38
+ nickName: 'apelido',
37
39
  role: userRole_1.UserRole.Admin,
38
40
  };
39
41
  // Create the JWT
@@ -0,0 +1 @@
1
+ export default function createIdMongoose(): string;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.default = createIdMongoose;
7
+ const mongoose_1 = __importDefault(require("mongoose"));
8
+ function createIdMongoose() {
9
+ return new mongoose_1.default.Types.ObjectId().toHexString();
10
+ }
package/build/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * from './test/authHelper';
1
+ export * from './helpers/authHelper';
2
2
  export * from './types';
3
3
  export * from './errors/badRequestError';
4
4
  export * from './errors/customError';
package/build/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./test/authHelper"), exports);
17
+ __exportStar(require("./helpers/authHelper"), exports);
18
18
  __exportStar(require("./types"), exports);
19
19
  __exportStar(require("./errors/badRequestError"), exports);
20
20
  __exportStar(require("./errors/customError"), exports);
@@ -3,6 +3,7 @@ export interface UserPayload {
3
3
  id: string;
4
4
  email: string;
5
5
  cpf: string;
6
+ nickName: string;
6
7
  role?: string;
7
8
  }
8
9
  declare global {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrcb/cb-common",
3
- "version": "1.0.70",
3
+ "version": "1.0.72",
4
4
  "description": "Common resources between services",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
File without changes