easywork-common-lib 1.0.687 → 1.0.690
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/capacitation/course-evaluation.entity.d.ts +17 -0
- package/dist/entities/capacitation/course-evaluation.entity.js +18 -1
- package/dist/entities/capacitation/course-evaluation.entity.js.map +1 -1
- 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/index.d.ts +0 -1
- package/dist/entities/capacitation/index.js +1 -3
- package/dist/entities/capacitation/index.js.map +1 -1
- package/dist/modules/queue/queue.module.js +2 -2
- package/dist/modules/queue/queue.module.js.map +1 -1
- package/package.json +4 -3
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/entities/helpers/sales/agent/h_agent_recruiment_stage.entity.d.ts +0 -5
- package/dist/entities/helpers/sales/agent/h_agent_recruiment_stage.entity.js +0 -40
- package/dist/entities/helpers/sales/agent/h_agent_recruiment_stage.entity.js.map +0 -1
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.d.ts +0 -11
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.js +0 -68
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.js.map +0 -1
|
@@ -2,7 +2,24 @@ import { EntityBase } from '../../common/database/base.entity';
|
|
|
2
2
|
import { User } from '../user.entity';
|
|
3
3
|
import { Course } from './course.entity';
|
|
4
4
|
import { CourseFolderPage } from './course-folder-page.entity';
|
|
5
|
+
export declare enum QuestionType {
|
|
6
|
+
text = "text",
|
|
7
|
+
multipleChoice = "multiple-choice",
|
|
8
|
+
trueOrFalse = "true-false",
|
|
9
|
+
selection = "selection",
|
|
10
|
+
checkList = "check-list",
|
|
11
|
+
imageSection = "image-section",
|
|
12
|
+
videoSection = "video-section"
|
|
13
|
+
}
|
|
14
|
+
export type Question = {
|
|
15
|
+
title: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
body: object;
|
|
18
|
+
type: QuestionType;
|
|
19
|
+
required: boolean;
|
|
20
|
+
};
|
|
5
21
|
export declare class CourseEvaluation extends EntityBase {
|
|
22
|
+
options: Question[];
|
|
6
23
|
page?: CourseFolderPage;
|
|
7
24
|
course: Course;
|
|
8
25
|
createdBy: User;
|
|
@@ -9,23 +9,40 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CourseEvaluation = void 0;
|
|
12
|
+
exports.CourseEvaluation = exports.QuestionType = 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
16
|
const user_entity_1 = require("../user.entity");
|
|
17
17
|
const course_entity_1 = require("./course.entity");
|
|
18
18
|
const course_folder_page_entity_1 = require("./course-folder-page.entity");
|
|
19
|
+
var QuestionType;
|
|
20
|
+
(function (QuestionType) {
|
|
21
|
+
QuestionType["text"] = "text";
|
|
22
|
+
QuestionType["multipleChoice"] = "multiple-choice";
|
|
23
|
+
QuestionType["trueOrFalse"] = "true-false";
|
|
24
|
+
QuestionType["selection"] = "selection";
|
|
25
|
+
QuestionType["checkList"] = "check-list";
|
|
26
|
+
QuestionType["imageSection"] = "image-section";
|
|
27
|
+
QuestionType["videoSection"] = "video-section";
|
|
28
|
+
})(QuestionType || (exports.QuestionType = QuestionType = {}));
|
|
19
29
|
let CourseEvaluation = class CourseEvaluation extends base_entity_1.EntityBase {
|
|
30
|
+
options;
|
|
20
31
|
page;
|
|
21
32
|
course;
|
|
22
33
|
createdBy;
|
|
23
34
|
};
|
|
24
35
|
exports.CourseEvaluation = CourseEvaluation;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: false, default: [] }),
|
|
38
|
+
__metadata("design:type", Array)
|
|
39
|
+
], CourseEvaluation.prototype, "options", void 0);
|
|
25
40
|
__decorate([
|
|
26
41
|
(0, swagger_1.ApiProperty)({ type: () => course_folder_page_entity_1.CourseFolderPage, description: "Page' evaluation", required: false }),
|
|
27
42
|
(0, typeorm_1.OneToOne)(() => course_folder_page_entity_1.CourseFolderPage, page => page.evaluation, {
|
|
28
43
|
nullable: true,
|
|
44
|
+
cascade: true,
|
|
45
|
+
onDelete: 'SET NULL',
|
|
29
46
|
}),
|
|
30
47
|
__metadata("design:type", course_folder_page_entity_1.CourseFolderPage)
|
|
31
48
|
], CourseEvaluation.prototype, "page", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"course-evaluation.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course-evaluation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"course-evaluation.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course-evaluation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA8D;AAC9D,6CAA8C;AAE9C,mEAA+D;AAC/D,gDAAsC;AAEtC,mDAAyC;AACzC,2EAA+D;AAE/D,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,kDAAkC,CAAA;IAClC,0CAA0B,CAAA;IAC1B,uCAAuB,CAAA;IACvB,wCAAwB,CAAA;IACxB,8CAA8B,CAAA;IAC9B,8CAA8B,CAAA;AAChC,CAAC,EARW,YAAY,4BAAZ,YAAY,QAQvB;AAWM,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,wBAAU;IAE9C,OAAO,CAAa;IAQpB,IAAI,CA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,CAuB5B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Course } from './course.entity';
|
|
2
|
+
import { CourseFolderPage } from './course-folder-page.entity';
|
|
3
|
+
import { User } from '../user.entity';
|
|
4
|
+
export declare class CourseProgress {
|
|
5
|
+
id: number;
|
|
6
|
+
user: User;
|
|
7
|
+
course: Course;
|
|
8
|
+
lastCompletedPage: CourseFolderPage | null;
|
|
9
|
+
progress: number;
|
|
10
|
+
completedPages: {
|
|
11
|
+
pageId: number;
|
|
12
|
+
completedAt: Date;
|
|
13
|
+
}[] | null;
|
|
14
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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.CourseProgress = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const course_entity_1 = require("./course.entity");
|
|
15
|
+
const course_folder_page_entity_1 = require("./course-folder-page.entity");
|
|
16
|
+
const user_entity_1 = require("../user.entity");
|
|
17
|
+
let CourseProgress = class CourseProgress {
|
|
18
|
+
id;
|
|
19
|
+
user;
|
|
20
|
+
course;
|
|
21
|
+
lastCompletedPage;
|
|
22
|
+
progress;
|
|
23
|
+
completedPages;
|
|
24
|
+
};
|
|
25
|
+
exports.CourseProgress = CourseProgress;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], CourseProgress.prototype, "id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, user => user.courseProgress),
|
|
32
|
+
__metadata("design:type", user_entity_1.User)
|
|
33
|
+
], CourseProgress.prototype, "user", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.ManyToOne)(() => course_entity_1.Course, course => course.courseProgress),
|
|
36
|
+
__metadata("design:type", course_entity_1.Course)
|
|
37
|
+
], CourseProgress.prototype, "course", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.ManyToOne)(() => course_folder_page_entity_1.CourseFolderPage, page => page.courseProgress, { nullable: true }),
|
|
40
|
+
__metadata("design:type", course_folder_page_entity_1.CourseFolderPage)
|
|
41
|
+
], CourseProgress.prototype, "lastCompletedPage", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ default: 0 }),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], CourseProgress.prototype, "progress", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
48
|
+
__metadata("design:type", Array)
|
|
49
|
+
], CourseProgress.prototype, "completedPages", void 0);
|
|
50
|
+
exports.CourseProgress = CourseProgress = __decorate([
|
|
51
|
+
(0, typeorm_1.Entity)()
|
|
52
|
+
], CourseProgress);
|
|
53
|
+
//# sourceMappingURL=course-progress.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"course-progress.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course-progress.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4E;AAC5E,mDAAyC;AACzC,2EAA+D;AAC/D,gDAAsC;AAG/B,IAAM,cAAc,GAApB,MAAM,cAAc;IAEzB,EAAE,CAAS;IAGX,IAAI,CAAO;IAGX,MAAM,CAAS;IAGf,iBAAiB,CAA0B;IAG3C,QAAQ,CAAS;IAGjB,cAAc,CAAiD;CAChE,CAAA;AAlBY,wCAAc;AAEzB;IADC,IAAA,gCAAsB,GAAE;;0CACd;AAGX;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC;8BAC7C,kBAAI;4CAAC;AAGX;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,cAAc,CAAC;8BACjD,sBAAM;8CAAC;AAGf;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,4CAAgB,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAChE,4CAAgB;yDAAQ;AAG3C;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;gDACN;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACqB;yBAjBpD,cAAc;IAD1B,IAAA,gBAAM,GAAE;GACI,cAAc,CAkB1B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EntityBase } from '../../common/database/base.entity';
|
|
2
|
+
import { CourseFolder } from './course-folder.entity';
|
|
3
|
+
import { LMSFileUploaded } from 'common';
|
|
4
|
+
export declare class FolderPage extends EntityBase {
|
|
5
|
+
name: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
isCompleted: boolean;
|
|
8
|
+
isPublished: boolean;
|
|
9
|
+
files?: LMSFileUploaded[];
|
|
10
|
+
folder: CourseFolder;
|
|
11
|
+
}
|
|
@@ -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,IAA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FolderPage } from './course-folder-page.entity';
|
|
|
5
5
|
export { CourseAssigned } from './course-assigned.entity';
|
|
6
6
|
export { CourseOrder } from './course-order.entity';
|
|
7
7
|
export { CourseEvaluation } from './course-evaluation.entity';
|
|
8
|
-
export { CourseEvaluationQuestion } from './course-evaluation-question';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.CourseEvaluation = exports.CourseOrder = exports.CourseAssigned = exports.CourseFolderPage = exports.CourseFolder = exports.Course = exports.Capacitation = void 0;
|
|
4
4
|
var capacitation_entity_1 = require("./capacitation.entity");
|
|
5
5
|
Object.defineProperty(exports, "Capacitation", { enumerable: true, get: function () { return capacitation_entity_1.Capacitation; } });
|
|
6
6
|
var course_entity_1 = require("./course.entity");
|
|
@@ -15,6 +15,4 @@ var course_order_entity_1 = require("./course-order.entity");
|
|
|
15
15
|
Object.defineProperty(exports, "CourseOrder", { enumerable: true, get: function () { return course_order_entity_1.CourseOrder; } });
|
|
16
16
|
var course_evaluation_entity_1 = require("./course-evaluation.entity");
|
|
17
17
|
Object.defineProperty(exports, "CourseEvaluation", { enumerable: true, get: function () { return course_evaluation_entity_1.CourseEvaluation; } });
|
|
18
|
-
var course_evaluation_question_1 = require("./course-evaluation-question");
|
|
19
|
-
Object.defineProperty(exports, "CourseEvaluationQuestion", { enumerable: true, get: function () { return course_evaluation_question_1.CourseEvaluationQuestion; } });
|
|
20
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/capacitation/index.ts"],"names":[],"mappings":";;;AAAA,6DAAqD;AAA5C,mHAAA,YAAY,OAAA;AACrB,iDAAyC;AAAhC,uGAAA,MAAM,OAAA;AACf,+DAAsD;AAA7C,oHAAA,YAAY,OAAA;AACrB,yEAA+D;AAAtD,6HAAA,gBAAgB,OAAA;AACzB,mEAA0D;AAAjD,wHAAA,cAAc,OAAA;AACvB,6DAAoD;AAA3C,kHAAA,WAAW,OAAA;AACpB,uEAA8D;AAArD,4HAAA,gBAAgB,OAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/capacitation/index.ts"],"names":[],"mappings":";;;AAAA,6DAAqD;AAA5C,mHAAA,YAAY,OAAA;AACrB,iDAAyC;AAAhC,uGAAA,MAAM,OAAA;AACf,+DAAsD;AAA7C,oHAAA,YAAY,OAAA;AACrB,yEAA+D;AAAtD,6HAAA,gBAAgB,OAAA;AACzB,mEAA0D;AAAjD,wHAAA,cAAc,OAAA;AACvB,6DAAoD;AAA3C,kHAAA,WAAW,OAAA;AACpB,uEAA8D;AAArD,4HAAA,gBAAgB,OAAA"}
|
|
@@ -10,10 +10,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
exports.EasyQueueModule = void 0;
|
|
11
11
|
const common_1 = require("@nestjs/common");
|
|
12
12
|
const notifier_service_1 = require("./notifier.service");
|
|
13
|
-
const nestjs_rabbitmq_1 = require("@golevelup/nestjs-rabbitmq");
|
|
14
13
|
const scheduler_service_1 = require("./scheduler.service");
|
|
15
14
|
const event_service_1 = require("./event.service");
|
|
16
15
|
const queue_service_1 = require("./queue.service");
|
|
16
|
+
const nestjs_rabbitmq_1 = require("@golevelup/nestjs-rabbitmq");
|
|
17
17
|
let EasyQueueModule = EasyQueueModule_1 = class EasyQueueModule {
|
|
18
18
|
static register(exchangeName, rabbitMQUri, notificationRoutingKey, schedulerRoutingKey, eventRoutingKey) {
|
|
19
19
|
console.log(rabbitMQUri);
|
|
@@ -22,7 +22,7 @@ let EasyQueueModule = EasyQueueModule_1 = class EasyQueueModule {
|
|
|
22
22
|
return {
|
|
23
23
|
module: EasyQueueModule_1,
|
|
24
24
|
imports: [
|
|
25
|
-
nestjs_rabbitmq_1.RabbitMQModule.forRoot(
|
|
25
|
+
nestjs_rabbitmq_1.RabbitMQModule.forRoot({
|
|
26
26
|
exchanges: [
|
|
27
27
|
{
|
|
28
28
|
name: exchangeName,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queue.module.js","sourceRoot":"","sources":["../../../src/modules/queue/queue.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA+D;AAC/D,yDAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"queue.module.js","sourceRoot":"","sources":["../../../src/modules/queue/queue.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA+D;AAC/D,yDAAyD;AACzD,2DAA2D;AAC3D,mDAAmD;AACnD,mDAAmD;AACnD,gEAA4D;AAIrD,IAAM,eAAe,uBAArB,MAAM,eAAe;IAC1B,MAAM,CAAC,QAAQ,CACb,YAAoB,EACpB,WAAmB,EACnB,sBAA8B,EAC9B,mBAA2B,EAC3B,eAAuB;QAEvB,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QACzB,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;QACpC,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;QAEjC,OAAO;YACL,MAAM,EAAE,iBAAe;YACvB,OAAO,EAAE;gBACP,gCAAc,CAAC,OAAO,CAAC;oBACrB,SAAS,EAAE;wBACT;4BACE,IAAI,EAAE,YAAY;4BAClB,IAAI,EAAE,OAAO;yBACd;qBACF;oBACD,GAAG,EAAE,WAAW;iBACjB,CAAC;aACH;YACD,SAAS,EAAE;gBACT;oBACE,OAAO,EAAE,eAAe;oBACxB,QAAQ,EAAE,YAAY;iBACvB;gBACD;oBACE,OAAO,EAAE,sBAAsB;oBAC/B,QAAQ,EAAE,sBAAsB;iBACjC;gBACD;oBACE,OAAO,EAAE,uBAAuB;oBAChC,QAAQ,EAAE,mBAAmB;iBAC9B;gBACD;oBACE,OAAO,EAAE,mBAAmB;oBAC5B,QAAQ,EAAE,eAAe;iBAC1B;gBACD,sCAAmB;gBACnB,wCAAoB;gBACpB,gCAAgB;gBAChB,gCAAgB;aACjB;YACD,OAAO,EAAE;gBACP,sCAAmB;gBACnB,wCAAoB;gBACpB,gCAAgB;gBAChB,gCAAgB;aACjB;SACF,CAAC;IACJ,CAAC;CACF,CAAA;AAvDY,0CAAe;0BAAf,eAAe;IAF3B,IAAA,eAAM,GAAE;IACR,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,eAAe,CAuD3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easywork-common-lib",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.690",
|
|
4
4
|
"description": "Librería común de Easywork",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"homepage": "https://github.com/blindariesgos/easywork-common-lib#readme",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@golevelup/nestjs-rabbitmq": "^5.
|
|
25
|
+
"@golevelup/nestjs-rabbitmq": "^5.7.0",
|
|
26
26
|
"@nestjs/common": "^10.4.15",
|
|
27
27
|
"@nestjs/swagger": "^7.4.2",
|
|
28
28
|
"@nestjs/typeorm": "^10.0.2",
|
|
@@ -30,13 +30,14 @@
|
|
|
30
30
|
"class-validator": "^0.14.1",
|
|
31
31
|
"googleapis": "^144.0.0",
|
|
32
32
|
"nanoid": "^3.3.8",
|
|
33
|
+
"nestjs-rabbitmq": "link:@types/@golevelup/nestjs-rabbitmq",
|
|
33
34
|
"rxjs": "^7.8.1",
|
|
34
35
|
"sharp": "^0.33.5",
|
|
35
36
|
"typeorm": "^0.3.20"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
39
|
"@rubiin/tsconfig": "^1.2.1",
|
|
39
|
-
"@types/node": "^20.17.
|
|
40
|
+
"@types/node": "^20.17.16",
|
|
40
41
|
"cpx-fixed": "^1.6.0",
|
|
41
42
|
"ts-loader": "^9.5.2",
|
|
42
43
|
"typescript": "^5.7.3"
|