cecon-interfaces 1.5.58 → 1.5.60

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.ts CHANGED
@@ -54,6 +54,7 @@ export * from './token';
54
54
  export * from './token-jwt';
55
55
  export * from './transaction';
56
56
  export * from './transfer-request';
57
+ export * from './users';
57
58
  export * from './verifier-token';
58
59
  export * from './viacep';
59
60
  export * from './voucher';
package/dist/index.js CHANGED
@@ -70,6 +70,7 @@ __exportStar(require("./token"), exports);
70
70
  __exportStar(require("./token-jwt"), exports);
71
71
  __exportStar(require("./transaction"), exports);
72
72
  __exportStar(require("./transfer-request"), exports);
73
+ __exportStar(require("./users"), exports);
73
74
  __exportStar(require("./verifier-token"), exports);
74
75
  __exportStar(require("./viacep"), exports);
75
76
  __exportStar(require("./voucher"), exports);
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.5.57",
3
+ "version": "1.5.60",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,2 @@
1
+ export { UserSessionEntity } from './user-session.entity';
2
+ export { UserEntity } from './user.entity';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserEntity = exports.UserSessionEntity = void 0;
4
+ var user_session_entity_1 = require("./user-session.entity");
5
+ Object.defineProperty(exports, "UserSessionEntity", { enumerable: true, get: function () { return user_session_entity_1.UserSessionEntity; } });
6
+ var user_entity_1 = require("./user.entity");
7
+ Object.defineProperty(exports, "UserEntity", { enumerable: true, get: function () { return user_entity_1.UserEntity; } });
@@ -0,0 +1,10 @@
1
+ import { IUserSession } from '../interfaces/i-user-session';
2
+ export declare class UserSessionEntity implements IUserSession {
3
+ currentSessionId: string | null;
4
+ deviceInfo: string | null;
5
+ isLocked: boolean;
6
+ lastLoginAt: Date | null;
7
+ lastSessionIp: string | null;
8
+ sessionExpiresAt: Date | null;
9
+ constructor(data?: Partial<UserSessionEntity>);
10
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserSessionEntity = void 0;
4
+ var UserSessionEntity = /** @class */ (function () {
5
+ // #endregion Properties (6)
6
+ // #region Constructors (1)
7
+ function UserSessionEntity(data) {
8
+ // #region Properties (6)
9
+ this.currentSessionId = null;
10
+ this.deviceInfo = null;
11
+ this.isLocked = false;
12
+ this.lastLoginAt = null;
13
+ this.lastSessionIp = null;
14
+ this.sessionExpiresAt = null;
15
+ if (data) {
16
+ for (var key in data) {
17
+ if (data.hasOwnProperty(key) && key in this) {
18
+ this[key] = data[key];
19
+ }
20
+ }
21
+ }
22
+ }
23
+ return UserSessionEntity;
24
+ }());
25
+ exports.UserSessionEntity = UserSessionEntity;
@@ -0,0 +1,19 @@
1
+ import { MemberTypeEnum } from '../../member/enums';
2
+ import { IUser } from '../interfaces';
3
+ import { UserSessionEntity } from './user-session.entity';
4
+ export declare class UserEntity implements IUser {
5
+ active: boolean;
6
+ createdAt: Date;
7
+ email: string | null;
8
+ engaged: boolean;
9
+ id: string;
10
+ imageUrl: string | null;
11
+ internationalCode: string;
12
+ name: string;
13
+ phoneNumber: string;
14
+ session: UserSessionEntity;
15
+ tags: string[];
16
+ type: MemberTypeEnum | null;
17
+ updatedAt: Date;
18
+ constructor(data?: Partial<UserEntity>);
19
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserEntity = void 0;
4
+ var user_session_entity_1 = require("./user-session.entity");
5
+ var UserEntity = /** @class */ (function () {
6
+ // #endregion Properties (13)
7
+ // #region Constructors (1)
8
+ function UserEntity(data) {
9
+ // #region Properties (13)
10
+ this.active = true;
11
+ this.createdAt = new Date();
12
+ this.email = null;
13
+ this.engaged = false;
14
+ this.id = '';
15
+ this.imageUrl = null;
16
+ this.internationalCode = '55';
17
+ this.name = '';
18
+ this.phoneNumber = '';
19
+ this.session = new user_session_entity_1.UserSessionEntity();
20
+ this.tags = [];
21
+ this.type = null;
22
+ this.updatedAt = new Date();
23
+ if (data) {
24
+ for (var key in data) {
25
+ if (data.hasOwnProperty(key) && key in this) {
26
+ this[key] = data[key];
27
+ }
28
+ }
29
+ }
30
+ }
31
+ return UserEntity;
32
+ }());
33
+ exports.UserEntity = UserEntity;
@@ -0,0 +1,2 @@
1
+ export * from './entities';
2
+ export * from './interfaces';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./entities"), exports);
18
+ __exportStar(require("./interfaces"), exports);
@@ -0,0 +1,8 @@
1
+ export interface IUserSession {
2
+ currentSessionId: string | null;
3
+ deviceInfo: string | null;
4
+ isLocked: boolean;
5
+ lastLoginAt: Date | null;
6
+ lastSessionIp: string | null;
7
+ sessionExpiresAt: Date | null;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ import { MemberTypeEnum } from '../../member/enums';
2
+ import { IUserSession } from './i-user-session';
3
+ export interface IUser {
4
+ active: boolean;
5
+ createdAt: Date;
6
+ email: string | null;
7
+ engaged: boolean;
8
+ id: string;
9
+ imageUrl: string | null;
10
+ internationalCode: string;
11
+ name: string;
12
+ phoneNumber: string;
13
+ session: IUserSession;
14
+ tags: string[];
15
+ type: MemberTypeEnum | null;
16
+ updatedAt: Date;
17
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { IUser } from './i-user';
2
+ export { IUserSession } from './i-user-session';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.5.58",
3
+ "version": "1.5.60",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",