@tomei/sso 0.8.1 → 0.8.2
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.
- package/Jenkinsfile +1 -1
- package/__tests__/unit/components/login-history/login-history.repository.spec.ts +88 -88
- package/__tests__/unit/components/login-user/login-user.spec.ts +731 -731
- package/__tests__/unit/components/login-user/user.repository.spec.ts +75 -75
- package/__tests__/unit/components/password-hash/password-hash.service.spec.ts +26 -26
- package/__tests__/unit/components/system/system.repository.spec.ts +82 -82
- package/__tests__/unit/components/system-access/system-access.repository.spec.ts +72 -72
- package/dist/__tests__/unit/components/login-history/login-history.repository.spec.d.ts +0 -1
- package/dist/__tests__/unit/components/login-history/login-history.repository.spec.js +0 -98
- package/dist/__tests__/unit/components/login-history/login-history.repository.spec.js.map +1 -1
- package/dist/__tests__/unit/components/login-user/login-user.spec.d.ts +0 -1
- package/dist/__tests__/unit/components/login-user/login-user.spec.js +0 -659
- package/dist/__tests__/unit/components/login-user/login-user.spec.js.map +1 -1
- package/dist/__tests__/unit/components/login-user/user.repository.spec.d.ts +0 -1
- package/dist/__tests__/unit/components/login-user/user.repository.spec.js +0 -77
- package/dist/__tests__/unit/components/login-user/user.repository.spec.js.map +1 -1
- package/dist/__tests__/unit/components/password-hash/password-hash.service.spec.d.ts +0 -1
- package/dist/__tests__/unit/components/password-hash/password-hash.service.spec.js +0 -37
- package/dist/__tests__/unit/components/password-hash/password-hash.service.spec.js.map +1 -1
- package/dist/__tests__/unit/components/system/system.repository.spec.d.ts +0 -1
- package/dist/__tests__/unit/components/system/system.repository.spec.js +0 -84
- package/dist/__tests__/unit/components/system/system.repository.spec.js.map +1 -1
- package/dist/__tests__/unit/components/system-access/system-access.repository.spec.d.ts +0 -1
- package/dist/__tests__/unit/components/system-access/system-access.repository.spec.js +0 -74
- package/dist/__tests__/unit/components/system-access/system-access.repository.spec.js.map +1 -1
- package/dist/src/components/login-history/login-history.repository.d.ts +4 -8
- package/dist/src/components/login-history/login-history.repository.js +5 -43
- package/dist/src/components/login-history/login-history.repository.js.map +1 -1
- package/dist/src/components/login-user/login-user.d.ts +1 -0
- package/dist/src/components/login-user/login-user.js +61 -55
- package/dist/src/components/login-user/login-user.js.map +1 -1
- package/dist/src/components/login-user/user.repository.d.ts +4 -8
- package/dist/src/components/login-user/user.repository.js +5 -43
- package/dist/src/components/login-user/user.repository.js.map +1 -1
- package/dist/src/components/system/system.repository.d.ts +4 -8
- package/dist/src/components/system/system.repository.js +5 -43
- package/dist/src/components/system/system.repository.js.map +1 -1
- package/dist/src/components/system-access/system-access.repository.d.ts +4 -8
- package/dist/src/components/system-access/system-access.repository.js +5 -43
- package/dist/src/components/system-access/system-access.repository.js.map +1 -1
- package/dist/src/components/user-group/user-group.repository.d.ts +4 -8
- package/dist/src/components/user-group/user-group.repository.js +5 -43
- package/dist/src/components/user-group/user-group.repository.js.map +1 -1
- package/dist/src/components/user-user-group/user-user-group.repository.d.ts +4 -8
- package/dist/src/components/user-user-group/user-user-group.repository.js +5 -43
- package/dist/src/components/user-user-group/user-user-group.repository.js.map +1 -1
- package/dist/src/database.d.ts +4 -0
- package/dist/src/database.js +15 -0
- package/dist/src/database.js.map +1 -0
- package/dist/src/models/authorization-code.entity.d.ts +14 -0
- package/dist/src/models/authorization-code.entity.js +86 -0
- package/dist/src/models/authorization-code.entity.js.map +1 -0
- package/dist/src/models/bearer-token.entity.d.ts +11 -0
- package/dist/src/models/bearer-token.entity.js +72 -0
- package/dist/src/models/bearer-token.entity.js.map +1 -0
- package/dist/src/models/building-type.entity.d.ts +7 -0
- package/dist/src/models/building-type.entity.js +50 -0
- package/dist/src/models/building-type.entity.js.map +1 -0
- package/dist/src/models/building.entity.d.ts +28 -0
- package/dist/src/models/building.entity.js +218 -0
- package/dist/src/models/building.entity.js.map +1 -0
- package/dist/src/models/city.entity.d.ts +11 -0
- package/dist/src/models/city.entity.js +72 -0
- package/dist/src/models/city.entity.js.map +1 -0
- package/dist/src/models/company.entity.d.ts +18 -0
- package/dist/src/models/company.entity.js +114 -0
- package/dist/src/models/company.entity.js.map +1 -0
- package/dist/src/models/country.entity.d.ts +15 -0
- package/dist/src/models/country.entity.js +92 -0
- package/dist/src/models/country.entity.js.map +1 -0
- package/dist/src/models/department.entity.d.ts +19 -0
- package/dist/src/models/department.entity.js +112 -0
- package/dist/src/models/department.entity.js.map +1 -0
- package/dist/src/models/group-role-privilege.entity.d.ts +17 -0
- package/dist/src/models/group-role-privilege.entity.js +90 -0
- package/dist/src/models/group-role-privilege.entity.js.map +1 -0
- package/dist/src/models/group-system-access.entity.d.ts +11 -0
- package/dist/src/models/group-system-access.entity.js +62 -0
- package/dist/src/models/group-system-access.entity.js.map +1 -0
- package/dist/src/models/group-system-privilege.entity.d.ts +11 -0
- package/dist/src/models/group-system-privilege.entity.js +62 -0
- package/dist/src/models/group-system-privilege.entity.js.map +1 -0
- package/dist/src/models/group-system-role.entity.d.ts +11 -0
- package/dist/src/models/group-system-role.entity.js +62 -0
- package/dist/src/models/group-system-role.entity.js.map +1 -0
- package/dist/src/models/login-history.entity.d.ts +12 -0
- package/dist/src/models/login-history.entity.js +70 -0
- package/dist/src/models/login-history.entity.js.map +1 -0
- package/dist/src/models/oauth-token.entity.d.ts +14 -0
- package/dist/src/models/oauth-token.entity.js +86 -0
- package/dist/src/models/oauth-token.entity.js.map +1 -0
- package/dist/src/models/role.entity.d.ts +17 -0
- package/dist/src/models/role.entity.js +102 -0
- package/dist/src/models/role.entity.js.map +1 -0
- package/dist/src/models/staff-type.entity.d.ts +7 -0
- package/dist/src/models/staff-type.entity.js +50 -0
- package/dist/src/models/staff-type.entity.js.map +1 -0
- package/dist/src/models/staff.entity.d.ts +39 -0
- package/dist/src/models/staff.entity.js +250 -0
- package/dist/src/models/staff.entity.js.map +1 -0
- package/dist/src/models/state.entity.d.ts +10 -0
- package/dist/src/models/state.entity.js +64 -0
- package/dist/src/models/state.entity.js.map +1 -0
- package/dist/src/models/system-accesss.entity.d.ts +6 -0
- package/dist/src/models/system-accesss.entity.js +51 -0
- package/dist/src/models/system-accesss.entity.js.map +1 -0
- package/dist/src/models/system-privilege.entity.d.ts +16 -0
- package/dist/src/models/system-privilege.entity.js +90 -0
- package/dist/src/models/system-privilege.entity.js.map +1 -0
- package/dist/src/models/system-role-privilege.entity.d.ts +11 -0
- package/dist/src/models/system-role-privilege.entity.js +60 -0
- package/dist/src/models/system-role-privilege.entity.js.map +1 -0
- package/dist/src/models/system-role.entity.d.ts +11 -0
- package/dist/src/models/system-role.entity.js +83 -0
- package/dist/src/models/system-role.entity.js.map +1 -0
- package/dist/src/models/system.entity.d.ts +19 -0
- package/dist/src/models/system.entity.js +146 -0
- package/dist/src/models/system.entity.js.map +1 -0
- package/dist/src/models/user-group.entity.d.ts +23 -0
- package/dist/src/models/user-group.entity.js +140 -0
- package/dist/src/models/user-group.entity.js.map +1 -0
- package/dist/src/models/user-role.entity.d.ts +9 -0
- package/dist/src/models/user-role.entity.js +62 -0
- package/dist/src/models/user-role.entity.js.map +1 -0
- package/dist/src/models/user-system-privileges.entity.d.ts +13 -0
- package/dist/src/models/user-system-privileges.entity.js +80 -0
- package/dist/src/models/user-system-privileges.entity.js.map +1 -0
- package/dist/src/models/user-system-role.entity.d.ts +11 -0
- package/dist/src/models/user-system-role.entity.js +60 -0
- package/dist/src/models/user-system-role.entity.js.map +1 -0
- package/dist/src/models/user-user-group.entity.d.ts +14 -0
- package/dist/src/models/user-user-group.entity.js +73 -0
- package/dist/src/models/user-user-group.entity.js.map +1 -0
- package/dist/src/models/user.entity.d.ts +30 -0
- package/dist/src/models/user.entity.js +131 -0
- package/dist/src/models/user.entity.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/migrations/01-alter-system-privilege-table.js +13 -0
- package/migrations/02-alter-user-group-table.js +78 -0
- package/migrations/03-alter-user-system-privilege-table.js +38 -0
- package/migrations/04-create-user-user-group-table.js +55 -0
- package/migrations/05-create-login-history-table.js +49 -0
- package/package.json +8 -4
- package/src/components/login-history/login-history.repository.ts +35 -23
- package/src/components/login-user/login-user.ts +65 -65
- package/src/components/login-user/user.repository.ts +35 -23
- package/src/components/system/system.repository.ts +34 -23
- package/src/components/system-access/system-access.repository.ts +35 -23
- package/src/components/user-group/user-group.repository.ts +35 -23
- package/src/components/user-user-group/user-user-group.repository.ts +35 -23
- package/src/database.ts +15 -0
- package/src/models/authorization-code.entity.ts +71 -0
- package/src/models/bearer-token.entity.ts +59 -0
- package/src/models/building-type.entity.ts +38 -0
- package/src/models/building.entity.ts +185 -0
- package/src/models/city.entity.ts +59 -0
- package/src/models/company.entity.ts +96 -0
- package/src/models/country.entity.ts +75 -0
- package/src/models/department.entity.ts +94 -0
- package/src/models/group-role-privilege.entity.ts +73 -0
- package/src/models/group-system-access.entity.ts +49 -0
- package/src/models/group-system-privilege.entity.ts +49 -0
- package/src/models/group-system-role.entity.ts +49 -0
- package/src/models/login-history.entity.ts +56 -0
- package/src/models/oauth-token.entity.ts +71 -0
- package/src/models/role.entity.ts +85 -0
- package/src/models/staff-type.entity.ts +38 -0
- package/src/models/staff.entity.ts +213 -0
- package/src/models/state.entity.ts +52 -0
- package/src/models/system-accesss.entity.ts +40 -0
- package/src/models/system-privilege.entity.ts +75 -0
- package/src/models/system-role-privilege.entity.ts +48 -0
- package/src/models/system-role.entity.ts +68 -0
- package/src/models/system.entity.ts +122 -0
- package/src/models/user-group.entity.ts +118 -0
- package/src/models/user-role.entity.ts +50 -0
- package/src/models/user-system-privileges.entity.ts +66 -0
- package/src/models/user-system-role.entity.ts +48 -0
- package/src/models/user-user-group.entity.ts +59 -0
- package/src/models/user.entity.ts +110 -0
- package/dist/src/mail/index.d.ts +0 -2
- package/dist/src/mail/index.js +0 -19
- package/dist/src/mail/index.js.map +0 -1
- package/dist/src/mail/interfaces/index.d.ts +0 -2
- package/dist/src/mail/interfaces/index.js +0 -19
- package/dist/src/mail/interfaces/index.js.map +0 -1
- package/dist/src/mail/interfaces/send-mail.interface.d.ts +0 -8
- package/dist/src/mail/interfaces/send-mail.interface.js +0 -3
- package/dist/src/mail/interfaces/send-mail.interface.js.map +0 -1
- package/dist/src/mail/interfaces/send-new-login-alert.interface.d.ts +0 -6
- package/dist/src/mail/interfaces/send-new-login-alert.interface.js +0 -3
- package/dist/src/mail/interfaces/send-new-login-alert.interface.js.map +0 -1
- package/dist/src/mail/mail.d.ts +0 -7
- package/dist/src/mail/mail.js +0 -49
- package/dist/src/mail/mail.js.map +0 -1
- package/dist/src/mail/mail.service.d.ts +0 -7
- package/dist/src/mail/mail.service.js +0 -42
- package/dist/src/mail/mail.service.js.map +0 -1
@@ -1,49 +1,11 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
3
|
exports.UserUserGroupRepository = void 0;
|
13
|
-
const
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
}
|
19
|
-
else {
|
20
|
-
this._prisma = client_1.default;
|
21
|
-
}
|
22
|
-
}
|
23
|
-
create(data) {
|
24
|
-
return __awaiter(this, void 0, void 0, function* () {
|
25
|
-
return yield this._prisma.userUserGroup.create(data);
|
26
|
-
});
|
27
|
-
}
|
28
|
-
findAll(options) {
|
29
|
-
return __awaiter(this, void 0, void 0, function* () {
|
30
|
-
return yield this._prisma.userUserGroup.findMany(options);
|
31
|
-
});
|
32
|
-
}
|
33
|
-
findOne(options) {
|
34
|
-
return __awaiter(this, void 0, void 0, function* () {
|
35
|
-
return yield this._prisma.userUserGroup.findFirst(options);
|
36
|
-
});
|
37
|
-
}
|
38
|
-
update(where, data) {
|
39
|
-
return __awaiter(this, void 0, void 0, function* () {
|
40
|
-
return yield this._prisma.userUserGroup.update(where, data);
|
41
|
-
});
|
42
|
-
}
|
43
|
-
delete(where) {
|
44
|
-
return __awaiter(this, void 0, void 0, function* () {
|
45
|
-
return yield this._prisma.userUserGroup.delete(where);
|
46
|
-
});
|
4
|
+
const user_user_group_entity_1 = require("models/user-user-group.entity");
|
5
|
+
const general_1 = require("@tomei/general");
|
6
|
+
class UserUserGroupRepository extends general_1.RepositoryBase {
|
7
|
+
constructor() {
|
8
|
+
super(user_user_group_entity_1.default);
|
47
9
|
}
|
48
10
|
}
|
49
11
|
exports.UserUserGroupRepository = UserUserGroupRepository;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"user-user-group.repository.js","sourceRoot":"","sources":["../../../../src/components/user-user-group/user-user-group.repository.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"user-user-group.repository.js","sourceRoot":"","sources":["../../../../src/components/user-user-group/user-user-group.repository.ts"],"names":[],"mappings":";;;AAAA,0EAA0D;AAmC1D,4CAAiE;AAEjE,MAAa,uBACX,SAAQ,wBAA6B;IAGrC;QACE,KAAK,CAAC,gCAAa,CAAC,CAAC;IACvB,CAAC;CACF;AAPD,0DAOC"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getConnection = exports.init = void 0;
|
4
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
5
|
+
let sequelize;
|
6
|
+
function init(sequelizeOptions) {
|
7
|
+
sequelize = new sequelize_typescript_1.Sequelize(sequelizeOptions);
|
8
|
+
sequelize.addModels([__dirname + '/models']);
|
9
|
+
}
|
10
|
+
exports.init = init;
|
11
|
+
function getConnection() {
|
12
|
+
return sequelize;
|
13
|
+
}
|
14
|
+
exports.getConnection = getConnection;
|
15
|
+
//# sourceMappingURL=database.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"database.js","sourceRoot":"","sources":["../../src/database.ts"],"names":[],"mappings":";;;AAAA,+DAAmE;AAEnE,IAAI,SAAoB,CAAC;AAEzB,SAAS,IAAI,CAAC,gBAAkC;IAC9C,SAAS,GAAG,IAAI,gCAAS,CAAC,gBAAgB,CAAC,CAAC;IAE5C,SAAS,CAAC,SAAS,CAAC,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC,CAAC;AAC/C,CAAC;AAMQ,oBAAI;AAJb,SAAS,aAAa;IACpB,OAAO,SAAS,CAAC;AACnB,CAAC;AAEc,sCAAa"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
2
|
+
import User from './user.entity';
|
3
|
+
import System from './system.entity';
|
4
|
+
export default class AuthorizationCode extends Model {
|
5
|
+
UserId: number;
|
6
|
+
SystemId: number;
|
7
|
+
Code: string;
|
8
|
+
ExpiredAt: string;
|
9
|
+
status: string;
|
10
|
+
CreatedAt: Date;
|
11
|
+
UpdatedAt: Date;
|
12
|
+
User: User;
|
13
|
+
System: System;
|
14
|
+
}
|
@@ -0,0 +1,86 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
13
|
+
const user_entity_1 = require("./user.entity");
|
14
|
+
const system_entity_1 = require("./system.entity");
|
15
|
+
let AuthorizationCode = class AuthorizationCode extends sequelize_typescript_1.Model {
|
16
|
+
};
|
17
|
+
__decorate([
|
18
|
+
(0, sequelize_typescript_1.ForeignKey)(() => user_entity_1.default),
|
19
|
+
(0, sequelize_typescript_1.Column)({
|
20
|
+
primaryKey: true,
|
21
|
+
allowNull: false,
|
22
|
+
type: sequelize_typescript_1.DataType.INTEGER,
|
23
|
+
field: 'user_id',
|
24
|
+
}),
|
25
|
+
__metadata("design:type", Number)
|
26
|
+
], AuthorizationCode.prototype, "UserId", void 0);
|
27
|
+
__decorate([
|
28
|
+
(0, sequelize_typescript_1.ForeignKey)(() => system_entity_1.default),
|
29
|
+
(0, sequelize_typescript_1.Column)({
|
30
|
+
allowNull: false,
|
31
|
+
type: sequelize_typescript_1.DataType.INTEGER,
|
32
|
+
field: 'system_id',
|
33
|
+
}),
|
34
|
+
__metadata("design:type", Number)
|
35
|
+
], AuthorizationCode.prototype, "SystemId", void 0);
|
36
|
+
__decorate([
|
37
|
+
(0, sequelize_typescript_1.Column)({
|
38
|
+
allowNull: false,
|
39
|
+
type: sequelize_typescript_1.DataType.STRING,
|
40
|
+
field: 'code',
|
41
|
+
}),
|
42
|
+
__metadata("design:type", String)
|
43
|
+
], AuthorizationCode.prototype, "Code", void 0);
|
44
|
+
__decorate([
|
45
|
+
(0, sequelize_typescript_1.Column)({
|
46
|
+
allowNull: false,
|
47
|
+
type: sequelize_typescript_1.DataType.DATE,
|
48
|
+
field: 'expired_at',
|
49
|
+
}),
|
50
|
+
__metadata("design:type", String)
|
51
|
+
], AuthorizationCode.prototype, "ExpiredAt", void 0);
|
52
|
+
__decorate([
|
53
|
+
(0, sequelize_typescript_1.Column)({
|
54
|
+
allowNull: false,
|
55
|
+
type: sequelize_typescript_1.DataType.STRING,
|
56
|
+
field: 'status',
|
57
|
+
}),
|
58
|
+
__metadata("design:type", String)
|
59
|
+
], AuthorizationCode.prototype, "status", void 0);
|
60
|
+
__decorate([
|
61
|
+
sequelize_typescript_1.CreatedAt,
|
62
|
+
__metadata("design:type", Date)
|
63
|
+
], AuthorizationCode.prototype, "CreatedAt", void 0);
|
64
|
+
__decorate([
|
65
|
+
sequelize_typescript_1.UpdatedAt,
|
66
|
+
__metadata("design:type", Date)
|
67
|
+
], AuthorizationCode.prototype, "UpdatedAt", void 0);
|
68
|
+
__decorate([
|
69
|
+
(0, sequelize_typescript_1.BelongsTo)(() => user_entity_1.default),
|
70
|
+
__metadata("design:type", user_entity_1.default)
|
71
|
+
], AuthorizationCode.prototype, "User", void 0);
|
72
|
+
__decorate([
|
73
|
+
(0, sequelize_typescript_1.BelongsTo)(() => system_entity_1.default),
|
74
|
+
__metadata("design:type", system_entity_1.default)
|
75
|
+
], AuthorizationCode.prototype, "System", void 0);
|
76
|
+
AuthorizationCode = __decorate([
|
77
|
+
(0, sequelize_typescript_1.Table)({
|
78
|
+
tableName: 'sso_authorization_codes',
|
79
|
+
timestamps: true,
|
80
|
+
createdAt: 'created_at',
|
81
|
+
updatedAt: 'updated_at',
|
82
|
+
underscored: true,
|
83
|
+
})
|
84
|
+
], AuthorizationCode);
|
85
|
+
exports.default = AuthorizationCode;
|
86
|
+
//# sourceMappingURL=authorization-code.entity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"authorization-code.entity.js","sourceRoot":"","sources":["../../../src/models/authorization-code.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAS8B;AAC9B,+CAAiC;AACjC,mDAAqC;AAStB,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,4BAAK;CAkDnD,CAAA;AAjDC;IAAC,IAAA,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BAAiB,CAkDrC;kBAlDoB,iBAAiB"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
2
|
+
import User from './user.entity';
|
3
|
+
export default class BearerToken extends Model {
|
4
|
+
id: number;
|
5
|
+
UserId: number;
|
6
|
+
Token: string;
|
7
|
+
ExpiredAt: string;
|
8
|
+
CreatedAt: Date;
|
9
|
+
UpdatedAt: Date;
|
10
|
+
User: User;
|
11
|
+
}
|
@@ -0,0 +1,72 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
13
|
+
const user_entity_1 = require("./user.entity");
|
14
|
+
let BearerToken = class BearerToken extends sequelize_typescript_1.Model {
|
15
|
+
};
|
16
|
+
__decorate([
|
17
|
+
(0, sequelize_typescript_1.Column)({
|
18
|
+
primaryKey: true,
|
19
|
+
allowNull: false,
|
20
|
+
autoIncrement: true,
|
21
|
+
type: sequelize_typescript_1.DataType.INTEGER,
|
22
|
+
}),
|
23
|
+
__metadata("design:type", Number)
|
24
|
+
], BearerToken.prototype, "id", void 0);
|
25
|
+
__decorate([
|
26
|
+
(0, sequelize_typescript_1.ForeignKey)(() => user_entity_1.default),
|
27
|
+
(0, sequelize_typescript_1.Column)({
|
28
|
+
allowNull: false,
|
29
|
+
type: sequelize_typescript_1.DataType.INTEGER,
|
30
|
+
field: 'user_id',
|
31
|
+
}),
|
32
|
+
__metadata("design:type", Number)
|
33
|
+
], BearerToken.prototype, "UserId", void 0);
|
34
|
+
__decorate([
|
35
|
+
(0, sequelize_typescript_1.Column)({
|
36
|
+
allowNull: false,
|
37
|
+
type: sequelize_typescript_1.DataType.STRING,
|
38
|
+
field: 'token',
|
39
|
+
}),
|
40
|
+
__metadata("design:type", String)
|
41
|
+
], BearerToken.prototype, "Token", void 0);
|
42
|
+
__decorate([
|
43
|
+
(0, sequelize_typescript_1.Column)({
|
44
|
+
allowNull: false,
|
45
|
+
type: sequelize_typescript_1.DataType.DATE,
|
46
|
+
field: 'expired_at',
|
47
|
+
}),
|
48
|
+
__metadata("design:type", String)
|
49
|
+
], BearerToken.prototype, "ExpiredAt", void 0);
|
50
|
+
__decorate([
|
51
|
+
sequelize_typescript_1.CreatedAt,
|
52
|
+
__metadata("design:type", Date)
|
53
|
+
], BearerToken.prototype, "CreatedAt", void 0);
|
54
|
+
__decorate([
|
55
|
+
sequelize_typescript_1.UpdatedAt,
|
56
|
+
__metadata("design:type", Date)
|
57
|
+
], BearerToken.prototype, "UpdatedAt", void 0);
|
58
|
+
__decorate([
|
59
|
+
(0, sequelize_typescript_1.BelongsTo)(() => user_entity_1.default),
|
60
|
+
__metadata("design:type", user_entity_1.default)
|
61
|
+
], BearerToken.prototype, "User", void 0);
|
62
|
+
BearerToken = __decorate([
|
63
|
+
(0, sequelize_typescript_1.Table)({
|
64
|
+
tableName: 'sso_bearer_tokens',
|
65
|
+
timestamps: true,
|
66
|
+
createdAt: 'created_at',
|
67
|
+
updatedAt: 'updated_at',
|
68
|
+
underscored: true,
|
69
|
+
})
|
70
|
+
], BearerToken);
|
71
|
+
exports.default = BearerToken;
|
72
|
+
//# sourceMappingURL=bearer-token.entity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"bearer-token.entity.js","sourceRoot":"","sources":["../../../src/models/bearer-token.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAS8B;AAC9B,+CAAiC;AASlB,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,4BAAK;CAuC7C,CAAA;AAtCC;IAAC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;QAChB,aAAa,EAAE,IAAI;QACnB,IAAI,EAAE,+BAAQ,CAAC,OAAO;KACvB,CAAC;;uCACS;AAEX;IAAC,IAAA,iCAAU,EAAC,GAAG,EAAE,CAAC,qBAAI,CAAC;IACtB,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,OAAO;QACtB,KAAK,EAAE,SAAS;KACjB,CAAC;;2CACa;AAEf;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM;QACrB,KAAK,EAAE,OAAO;KACf,CAAC;;0CACY;AAEd;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,IAAI;QACnB,KAAK,EAAE,YAAY;KACpB,CAAC;;8CACgB;AAElB;IAAC,gCAAS;8BACC,IAAI;8CAAC;AAEhB;IAAC,gCAAS;8BACC,IAAI;8CAAC;AAEhB;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,qBAAI,CAAC;8BAChB,qBAAI;yCAAC;AAtCQ,WAAW;IAP/B,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,mBAAmB;QAC9B,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,YAAY;QACvB,SAAS,EAAE,YAAY;QACvB,WAAW,EAAE,IAAI;KAClB,CAAC;GACmB,WAAW,CAuC/B;kBAvCoB,WAAW"}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
13
|
+
let BuildingType = class BuildingType extends sequelize_typescript_1.Model {
|
14
|
+
};
|
15
|
+
__decorate([
|
16
|
+
(0, sequelize_typescript_1.Column)({
|
17
|
+
primaryKey: true,
|
18
|
+
allowNull: false,
|
19
|
+
autoIncrement: true,
|
20
|
+
type: sequelize_typescript_1.DataType.INTEGER,
|
21
|
+
}),
|
22
|
+
__metadata("design:type", Number)
|
23
|
+
], BuildingType.prototype, "id", void 0);
|
24
|
+
__decorate([
|
25
|
+
(0, sequelize_typescript_1.Column)({
|
26
|
+
allowNull: false,
|
27
|
+
type: sequelize_typescript_1.DataType.STRING,
|
28
|
+
field: 'name',
|
29
|
+
}),
|
30
|
+
__metadata("design:type", String)
|
31
|
+
], BuildingType.prototype, "Name", void 0);
|
32
|
+
__decorate([
|
33
|
+
sequelize_typescript_1.CreatedAt,
|
34
|
+
__metadata("design:type", Date)
|
35
|
+
], BuildingType.prototype, "CreatedAt", void 0);
|
36
|
+
__decorate([
|
37
|
+
sequelize_typescript_1.UpdatedAt,
|
38
|
+
__metadata("design:type", Date)
|
39
|
+
], BuildingType.prototype, "UpdatedAt", void 0);
|
40
|
+
BuildingType = __decorate([
|
41
|
+
(0, sequelize_typescript_1.Table)({
|
42
|
+
tableName: 'sso_building_types',
|
43
|
+
timestamps: true,
|
44
|
+
createdAt: 'created_at',
|
45
|
+
updatedAt: 'updated_at',
|
46
|
+
underscored: true,
|
47
|
+
})
|
48
|
+
], BuildingType);
|
49
|
+
exports.default = BuildingType;
|
50
|
+
//# sourceMappingURL=building-type.entity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"building-type.entity.js","sourceRoot":"","sources":["../../../src/models/building-type.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAO8B;AASf,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,4BAAK;CAqB9C,CAAA;AApBC;IAAC,IAAA,6BAAM,EAAC;QACN,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;QAChB,aAAa,EAAE,IAAI;QACnB,IAAI,EAAE,+BAAQ,CAAC,OAAO;KACvB,CAAC;;wCACS;AAEX;IAAC,IAAA,6BAAM,EAAC;QACN,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,+BAAQ,CAAC,MAAM;QACrB,KAAK,EAAE,MAAM;KACd,CAAC;;0CACW;AAEb;IAAC,gCAAS;8BACC,IAAI;+CAAC;AAEhB;IAAC,gCAAS;8BACC,IAAI;+CAAC;AApBG,YAAY;IAPhC,IAAA,4BAAK,EAAC;QACL,SAAS,EAAE,oBAAoB;QAC/B,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,YAAY;QACvB,SAAS,EAAE,YAAY;QACvB,WAAW,EAAE,IAAI;KAClB,CAAC;GACmB,YAAY,CAqBhC;kBArBoB,YAAY"}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
2
|
+
export default class Building extends Model {
|
3
|
+
id: number;
|
4
|
+
Name: string;
|
5
|
+
Code: string;
|
6
|
+
BuildingTypeId: number;
|
7
|
+
Status: string;
|
8
|
+
Email: string;
|
9
|
+
Mobile: string;
|
10
|
+
Phone: string;
|
11
|
+
Address: string;
|
12
|
+
Latitude: string;
|
13
|
+
Longitude: string;
|
14
|
+
PostCode: string;
|
15
|
+
CountryId: number;
|
16
|
+
State: string;
|
17
|
+
City: string;
|
18
|
+
CreatedById: number;
|
19
|
+
UpdatedById: number;
|
20
|
+
Brand: string;
|
21
|
+
AreaStaffId: string;
|
22
|
+
OpeningDate: Date;
|
23
|
+
CeasedDate: Date;
|
24
|
+
OpeningHours: string;
|
25
|
+
Image: string;
|
26
|
+
CreatedAt: Date;
|
27
|
+
UpdatedAt: Date;
|
28
|
+
}
|
@@ -0,0 +1,218 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
13
|
+
let Building = class Building extends sequelize_typescript_1.Model {
|
14
|
+
};
|
15
|
+
__decorate([
|
16
|
+
(0, sequelize_typescript_1.Column)({
|
17
|
+
primaryKey: true,
|
18
|
+
allowNull: false,
|
19
|
+
autoIncrement: true,
|
20
|
+
type: sequelize_typescript_1.DataType.INTEGER,
|
21
|
+
}),
|
22
|
+
__metadata("design:type", Number)
|
23
|
+
], Building.prototype, "id", void 0);
|
24
|
+
__decorate([
|
25
|
+
(0, sequelize_typescript_1.Column)({
|
26
|
+
allowNull: true,
|
27
|
+
type: sequelize_typescript_1.DataType.STRING,
|
28
|
+
field: 'name',
|
29
|
+
}),
|
30
|
+
__metadata("design:type", String)
|
31
|
+
], Building.prototype, "Name", void 0);
|
32
|
+
__decorate([
|
33
|
+
(0, sequelize_typescript_1.Column)({
|
34
|
+
allowNull: false,
|
35
|
+
type: sequelize_typescript_1.DataType.STRING,
|
36
|
+
field: 'code',
|
37
|
+
}),
|
38
|
+
__metadata("design:type", String)
|
39
|
+
], Building.prototype, "Code", void 0);
|
40
|
+
__decorate([
|
41
|
+
(0, sequelize_typescript_1.Column)({
|
42
|
+
allowNull: false,
|
43
|
+
type: sequelize_typescript_1.DataType.INTEGER,
|
44
|
+
field: 'building_type_id',
|
45
|
+
}),
|
46
|
+
__metadata("design:type", Number)
|
47
|
+
], Building.prototype, "BuildingTypeId", void 0);
|
48
|
+
__decorate([
|
49
|
+
(0, sequelize_typescript_1.Column)({
|
50
|
+
allowNull: false,
|
51
|
+
type: sequelize_typescript_1.DataType.STRING,
|
52
|
+
field: 'status',
|
53
|
+
}),
|
54
|
+
__metadata("design:type", String)
|
55
|
+
], Building.prototype, "Status", void 0);
|
56
|
+
__decorate([
|
57
|
+
(0, sequelize_typescript_1.Column)({
|
58
|
+
allowNull: true,
|
59
|
+
type: sequelize_typescript_1.DataType.STRING,
|
60
|
+
field: 'email',
|
61
|
+
}),
|
62
|
+
__metadata("design:type", String)
|
63
|
+
], Building.prototype, "Email", void 0);
|
64
|
+
__decorate([
|
65
|
+
(0, sequelize_typescript_1.Column)({
|
66
|
+
allowNull: true,
|
67
|
+
type: sequelize_typescript_1.DataType.STRING,
|
68
|
+
field: 'mobile',
|
69
|
+
}),
|
70
|
+
__metadata("design:type", String)
|
71
|
+
], Building.prototype, "Mobile", void 0);
|
72
|
+
__decorate([
|
73
|
+
(0, sequelize_typescript_1.Column)({
|
74
|
+
allowNull: false,
|
75
|
+
type: sequelize_typescript_1.DataType.STRING,
|
76
|
+
field: 'phone',
|
77
|
+
}),
|
78
|
+
__metadata("design:type", String)
|
79
|
+
], Building.prototype, "Phone", void 0);
|
80
|
+
__decorate([
|
81
|
+
(0, sequelize_typescript_1.Column)({
|
82
|
+
allowNull: false,
|
83
|
+
type: sequelize_typescript_1.DataType.STRING,
|
84
|
+
field: 'address',
|
85
|
+
}),
|
86
|
+
__metadata("design:type", String)
|
87
|
+
], Building.prototype, "Address", void 0);
|
88
|
+
__decorate([
|
89
|
+
(0, sequelize_typescript_1.Column)({
|
90
|
+
allowNull: true,
|
91
|
+
type: sequelize_typescript_1.DataType.STRING,
|
92
|
+
field: 'latitude',
|
93
|
+
}),
|
94
|
+
__metadata("design:type", String)
|
95
|
+
], Building.prototype, "Latitude", void 0);
|
96
|
+
__decorate([
|
97
|
+
(0, sequelize_typescript_1.Column)({
|
98
|
+
allowNull: true,
|
99
|
+
type: sequelize_typescript_1.DataType.STRING,
|
100
|
+
field: 'longitude',
|
101
|
+
}),
|
102
|
+
__metadata("design:type", String)
|
103
|
+
], Building.prototype, "Longitude", void 0);
|
104
|
+
__decorate([
|
105
|
+
(0, sequelize_typescript_1.Column)({
|
106
|
+
allowNull: false,
|
107
|
+
type: sequelize_typescript_1.DataType.STRING,
|
108
|
+
field: 'postcode',
|
109
|
+
}),
|
110
|
+
__metadata("design:type", String)
|
111
|
+
], Building.prototype, "PostCode", void 0);
|
112
|
+
__decorate([
|
113
|
+
(0, sequelize_typescript_1.Column)({
|
114
|
+
allowNull: false,
|
115
|
+
type: sequelize_typescript_1.DataType.INTEGER,
|
116
|
+
field: 'country_id',
|
117
|
+
}),
|
118
|
+
__metadata("design:type", Number)
|
119
|
+
], Building.prototype, "CountryId", void 0);
|
120
|
+
__decorate([
|
121
|
+
(0, sequelize_typescript_1.Column)({
|
122
|
+
allowNull: false,
|
123
|
+
type: sequelize_typescript_1.DataType.STRING,
|
124
|
+
field: 'state',
|
125
|
+
}),
|
126
|
+
__metadata("design:type", String)
|
127
|
+
], Building.prototype, "State", void 0);
|
128
|
+
__decorate([
|
129
|
+
(0, sequelize_typescript_1.Column)({
|
130
|
+
allowNull: false,
|
131
|
+
type: sequelize_typescript_1.DataType.STRING,
|
132
|
+
field: 'city',
|
133
|
+
}),
|
134
|
+
__metadata("design:type", String)
|
135
|
+
], Building.prototype, "City", void 0);
|
136
|
+
__decorate([
|
137
|
+
(0, sequelize_typescript_1.Column)({
|
138
|
+
allowNull: true,
|
139
|
+
type: sequelize_typescript_1.DataType.INTEGER,
|
140
|
+
field: 'created_by_id',
|
141
|
+
}),
|
142
|
+
__metadata("design:type", Number)
|
143
|
+
], Building.prototype, "CreatedById", void 0);
|
144
|
+
__decorate([
|
145
|
+
(0, sequelize_typescript_1.Column)({
|
146
|
+
allowNull: true,
|
147
|
+
type: sequelize_typescript_1.DataType.INTEGER,
|
148
|
+
field: 'updated_by_id',
|
149
|
+
}),
|
150
|
+
__metadata("design:type", Number)
|
151
|
+
], Building.prototype, "UpdatedById", void 0);
|
152
|
+
__decorate([
|
153
|
+
(0, sequelize_typescript_1.Column)({
|
154
|
+
allowNull: true,
|
155
|
+
type: sequelize_typescript_1.DataType.STRING,
|
156
|
+
field: 'brand',
|
157
|
+
}),
|
158
|
+
__metadata("design:type", String)
|
159
|
+
], Building.prototype, "Brand", void 0);
|
160
|
+
__decorate([
|
161
|
+
(0, sequelize_typescript_1.Column)({
|
162
|
+
allowNull: true,
|
163
|
+
type: sequelize_typescript_1.DataType.STRING,
|
164
|
+
field: 'area_staff_id',
|
165
|
+
}),
|
166
|
+
__metadata("design:type", String)
|
167
|
+
], Building.prototype, "AreaStaffId", void 0);
|
168
|
+
__decorate([
|
169
|
+
(0, sequelize_typescript_1.Column)({
|
170
|
+
allowNull: true,
|
171
|
+
type: sequelize_typescript_1.DataType.DATE,
|
172
|
+
field: 'opening_date',
|
173
|
+
}),
|
174
|
+
__metadata("design:type", Date)
|
175
|
+
], Building.prototype, "OpeningDate", void 0);
|
176
|
+
__decorate([
|
177
|
+
(0, sequelize_typescript_1.Column)({
|
178
|
+
allowNull: true,
|
179
|
+
type: sequelize_typescript_1.DataType.DATE,
|
180
|
+
field: 'ceased_date',
|
181
|
+
}),
|
182
|
+
__metadata("design:type", Date)
|
183
|
+
], Building.prototype, "CeasedDate", void 0);
|
184
|
+
__decorate([
|
185
|
+
(0, sequelize_typescript_1.Column)({
|
186
|
+
allowNull: true,
|
187
|
+
type: sequelize_typescript_1.DataType.STRING,
|
188
|
+
field: 'opening_hours',
|
189
|
+
}),
|
190
|
+
__metadata("design:type", String)
|
191
|
+
], Building.prototype, "OpeningHours", void 0);
|
192
|
+
__decorate([
|
193
|
+
(0, sequelize_typescript_1.Column)({
|
194
|
+
allowNull: true,
|
195
|
+
type: sequelize_typescript_1.DataType.STRING,
|
196
|
+
field: 'image',
|
197
|
+
}),
|
198
|
+
__metadata("design:type", String)
|
199
|
+
], Building.prototype, "Image", void 0);
|
200
|
+
__decorate([
|
201
|
+
sequelize_typescript_1.CreatedAt,
|
202
|
+
__metadata("design:type", Date)
|
203
|
+
], Building.prototype, "CreatedAt", void 0);
|
204
|
+
__decorate([
|
205
|
+
sequelize_typescript_1.UpdatedAt,
|
206
|
+
__metadata("design:type", Date)
|
207
|
+
], Building.prototype, "UpdatedAt", void 0);
|
208
|
+
Building = __decorate([
|
209
|
+
(0, sequelize_typescript_1.Table)({
|
210
|
+
tableName: 'sso_buildings',
|
211
|
+
timestamps: true,
|
212
|
+
createdAt: 'created_at',
|
213
|
+
updatedAt: 'updated_at',
|
214
|
+
underscored: true,
|
215
|
+
})
|
216
|
+
], Building);
|
217
|
+
exports.default = Building;
|
218
|
+
//# sourceMappingURL=building.entity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"building.entity.js","sourceRoot":"","sources":["../../../src/models/building.entity.ts"],"names":[],"mappings":";;;;;;;;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