easywork-common-lib 1.0.818 → 1.0.820

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.
Files changed (42) hide show
  1. package/dist/entities/helpers/index.d.ts +5 -5
  2. package/dist/entities/index.d.ts +8 -8
  3. package/dist/entities/index.js +8 -8
  4. package/dist/entities/index.js.map +1 -1
  5. package/dist/entities/thirdparty/email-config.entity.d.ts +14 -0
  6. package/dist/entities/thirdparty/email-config.entity.js +76 -0
  7. package/dist/entities/thirdparty/email-config.entity.js.map +1 -0
  8. package/dist/entities/thirdparty/email.entity.d.ts +17 -0
  9. package/dist/entities/thirdparty/email.entity.js +79 -0
  10. package/dist/entities/thirdparty/email.entity.js.map +1 -0
  11. package/dist/entities/thirdparty/google-webhooks-config.entity.d.ts +14 -0
  12. package/dist/entities/thirdparty/google-webhooks-config.entity.js +72 -0
  13. package/dist/entities/thirdparty/google-webhooks-config.entity.js.map +1 -0
  14. package/dist/entities/thirdparty/oauth-v2.entity.d.ts +22 -0
  15. package/dist/entities/thirdparty/oauth-v2.entity.js +75 -0
  16. package/dist/entities/thirdparty/oauth-v2.entity.js.map +1 -0
  17. package/dist/entities/thirdparty/oauth.entity.d.ts +21 -0
  18. package/dist/entities/thirdparty/oauth.entity.js +100 -0
  19. package/dist/entities/thirdparty/oauth.entity.js.map +1 -0
  20. package/dist/entities/thirdparty/service.entity.d.ts +8 -0
  21. package/dist/entities/thirdparty/service.entity.js +38 -0
  22. package/dist/entities/thirdparty/service.entity.js.map +1 -0
  23. package/dist/entities/thirdparty/user-email-relation.entity.d.ts +7 -0
  24. package/dist/entities/thirdparty/user-email-relation.entity.js +35 -0
  25. package/dist/entities/thirdparty/user-email-relation.entity.js.map +1 -0
  26. package/dist/entities/tools/calendar/calendar-list.entity.d.ts +1 -1
  27. package/dist/entities/tools/calendar/calendar-list.entity.js +1 -1
  28. package/dist/entities/tools/calendar/calendar-list.entity.js.map +1 -1
  29. package/dist/entities/tools/calendar/event-list-calendars.entity.d.ts +1 -1
  30. package/dist/entities/tools/calendar/event-list-calendars.entity.js +1 -1
  31. package/dist/entities/tools/calendar/event-list-calendars.entity.js.map +1 -1
  32. package/dist/entities/tools/index.d.ts +3 -3
  33. package/dist/entities/tools/index.js +3 -3
  34. package/dist/entities/tools/index.js.map +1 -1
  35. package/dist/entities/tools/task.entity.d.ts +11 -11
  36. package/dist/entities/tools/task.entity.js +67 -67
  37. package/dist/entities/tools/task.entity.js.map +1 -1
  38. package/dist/entities/user.entity.d.ts +1 -1
  39. package/dist/entities/user.entity.js +1 -1
  40. package/dist/entities/user.entity.js.map +1 -1
  41. package/package.json +1 -1
  42. package/tsconfig.tsbuildinfo +1 -1
@@ -0,0 +1,38 @@
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.ServiceThirdparty = void 0;
13
+ const base_entity_1 = require("../../common/database/base.entity");
14
+ const typeorm_1 = require("typeorm");
15
+ const email_entity_1 = require("./email.entity");
16
+ const oauth_entity_1 = require("./oauth.entity");
17
+ let ServiceThirdparty = class ServiceThirdparty extends base_entity_1.EntityBase {
18
+ name;
19
+ emails;
20
+ oauth;
21
+ };
22
+ exports.ServiceThirdparty = ServiceThirdparty;
23
+ __decorate([
24
+ (0, typeorm_1.Column)(),
25
+ __metadata("design:type", String)
26
+ ], ServiceThirdparty.prototype, "name", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.OneToMany)(() => email_entity_1.EmailThirdparty, email => email.service),
29
+ __metadata("design:type", Array)
30
+ ], ServiceThirdparty.prototype, "emails", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.OneToMany)(() => oauth_entity_1.Oauth, oauth => oauth.service),
33
+ __metadata("design:type", Array)
34
+ ], ServiceThirdparty.prototype, "oauth", void 0);
35
+ exports.ServiceThirdparty = ServiceThirdparty = __decorate([
36
+ (0, typeorm_1.Entity)()
37
+ ], ServiceThirdparty);
38
+ //# sourceMappingURL=service.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/service.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAAoD;AACpD,iDAAgD;AAChD,iDAAsC;AAG/B,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,wBAAU;IAE/C,IAAI,CAAS;IAGb,MAAM,CAAoB;IAG1B,KAAK,CAAU;CAChB,CAAA;AATY,8CAAiB;AAE5B;IADC,IAAA,gBAAM,GAAE;;+CACI;AAGb;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAe,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC;;iDAC/B;AAG1B;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC;;gDAChC;4BARJ,iBAAiB;IAD7B,IAAA,gBAAM,GAAE;GACI,iBAAiB,CAS7B"}
@@ -0,0 +1,7 @@
1
+ import { EntityBase } from "../../common/database/base.entity";
2
+ import { User } from "../user.entity";
3
+ import { EmailThirdparty } from "./email.entity";
4
+ export declare class UserEmailRelation extends EntityBase {
5
+ user: User;
6
+ email: EmailThirdparty;
7
+ }
@@ -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"}
@@ -1,5 +1,5 @@
1
1
  import { BaseEntityOnlyEssential } from '../../../common/database/base.entity';
2
- import { OauthV2 } from '../../third-party/oauth-v2.entity';
2
+ import { OauthV2 } from '../../thirdparty/oauth-v2.entity';
3
3
  import { User } from '../../user.entity';
4
4
  export declare enum CalendarProvider {
5
5
  GOOGLE = "google",
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CalendarList = exports.CalendarProvider = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const base_entity_1 = require("../../../common/database/base.entity");
15
- const oauth_v2_entity_1 = require("../../third-party/oauth-v2.entity");
15
+ const oauth_v2_entity_1 = require("../../thirdparty/oauth-v2.entity");
16
16
  const user_entity_1 = require("../../user.entity");
17
17
  var CalendarProvider;
18
18
  (function (CalendarProvider) {
@@ -1 +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,uEAA4D;AAC5D,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,CAAS;IAGnB,IAAI,CAAS;IAGb,WAAW,CAAU;IAGrB,SAAS,CAAU;IAGnB,QAAQ,CAAS;IAGjB,UAAU,CAAU;IAGpB,KAAK,CAAU;IAGf,QAAQ,CAAU;IAGlB,gBAAgB,CAAyC;IAGzD,oBAAoB,CAAgD;IAGpE,oBAAoB,CAAyD;IAI7E,SAAS,CAAU;IAGnB,UAAU,CAAU;IAGpB,QAAQ,CAAmB;IAG3B,KAAK,CAAU;IAGf,IAAI,CAAO;CACZ,CAAA;AAjDY,oCAAY;AAEvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;gDACvB;AAGnB;IADC,IAAA,gBAAM,GAAE;;0CACI;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACN;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;+CACR;AAGnB;IADC,IAAA,gBAAM,GAAE;;8CACQ;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,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;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DAC0B;AAGpE;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACmC;AAI7E;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,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,yBAAO,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC5D,yBAAO;2CAAC;AAGf;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"}
@@ -1,5 +1,5 @@
1
1
  import { EntityBase } from '../../../common/database/base.entity';
2
- import { Oauth } from '../../third-party/oauth.entity';
2
+ import { Oauth } from '../../thirdparty/oauth.entity';
3
3
  export declare class EventListCalendars extends EntityBase {
4
4
  calendars: object[];
5
5
  oAuth: Oauth;
@@ -11,7 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.EventListCalendars = void 0;
13
13
  const base_entity_1 = require("../../../common/database/base.entity");
14
- const oauth_entity_1 = require("../../third-party/oauth.entity");
14
+ const oauth_entity_1 = require("../../thirdparty/oauth.entity");
15
15
  const typeorm_1 = require("typeorm");
16
16
  let EventListCalendars = class EventListCalendars extends base_entity_1.EntityBase {
17
17
  calendars;
@@ -1 +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,iEAAuD;AACvD,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,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC;8BAC7C,oBAAK;iDAAC;6BALF,kBAAkB;IAD9B,IAAA,gBAAM,GAAE;GACI,kBAAkB,CAM9B"}
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,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC;8BAC7C,oBAAK;iDAAC;6BALF,kBAAkB;IAD9B,IAAA,gBAAM,GAAE;GACI,kBAAkB,CAM9B"}
@@ -1,12 +1,12 @@
1
1
  export * from './calendar/calendar-event-invitations.entity';
2
2
  export * from './calendar/calendar-general-config.entity';
3
- export * from './calendar/calendar-user-access.entity';
4
3
  export * from './calendar/calendar-list.entity';
5
- export * from './calendar/event.entity';
4
+ export * from './calendar/calendar-user-access.entity';
6
5
  export * from './calendar/event-list-calendars.entity';
6
+ export * from './calendar/event.entity';
7
7
  export * from './mail/mailbox-signatures.entity';
8
- export * from './mail/mailbox.entity';
9
8
  export * from './mail/mailbox-user-access.entity';
9
+ export * from './mail/mailbox.entity';
10
10
  export * from './task-comment.entity';
11
11
  export * from './task-history.entity';
12
12
  export * from './task-list-field';
@@ -16,13 +16,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./calendar/calendar-event-invitations.entity"), exports);
18
18
  __exportStar(require("./calendar/calendar-general-config.entity"), exports);
19
- __exportStar(require("./calendar/calendar-user-access.entity"), exports);
20
19
  __exportStar(require("./calendar/calendar-list.entity"), exports);
21
- __exportStar(require("./calendar/event.entity"), exports);
20
+ __exportStar(require("./calendar/calendar-user-access.entity"), exports);
22
21
  __exportStar(require("./calendar/event-list-calendars.entity"), exports);
22
+ __exportStar(require("./calendar/event.entity"), exports);
23
23
  __exportStar(require("./mail/mailbox-signatures.entity"), exports);
24
- __exportStar(require("./mail/mailbox.entity"), exports);
25
24
  __exportStar(require("./mail/mailbox-user-access.entity"), exports);
25
+ __exportStar(require("./mail/mailbox.entity"), exports);
26
26
  __exportStar(require("./task-comment.entity"), exports);
27
27
  __exportStar(require("./task-history.entity"), exports);
28
28
  __exportStar(require("./task-list-field"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/tools/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+EAA6D;AAC7D,4EAA0D;AAC1D,yEAAuD;AACvD,kEAAgD;AAChD,0DAAwC;AACxC,yEAAuD;AAEvD,mEAAiD;AACjD,wDAAsC;AACtC,oEAAkD;AAElD,wDAAsC;AACtC,wDAAsC;AACtC,oDAAkC;AAClC,0DAAwC;AACxC,2DAAyC;AACzC,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/tools/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+EAA6D;AAC7D,4EAA0D;AAC1D,kEAAgD;AAChD,yEAAuD;AACvD,yEAAuD;AACvD,0DAAwC;AAExC,mEAAiD;AACjD,oEAAkD;AAClD,wDAAsC;AAEtC,wDAAsC;AACtC,wDAAsC;AACtC,oDAAkC;AAClC,0DAAwC;AACxC,2DAAyC;AACzC,gDAA8B"}
@@ -1,14 +1,14 @@
1
- import { User } from "../user.entity";
2
- import { TaskComment } from "./task-comment.entity";
3
- import { Tag } from "../tag.entity";
4
- import { EntityBase } from "../../common/database/base.entity";
5
- import { TaskStatus } from "../../common/enums";
6
- import { TaskListField } from "./task-list-field";
7
- import { TaskCRM } from "../../entities/helpers";
8
- import { AttachedObjectInterface } from "../drive";
9
- import { TaskTimeTrack } from "./task-time-track.entity";
10
- import { TaskHistory } from "./task-history.entity";
11
- import { TaskObjection } from "./task-objection.entity";
1
+ import { User } from '../user.entity';
2
+ import { TaskComment } from './task-comment.entity';
3
+ import { Tag } from '../tag.entity';
4
+ import { EntityBase } from '../../common/database/base.entity';
5
+ import { TaskStatus } from '../../common/enums';
6
+ import { TaskListField } from './task-list-field';
7
+ import { TaskCRM } from '../../entities/helpers';
8
+ import { AttachedObjectInterface } from '../drive';
9
+ import { TaskTimeTrack } from './task-time-track.entity';
10
+ import { TaskHistory } from './task-history.entity';
11
+ import { TaskObjection } from './task-objection.entity';
12
12
  export declare class Task extends EntityBase {
13
13
  idBitrix: number;
14
14
  name: string;
@@ -65,36 +65,36 @@ exports.Task = Task;
65
65
  __decorate([
66
66
  (0, swagger_1.ApiProperty)({
67
67
  type: Number,
68
- description: "Bitrix ID of the policy",
68
+ description: 'Bitrix ID of the policy',
69
69
  required: false,
70
70
  }),
71
- (0, typeorm_1.Column)({ name: "id_bitrix", nullable: true }),
71
+ (0, typeorm_1.Column)({ name: 'id_bitrix', nullable: true }),
72
72
  __metadata("design:type", Number)
73
73
  ], Task.prototype, "idBitrix", void 0);
74
74
  __decorate([
75
- (0, swagger_1.ApiProperty)({ type: String, description: "Name of the task", minLength: 3 }),
75
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Name of the task', minLength: 3 }),
76
76
  (0, class_validator_1.MinLength)(3),
77
77
  (0, typeorm_1.Column)({ unique: false, nullable: false }),
78
78
  __metadata("design:type", String)
79
79
  ], Task.prototype, "name", void 0);
80
80
  __decorate([
81
81
  (0, typeorm_1.Column)(),
82
- (0, typeorm_1.Generated)("increment"),
82
+ (0, typeorm_1.Generated)('increment'),
83
83
  __metadata("design:type", Number)
84
84
  ], Task.prototype, "number", void 0);
85
85
  __decorate([
86
86
  (0, swagger_1.ApiProperty)({
87
87
  type: String,
88
- description: "Description of the task",
88
+ description: 'Description of the task',
89
89
  required: false,
90
90
  }),
91
- (0, typeorm_1.Column)({ type: "text", nullable: true }),
91
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
92
92
  __metadata("design:type", String)
93
93
  ], Task.prototype, "description", void 0);
94
94
  __decorate([
95
95
  (0, swagger_1.ApiProperty)({
96
96
  type: Date,
97
- description: "Deadline of the task",
97
+ description: 'Deadline of the task',
98
98
  required: false,
99
99
  }),
100
100
  (0, typeorm_1.Column)({ nullable: true }),
@@ -103,7 +103,7 @@ __decorate([
103
103
  __decorate([
104
104
  (0, swagger_1.ApiProperty)({
105
105
  type: Date,
106
- description: "Start time of the task",
106
+ description: 'Start time of the task',
107
107
  required: false,
108
108
  }),
109
109
  (0, typeorm_1.Column)({ nullable: true }),
@@ -112,7 +112,7 @@ __decorate([
112
112
  __decorate([
113
113
  (0, swagger_1.ApiProperty)({
114
114
  type: Date,
115
- description: "Completion time of the task",
115
+ description: 'Completion time of the task',
116
116
  required: false,
117
117
  }),
118
118
  (0, typeorm_1.Column)({ nullable: true }),
@@ -121,7 +121,7 @@ __decorate([
121
121
  __decorate([
122
122
  (0, swagger_1.ApiProperty)({
123
123
  type: Boolean,
124
- description: "Does the task require revision?",
124
+ description: 'Does the task require revision?',
125
125
  default: false,
126
126
  }),
127
127
  (0, typeorm_1.Column)({ default: false }),
@@ -130,7 +130,7 @@ __decorate([
130
130
  __decorate([
131
131
  (0, swagger_1.ApiProperty)({
132
132
  type: Boolean,
133
- description: "Does the task require a summary?",
133
+ description: 'Does the task require a summary?',
134
134
  default: false,
135
135
  }),
136
136
  (0, typeorm_1.Column)({ default: false }),
@@ -139,7 +139,7 @@ __decorate([
139
139
  __decorate([
140
140
  (0, swagger_1.ApiProperty)({
141
141
  type: Boolean,
142
- description: "Can the responsible user change the date?",
142
+ description: 'Can the responsible user change the date?',
143
143
  default: false,
144
144
  }),
145
145
  (0, typeorm_1.Column)({ default: false }),
@@ -148,7 +148,7 @@ __decorate([
148
148
  __decorate([
149
149
  (0, swagger_1.ApiProperty)({
150
150
  type: Boolean,
151
- description: "La tarea es importante?",
151
+ description: 'La tarea es importante?',
152
152
  default: false,
153
153
  }),
154
154
  (0, typeorm_1.Column)({ default: false }),
@@ -157,11 +157,11 @@ __decorate([
157
157
  __decorate([
158
158
  (0, swagger_1.ApiProperty)({
159
159
  enum: enums_1.TaskStatus,
160
- description: "Status of the task",
160
+ description: 'Status of the task',
161
161
  default: enums_1.TaskStatus.PENDING,
162
162
  }),
163
163
  (0, typeorm_1.Column)({
164
- type: "enum",
164
+ type: 'enum',
165
165
  enum: enums_1.TaskStatus,
166
166
  default: enums_1.TaskStatus.PENDING,
167
167
  }),
@@ -170,7 +170,7 @@ __decorate([
170
170
  __decorate([
171
171
  (0, swagger_1.ApiProperty)({
172
172
  type: Boolean,
173
- description: "Is the task completed?",
173
+ description: 'Is the task completed?',
174
174
  default: false,
175
175
  }),
176
176
  (0, typeorm_1.Column)({ default: false }),
@@ -179,7 +179,7 @@ __decorate([
179
179
  __decorate([
180
180
  (0, swagger_1.ApiProperty)({
181
181
  type: Boolean,
182
- description: "Has the task been reviewed?",
182
+ description: 'Has the task been reviewed?',
183
183
  default: false,
184
184
  }),
185
185
  (0, typeorm_1.Column)({ default: false }),
@@ -188,12 +188,12 @@ __decorate([
188
188
  __decorate([
189
189
  (0, swagger_1.ApiProperty)({
190
190
  type: () => user_entity_1.User,
191
- description: "User who created the task",
191
+ description: 'User who created the task',
192
192
  required: false,
193
193
  }),
194
194
  (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
195
- onDelete: "SET NULL",
196
- onUpdate: "CASCADE",
195
+ onDelete: 'SET NULL',
196
+ onUpdate: 'CASCADE',
197
197
  nullable: true,
198
198
  }),
199
199
  __metadata("design:type", user_entity_1.User)
@@ -201,12 +201,12 @@ __decorate([
201
201
  __decorate([
202
202
  (0, swagger_1.ApiProperty)({
203
203
  type: () => user_entity_1.User,
204
- description: "User who modified the task",
204
+ description: 'User who modified the task',
205
205
  required: false,
206
206
  }),
207
207
  (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
208
- onDelete: "SET NULL",
209
- onUpdate: "CASCADE",
208
+ onDelete: 'SET NULL',
209
+ onUpdate: 'CASCADE',
210
210
  nullable: true,
211
211
  }),
212
212
  __metadata("design:type", user_entity_1.User)
@@ -214,12 +214,12 @@ __decorate([
214
214
  __decorate([
215
215
  (0, swagger_1.ApiProperty)({
216
216
  type: () => user_entity_1.User,
217
- description: "User who reviewed the task",
217
+ description: 'User who reviewed the task',
218
218
  required: false,
219
219
  }),
220
220
  (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
221
- onDelete: "SET NULL",
222
- onUpdate: "CASCADE",
221
+ onDelete: 'SET NULL',
222
+ onUpdate: 'CASCADE',
223
223
  nullable: true,
224
224
  }),
225
225
  __metadata("design:type", user_entity_1.User)
@@ -227,12 +227,12 @@ __decorate([
227
227
  __decorate([
228
228
  (0, swagger_1.ApiProperty)({
229
229
  type: () => [user_entity_1.User],
230
- description: "Participants in the task",
230
+ description: 'Participants in the task',
231
231
  required: false,
232
232
  }),
233
233
  (0, typeorm_1.ManyToMany)(() => user_entity_1.User, {
234
- onDelete: "CASCADE",
235
- onUpdate: "CASCADE",
234
+ onDelete: 'CASCADE',
235
+ onUpdate: 'CASCADE',
236
236
  }),
237
237
  (0, typeorm_1.JoinTable)(),
238
238
  __metadata("design:type", Array)
@@ -240,12 +240,12 @@ __decorate([
240
240
  __decorate([
241
241
  (0, swagger_1.ApiProperty)({
242
242
  type: () => [user_entity_1.User],
243
- description: "Users responsible for the task",
243
+ description: 'Users responsible for the task',
244
244
  required: false,
245
245
  }),
246
246
  (0, typeorm_1.ManyToMany)(() => user_entity_1.User, {
247
- onDelete: "CASCADE",
248
- onUpdate: "CASCADE",
247
+ onDelete: 'CASCADE',
248
+ onUpdate: 'CASCADE',
249
249
  }),
250
250
  (0, typeorm_1.JoinTable)(),
251
251
  __metadata("design:type", Array)
@@ -253,12 +253,12 @@ __decorate([
253
253
  __decorate([
254
254
  (0, swagger_1.ApiProperty)({
255
255
  type: () => [user_entity_1.User],
256
- description: "Observers of the task",
256
+ description: 'Observers of the task',
257
257
  required: false,
258
258
  }),
259
259
  (0, typeorm_1.ManyToMany)(() => user_entity_1.User, {
260
- onDelete: "CASCADE",
261
- onUpdate: "CASCADE",
260
+ onDelete: 'CASCADE',
261
+ onUpdate: 'CASCADE',
262
262
  }),
263
263
  (0, typeorm_1.JoinTable)(),
264
264
  __metadata("design:type", Array)
@@ -266,11 +266,11 @@ __decorate([
266
266
  __decorate([
267
267
  (0, swagger_1.ApiProperty)({
268
268
  type: () => [tag_entity_1.Tag],
269
- description: "Tags associated with the task",
269
+ description: 'Tags associated with the task',
270
270
  }),
271
- (0, typeorm_1.ManyToMany)(() => tag_entity_1.Tag, (tag) => tag.tasks, {
272
- onDelete: "CASCADE",
273
- onUpdate: "CASCADE",
271
+ (0, typeorm_1.ManyToMany)(() => tag_entity_1.Tag, tag => tag.tasks, {
272
+ onDelete: 'CASCADE',
273
+ onUpdate: 'CASCADE',
274
274
  }),
275
275
  (0, typeorm_1.JoinTable)(),
276
276
  __metadata("design:type", Array)
@@ -278,42 +278,42 @@ __decorate([
278
278
  __decorate([
279
279
  (0, swagger_1.ApiProperty)({
280
280
  type: () => [task_list_field_1.TaskListField],
281
- description: "List fields associated with the task",
281
+ description: 'List fields associated with the task',
282
282
  required: false,
283
283
  }),
284
- (0, typeorm_1.Column)("json", { nullable: true }),
284
+ (0, typeorm_1.Column)('json', { nullable: true }),
285
285
  __metadata("design:type", Array)
286
286
  ], Task.prototype, "listField", void 0);
287
287
  __decorate([
288
288
  (0, swagger_1.ApiProperty)({
289
289
  type: () => [task_comment_entity_1.TaskComment],
290
- description: "Comments on the task",
290
+ description: 'Comments on the task',
291
291
  }),
292
- (0, typeorm_1.OneToMany)(() => task_comment_entity_1.TaskComment, (taskComment) => taskComment.task),
292
+ (0, typeorm_1.OneToMany)(() => task_comment_entity_1.TaskComment, taskComment => taskComment.task),
293
293
  (0, typeorm_1.JoinColumn)(),
294
294
  __metadata("design:type", Array)
295
295
  ], Task.prototype, "comments", void 0);
296
296
  __decorate([
297
297
  (0, swagger_1.ApiProperty)({
298
298
  type: () => [helpers_1.TaskCRM],
299
- description: "CRM entries associated with the task",
299
+ description: 'CRM entries associated with the task',
300
300
  required: false,
301
301
  }),
302
- (0, typeorm_1.OneToMany)(() => helpers_1.TaskCRM, (taskCRM) => taskCRM.task, {
303
- onDelete: "CASCADE",
304
- onUpdate: "CASCADE",
302
+ (0, typeorm_1.OneToMany)(() => helpers_1.TaskCRM, taskCRM => taskCRM.task, {
303
+ onDelete: 'CASCADE',
304
+ onUpdate: 'CASCADE',
305
305
  }),
306
306
  __metadata("design:type", Array)
307
307
  ], Task.prototype, "crm", void 0);
308
308
  __decorate([
309
309
  (0, swagger_1.ApiProperty)({
310
310
  type: () => Task,
311
- description: "Parent task",
311
+ description: 'Parent task',
312
312
  required: false,
313
313
  }),
314
314
  (0, typeorm_1.ManyToOne)(() => Task, {
315
- onDelete: "CASCADE",
316
- onUpdate: "CASCADE",
315
+ onDelete: 'CASCADE',
316
+ onUpdate: 'CASCADE',
317
317
  nullable: true,
318
318
  }),
319
319
  (0, typeorm_1.JoinColumn)(),
@@ -322,20 +322,20 @@ __decorate([
322
322
  __decorate([
323
323
  (0, swagger_1.ApiProperty)({
324
324
  type: () => [Task],
325
- description: "Child tasks",
325
+ description: 'Child tasks',
326
326
  required: false,
327
327
  }),
328
- (0, typeorm_1.OneToMany)(() => Task, (task) => task.parentTask),
328
+ (0, typeorm_1.OneToMany)(() => Task, task => task.parentTask),
329
329
  __metadata("design:type", Array)
330
330
  ], Task.prototype, "subTasks", void 0);
331
331
  __decorate([
332
332
  (0, swagger_1.ApiProperty)({
333
333
  type: Object,
334
- description: "Additional metadata for the task",
334
+ description: 'Additional metadata for the task',
335
335
  required: false,
336
336
  }),
337
337
  (0, typeorm_1.Column)({
338
- type: "json",
338
+ type: 'json',
339
339
  nullable: true,
340
340
  }),
341
341
  __metadata("design:type", Object)
@@ -343,7 +343,7 @@ __decorate([
343
343
  __decorate([
344
344
  (0, swagger_1.ApiProperty)({
345
345
  type: Boolean,
346
- description: "¿La tarea tiene seguimiento de tiempo habilitado?",
346
+ description: '¿La tarea tiene seguimiento de tiempo habilitado?',
347
347
  default: false,
348
348
  }),
349
349
  (0, typeorm_1.Column)({ default: false }),
@@ -352,7 +352,7 @@ __decorate([
352
352
  __decorate([
353
353
  (0, swagger_1.ApiProperty)({
354
354
  type: Number,
355
- description: "Tiempo total acumulado en segundos",
355
+ description: 'Tiempo total acumulado en segundos',
356
356
  default: 0,
357
357
  }),
358
358
  (0, typeorm_1.Column)({ default: 0 }),
@@ -361,7 +361,7 @@ __decorate([
361
361
  __decorate([
362
362
  (0, swagger_1.ApiProperty)({
363
363
  type: Date,
364
- description: "Fecha y hora de inicio del último periodo de seguimiento",
364
+ description: 'Fecha y hora de inicio del último periodo de seguimiento',
365
365
  required: false,
366
366
  }),
367
367
  (0, typeorm_1.Column)({ nullable: true }),
@@ -370,12 +370,12 @@ __decorate([
370
370
  __decorate([
371
371
  (0, swagger_1.ApiProperty)({
372
372
  type: () => user_entity_1.User,
373
- description: "Usuario que está realizando el seguimiento de tiempo actualmente",
373
+ description: 'Usuario que está realizando el seguimiento de tiempo actualmente',
374
374
  required: false,
375
375
  }),
376
376
  (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
377
- onDelete: "SET NULL",
378
- onUpdate: "CASCADE",
377
+ onDelete: 'SET NULL',
378
+ onUpdate: 'CASCADE',
379
379
  nullable: true,
380
380
  }),
381
381
  __metadata("design:type", user_entity_1.User)
@@ -383,31 +383,31 @@ __decorate([
383
383
  __decorate([
384
384
  (0, swagger_1.ApiProperty)({
385
385
  type: () => [task_time_track_entity_1.TaskTimeTrack],
386
- description: "Registros de tiempo dedicado a la tarea",
386
+ description: 'Registros de tiempo dedicado a la tarea',
387
387
  }),
388
- (0, typeorm_1.OneToMany)(() => task_time_track_entity_1.TaskTimeTrack, (timeTrack) => timeTrack.task),
388
+ (0, typeorm_1.OneToMany)(() => task_time_track_entity_1.TaskTimeTrack, timeTrack => timeTrack.task),
389
389
  __metadata("design:type", Array)
390
390
  ], Task.prototype, "timeTrackRecords", void 0);
391
391
  __decorate([
392
392
  (0, swagger_1.ApiProperty)({
393
393
  type: () => [task_history_entity_1.TaskHistory],
394
- description: "Historial de la tarea",
394
+ description: 'Historial de la tarea',
395
395
  }),
396
- (0, typeorm_1.OneToMany)(() => task_history_entity_1.TaskHistory, (history) => history.task),
396
+ (0, typeorm_1.OneToMany)(() => task_history_entity_1.TaskHistory, history => history.task),
397
397
  __metadata("design:type", Array)
398
398
  ], Task.prototype, "history", void 0);
399
399
  __decorate([
400
400
  (0, swagger_1.ApiProperty)({
401
401
  type: () => [task_objection_entity_1.TaskObjection],
402
- description: "Objeciones a la tarea",
402
+ description: 'Objeciones a la tarea',
403
403
  }),
404
- (0, typeorm_1.OneToMany)(() => task_objection_entity_1.TaskObjection, (objection) => objection.task),
404
+ (0, typeorm_1.OneToMany)(() => task_objection_entity_1.TaskObjection, objection => objection.task),
405
405
  __metadata("design:type", Array)
406
406
  ], Task.prototype, "objections", void 0);
407
407
  __decorate([
408
408
  (0, swagger_1.ApiProperty)({
409
409
  type: Number,
410
- description: "Tiempo planificado en segundos para completar la tarea",
410
+ description: 'Tiempo planificado en segundos para completar la tarea',
411
411
  required: false,
412
412
  }),
413
413
  (0, typeorm_1.Column)({ nullable: true }),