easywork-common-lib 1.0.764 → 1.0.766

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 (36) hide show
  1. package/dist/entities/tools/task-objection.entity.js.map +1 -1
  2. package/package.json +1 -1
  3. package/tsconfig.tsbuildinfo +1 -1
  4. package/dist/entities/capacitation/capacitation-lesson.entity copy.d.ts +0 -7
  5. package/dist/entities/capacitation/capacitation-lesson.entity copy.js +0 -45
  6. package/dist/entities/capacitation/capacitation-lesson.entity copy.js.map +0 -1
  7. package/dist/entities/capacitation/capacitation-module.entity.d.ts +0 -12
  8. package/dist/entities/capacitation/capacitation-module.entity.js +0 -85
  9. package/dist/entities/capacitation/capacitation-module.entity.js.map +0 -1
  10. package/dist/entities/capacitation/course-evaluation-progress.d.ts +0 -20
  11. package/dist/entities/capacitation/course-evaluation-progress.entity.d.ts +0 -19
  12. package/dist/entities/capacitation/course-evaluation-progress.entity.js +0 -81
  13. package/dist/entities/capacitation/course-evaluation-progress.entity.js.map +0 -1
  14. package/dist/entities/capacitation/course-evaluation-progress.js +0 -81
  15. package/dist/entities/capacitation/course-evaluation-progress.js.map +0 -1
  16. package/dist/entities/capacitation/course-evaluation-question.d.ts +0 -11
  17. package/dist/entities/capacitation/course-evaluation-question.js +0 -46
  18. package/dist/entities/capacitation/course-evaluation-question.js.map +0 -1
  19. package/dist/entities/capacitation/course-progress.entity.d.ts +0 -14
  20. package/dist/entities/capacitation/course-progress.entity.js +0 -53
  21. package/dist/entities/capacitation/course-progress.entity.js.map +0 -1
  22. package/dist/entities/capacitation/folder-page.entity.d.ts +0 -11
  23. package/dist/entities/capacitation/folder-page.entity.js +0 -57
  24. package/dist/entities/capacitation/folder-page.entity.js.map +0 -1
  25. package/dist/entities/capacitation/lesson-page.entity.d.ts +0 -13
  26. package/dist/entities/capacitation/lesson-page.entity.js +0 -69
  27. package/dist/entities/capacitation/lesson-page.entity.js.map +0 -1
  28. package/dist/entities/capacitation/lesson-section.entity.d.ts +0 -10
  29. package/dist/entities/capacitation/lesson-section.entity.js +0 -57
  30. package/dist/entities/capacitation/lesson-section.entity.js.map +0 -1
  31. package/dist/entities/capacitation/lesson.entity.d.ts +0 -15
  32. package/dist/entities/capacitation/lesson.entity.js +0 -77
  33. package/dist/entities/capacitation/lesson.entity.js.map +0 -1
  34. package/dist/entities/sales/poliza_siniestro.entity.d.ts +0 -12
  35. package/dist/entities/sales/poliza_siniestro.entity.js +0 -72
  36. package/dist/entities/sales/poliza_siniestro.entity.js.map +0 -1
@@ -1,69 +0,0 @@
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.LessonPage = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const swagger_1 = require("@nestjs/swagger");
15
- const base_entity_1 = require("../../common/database/base.entity");
16
- const lesson_entity_1 = require("./lesson.entity");
17
- let LessonPage = class LessonPage extends base_entity_1.EntityBase {
18
- name;
19
- description;
20
- coverPhotoSrc;
21
- progress;
22
- isCompleted;
23
- images;
24
- files;
25
- lesson;
26
- };
27
- exports.LessonPage = LessonPage;
28
- __decorate([
29
- (0, swagger_1.ApiProperty)({ type: String, description: 'Lesson page name' }),
30
- (0, typeorm_1.Column)(),
31
- __metadata("design:type", String)
32
- ], LessonPage.prototype, "name", void 0);
33
- __decorate([
34
- (0, swagger_1.ApiProperty)({ type: String, description: 'Lesson page description', nullable: true }),
35
- (0, typeorm_1.Column)({ nullable: true }),
36
- __metadata("design:type", String)
37
- ], LessonPage.prototype, "description", void 0);
38
- __decorate([
39
- (0, swagger_1.ApiProperty)({ type: String, description: 'Cover photo URL', nullable: true }),
40
- (0, typeorm_1.Column)({ type: 'text', nullable: true }),
41
- __metadata("design:type", String)
42
- ], LessonPage.prototype, "coverPhotoSrc", void 0);
43
- __decorate([
44
- (0, typeorm_1.Column)({ default: 0, type: 'float' }),
45
- __metadata("design:type", Number)
46
- ], LessonPage.prototype, "progress", void 0);
47
- __decorate([
48
- (0, typeorm_1.Column)({ default: false }),
49
- __metadata("design:type", Boolean)
50
- ], LessonPage.prototype, "isCompleted", void 0);
51
- __decorate([
52
- (0, swagger_1.ApiProperty)({ isArray: true, type: String, description: 'Images uploaded to the content' }),
53
- (0, typeorm_1.Column)({ type: 'text', array: true, default: [] }),
54
- __metadata("design:type", Array)
55
- ], LessonPage.prototype, "images", void 0);
56
- __decorate([
57
- (0, swagger_1.ApiProperty)({ isArray: true, type: String, description: 'Files uploaded to the content' }),
58
- (0, typeorm_1.Column)({ type: 'jsonb', nullable: true, default: [] }),
59
- __metadata("design:type", Array)
60
- ], LessonPage.prototype, "files", void 0);
61
- __decorate([
62
- (0, swagger_1.ApiProperty)({ type: () => lesson_entity_1.Lesson, description: 'Lesson owner of the page', required: false }),
63
- (0, typeorm_1.ManyToOne)(() => lesson_entity_1.Lesson, lesson => lesson.pages, { onDelete: 'CASCADE' }),
64
- __metadata("design:type", lesson_entity_1.Lesson)
65
- ], LessonPage.prototype, "lesson", void 0);
66
- exports.LessonPage = LessonPage = __decorate([
67
- (0, typeorm_1.Entity)()
68
- ], LessonPage);
69
- //# sourceMappingURL=lesson-page.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lesson-page.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/lesson-page.entity.ts"],"names":[],"mappings":";;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,EAAE,CAAC;;0CACjC;AAIlB;IAFC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,+BAA+B,EAAE,CAAC;IAC1F,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;yCAC7B;AAI1B;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,sBAAM,EAAE,WAAW,EAAE,0BAA0B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC7F,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BACjE,sBAAM;0CAAC;qBA7BJ,UAAU;IADtB,IAAA,gBAAM,GAAE;GACI,UAAU,CA8BtB"}
@@ -1,10 +0,0 @@
1
- import { EntityBase } from '../../common/database/base.entity';
2
- import { Lesson } from './lesson.entity';
3
- export declare class LessonSection extends EntityBase {
4
- title: string;
5
- description?: string;
6
- coverPhotoSrc?: string;
7
- progress: number;
8
- isCompleted: boolean;
9
- lesson: Lesson;
10
- }
@@ -1,57 +0,0 @@
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.LessonSection = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const swagger_1 = require("@nestjs/swagger");
15
- const base_entity_1 = require("../../common/database/base.entity");
16
- const lesson_entity_1 = require("./lesson.entity");
17
- let LessonSection = class LessonSection extends base_entity_1.EntityBase {
18
- title;
19
- description;
20
- coverPhotoSrc;
21
- progress;
22
- isCompleted;
23
- lesson;
24
- };
25
- exports.LessonSection = LessonSection;
26
- __decorate([
27
- (0, swagger_1.ApiProperty)({ type: String, description: 'Lesson section name' }),
28
- (0, typeorm_1.Column)(),
29
- __metadata("design:type", String)
30
- ], LessonSection.prototype, "title", void 0);
31
- __decorate([
32
- (0, swagger_1.ApiProperty)({ type: String, description: 'Lesson section description', nullable: true }),
33
- (0, typeorm_1.Column)({ nullable: true }),
34
- __metadata("design:type", String)
35
- ], LessonSection.prototype, "description", void 0);
36
- __decorate([
37
- (0, swagger_1.ApiProperty)({ type: String, description: 'Cover photo URL', nullable: true }),
38
- (0, typeorm_1.Column)({ type: 'text', nullable: true }),
39
- __metadata("design:type", String)
40
- ], LessonSection.prototype, "coverPhotoSrc", void 0);
41
- __decorate([
42
- (0, typeorm_1.Column)({ default: 0, type: 'float' }),
43
- __metadata("design:type", Number)
44
- ], LessonSection.prototype, "progress", void 0);
45
- __decorate([
46
- (0, typeorm_1.Column)({ default: false }),
47
- __metadata("design:type", Boolean)
48
- ], LessonSection.prototype, "isCompleted", void 0);
49
- __decorate([
50
- (0, swagger_1.ApiProperty)({ type: () => lesson_entity_1.Lesson, description: 'Lesson owner of the section', required: false }),
51
- (0, typeorm_1.ManyToOne)(() => lesson_entity_1.Lesson, { nullable: false }),
52
- __metadata("design:type", lesson_entity_1.Lesson)
53
- ], LessonSection.prototype, "lesson", void 0);
54
- exports.LessonSection = LessonSection = __decorate([
55
- (0, typeorm_1.Entity)()
56
- ], LessonSection);
57
- //# sourceMappingURL=lesson-section.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lesson-section.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/lesson-section.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AACpD,6CAA8C;AAE9C,mEAA+D;AAC/D,mDAAyC;AAGlC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,wBAAU;IAG3C,KAAK,CAAS;IAId,WAAW,CAAU;IAIrB,aAAa,CAAU;IAGvB,QAAQ,CAAS;IAGjB,WAAW,CAAU;IAIrB,MAAM,CAAS;CAChB,CAAA;AAtBY,sCAAa;AAGxB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,CAAC;IACjE,IAAA,gBAAM,GAAE;;4CACK;AAId;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,4BAA4B,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACxF,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACN;AAIrB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,iBAAiB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7E,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDAClB;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;+CACrB;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;kDACN;AAIrB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,sBAAM,EAAE,WAAW,EAAE,6BAA6B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChG,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BACrC,sBAAM;6CAAC;wBArBJ,aAAa;IADzB,IAAA,gBAAM,GAAE;GACI,aAAa,CAsBzB"}
@@ -1,15 +0,0 @@
1
- import { EntityBase } from '../../common/database/base.entity';
2
- import { Course } from './course.entity';
3
- import { LessonPage } from './lesson-page.entity';
4
- import { LMSFileUploaded } from 'common';
5
- export declare class Lesson extends EntityBase {
6
- name: string;
7
- description?: string;
8
- content?: string;
9
- coverPhotoSrc?: string;
10
- images?: string[];
11
- files?: LMSFileUploaded[];
12
- isCompleted: boolean;
13
- course: Course;
14
- pages: LessonPage[];
15
- }
@@ -1,77 +0,0 @@
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.Lesson = void 0;
13
- const typeorm_1 = require("typeorm");
14
- const swagger_1 = require("@nestjs/swagger");
15
- const base_entity_1 = require("../../common/database/base.entity");
16
- const course_entity_1 = require("./course.entity");
17
- const lesson_page_entity_1 = require("./lesson-page.entity");
18
- let Lesson = class Lesson extends base_entity_1.EntityBase {
19
- name;
20
- description;
21
- content;
22
- coverPhotoSrc;
23
- images;
24
- files;
25
- isCompleted;
26
- course;
27
- pages;
28
- };
29
- exports.Lesson = Lesson;
30
- __decorate([
31
- (0, swagger_1.ApiProperty)({ type: String, description: 'Lesson name' }),
32
- (0, typeorm_1.Column)(),
33
- __metadata("design:type", String)
34
- ], Lesson.prototype, "name", void 0);
35
- __decorate([
36
- (0, swagger_1.ApiProperty)({ type: String, description: 'Lesson description', nullable: true }),
37
- (0, typeorm_1.Column)({ nullable: true }),
38
- __metadata("design:type", String)
39
- ], Lesson.prototype, "description", void 0);
40
- __decorate([
41
- (0, swagger_1.ApiProperty)({ type: String, description: 'Lesson content', nullable: true }),
42
- (0, typeorm_1.Column)({ nullable: true }),
43
- __metadata("design:type", String)
44
- ], Lesson.prototype, "content", void 0);
45
- __decorate([
46
- (0, swagger_1.ApiProperty)({ type: String, description: 'Cover photo URL', nullable: true }),
47
- (0, typeorm_1.Column)({ type: 'text', nullable: true }),
48
- __metadata("design:type", String)
49
- ], Lesson.prototype, "coverPhotoSrc", void 0);
50
- __decorate([
51
- (0, swagger_1.ApiProperty)({ isArray: true, type: String, description: 'Images uploaded to the content' }),
52
- (0, typeorm_1.Column)({ type: 'text', array: true, default: [] }),
53
- __metadata("design:type", Array)
54
- ], Lesson.prototype, "images", void 0);
55
- __decorate([
56
- (0, swagger_1.ApiProperty)({ isArray: true, type: String, description: 'Files uploaded to the content' }),
57
- (0, typeorm_1.Column)({ type: 'jsonb', nullable: true, default: [] }),
58
- __metadata("design:type", Array)
59
- ], Lesson.prototype, "files", void 0);
60
- __decorate([
61
- (0, typeorm_1.Column)({ default: false }),
62
- __metadata("design:type", Boolean)
63
- ], Lesson.prototype, "isCompleted", void 0);
64
- __decorate([
65
- (0, swagger_1.ApiProperty)({ type: () => course_entity_1.Course, description: 'Course owner of the lesson', required: false }),
66
- (0, typeorm_1.ManyToOne)(() => course_entity_1.Course, course => course.lessons, { onDelete: 'CASCADE' }),
67
- __metadata("design:type", course_entity_1.Course)
68
- ], Lesson.prototype, "course", void 0);
69
- __decorate([
70
- (0, swagger_1.ApiProperty)({ type: () => lesson_page_entity_1.LessonPage, description: 'Lesson owner of the pages', required: false }),
71
- (0, typeorm_1.OneToMany)(() => lesson_page_entity_1.LessonPage, lessonPage => lessonPage.lesson, { onDelete: 'CASCADE' }),
72
- __metadata("design:type", Array)
73
- ], Lesson.prototype, "pages", void 0);
74
- exports.Lesson = Lesson = __decorate([
75
- (0, typeorm_1.Entity)()
76
- ], Lesson);
77
- //# sourceMappingURL=lesson.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lesson.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/lesson.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA+D;AAC/D,6CAA8C;AAE9C,mEAA+D;AAC/D,mDAAyC;AACzC,6DAAkD;AAI3C,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,wBAAU;IAGpC,IAAI,CAAS;IAIb,WAAW,CAAU;IAIrB,OAAO,CAAU;IAIjB,aAAa,CAAU;IAIvB,MAAM,CAAY;IAIlB,KAAK,CAAqB;IAG1B,WAAW,CAAU;IAIrB,MAAM,CAAS;IAIf,KAAK,CAAe;CACrB,CAAA;AAnCY,wBAAM;AAGjB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;IACzD,IAAA,gBAAM,GAAE;;oCACI;AAIb;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,oBAAoB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAChF,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACN;AAIrB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5E,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACV;AAIjB;IAFC,IAAA,qBAAW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BAAU,EAAE,UAAU,CAAC,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;;qCAClE;iBAlCT,MAAM;IADlB,IAAA,gBAAM,GAAE;GACI,MAAM,CAmClB"}
@@ -1,12 +0,0 @@
1
- import { StatusSiniestro } from "../../common/enums/sales.enum";
2
- import { EntityBase } from "../../common/database/base.entity";
3
- import { Poliza } from "./poliza.entity";
4
- import { File } from "../drive";
5
- export declare class PolizaSiniestro extends EntityBase {
6
- sigre: string;
7
- numeroReclamacion: string;
8
- fecha: Date;
9
- status: StatusSiniestro;
10
- poliza: Poliza;
11
- finiquito: File;
12
- }
@@ -1,72 +0,0 @@
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.PolizaSiniestro = void 0;
13
- const sales_enum_1 = require("../../common/enums/sales.enum");
14
- const base_entity_1 = require("../../common/database/base.entity");
15
- const typeorm_1 = require("typeorm");
16
- const poliza_entity_1 = require("./poliza.entity");
17
- const drive_1 = require("../drive");
18
- const swagger_1 = require("@nestjs/swagger");
19
- let PolizaSiniestro = class PolizaSiniestro extends base_entity_1.EntityBase {
20
- sigre;
21
- numeroReclamacion;
22
- fecha;
23
- status;
24
- poliza;
25
- finiquito;
26
- };
27
- exports.PolizaSiniestro = PolizaSiniestro;
28
- __decorate([
29
- (0, swagger_1.ApiProperty)({ type: String, description: 'Unique SIGRE number' }),
30
- (0, typeorm_1.Column)({ unique: true }),
31
- __metadata("design:type", String)
32
- ], PolizaSiniestro.prototype, "sigre", void 0);
33
- __decorate([
34
- (0, swagger_1.ApiProperty)({ type: String, description: 'Claim number' }),
35
- (0, typeorm_1.Column)(),
36
- __metadata("design:type", String)
37
- ], PolizaSiniestro.prototype, "numeroReclamacion", void 0);
38
- __decorate([
39
- (0, swagger_1.ApiProperty)({ type: Date, description: 'Date of the claim' }),
40
- (0, typeorm_1.Column)(),
41
- __metadata("design:type", Date)
42
- ], PolizaSiniestro.prototype, "fecha", void 0);
43
- __decorate([
44
- (0, swagger_1.ApiProperty)({ enum: sales_enum_1.StatusSiniestro, description: 'Status of the claim', default: sales_enum_1.StatusSiniestro.VIGENTE }),
45
- (0, typeorm_1.Column)({
46
- type: "enum",
47
- enum: sales_enum_1.StatusSiniestro,
48
- default: sales_enum_1.StatusSiniestro.VIGENTE
49
- }),
50
- __metadata("design:type", String)
51
- ], PolizaSiniestro.prototype, "status", void 0);
52
- __decorate([
53
- (0, swagger_1.ApiProperty)({ type: () => poliza_entity_1.Poliza, description: 'Policy associated with the claim' }),
54
- (0, typeorm_1.ManyToOne)(() => poliza_entity_1.Poliza, {
55
- onDelete: "CASCADE",
56
- onUpdate: "CASCADE",
57
- }),
58
- __metadata("design:type", poliza_entity_1.Poliza)
59
- ], PolizaSiniestro.prototype, "poliza", void 0);
60
- __decorate([
61
- (0, swagger_1.ApiProperty)({ type: () => drive_1.File, description: 'File associated with the claim', required: false }),
62
- (0, typeorm_1.OneToOne)(() => drive_1.File, {
63
- onDelete: "SET NULL",
64
- onUpdate: "CASCADE"
65
- }),
66
- (0, typeorm_1.JoinColumn)(),
67
- __metadata("design:type", drive_1.File)
68
- ], PolizaSiniestro.prototype, "finiquito", void 0);
69
- exports.PolizaSiniestro = PolizaSiniestro = __decorate([
70
- (0, typeorm_1.Entity)()
71
- ], PolizaSiniestro);
72
- //# sourceMappingURL=poliza_siniestro.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"poliza_siniestro.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/poliza_siniestro.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8DAAgE;AAChE,mEAA+D;AAC/D,qCAA0E;AAC1E,mDAAyC;AACzC,oCAAgC;AAChC,6CAA8C;AAGvC,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,wBAAU;IAG7C,KAAK,CAAS;IAId,iBAAiB,CAAS;IAI1B,KAAK,CAAO;IAQZ,MAAM,CAAkB;IAOxB,MAAM,CAAS;IAQf,SAAS,CAAO;CACjB,CAAA;AAnCY,0CAAe;AAG1B;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,CAAC;IACjE,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;8CACX;AAId;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC;IAC1D,IAAA,gBAAM,GAAE;;0DACiB;AAI1B;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,mBAAmB,EAAE,CAAC;IAC7D,IAAA,gBAAM,GAAE;8BACF,IAAI;8CAAC;AAQZ;IANC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,4BAAe,EAAE,WAAW,EAAE,qBAAqB,EAAE,OAAO,EAAE,4BAAe,CAAC,OAAO,EAAE,CAAC;IAC5G,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,4BAAe;QACrB,OAAO,EAAE,4BAAe,CAAC,OAAO;KACjC,CAAC;;+CACsB;AAOxB;IALC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,sBAAM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