easywork-common-lib 1.0.762 → 1.0.764
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/.gitattributes +2 -2
- package/.github/workflows/npm-publish.yml +33 -33
- package/.vscode/settings.json +12 -12
- package/dist/entities/capacitation/capacitation-lesson.entity copy.d.ts +7 -0
- package/dist/entities/capacitation/capacitation-lesson.entity copy.js +45 -0
- package/dist/entities/capacitation/capacitation-lesson.entity copy.js.map +1 -0
- package/dist/entities/capacitation/capacitation-module.entity.d.ts +12 -0
- package/dist/entities/capacitation/capacitation-module.entity.js +85 -0
- package/dist/entities/capacitation/capacitation-module.entity.js.map +1 -0
- package/dist/entities/capacitation/course-evaluation-progress.d.ts +20 -0
- package/dist/entities/capacitation/course-evaluation-progress.entity.d.ts +19 -0
- package/dist/entities/capacitation/course-evaluation-progress.entity.js +81 -0
- package/dist/entities/capacitation/course-evaluation-progress.entity.js.map +1 -0
- package/dist/entities/capacitation/course-evaluation-progress.js +81 -0
- package/dist/entities/capacitation/course-evaluation-progress.js.map +1 -0
- package/dist/entities/capacitation/course-evaluation-question.d.ts +11 -0
- package/dist/entities/capacitation/course-evaluation-question.js +46 -0
- package/dist/entities/capacitation/course-evaluation-question.js.map +1 -0
- package/dist/entities/capacitation/course-progress.entity.d.ts +14 -0
- package/dist/entities/capacitation/course-progress.entity.js +53 -0
- package/dist/entities/capacitation/course-progress.entity.js.map +1 -0
- package/dist/entities/capacitation/folder-page.entity.d.ts +11 -0
- package/dist/entities/capacitation/folder-page.entity.js +57 -0
- package/dist/entities/capacitation/folder-page.entity.js.map +1 -0
- package/dist/entities/capacitation/lesson-page.entity.d.ts +13 -0
- package/dist/entities/capacitation/lesson-page.entity.js +69 -0
- package/dist/entities/capacitation/lesson-page.entity.js.map +1 -0
- package/dist/entities/capacitation/lesson-section.entity.d.ts +10 -0
- package/dist/entities/capacitation/lesson-section.entity.js +57 -0
- package/dist/entities/capacitation/lesson-section.entity.js.map +1 -0
- package/dist/entities/capacitation/lesson.entity.d.ts +15 -0
- package/dist/entities/capacitation/lesson.entity.js +77 -0
- package/dist/entities/capacitation/lesson.entity.js.map +1 -0
- package/dist/entities/sales/poliza_siniestro.entity.d.ts +12 -0
- package/dist/entities/sales/poliza_siniestro.entity.js +72 -0
- package/dist/entities/sales/poliza_siniestro.entity.js.map +1 -0
- package/dist/entities/user-invitations.entity.d.ts +5 -0
- package/dist/entities/user-invitations.entity.js +41 -0
- package/dist/entities/user-invitations.entity.js.map +1 -1
- package/dist/grpc/drive/drive.proto +260 -260
- package/dist/grpc/drive/leads.proto +114 -114
- package/justfile +8 -8
- package/package.json +46 -46
- package/scripts/bump.sh +8 -8
- package/test.bat +15 -15
- package/tsconfig.build.json +4 -4
- package/tsconfig.json +25 -25
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,57 @@
|
|
|
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.FolderPage = 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_folder_entity_1 = require("./course-folder.entity");
|
|
17
|
+
let FolderPage = class FolderPage extends base_entity_1.EntityBase {
|
|
18
|
+
name;
|
|
19
|
+
description;
|
|
20
|
+
isCompleted;
|
|
21
|
+
isPublished;
|
|
22
|
+
files;
|
|
23
|
+
folder;
|
|
24
|
+
};
|
|
25
|
+
exports.FolderPage = FolderPage;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Folder page name' }),
|
|
28
|
+
(0, typeorm_1.Column)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], FolderPage.prototype, "name", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Folder page description', nullable: true }),
|
|
33
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], FolderPage.prototype, "description", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
38
|
+
__metadata("design:type", Boolean)
|
|
39
|
+
], FolderPage.prototype, "isCompleted", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
42
|
+
__metadata("design:type", Boolean)
|
|
43
|
+
], FolderPage.prototype, "isPublished", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, swagger_1.ApiProperty)({ isArray: true, type: String, description: 'Files uploaded to the content' }),
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true, default: [] }),
|
|
47
|
+
__metadata("design:type", Array)
|
|
48
|
+
], FolderPage.prototype, "files", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, swagger_1.ApiProperty)({ type: () => course_folder_entity_1.CourseFolder, description: 'Folder owner of the page', required: false }),
|
|
51
|
+
(0, typeorm_1.ManyToOne)(() => course_folder_entity_1.CourseFolder, folder => folder.pages, { onDelete: 'CASCADE' }),
|
|
52
|
+
__metadata("design:type", course_folder_entity_1.CourseFolder)
|
|
53
|
+
], FolderPage.prototype, "folder", void 0);
|
|
54
|
+
exports.FolderPage = FolderPage = __decorate([
|
|
55
|
+
(0, typeorm_1.Entity)()
|
|
56
|
+
], FolderPage);
|
|
57
|
+
//# sourceMappingURL=folder-page.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"folder-page.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/folder-page.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AACpD,6CAA8C;AAE9C,mEAA+D;AAC/D,iEAAsD;AAI/C,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,wBAAU;IAGxC,IAAI,CAAS;IAIb,WAAW,CAAU;IAGrB,WAAW,CAAU;IAGrB,WAAW,CAAU;IAIrB,KAAK,CAAqB;IAI1B,MAAM,CAAe;CACtB,CAAA;AAtBY,gCAAU;AAGrB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;IAC9D,IAAA,gBAAM,GAAE;;wCACI;AAIb;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,yBAAyB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACrF,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACN;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;+CACN;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;+CACN;AAIrB;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,mCAAY,EAAE,WAAW,EAAE,0BAA0B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACnG,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mCAAY,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BACvE,mCAAY;0CAAC;qBArBV,UAAU;IADtB,IAAA,gBAAM,GAAE;GACI,UAAU,CAsBtB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EntityBase } from '../../common/database/base.entity';
|
|
2
|
+
import { Lesson } from './lesson.entity';
|
|
3
|
+
import { LMSFileUploaded } from 'common';
|
|
4
|
+
export declare class LessonPage extends EntityBase {
|
|
5
|
+
name: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
coverPhotoSrc?: string;
|
|
8
|
+
progress: number;
|
|
9
|
+
isCompleted: boolean;
|
|
10
|
+
images?: string[];
|
|
11
|
+
files?: LMSFileUploaded[];
|
|
12
|
+
lesson: Lesson;
|
|
13
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lesson-page.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/lesson-page.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AACpD,6CAA8C;AAE9C,mEAA+D;AAC/D,mDAAyC;AAIlC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,wBAAU;IAGxC,IAAI,CAAS;IAIb,WAAW,CAAU;IAIrB,aAAa,CAA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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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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,EAAC,EAAE,IAAI,EAAE,MAAM,E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AC,UAAU,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;;qCAClE;iBAlCT,MAAM;IADlB,IAAA,gBAAM,GAAE;GACI,MAAM,CAmClB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
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
|
|
@@ -0,0 +1 @@
|
|
|
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,EA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B"}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { EntityBase } from '../common/database/base.entity';
|
|
2
|
+
import { User } from './user.entity';
|
|
2
3
|
export declare class UserInvitations extends EntityBase {
|
|
3
4
|
name: string;
|
|
4
5
|
token?: string;
|
|
5
6
|
lastName: string;
|
|
6
7
|
email: string;
|
|
7
8
|
isLink: boolean;
|
|
9
|
+
isExpired: boolean;
|
|
10
|
+
isUsed: boolean;
|
|
11
|
+
expiresAt?: Date;
|
|
8
12
|
link: string;
|
|
9
13
|
adminApproveRequired: boolean;
|
|
10
14
|
quickRegistration: boolean;
|
|
15
|
+
createdBy: User;
|
|
11
16
|
}
|
|
@@ -13,15 +13,20 @@ exports.UserInvitations = void 0;
|
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
15
|
const base_entity_1 = require("../common/database/base.entity");
|
|
16
|
+
const user_entity_1 = require("./user.entity");
|
|
16
17
|
let UserInvitations = class UserInvitations extends base_entity_1.EntityBase {
|
|
17
18
|
name;
|
|
18
19
|
token;
|
|
19
20
|
lastName;
|
|
20
21
|
email;
|
|
21
22
|
isLink;
|
|
23
|
+
isExpired;
|
|
24
|
+
isUsed;
|
|
25
|
+
expiresAt;
|
|
22
26
|
link;
|
|
23
27
|
adminApproveRequired;
|
|
24
28
|
quickRegistration;
|
|
29
|
+
createdBy;
|
|
25
30
|
};
|
|
26
31
|
exports.UserInvitations = UserInvitations;
|
|
27
32
|
__decorate([
|
|
@@ -69,6 +74,33 @@ __decorate([
|
|
|
69
74
|
(0, typeorm_1.Column)({ nullable: false, default: false }),
|
|
70
75
|
__metadata("design:type", Boolean)
|
|
71
76
|
], UserInvitations.prototype, "isLink", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, swagger_1.ApiProperty)({
|
|
79
|
+
type: Boolean,
|
|
80
|
+
description: 'Is Link expired',
|
|
81
|
+
required: false,
|
|
82
|
+
}),
|
|
83
|
+
(0, typeorm_1.Column)({ nullable: false, default: false }),
|
|
84
|
+
__metadata("design:type", Boolean)
|
|
85
|
+
], UserInvitations.prototype, "isExpired", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, swagger_1.ApiProperty)({
|
|
88
|
+
type: Boolean,
|
|
89
|
+
description: 'Link used',
|
|
90
|
+
required: false,
|
|
91
|
+
}),
|
|
92
|
+
(0, typeorm_1.Column)({ nullable: false, default: false }),
|
|
93
|
+
__metadata("design:type", Boolean)
|
|
94
|
+
], UserInvitations.prototype, "isUsed", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, swagger_1.ApiProperty)({
|
|
97
|
+
type: Boolean,
|
|
98
|
+
description: 'Link expiration date',
|
|
99
|
+
required: false,
|
|
100
|
+
}),
|
|
101
|
+
(0, typeorm_1.Column)({ type: 'datetime', nullable: true }),
|
|
102
|
+
__metadata("design:type", Date)
|
|
103
|
+
], UserInvitations.prototype, "expiresAt", void 0);
|
|
72
104
|
__decorate([
|
|
73
105
|
(0, swagger_1.ApiProperty)({
|
|
74
106
|
type: String,
|
|
@@ -96,6 +128,15 @@ __decorate([
|
|
|
96
128
|
(0, typeorm_1.Column)({ nullable: false, default: false }),
|
|
97
129
|
__metadata("design:type", Boolean)
|
|
98
130
|
], UserInvitations.prototype, "quickRegistration", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, swagger_1.ApiProperty)({
|
|
133
|
+
type: () => user_entity_1.User,
|
|
134
|
+
description: 'User who creates the invitation link',
|
|
135
|
+
required: false,
|
|
136
|
+
}),
|
|
137
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: false, onDelete: 'CASCADE' }),
|
|
138
|
+
__metadata("design:type", user_entity_1.User)
|
|
139
|
+
], UserInvitations.prototype, "createdBy", void 0);
|
|
99
140
|
exports.UserInvitations = UserInvitations = __decorate([
|
|
100
141
|
(0, typeorm_1.Entity)()
|
|
101
142
|
], UserInvitations);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-invitations.entity.js","sourceRoot":"","sources":["../../src/entities/user-invitations.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"user-invitations.entity.js","sourceRoot":"","sources":["../../src/entities/user-invitations.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AACpD,6CAA8C;AAE9C,gEAA4D;AAC5D,+CAAqC;AAG9B,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,wBAAU;IAO7C,IAAI,CAAS;IAQb,KAAK,CAAU;IAQf,QAAQ,CAAS;IAQjB,KAAK,CAAS;IAQd,MAAM,CAAU;IAQhB,SAAS,CAAU;IAQnB,MAAM,CAAU;IAQhB,SAAS,CAAQ;IAQjB,IAAI,CAAS;IAQb,oBAAoB,CAAU;IAQ9B,iBAAiB,CAAU;IAQ3B,SAAS,CAAO;CACjB,CAAA;AAhGY,0CAAe;AAO1B;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,MAAM;QACnB,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CAC3B;AAQb;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,OAAO;QACpB,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACzB;AAQf;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,WAAW;QACxB,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACvB;AAQjB;IANC,IAAA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