easywork-common-lib 1.0.590 → 1.0.592
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/common/enums/notification.enum.d.ts +2 -1
- package/dist/common/enums/notification.enum.js +1 -0
- package/dist/common/enums/notification.enum.js.map +1 -1
- package/dist/entities/capacitation/index.d.ts +1 -1
- package/dist/entities/capacitation/index.js +3 -3
- package/dist/entities/capacitation/index.js.map +1 -1
- package/dist/entities/capacitation/lesson-page.entity.d.ts +10 -0
- package/dist/entities/capacitation/lesson-page.entity.js +57 -0
- package/dist/entities/capacitation/lesson-page.entity.js.map +1 -0
- package/dist/entities/capacitation/lesson.entity.d.ts +2 -0
- package/dist/entities/capacitation/lesson.entity.js +7 -0
- package/dist/entities/capacitation/lesson.entity.js.map +1 -1
- package/package.json +6 -6
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -23,7 +23,8 @@ export declare enum NotificationSubcategory {
|
|
|
23
23
|
CONTACT_NEW_COMMENT = "contact-new-comment",
|
|
24
24
|
OTP = "otp",
|
|
25
25
|
DEFAULT = "default",
|
|
26
|
-
NEW_EVENT = "new-event"
|
|
26
|
+
NEW_EVENT = "new-event",
|
|
27
|
+
USER_TAGGED = "user-tagged"
|
|
27
28
|
}
|
|
28
29
|
export declare enum NotificationCategory {
|
|
29
30
|
TASK = "task",
|
|
@@ -29,6 +29,7 @@ var NotificationSubcategory;
|
|
|
29
29
|
NotificationSubcategory["OTP"] = "otp";
|
|
30
30
|
NotificationSubcategory["DEFAULT"] = "default";
|
|
31
31
|
NotificationSubcategory["NEW_EVENT"] = "new-event";
|
|
32
|
+
NotificationSubcategory["USER_TAGGED"] = "user-tagged";
|
|
32
33
|
})(NotificationSubcategory || (exports.NotificationSubcategory = NotificationSubcategory = {}));
|
|
33
34
|
var NotificationCategory;
|
|
34
35
|
(function (NotificationCategory) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.enum.js","sourceRoot":"","sources":["../../../src/common/enums/notification.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAKX;AALD,WAAY,mBAAmB;
|
|
1
|
+
{"version":3,"file":"notification.enum.js","sourceRoot":"","sources":["../../../src/common/enums/notification.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,sCAAe,CAAA;IACf,kCAAW,CAAA;IACX,oCAAa,CAAA;IACb,kCAAW,CAAA;AACb,CAAC,EALW,mBAAmB,mCAAnB,mBAAmB,QAK9B;AAED,IAAY,uBAyBX;AAzBD,WAAY,uBAAuB;IACjC,gDAAqB,CAAA;IACrB,2DAAgC,CAAA;IAChC,wDAA6B,CAAA;IAC7B,0DAA+B,CAAA;IAC/B,gEAAqC,CAAA;IACrC,0DAA+B,CAAA;IAC/B,0DAA+B,CAAA;IAC/B,wDAA6B,CAAA;IAE7B,oDAAyB,CAAA;IACzB,wDAA6B,CAAA;IAC7B,0DAA+B,CAAA;IAC/B,0DAA+B,CAAA;IAC/B,gEAAqC,CAAA;IACrC,4DAAiC,CAAA;IACjC,oEAAyC,CAAA;IAEzC,sEAA2C,CAAA;IAC3C,sCAAW,CAAA;IACX,8CAAmB,CAAA;IAEnB,kDAAuB,CAAA;IAEvB,sDAA2B,CAAA;AAC7B,CAAC,EAzBW,uBAAuB,uCAAvB,uBAAuB,QAyBlC;AAED,IAAY,oBAaX;AAbD,WAAY,oBAAoB;IAC9B,qCAAa,CAAA;IACb,mCAAW,CAAA;IACX,mCAAW,CAAA;IACX,2CAAmB,CAAA;IACnB,uCAAe,CAAA;IACf,uCAAe,CAAA;IACf,uCAAe,CAAA;IACf,6CAAqB,CAAA;IACrB,uCAAe,CAAA;IACf,qCAAa,CAAA;IACb,yCAAiB,CAAA;IACjB,2CAAmB,CAAA;AACrB,CAAC,EAbW,oBAAoB,oCAApB,oBAAoB,QAa/B"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.LessonPage = exports.Lesson = 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");
|
|
7
7
|
Object.defineProperty(exports, "Course", { enumerable: true, get: function () { return course_entity_1.Course; } });
|
|
8
8
|
var lesson_entity_1 = require("./lesson.entity");
|
|
9
9
|
Object.defineProperty(exports, "Lesson", { enumerable: true, get: function () { return lesson_entity_1.Lesson; } });
|
|
10
|
-
var
|
|
11
|
-
Object.defineProperty(exports, "
|
|
10
|
+
var lesson_page_entity_1 = require("./lesson-page.entity");
|
|
11
|
+
Object.defineProperty(exports, "LessonPage", { enumerable: true, get: function () { return lesson_page_entity_1.LessonPage; } });
|
|
12
12
|
//# 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,iDAAyC;AAAhC,uGAAA,MAAM,OAAA;AACf,
|
|
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,iDAAyC;AAAhC,uGAAA,MAAM,OAAA;AACf,2DAAkD;AAAzC,gHAAA,UAAU,OAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EntityBase } from '../../common/database/base.entity';
|
|
2
|
+
import { Lesson } from './lesson.entity';
|
|
3
|
+
export declare class LessonPage extends EntityBase {
|
|
4
|
+
name: 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.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
|
+
lesson;
|
|
24
|
+
};
|
|
25
|
+
exports.LessonPage = LessonPage;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Lesson page name' }),
|
|
28
|
+
(0, typeorm_1.Column)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], LessonPage.prototype, "name", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Lesson page description', nullable: true }),
|
|
33
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], LessonPage.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
|
+
], LessonPage.prototype, "coverPhotoSrc", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ default: 0, type: 'float' }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], LessonPage.prototype, "progress", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
47
|
+
__metadata("design:type", Boolean)
|
|
48
|
+
], LessonPage.prototype, "isCompleted", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, swagger_1.ApiProperty)({ type: () => lesson_entity_1.Lesson, description: 'Lesson owner of the page', required: false }),
|
|
51
|
+
(0, typeorm_1.ManyToOne)(() => lesson_entity_1.Lesson, lesson => lesson.pages),
|
|
52
|
+
__metadata("design:type", lesson_entity_1.Lesson)
|
|
53
|
+
], LessonPage.prototype, "lesson", void 0);
|
|
54
|
+
exports.LessonPage = LessonPage = __decorate([
|
|
55
|
+
(0, typeorm_1.Entity)()
|
|
56
|
+
], LessonPage);
|
|
57
|
+
//# 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;A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AU,CAsBtB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EntityBase } from '../../common/database/base.entity';
|
|
2
2
|
import { Course } from './course.entity';
|
|
3
|
+
import { LessonPage } from './lesson-page.entity';
|
|
3
4
|
export declare class Lesson extends EntityBase {
|
|
4
5
|
name: string;
|
|
5
6
|
description?: string;
|
|
@@ -7,4 +8,5 @@ export declare class Lesson extends EntityBase {
|
|
|
7
8
|
coverPhotoSrc?: string;
|
|
8
9
|
isCompleted: boolean;
|
|
9
10
|
course: Course;
|
|
11
|
+
pages: LessonPage;
|
|
10
12
|
}
|
|
@@ -14,6 +14,7 @@ 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 course_entity_1 = require("./course.entity");
|
|
17
|
+
const lesson_page_entity_1 = require("./lesson-page.entity");
|
|
17
18
|
let Lesson = class Lesson extends base_entity_1.EntityBase {
|
|
18
19
|
name;
|
|
19
20
|
description;
|
|
@@ -21,6 +22,7 @@ let Lesson = class Lesson extends base_entity_1.EntityBase {
|
|
|
21
22
|
coverPhotoSrc;
|
|
22
23
|
isCompleted;
|
|
23
24
|
course;
|
|
25
|
+
pages;
|
|
24
26
|
};
|
|
25
27
|
exports.Lesson = Lesson;
|
|
26
28
|
__decorate([
|
|
@@ -52,6 +54,11 @@ __decorate([
|
|
|
52
54
|
(0, typeorm_1.ManyToOne)(() => course_entity_1.Course, course => course.lessons),
|
|
53
55
|
__metadata("design:type", course_entity_1.Course)
|
|
54
56
|
], Lesson.prototype, "course", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, swagger_1.ApiProperty)({ type: () => lesson_page_entity_1.LessonPage, description: 'Lesson owner of the pages', required: false }),
|
|
59
|
+
(0, typeorm_1.OneToMany)(() => lesson_page_entity_1.LessonPage, lessonPage => lessonPage.lesson),
|
|
60
|
+
__metadata("design:type", lesson_page_entity_1.LessonPage)
|
|
61
|
+
], Lesson.prototype, "pages", void 0);
|
|
55
62
|
exports.Lesson = Lesson = __decorate([
|
|
56
63
|
(0, typeorm_1.Entity)()
|
|
57
64
|
], Lesson);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lesson.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/lesson.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
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;AAG3C,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,wBAAU;IAGpC,IAAI,CAAS;IAIb,WAAW,CAAU;IAIrB,OAAO,CAAU;IAIjB,aAAa,CAAU;IAGvB,WAAW,CAAU;IAIrB,MAAM,CAAS;IAIf,KAAK,CAAa;CACnB,CAAA;AA3BY,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,EAAE,WAAW,EAAE,iBAAiB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7E,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CAClB;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;2CACN;AAIrB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,sBAAM,EAAE,WAAW,EAAE,4BAA4B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC/F,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC;8BAC1C,sBAAM;sCAAC;AAIf;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,+BAAU,EAAE,WAAW,EAAE,2BAA2B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAClG,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,+BAAU,EAAE,UAAU,CAAC,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;8BACtD,+BAAU;qCAAC;iBA1BP,MAAM;IADlB,IAAA,gBAAM,GAAE;GACI,MAAM,CA2BlB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easywork-common-lib",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.592",
|
|
4
4
|
"description": "Librería común de Easywork",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,24 +22,24 @@
|
|
|
22
22
|
},
|
|
23
23
|
"homepage": "https://github.com/blindariesgos/easywork-common-lib#readme",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@golevelup/nestjs-rabbitmq": "^5.6.
|
|
26
|
-
"@nestjs/common": "^10.4.
|
|
25
|
+
"@golevelup/nestjs-rabbitmq": "^5.6.1",
|
|
26
|
+
"@nestjs/common": "^10.4.15",
|
|
27
27
|
"@nestjs/swagger": "^7.4.2",
|
|
28
28
|
"@nestjs/typeorm": "^10.0.2",
|
|
29
29
|
"class-transformer": "^0.5.1",
|
|
30
30
|
"class-validator": "^0.14.1",
|
|
31
31
|
"googleapis": "^144.0.0",
|
|
32
|
-
"nanoid": "^3.3.
|
|
32
|
+
"nanoid": "^3.3.8",
|
|
33
33
|
"rxjs": "^7.8.1",
|
|
34
34
|
"sharp": "^0.33.5",
|
|
35
35
|
"typeorm": "^0.3.20"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@rubiin/tsconfig": "^1.2.1",
|
|
39
|
-
"@types/node": "^20.17.
|
|
39
|
+
"@types/node": "^20.17.10",
|
|
40
40
|
"cpx-fixed": "^1.6.0",
|
|
41
41
|
"ts-loader": "^9.5.1",
|
|
42
|
-
"typescript": "^5.
|
|
42
|
+
"typescript": "^5.7.2"
|
|
43
43
|
},
|
|
44
44
|
"packageManager": "pnpm@9.12.2+sha512.22721b3a11f81661ae1ec68ce1a7b879425a1ca5b991c975b074ac220b187ce56c708fe5db69f4c962c989452eee76c82877f4ee80f474cebd61ee13461b6228"
|
|
45
45
|
}
|