easywork-common-lib 1.0.1341 → 1.0.1343
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/index.d.ts +63 -62
- package/dist/entities/index.js +1 -0
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/tools/index.d.ts +2 -0
- package/dist/entities/tools/index.js +2 -0
- package/dist/entities/tools/index.js.map +1 -1
- package/dist/entities/tools/task-template-permission.entity.d.ts +7 -0
- package/dist/entities/tools/task-template-permission.entity.js +51 -0
- package/dist/entities/tools/task-template-permission.entity.js.map +1 -0
- package/dist/entities/tools/task-template.entity.d.ts +26 -0
- package/dist/entities/tools/task-template.entity.js +225 -0
- package/dist/entities/tools/task-template.entity.js.map +1 -0
- package/package.json +1 -1
package/dist/entities/index.d.ts
CHANGED
|
@@ -1,62 +1,63 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
22
|
-
export * from
|
|
23
|
-
export * from
|
|
24
|
-
export * from
|
|
25
|
-
export * from
|
|
26
|
-
export * from
|
|
27
|
-
export * from
|
|
28
|
-
export * from
|
|
29
|
-
export * from
|
|
30
|
-
export * from
|
|
31
|
-
export * from
|
|
32
|
-
export * from
|
|
33
|
-
export * from
|
|
34
|
-
export * from
|
|
35
|
-
export * from
|
|
36
|
-
export * from
|
|
37
|
-
export * from
|
|
38
|
-
export * from
|
|
39
|
-
export * from
|
|
40
|
-
export * from
|
|
41
|
-
export * from
|
|
42
|
-
export * from
|
|
43
|
-
export * from
|
|
44
|
-
export * from
|
|
45
|
-
export * from
|
|
46
|
-
export * from
|
|
47
|
-
export * from
|
|
48
|
-
export * from
|
|
49
|
-
export * from
|
|
50
|
-
export * from
|
|
51
|
-
export * from
|
|
52
|
-
export * from
|
|
53
|
-
export * from
|
|
54
|
-
export * from
|
|
55
|
-
export * from
|
|
56
|
-
export * from
|
|
57
|
-
export * from
|
|
58
|
-
export * from
|
|
59
|
-
export * from
|
|
60
|
-
export * from
|
|
61
|
-
export * from
|
|
62
|
-
export * from
|
|
1
|
+
export * from "./app_config/app-config.entity";
|
|
2
|
+
export * from "./currency.entity";
|
|
3
|
+
export * from "./drive";
|
|
4
|
+
export * from "./easyapp/filter-view.entity";
|
|
5
|
+
export * from "./email.entity";
|
|
6
|
+
export * from "./group.entity";
|
|
7
|
+
export * from "./group/group-collection-responsible.entity";
|
|
8
|
+
export * from "./imap-config.entity";
|
|
9
|
+
export * from "./login-history.entity";
|
|
10
|
+
export * from "./meeting-comment.entity";
|
|
11
|
+
export * from "./meeting.entity";
|
|
12
|
+
export * from "./menu-permissions.entity";
|
|
13
|
+
export * from "./notifications";
|
|
14
|
+
export * from "./otp-log.entity";
|
|
15
|
+
export * from "./qrcode.entity";
|
|
16
|
+
export * from "./permission.entity";
|
|
17
|
+
export * from "./phone.entity";
|
|
18
|
+
export * from "./policy";
|
|
19
|
+
export * from "./profile.entity";
|
|
20
|
+
export * from "./protocol.entity";
|
|
21
|
+
export * from "./refresh-token.entity";
|
|
22
|
+
export * from "./role.entity";
|
|
23
|
+
export * from "./sales";
|
|
24
|
+
export * from "./tag.entity";
|
|
25
|
+
export * from "./policy-tag.entity";
|
|
26
|
+
export * from "./template.entity";
|
|
27
|
+
export * from "./user-invitations.entity";
|
|
28
|
+
export * from "./user.entity";
|
|
29
|
+
export * from "./user-group-status.entity";
|
|
30
|
+
export * from "./user-from-cognito.entity";
|
|
31
|
+
export * from "./company.entity";
|
|
32
|
+
export * from "./user-special-role.entity";
|
|
33
|
+
export * from "./capacitation";
|
|
34
|
+
export * from "./tools";
|
|
35
|
+
export * from "./project_management";
|
|
36
|
+
export * from "./tools/mail/email-signature.entity";
|
|
37
|
+
export * from "./tools/mail/mailbox-user-access.entity";
|
|
38
|
+
export * from "./tools/mail/mailbox.entity";
|
|
39
|
+
export * from "./tools/mail/mail.entity";
|
|
40
|
+
export * from "./tools/mail/mail-gmail.entity";
|
|
41
|
+
export * from "./tools/mail/mail-crm-queue-distribution.entity";
|
|
42
|
+
export * from "./tools/mail/mail-crm-queue-entities-assigned.entity";
|
|
43
|
+
export * from "./tools/mail/mail-crm-queue-status.entity";
|
|
44
|
+
export * from "./tools/mail/mail-contact.entity";
|
|
45
|
+
export * from "./all-activities.entity";
|
|
46
|
+
export * from "./thirdparty/google-webhooks-config.entity";
|
|
47
|
+
export * from "./thirdparty/google-gmail-watch-record.entity";
|
|
48
|
+
export * from "./thirdparty/oauth.entity";
|
|
49
|
+
export * from "./thirdparty/diio-integration.entity";
|
|
50
|
+
export * from "./messaging/whatsapp";
|
|
51
|
+
export * from "./subscriptions/plan.entity";
|
|
52
|
+
export * from "./subscriptions/feature.entity";
|
|
53
|
+
export * from "./subscriptions/plan-feature.entity";
|
|
54
|
+
export * from "./subscriptions/subscription.entity";
|
|
55
|
+
export * from "./payments/payment.entity";
|
|
56
|
+
export * from "./payments/stripe-payment.entity";
|
|
57
|
+
export * from "./payments/banbajio-payment.entity";
|
|
58
|
+
export * from "./helpers";
|
|
59
|
+
export * from "./audit.entity";
|
|
60
|
+
export * from "./role-audit-log.entity";
|
|
61
|
+
export * from "./user-change-log.entity";
|
|
62
|
+
export * from "./subgroup.entity";
|
|
63
|
+
export * from "./import-job.entity";
|
package/dist/entities/index.js
CHANGED
|
@@ -76,4 +76,5 @@ __exportStar(require("./audit.entity"), exports);
|
|
|
76
76
|
__exportStar(require("./role-audit-log.entity"), exports);
|
|
77
77
|
__exportStar(require("./user-change-log.entity"), exports);
|
|
78
78
|
__exportStar(require("./subgroup.entity"), exports);
|
|
79
|
+
__exportStar(require("./import-job.entity"), exports);
|
|
79
80
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C;AAC/C,oDAAkC;AAClC,0CAAwB;AACxB,+DAA6C;AAC7C,iDAA+B;AAC/B,iDAA+B;AAC/B,8EAA4D;AAC5D,uDAAqC;AACrC,yDAAuC;AACvC,2DAAyC;AACzC,mDAAiC;AACjC,4DAA0C;AAC1C,kDAAgC;AAChC,mDAAiC;AACjC,kDAAgC;AAChC,sDAAoC;AACpC,iDAA+B;AAC/B,2CAAyB;AACzB,mDAAiC;AACjC,oDAAkC;AAClC,yDAAuC;AACvC,gDAA8B;AAC9B,0CAAwB;AACxB,+CAA6B;AAC7B,sDAAoC;AACpC,oDAAkC;AAClC,4DAA0C;AAC1C,gDAA8B;AAC9B,6DAA2C;AAC3C,6DAA2C;AAC3C,mDAAiC;AACjC,6DAA2C;AAG3C,iDAA+B;AAG/B,0CAAwB;AAGxB,uDAAqC;AAGrC,sEAAoD;AACpD,0EAAwD;AACxD,8DAA4C;AAC5C,2DAAyC;AACzC,iEAA+C;AAC/C,kFAAgE;AAChE,uFAAqE;AACrE,4EAA0D;AAC1D,mEAAiD;AAGjD,0DAAwC;AAGxC,6EAA2D;AAC3D,gFAA8D;AAC9D,4DAA0C;AAC1C,uEAAqD;AAGrD,uDAAqC;AAGrC,8DAA4C;AAC5C,iEAA+C;AAC/C,sEAAoD;AACpD,sEAAoD;AAGpD,4DAA0C;AAC1C,mEAAiD;AACjD,qEAAmD;AAGnD,4CAA0B;AAG1B,iDAA+B;AAC/B,0DAAwC;AAGxC,2DAAyC;AAGzC,oDAAkC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C;AAC/C,oDAAkC;AAClC,0CAAwB;AACxB,+DAA6C;AAC7C,iDAA+B;AAC/B,iDAA+B;AAC/B,8EAA4D;AAC5D,uDAAqC;AACrC,yDAAuC;AACvC,2DAAyC;AACzC,mDAAiC;AACjC,4DAA0C;AAC1C,kDAAgC;AAChC,mDAAiC;AACjC,kDAAgC;AAChC,sDAAoC;AACpC,iDAA+B;AAC/B,2CAAyB;AACzB,mDAAiC;AACjC,oDAAkC;AAClC,yDAAuC;AACvC,gDAA8B;AAC9B,0CAAwB;AACxB,+CAA6B;AAC7B,sDAAoC;AACpC,oDAAkC;AAClC,4DAA0C;AAC1C,gDAA8B;AAC9B,6DAA2C;AAC3C,6DAA2C;AAC3C,mDAAiC;AACjC,6DAA2C;AAG3C,iDAA+B;AAG/B,0CAAwB;AAGxB,uDAAqC;AAGrC,sEAAoD;AACpD,0EAAwD;AACxD,8DAA4C;AAC5C,2DAAyC;AACzC,iEAA+C;AAC/C,kFAAgE;AAChE,uFAAqE;AACrE,4EAA0D;AAC1D,mEAAiD;AAGjD,0DAAwC;AAGxC,6EAA2D;AAC3D,gFAA8D;AAC9D,4DAA0C;AAC1C,uEAAqD;AAGrD,uDAAqC;AAGrC,8DAA4C;AAC5C,iEAA+C;AAC/C,sEAAoD;AACpD,sEAAoD;AAGpD,4DAA0C;AAC1C,mEAAiD;AACjD,qEAAmD;AAGnD,4CAA0B;AAG1B,iDAA+B;AAC/B,0DAAwC;AAGxC,2DAAyC;AAGzC,oDAAkC;AAGlC,sDAAoC"}
|
|
@@ -4,4 +4,6 @@ export * from './task-list-field';
|
|
|
4
4
|
export * from './task-objection.entity';
|
|
5
5
|
export * from './task-time-track.entity';
|
|
6
6
|
export * from './task.entity';
|
|
7
|
+
export * from './task-template.entity';
|
|
8
|
+
export * from './task-template-permission.entity';
|
|
7
9
|
export * from './calendar';
|
|
@@ -20,5 +20,7 @@ __exportStar(require("./task-list-field"), exports);
|
|
|
20
20
|
__exportStar(require("./task-objection.entity"), exports);
|
|
21
21
|
__exportStar(require("./task-time-track.entity"), exports);
|
|
22
22
|
__exportStar(require("./task.entity"), exports);
|
|
23
|
+
__exportStar(require("./task-template.entity"), exports);
|
|
24
|
+
__exportStar(require("./task-template-permission.entity"), exports);
|
|
23
25
|
__exportStar(require("./calendar"), exports);
|
|
24
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/tools/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,wDAAsC;AACtC,oDAAkC;AAClC,0DAAwC;AACxC,2DAAyC;AACzC,gDAA8B;AAC9B,6CAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/tools/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,wDAAsC;AACtC,oDAAkC;AAClC,0DAAwC;AACxC,2DAAyC;AACzC,gDAA8B;AAC9B,yDAAuC;AACvC,oEAAkD;AAClD,6CAA2B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EntityBase } from '../../common/database/base.entity';
|
|
2
|
+
import { User } from '../user.entity';
|
|
3
|
+
import { TaskTemplate } from './task-template.entity';
|
|
4
|
+
export declare class TaskTemplatePermission extends EntityBase {
|
|
5
|
+
template: TaskTemplate;
|
|
6
|
+
user: User;
|
|
7
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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.TaskTemplatePermission = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const base_entity_1 = require("../../common/database/base.entity");
|
|
16
|
+
const user_entity_1 = require("../user.entity");
|
|
17
|
+
const task_template_entity_1 = require("./task-template.entity");
|
|
18
|
+
let TaskTemplatePermission = class TaskTemplatePermission extends base_entity_1.EntityBase {
|
|
19
|
+
template;
|
|
20
|
+
user;
|
|
21
|
+
};
|
|
22
|
+
exports.TaskTemplatePermission = TaskTemplatePermission;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, swagger_1.ApiProperty)({
|
|
25
|
+
type: () => task_template_entity_1.TaskTemplate,
|
|
26
|
+
description: 'Plantilla a la que se otorga permiso',
|
|
27
|
+
}),
|
|
28
|
+
(0, typeorm_1.ManyToOne)(() => task_template_entity_1.TaskTemplate, (template) => template.permissions, {
|
|
29
|
+
onDelete: 'CASCADE',
|
|
30
|
+
onUpdate: 'CASCADE',
|
|
31
|
+
}),
|
|
32
|
+
(0, typeorm_1.JoinColumn)(),
|
|
33
|
+
__metadata("design:type", task_template_entity_1.TaskTemplate)
|
|
34
|
+
], TaskTemplatePermission.prototype, "template", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiProperty)({
|
|
37
|
+
type: () => user_entity_1.User,
|
|
38
|
+
description: 'Usuario con permiso de visualización',
|
|
39
|
+
}),
|
|
40
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
41
|
+
onDelete: 'CASCADE',
|
|
42
|
+
onUpdate: 'CASCADE',
|
|
43
|
+
}),
|
|
44
|
+
(0, typeorm_1.JoinColumn)(),
|
|
45
|
+
__metadata("design:type", user_entity_1.User)
|
|
46
|
+
], TaskTemplatePermission.prototype, "user", void 0);
|
|
47
|
+
exports.TaskTemplatePermission = TaskTemplatePermission = __decorate([
|
|
48
|
+
(0, typeorm_1.Entity)(),
|
|
49
|
+
(0, typeorm_1.Unique)(['template', 'user'])
|
|
50
|
+
], TaskTemplatePermission);
|
|
51
|
+
//# sourceMappingURL=task-template-permission.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-template-permission.entity.js","sourceRoot":"","sources":["../../../src/entities/tools/task-template-permission.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qCAAgE;AAEhE,mEAA+D;AAC/D,gDAAsC;AACtC,iEAAsD;AAI/C,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,wBAAU;IAUpD,QAAQ,CAAe;IAWvB,IAAI,CAAO;CACZ,CAAA;AAtBY,wDAAsB;AAUjC;IATC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,GAAG,EAAE,CAAC,mCAAY;QACxB,WAAW,EAAE,sCAAsC;KACpD,CAAC;IACD,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mCAAY,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,WAAW,EAAE;QACjE,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,GAAE;8BACH,mCAAY;wDAAC;AAWvB;IATC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI;QAChB,WAAW,EAAE,sCAAsC;KACpD,CAAC;IACD,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACrB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,GAAE;8BACP,kBAAI;oDAAC;iCArBA,sBAAsB;IAFlC,IAAA,gBAAM,GAAE;IACR,IAAA,gBAAM,EAAC,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;GAChB,sBAAsB,CAsBlC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { EntityBaseWithUser } from '../../common/database/base.entity';
|
|
2
|
+
import { Group } from '../group.entity';
|
|
3
|
+
import { Tag } from '../tag.entity';
|
|
4
|
+
import { User } from '../user.entity';
|
|
5
|
+
import { TaskListField } from './task-list-field';
|
|
6
|
+
import { TaskTemplatePermission } from './task-template-permission.entity';
|
|
7
|
+
export declare class TaskTemplate extends EntityBaseWithUser {
|
|
8
|
+
name: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
requireRevision: boolean;
|
|
11
|
+
requireSummary: boolean;
|
|
12
|
+
responsibleCanChangeDate: boolean;
|
|
13
|
+
important: boolean;
|
|
14
|
+
isSupport: boolean;
|
|
15
|
+
timeTrackingEnabled: boolean;
|
|
16
|
+
plannedTime?: number;
|
|
17
|
+
responsible?: User[];
|
|
18
|
+
participants?: User[];
|
|
19
|
+
observers?: User[];
|
|
20
|
+
tags?: Tag[];
|
|
21
|
+
listField?: TaskListField[];
|
|
22
|
+
crmConfig?: Record<string, any>;
|
|
23
|
+
metadata?: Record<string, any>;
|
|
24
|
+
group: Group;
|
|
25
|
+
permissions?: TaskTemplatePermission[];
|
|
26
|
+
}
|
|
@@ -0,0 +1,225 @@
|
|
|
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.TaskTemplate = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const base_entity_1 = require("../../common/database/base.entity");
|
|
16
|
+
const group_entity_1 = require("../group.entity");
|
|
17
|
+
const tag_entity_1 = require("../tag.entity");
|
|
18
|
+
const user_entity_1 = require("../user.entity");
|
|
19
|
+
const task_list_field_1 = require("./task-list-field");
|
|
20
|
+
const task_template_permission_entity_1 = require("./task-template-permission.entity");
|
|
21
|
+
let TaskTemplate = class TaskTemplate extends base_entity_1.EntityBaseWithUser {
|
|
22
|
+
name;
|
|
23
|
+
description;
|
|
24
|
+
requireRevision;
|
|
25
|
+
requireSummary;
|
|
26
|
+
responsibleCanChangeDate;
|
|
27
|
+
important;
|
|
28
|
+
isSupport;
|
|
29
|
+
timeTrackingEnabled;
|
|
30
|
+
plannedTime;
|
|
31
|
+
responsible;
|
|
32
|
+
participants;
|
|
33
|
+
observers;
|
|
34
|
+
tags;
|
|
35
|
+
listField;
|
|
36
|
+
crmConfig;
|
|
37
|
+
metadata;
|
|
38
|
+
group;
|
|
39
|
+
permissions;
|
|
40
|
+
};
|
|
41
|
+
exports.TaskTemplate = TaskTemplate;
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, swagger_1.ApiProperty)({
|
|
44
|
+
type: String,
|
|
45
|
+
description: 'Nombre de la plantilla',
|
|
46
|
+
example: 'Seguimiento de cliente',
|
|
47
|
+
}),
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255 }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], TaskTemplate.prototype, "name", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, swagger_1.ApiProperty)({
|
|
53
|
+
type: String,
|
|
54
|
+
description: 'Descripción/contenido de la tarea',
|
|
55
|
+
required: false,
|
|
56
|
+
}),
|
|
57
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], TaskTemplate.prototype, "description", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, swagger_1.ApiProperty)({
|
|
62
|
+
type: Boolean,
|
|
63
|
+
description: '¿Requiere revisión?',
|
|
64
|
+
default: false,
|
|
65
|
+
}),
|
|
66
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
67
|
+
__metadata("design:type", Boolean)
|
|
68
|
+
], TaskTemplate.prototype, "requireRevision", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, swagger_1.ApiProperty)({
|
|
71
|
+
type: Boolean,
|
|
72
|
+
description: '¿Requiere resumen?',
|
|
73
|
+
default: false,
|
|
74
|
+
}),
|
|
75
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
76
|
+
__metadata("design:type", Boolean)
|
|
77
|
+
], TaskTemplate.prototype, "requireSummary", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, swagger_1.ApiProperty)({
|
|
80
|
+
type: Boolean,
|
|
81
|
+
description: '¿Puede el usuario responsable cambiar la fecha?',
|
|
82
|
+
default: false,
|
|
83
|
+
}),
|
|
84
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
85
|
+
__metadata("design:type", Boolean)
|
|
86
|
+
], TaskTemplate.prototype, "responsibleCanChangeDate", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, swagger_1.ApiProperty)({
|
|
89
|
+
type: Boolean,
|
|
90
|
+
description: '¿La tarea es importante?',
|
|
91
|
+
default: false,
|
|
92
|
+
}),
|
|
93
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
94
|
+
__metadata("design:type", Boolean)
|
|
95
|
+
], TaskTemplate.prototype, "important", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, swagger_1.ApiProperty)({
|
|
98
|
+
type: Boolean,
|
|
99
|
+
description: '¿Es tarea de soporte?',
|
|
100
|
+
default: false,
|
|
101
|
+
}),
|
|
102
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
103
|
+
__metadata("design:type", Boolean)
|
|
104
|
+
], TaskTemplate.prototype, "isSupport", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, swagger_1.ApiProperty)({
|
|
107
|
+
type: Boolean,
|
|
108
|
+
description: '¿Seguimiento de tiempo habilitado?',
|
|
109
|
+
default: false,
|
|
110
|
+
}),
|
|
111
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
112
|
+
__metadata("design:type", Boolean)
|
|
113
|
+
], TaskTemplate.prototype, "timeTrackingEnabled", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, swagger_1.ApiProperty)({
|
|
116
|
+
type: Number,
|
|
117
|
+
description: 'Tiempo planificado en minutos',
|
|
118
|
+
required: false,
|
|
119
|
+
}),
|
|
120
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
121
|
+
__metadata("design:type", Number)
|
|
122
|
+
], TaskTemplate.prototype, "plannedTime", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, swagger_1.ApiProperty)({
|
|
125
|
+
type: () => [user_entity_1.User],
|
|
126
|
+
description: 'Responsables por defecto',
|
|
127
|
+
required: false,
|
|
128
|
+
}),
|
|
129
|
+
(0, typeorm_1.ManyToMany)(() => user_entity_1.User, {
|
|
130
|
+
onDelete: 'CASCADE',
|
|
131
|
+
onUpdate: 'CASCADE',
|
|
132
|
+
}),
|
|
133
|
+
(0, typeorm_1.JoinTable)({ name: 'task_template_responsible' }),
|
|
134
|
+
__metadata("design:type", Array)
|
|
135
|
+
], TaskTemplate.prototype, "responsible", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, swagger_1.ApiProperty)({
|
|
138
|
+
type: () => [user_entity_1.User],
|
|
139
|
+
description: 'Participantes por defecto',
|
|
140
|
+
required: false,
|
|
141
|
+
}),
|
|
142
|
+
(0, typeorm_1.ManyToMany)(() => user_entity_1.User, {
|
|
143
|
+
onDelete: 'CASCADE',
|
|
144
|
+
onUpdate: 'CASCADE',
|
|
145
|
+
}),
|
|
146
|
+
(0, typeorm_1.JoinTable)({ name: 'task_template_participants' }),
|
|
147
|
+
__metadata("design:type", Array)
|
|
148
|
+
], TaskTemplate.prototype, "participants", void 0);
|
|
149
|
+
__decorate([
|
|
150
|
+
(0, swagger_1.ApiProperty)({
|
|
151
|
+
type: () => [user_entity_1.User],
|
|
152
|
+
description: 'Observadores por defecto',
|
|
153
|
+
required: false,
|
|
154
|
+
}),
|
|
155
|
+
(0, typeorm_1.ManyToMany)(() => user_entity_1.User, {
|
|
156
|
+
onDelete: 'CASCADE',
|
|
157
|
+
onUpdate: 'CASCADE',
|
|
158
|
+
}),
|
|
159
|
+
(0, typeorm_1.JoinTable)({ name: 'task_template_observers' }),
|
|
160
|
+
__metadata("design:type", Array)
|
|
161
|
+
], TaskTemplate.prototype, "observers", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
(0, swagger_1.ApiProperty)({
|
|
164
|
+
type: () => [tag_entity_1.Tag],
|
|
165
|
+
description: 'Etiquetas por defecto',
|
|
166
|
+
required: false,
|
|
167
|
+
}),
|
|
168
|
+
(0, typeorm_1.ManyToMany)(() => tag_entity_1.Tag, {
|
|
169
|
+
onDelete: 'CASCADE',
|
|
170
|
+
onUpdate: 'CASCADE',
|
|
171
|
+
}),
|
|
172
|
+
(0, typeorm_1.JoinTable)({ name: 'task_template_tags' }),
|
|
173
|
+
__metadata("design:type", Array)
|
|
174
|
+
], TaskTemplate.prototype, "tags", void 0);
|
|
175
|
+
__decorate([
|
|
176
|
+
(0, swagger_1.ApiProperty)({
|
|
177
|
+
type: () => [task_list_field_1.TaskListField],
|
|
178
|
+
description: 'Campos de lista personalizados',
|
|
179
|
+
required: false,
|
|
180
|
+
}),
|
|
181
|
+
(0, typeorm_1.Column)({ type: 'json', nullable: true }),
|
|
182
|
+
__metadata("design:type", Array)
|
|
183
|
+
], TaskTemplate.prototype, "listField", void 0);
|
|
184
|
+
__decorate([
|
|
185
|
+
(0, swagger_1.ApiProperty)({
|
|
186
|
+
type: Object,
|
|
187
|
+
description: 'Configuración CRM (preparado para futuro)',
|
|
188
|
+
required: false,
|
|
189
|
+
}),
|
|
190
|
+
(0, typeorm_1.Column)({ type: 'json', nullable: true }),
|
|
191
|
+
__metadata("design:type", Object)
|
|
192
|
+
], TaskTemplate.prototype, "crmConfig", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
(0, swagger_1.ApiProperty)({
|
|
195
|
+
type: Object,
|
|
196
|
+
description: 'Metadatos adicionales',
|
|
197
|
+
required: false,
|
|
198
|
+
}),
|
|
199
|
+
(0, typeorm_1.Column)({ type: 'json', nullable: true }),
|
|
200
|
+
__metadata("design:type", Object)
|
|
201
|
+
], TaskTemplate.prototype, "metadata", void 0);
|
|
202
|
+
__decorate([
|
|
203
|
+
(0, swagger_1.ApiProperty)({
|
|
204
|
+
type: () => group_entity_1.Group,
|
|
205
|
+
description: 'Grupo al que pertenece la plantilla',
|
|
206
|
+
}),
|
|
207
|
+
(0, typeorm_1.ManyToOne)(() => group_entity_1.Group, {
|
|
208
|
+
onDelete: 'CASCADE',
|
|
209
|
+
onUpdate: 'CASCADE',
|
|
210
|
+
}),
|
|
211
|
+
(0, typeorm_1.JoinColumn)(),
|
|
212
|
+
__metadata("design:type", group_entity_1.Group)
|
|
213
|
+
], TaskTemplate.prototype, "group", void 0);
|
|
214
|
+
__decorate([
|
|
215
|
+
(0, swagger_1.ApiProperty)({
|
|
216
|
+
type: () => [task_template_permission_entity_1.TaskTemplatePermission],
|
|
217
|
+
description: 'Permisos de visualización para otros usuarios',
|
|
218
|
+
}),
|
|
219
|
+
(0, typeorm_1.OneToMany)(() => task_template_permission_entity_1.TaskTemplatePermission, (perm) => perm.template),
|
|
220
|
+
__metadata("design:type", Array)
|
|
221
|
+
], TaskTemplate.prototype, "permissions", void 0);
|
|
222
|
+
exports.TaskTemplate = TaskTemplate = __decorate([
|
|
223
|
+
(0, typeorm_1.Entity)()
|
|
224
|
+
], TaskTemplate);
|
|
225
|
+
//# sourceMappingURL=task-template.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-template.entity.js","sourceRoot":"","sources":["../../../src/entities/tools/task-template.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qCAQiB;AAEjB,mEAAuE;AACvE,kDAAwC;AACxC,8CAAoC;AACpC,gDAAsC;AACtC,uDAAkD;AAClD,uFAA2E;AAGpE,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,gCAAkB;IAOlD,IAAI,CAAS;IAQb,WAAW,CAAU;IAUrB,eAAe,CAAU;IAQzB,cAAc,CAAU;IAQxB,wBAAwB,CAAU;IAQlC,SAAS,CAAU;IAQnB,SAAS,CAAU;IAQnB,mBAAmB,CAAU;IAQ7B,WAAW,CAAU;IAcrB,WAAW,CAAU;IAYrB,YAAY,CAAU;IAYtB,SAAS,CAAU;IAYnB,IAAI,CAAS;IAUb,SAAS,CAAmB;IAQ5B,SAAS,CAAuB;IAQhC,QAAQ,CAAuB;IAa/B,KAAK,CAAQ;IASb,WAAW,CAA4B;CACxC,CAAA;AA5KY,oCAAY;AAOvB;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,wBAAwB;QACrC,OAAO,EAAE,wBAAwB;KAClC,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;0CAC5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