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/esm2022/index.mjs +2 -1
- package/dist/esm2022/users/entities/index.mjs +3 -0
- package/dist/esm2022/users/entities/user-session.entity.mjs +21 -0
- package/dist/esm2022/users/entities/user.entity.mjs +29 -0
- package/dist/esm2022/users/index.mjs +3 -0
- package/dist/esm2022/users/interfaces/i-user-session.mjs +2 -0
- package/dist/esm2022/users/interfaces/i-user.mjs +2 -0
- package/dist/esm2022/users/interfaces/index.mjs +2 -0
- package/dist/fesm2022/cecon-interfaces.mjs +50 -1
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/package.json +1 -1
- package/dist/users/entities/index.d.ts +2 -0
- package/dist/users/entities/index.js +7 -0
- package/dist/users/entities/user-session.entity.d.ts +10 -0
- package/dist/users/entities/user-session.entity.js +25 -0
- package/dist/users/entities/user.entity.d.ts +19 -0
- package/dist/users/entities/user.entity.js +33 -0
- package/dist/users/index.d.ts +2 -0
- package/dist/users/index.js +18 -0
- package/dist/users/interfaces/i-user-session.d.ts +8 -0
- package/dist/users/interfaces/i-user-session.js +2 -0
- package/dist/users/interfaces/i-user.d.ts +17 -0
- package/dist/users/interfaces/i-user.js +2 -0
- package/dist/users/interfaces/index.d.ts +2 -0
- package/dist/users/interfaces/index.js +2 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
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
@@ -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,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,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
|
+
}
|