easywork-common-lib 1.0.873 → 1.0.875
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/dist/entities/drive/file.entity.d.ts +1 -0
- package/dist/entities/drive/file.entity.js +63 -15
- package/dist/entities/drive/file.entity.js.map +1 -1
- package/dist/entities/drive/folder.entity.d.ts +1 -0
- package/dist/entities/drive/folder.entity.js +48 -12
- package/dist/entities/drive/folder.entity.js.map +1 -1
- package/dist/entities/helpers/user/access_history.entity.d.ts +9 -0
- package/dist/entities/helpers/user/access_history.entity.js +58 -0
- package/dist/entities/helpers/user/access_history.entity.js.map +1 -0
- package/dist/entities/policy/policy-details.entity.d.ts +42 -0
- package/dist/entities/policy/policy-details.entity.js +380 -0
- package/dist/entities/policy/policy-details.entity.js.map +1 -0
- package/dist/entities/thirdparty/email-config.entity.d.ts +14 -0
- package/dist/entities/thirdparty/email-config.entity.js +76 -0
- package/dist/entities/thirdparty/email-config.entity.js.map +1 -0
- package/dist/entities/thirdparty/email.entity.d.ts +17 -0
- package/dist/entities/thirdparty/email.entity.js +79 -0
- package/dist/entities/thirdparty/email.entity.js.map +1 -0
- package/dist/entities/thirdparty/service.entity.d.ts +8 -0
- package/dist/entities/thirdparty/service.entity.js +38 -0
- package/dist/entities/thirdparty/service.entity.js.map +1 -0
- package/dist/entities/thirdparty/user-email-relation.entity.d.ts +7 -0
- package/dist/entities/thirdparty/user-email-relation.entity.js +35 -0
- package/dist/entities/thirdparty/user-email-relation.entity.js.map +1 -0
- package/dist/entities/tools/calendar/calendar-list.entity.d.ts +36 -0
- package/dist/entities/tools/calendar/calendar-list.entity.js +109 -0
- package/dist/entities/tools/calendar/calendar-list.entity.js.map +1 -0
- package/dist/entities/tools/calendar/event-list-calendars.entity.d.ts +6 -0
- package/dist/entities/tools/calendar/event-list-calendars.entity.js +32 -0
- package/dist/entities/tools/calendar/event-list-calendars.entity.js.map +1 -0
- package/dist/entities/user-change-log.entity.d.ts +0 -2
- package/dist/entities/user-change-log.entity.js +0 -21
- package/dist/entities/user-change-log.entity.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
exports.UserEmailRelation = void 0;
|
|
13
|
+
const base_entity_1 = require("../../common/database/base.entity");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const user_entity_1 = require("../user.entity");
|
|
16
|
+
const email_entity_1 = require("./email.entity");
|
|
17
|
+
let UserEmailRelation = class UserEmailRelation extends base_entity_1.EntityBase {
|
|
18
|
+
user;
|
|
19
|
+
email;
|
|
20
|
+
};
|
|
21
|
+
exports.UserEmailRelation = UserEmailRelation;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, (user) => user.emailRelations, { onDelete: "CASCADE", onUpdate: "CASCADE" }),
|
|
24
|
+
(0, typeorm_1.JoinColumn)(),
|
|
25
|
+
__metadata("design:type", user_entity_1.User)
|
|
26
|
+
], UserEmailRelation.prototype, "user", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.ManyToOne)(() => email_entity_1.EmailThirdparty, (email) => email.userRelations, { onDelete: "CASCADE", onUpdate: "CASCADE" }),
|
|
29
|
+
(0, typeorm_1.JoinColumn)(),
|
|
30
|
+
__metadata("design:type", email_entity_1.EmailThirdparty)
|
|
31
|
+
], UserEmailRelation.prototype, "email", void 0);
|
|
32
|
+
exports.UserEmailRelation = UserEmailRelation = __decorate([
|
|
33
|
+
(0, typeorm_1.Entity)()
|
|
34
|
+
], UserEmailRelation);
|
|
35
|
+
//# sourceMappingURL=user-email-relation.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-email-relation.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/user-email-relation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAAwD;AACxD,gDAAsC;AACtC,iDAAiD;AAG1C,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,wBAAU;IAG/C,IAAI,CAAO;IAIX,KAAK,CAAkB;CACxB,CAAA;AARY,8CAAiB;AAG5B;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAClG,IAAA,oBAAU,GAAE;8BACP,kBAAI;+CAAC;AAIX;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAe,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC9G,IAAA,oBAAU,GAAE;8BACN,8BAAe;gDAAC;4BAPZ,iBAAiB;IAD7B,IAAA,gBAAM,GAAE;GACI,iBAAiB,CAQ7B"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { BaseEntityOnlyEssential } from '../../../common/database/base.entity';
|
|
2
|
+
import { Oauth } from '../../thirdparty/oauth.entity';
|
|
3
|
+
import { User } from '../../user.entity';
|
|
4
|
+
export declare enum CalendarProvider {
|
|
5
|
+
GOOGLE = "google",
|
|
6
|
+
ICLOUD = "icloud",
|
|
7
|
+
MICROSOFT = "microsoft"
|
|
8
|
+
}
|
|
9
|
+
export declare class CalendarList extends BaseEntityOnlyEssential {
|
|
10
|
+
calendarId: string;
|
|
11
|
+
name: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
isPrimary: boolean;
|
|
14
|
+
timeZone: string;
|
|
15
|
+
accessRole?: string;
|
|
16
|
+
color?: string;
|
|
17
|
+
selected: boolean;
|
|
18
|
+
defaultReminders?: {
|
|
19
|
+
method: string;
|
|
20
|
+
minutes: number;
|
|
21
|
+
}[];
|
|
22
|
+
conferenceProperties?: {
|
|
23
|
+
allowedConferenceSolutionTypes: string[];
|
|
24
|
+
};
|
|
25
|
+
notificationSettings?: {
|
|
26
|
+
notifications: {
|
|
27
|
+
type: string;
|
|
28
|
+
method: string;
|
|
29
|
+
}[];
|
|
30
|
+
};
|
|
31
|
+
ownerName?: string;
|
|
32
|
+
ownerEmail?: string;
|
|
33
|
+
provider: CalendarProvider;
|
|
34
|
+
oauth: Oauth;
|
|
35
|
+
user: User;
|
|
36
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
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
|
+
exports.CalendarList = exports.CalendarProvider = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const base_entity_1 = require("../../../common/database/base.entity");
|
|
15
|
+
const oauth_entity_1 = require("../../thirdparty/oauth.entity");
|
|
16
|
+
const user_entity_1 = require("../../user.entity");
|
|
17
|
+
var CalendarProvider;
|
|
18
|
+
(function (CalendarProvider) {
|
|
19
|
+
CalendarProvider["GOOGLE"] = "google";
|
|
20
|
+
CalendarProvider["ICLOUD"] = "icloud";
|
|
21
|
+
CalendarProvider["MICROSOFT"] = "microsoft";
|
|
22
|
+
})(CalendarProvider || (exports.CalendarProvider = CalendarProvider = {}));
|
|
23
|
+
let CalendarList = class CalendarList extends base_entity_1.BaseEntityOnlyEssential {
|
|
24
|
+
calendarId;
|
|
25
|
+
name;
|
|
26
|
+
description;
|
|
27
|
+
isPrimary;
|
|
28
|
+
timeZone;
|
|
29
|
+
accessRole;
|
|
30
|
+
color;
|
|
31
|
+
selected;
|
|
32
|
+
defaultReminders;
|
|
33
|
+
conferenceProperties;
|
|
34
|
+
notificationSettings;
|
|
35
|
+
ownerName;
|
|
36
|
+
ownerEmail;
|
|
37
|
+
provider;
|
|
38
|
+
oauth;
|
|
39
|
+
user;
|
|
40
|
+
};
|
|
41
|
+
exports.CalendarList = CalendarList;
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'varchar', unique: true }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], CalendarList.prototype, "calendarId", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], CalendarList.prototype, "name", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], CalendarList.prototype, "description", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
56
|
+
__metadata("design:type", Boolean)
|
|
57
|
+
], CalendarList.prototype, "isPrimary", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)(),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], CalendarList.prototype, "timeZone", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], CalendarList.prototype, "accessRole", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], CalendarList.prototype, "color", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
72
|
+
__metadata("design:type", Boolean)
|
|
73
|
+
], CalendarList.prototype, "selected", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
76
|
+
__metadata("design:type", Array)
|
|
77
|
+
], CalendarList.prototype, "defaultReminders", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
80
|
+
__metadata("design:type", Object)
|
|
81
|
+
], CalendarList.prototype, "conferenceProperties", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
84
|
+
__metadata("design:type", Object)
|
|
85
|
+
], CalendarList.prototype, "notificationSettings", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], CalendarList.prototype, "ownerName", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], CalendarList.prototype, "ownerEmail", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: CalendarProvider }),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], CalendarList.prototype, "provider", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, typeorm_1.ManyToOne)(() => oauth_entity_1.Oauth, { nullable: false, onDelete: 'CASCADE' }),
|
|
100
|
+
__metadata("design:type", oauth_entity_1.Oauth)
|
|
101
|
+
], CalendarList.prototype, "oauth", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: false, onDelete: 'CASCADE' }),
|
|
104
|
+
__metadata("design:type", user_entity_1.User)
|
|
105
|
+
], CalendarList.prototype, "user", void 0);
|
|
106
|
+
exports.CalendarList = CalendarList = __decorate([
|
|
107
|
+
(0, typeorm_1.Entity)()
|
|
108
|
+
], CalendarList);
|
|
109
|
+
//# sourceMappingURL=calendar-list.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-list.entity.js","sourceRoot":"","sources":["../../../../src/entities/tools/calendar/calendar-list.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AAEpD,sEAA+E;AAC/E,gEAAsD;AACtD,mDAAyC;AAEzC,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,qCAAiB,CAAA;IACjB,qCAAiB,CAAA;IACjB,2CAAuB,CAAA;AACzB,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B;AAGM,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,qCAAuB;IAEvD,UAAU,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Q,EAAE,IAAI,EAAE,CAAC;;+CACR;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACP;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;;8CACtB;AAG3B;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC1D,oBAAK;2CAAC;AAGb;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC1D,kBAAI;0CAAC;uBAhDA,YAAY;IADxB,IAAA,gBAAM,GAAE;GACI,YAAY,CAiDxB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
exports.EventListCalendars = void 0;
|
|
13
|
+
const base_entity_1 = require("../../../common/database/base.entity");
|
|
14
|
+
const oauth_entity_1 = require("../../thirdparty/oauth.entity");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
let EventListCalendars = class EventListCalendars extends base_entity_1.EntityBase {
|
|
17
|
+
calendars;
|
|
18
|
+
oAuth;
|
|
19
|
+
};
|
|
20
|
+
exports.EventListCalendars = EventListCalendars;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ type: "jsonb" }),
|
|
23
|
+
__metadata("design:type", Array)
|
|
24
|
+
], EventListCalendars.prototype, "calendars", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.OneToOne)(() => oauth_entity_1.Oauth, (oauth) => oauth.calendarsList),
|
|
27
|
+
__metadata("design:type", oauth_entity_1.Oauth)
|
|
28
|
+
], EventListCalendars.prototype, "oAuth", void 0);
|
|
29
|
+
exports.EventListCalendars = EventListCalendars = __decorate([
|
|
30
|
+
(0, typeorm_1.Entity)()
|
|
31
|
+
], EventListCalendars);
|
|
32
|
+
//# sourceMappingURL=event-list-calendars.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-list-calendars.entity.js","sourceRoot":"","sources":["../../../../src/entities/tools/calendar/event-list-calendars.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sEAAkE;AAClE,gEAAsD;AACtD,qCAAmD;AAG5C,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,wBAAU;IAEhD,SAAS,CAAW;IAGpB,KAAK,CAAQ;CACd,CAAA;AANY,gDAAkB;AAE7B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;qDACN;AAGpB;IADC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC;8BAC/C,oBAAK;iDAAC;6BALF,kBAAkB;IAD9B,IAAA,gBAAM,GAAE;GACI,kBAAkB,CAM9B"}
|
|
@@ -14,9 +14,7 @@ export interface TUserAccessChanges {
|
|
|
14
14
|
[key: string]: any;
|
|
15
15
|
}
|
|
16
16
|
export declare class UserChangeLog extends BaseEntityOnlyEssential {
|
|
17
|
-
targetUserId: string;
|
|
18
17
|
targetUser: User;
|
|
19
|
-
changerUserId?: string;
|
|
20
18
|
changerUser?: User;
|
|
21
19
|
description?: string;
|
|
22
20
|
changes?: TUserAccessChanges;
|
|
@@ -15,38 +15,17 @@ const swagger_1 = require("@nestjs/swagger");
|
|
|
15
15
|
const base_entity_1 = require("../common/database/base.entity");
|
|
16
16
|
const user_entity_1 = require("./user.entity");
|
|
17
17
|
let UserChangeLog = class UserChangeLog extends base_entity_1.BaseEntityOnlyEssential {
|
|
18
|
-
targetUserId;
|
|
19
18
|
targetUser;
|
|
20
|
-
changerUserId;
|
|
21
19
|
changerUser;
|
|
22
20
|
description;
|
|
23
21
|
changes;
|
|
24
22
|
changeType;
|
|
25
23
|
};
|
|
26
24
|
exports.UserChangeLog = UserChangeLog;
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, swagger_1.ApiProperty)({
|
|
29
|
-
type: String,
|
|
30
|
-
description: "ID del usuario al que se le aplicó el cambio",
|
|
31
|
-
format: "uuid",
|
|
32
|
-
}),
|
|
33
|
-
(0, typeorm_1.Column)({ type: "uuid", nullable: false }),
|
|
34
|
-
__metadata("design:type", String)
|
|
35
|
-
], UserChangeLog.prototype, "targetUserId", void 0);
|
|
36
25
|
__decorate([
|
|
37
26
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: false, onDelete: "SET NULL" }),
|
|
38
27
|
__metadata("design:type", user_entity_1.User)
|
|
39
28
|
], UserChangeLog.prototype, "targetUser", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, swagger_1.ApiProperty)({
|
|
42
|
-
type: String,
|
|
43
|
-
description: "ID del usuario que realizó el cambio",
|
|
44
|
-
format: "uuid",
|
|
45
|
-
nullable: true,
|
|
46
|
-
}),
|
|
47
|
-
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
48
|
-
__metadata("design:type", String)
|
|
49
|
-
], UserChangeLog.prototype, "changerUserId", void 0);
|
|
50
29
|
__decorate([
|
|
51
30
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: true, onDelete: "SET NULL" }),
|
|
52
31
|
__metadata("design:type", user_entity_1.User)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-change-log.entity.js","sourceRoot":"","sources":["../../src/entities/user-change-log.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAAoD;AACpD,6CAA8C;AAC9C,gEAAyE;AACzE,+CAAqC;AAY9B,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,qCAAuB;
|
|
1
|
+
{"version":3,"file":"user-change-log.entity.js","sourceRoot":"","sources":["../../src/entities/user-change-log.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAAoD;AACpD,6CAA8C;AAC9C,gEAAyE;AACzE,+CAAqC;AAY9B,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,qCAAuB;IAExD,UAAU,CAAO;IAGjB,WAAW,CAAQ;IAQnB,WAAW,CAAU;IAWrB,OAAO,CAAsB;IAQ7B,UAAU,CAAU;CACrB,CAAA;AAjCY,sCAAa;AAExB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;8BACrD,kBAAI;iDAAC;AAGjB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;8BAClD,kBAAI;kDAAC;AAQnB;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,oCAAoC;QACjD,QAAQ,EAAE,IAAI;KACf,CAA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