easywork-common-lib 1.0.381 → 1.0.383
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/@types/enums/crm.enum.d.ts +8 -0
- package/dist/common/@types/enums/crm.enum.js +14 -0
- package/dist/common/@types/enums/crm.enum.js.map +1 -0
- package/dist/common/@types/enums/index.d.ts +3 -0
- package/dist/common/@types/enums/index.js +20 -0
- package/dist/common/@types/enums/index.js.map +1 -0
- package/dist/common/@types/enums/misc.enum.d.ts +60 -0
- package/dist/common/@types/enums/misc.enum.js +81 -0
- package/dist/common/@types/enums/misc.enum.js.map +1 -0
- package/dist/common/@types/enums/permission.enum.d.ts +13 -0
- package/dist/common/@types/enums/permission.enum.js +19 -0
- package/dist/common/@types/enums/permission.enum.js.map +1 -0
- package/dist/common/@types/index.d.ts +2 -0
- package/dist/common/@types/index.js +19 -0
- package/dist/common/@types/index.js.map +1 -0
- package/dist/common/@types/interfaces/authentication.interface.d.ts +17 -0
- package/dist/common/@types/interfaces/authentication.interface.js +3 -0
- package/dist/common/@types/interfaces/authentication.interface.js.map +1 -0
- package/dist/common/@types/interfaces/crm.interface.d.ts +131 -0
- package/dist/common/@types/interfaces/crm.interface.js +3 -0
- package/dist/common/@types/interfaces/crm.interface.js.map +1 -0
- package/dist/common/@types/interfaces/file.interface.d.ts +16 -0
- package/dist/common/@types/interfaces/file.interface.js +3 -0
- package/dist/common/@types/interfaces/file.interface.js.map +1 -0
- package/dist/common/@types/interfaces/index.d.ts +5 -0
- package/dist/common/@types/interfaces/index.js +22 -0
- package/dist/common/@types/interfaces/index.js.map +1 -0
- package/dist/common/@types/interfaces/mail.interface.d.ts +9 -0
- package/dist/common/@types/interfaces/mail.interface.js +3 -0
- package/dist/common/@types/interfaces/mail.interface.js.map +1 -0
- package/dist/common/@types/interfaces/validator.interface.d.ts +41 -0
- package/dist/common/@types/interfaces/validator.interface.js +3 -0
- package/dist/common/@types/interfaces/validator.interface.js.map +1 -0
- package/dist/common/constants/app.contants.d.ts +16 -0
- package/dist/common/constants/app.contants.js +78 -0
- package/dist/common/constants/app.contants.js.map +1 -0
- package/dist/common/constants/index.d.ts +2 -0
- package/dist/common/constants/index.js +19 -0
- package/dist/common/constants/index.js.map +1 -0
- package/dist/common/constants/regex.constant.d.ts +6 -0
- package/dist/common/constants/regex.constant.js +10 -0
- package/dist/common/constants/regex.constant.js.map +1 -0
- package/dist/common/database/base.entity.js +142 -0
- package/dist/common/database/base.entity.js.map +1 -0
- package/dist/common/dtos/index.d.ts +1 -0
- package/dist/common/dtos/index.js +18 -0
- package/dist/common/dtos/index.js.map +1 -0
- package/dist/common/dtos/send-notification.dto.d.ts +11 -0
- package/dist/common/dtos/send-notification.dto.js +60 -0
- package/dist/common/dtos/send-notification.dto.js.map +1 -0
- package/dist/common/enums/drive.enum.d.ts +20 -0
- package/dist/common/enums/drive.enum.js +26 -0
- package/dist/common/enums/drive.enum.js.map +1 -0
- package/dist/common/enums/index.d.ts +4 -0
- package/dist/common/enums/index.js +21 -0
- package/dist/common/enums/index.js.map +1 -0
- package/dist/common/enums/notification.enum.d.ts +32 -0
- package/dist/common/enums/notification.enum.js +39 -0
- package/dist/common/enums/notification.enum.js.map +1 -0
- package/dist/common/enums/sales.enum.d.ts +31 -0
- package/dist/common/enums/sales.enum.js +41 -0
- package/dist/common/enums/sales.enum.js.map +1 -0
- package/dist/common/enums/tools.enum.d.ts +19 -0
- package/dist/common/enums/tools.enum.js +26 -0
- package/dist/common/enums/tools.enum.js.map +1 -0
- package/dist/common/functions/cripto.d.ts +1 -0
- package/dist/common/functions/cripto.js +9 -0
- package/dist/common/functions/cripto.js.map +1 -0
- package/dist/common/functions/image.d.ts +3 -0
- package/dist/common/functions/image.js +15 -0
- package/dist/common/functions/image.js.map +1 -0
- package/dist/common/functions/index.d.ts +2 -0
- package/dist/common/functions/index.js +19 -0
- package/dist/common/functions/index.js.map +1 -0
- package/dist/common/helpers/app.utils.d.ts +5 -0
- package/dist/common/helpers/app.utils.js +32 -0
- package/dist/common/helpers/app.utils.js.map +1 -0
- package/dist/common/helpers/helpers.utils.d.ts +5 -0
- package/dist/common/helpers/helpers.utils.js +26 -0
- package/dist/common/helpers/helpers.utils.js.map +1 -0
- package/dist/common/helpers/index.d.ts +2 -0
- package/dist/common/helpers/index.js +19 -0
- package/dist/common/helpers/index.js.map +1 -0
- package/dist/common/interceptors/index.d.ts +1 -0
- package/dist/common/interceptors/index.js +18 -0
- package/dist/common/interceptors/index.js.map +1 -0
- package/dist/common/interceptors/security.interceptor.d.ts +5 -0
- package/dist/common/interceptors/security.interceptor.js +22 -0
- package/dist/common/interceptors/security.interceptor.js.map +1 -0
- package/dist/entities/helpers/index.js +21 -0
- package/dist/entities/helpers/index.js.map +1 -0
- package/dist/entities/helpers/sales/index.js +23 -0
- package/dist/entities/helpers/sales/index.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.js +30 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_category.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.js +33 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.d.ts +6 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.js +39 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.d.ts +6 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.js +39 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_insurance.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_insurance.entity.js +30 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_insurance.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_subramo.entity.d.ts +6 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_subramo.entity.js +36 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_subramo.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.js +33 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/index.js +26 -0
- package/dist/entities/helpers/sales/poliza/index.js.map +1 -0
- package/dist/entities/profile.entity.js +55 -0
- package/dist/entities/profile.entity.js.map +1 -0
- package/dist/entities/tools/task-list-field.d.ts +5 -0
- package/dist/entities/tools/task-list-field.js +39 -0
- package/dist/entities/tools/task-list-field.js.map +1 -0
- package/dist/eslint.config.js +1 -0
- package/dist/eslint.config.js.map +1 -1
- package/dist/modules/queue/notifiers/calendar.notifier.d.ts +2 -0
- package/dist/modules/queue/notifiers/calendar.notifier.js +17 -0
- package/dist/modules/queue/notifiers/calendar.notifier.js.map +1 -0
- package/dist/modules/queue/scheduler.service.js +40 -0
- package/dist/modules/queue/scheduler.service.js.map +1 -0
- package/package.json +6 -6
- package/scripts/bump.sh +0 -0
- package/tsconfig.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
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.PolizaType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
let PolizaType = class PolizaType extends typeorm_1.BaseEntity {
|
|
16
|
+
id;
|
|
17
|
+
name;
|
|
18
|
+
};
|
|
19
|
+
exports.PolizaType = PolizaType;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'UUID of the policy type', format: 'uuid' }),
|
|
22
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], PolizaType.prototype, "id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Name of the policy type' }),
|
|
27
|
+
(0, typeorm_1.Column)({ unique: true }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], PolizaType.prototype, "name", void 0);
|
|
30
|
+
exports.PolizaType = PolizaType = __decorate([
|
|
31
|
+
(0, typeorm_1.Entity)()
|
|
32
|
+
], PolizaType);
|
|
33
|
+
//# sourceMappingURL=h_poliza_type.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"h_poliza_type.entity.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/poliza/h_poliza_type.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA6E;AAC7E,6CAA8C;AAGvC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,oBAAU;IAGxC,EAAE,CAAU;IAIZ,IAAI,CAAS;CACd,CAAA;AARY,gCAAU;AAGrB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,yBAAyB,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IACrF,IAAA,gCAAsB,EAAC,MAAM,CAAC;;sCACnB;AAIZ;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,yBAAyB,EAAE,CAAC;IACrE,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;wCACZ;qBAPF,UAAU;IADtB,IAAA,gBAAM,GAAE;GACI,UAAU,CAQtB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./h_poliza_forma_cobro.entity"), exports);
|
|
18
|
+
__exportStar(require("./h_poliza_frecuencia_pago.entity"), exports);
|
|
19
|
+
__exportStar(require("./h_poliza_type.entity"), exports);
|
|
20
|
+
__exportStar(require("./poliza_file.entity"), exports);
|
|
21
|
+
__exportStar(require("./h_poliza_insurance.entity"), exports);
|
|
22
|
+
__exportStar(require("./h_poliza_category.entity"), exports);
|
|
23
|
+
__exportStar(require("./h_poliza_subramo.entity"), exports);
|
|
24
|
+
__exportStar(require("./poliza_beneficiary.entity"), exports);
|
|
25
|
+
__exportStar(require("./h_poliza_conducto_pago.entity"), exports);
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/poliza/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,oEAAkD;AAClD,yDAAuC;AACvC,uDAAqC;AACrC,8DAA4C;AAC5C,6DAA2C;AAC3C,4DAA0C;AAC1C,8DAA2C;AAC3C,kEAAgD"}
|
|
@@ -0,0 +1,55 @@
|
|
|
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.Profile = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const user_entity_1 = require("./user.entity");
|
|
15
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
16
|
+
let Profile = class Profile extends typeorm_1.BaseEntity {
|
|
17
|
+
firstName;
|
|
18
|
+
lastName;
|
|
19
|
+
idcard;
|
|
20
|
+
birthday;
|
|
21
|
+
user;
|
|
22
|
+
};
|
|
23
|
+
exports.Profile = Profile;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'First name of the user', required: false }),
|
|
26
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], Profile.prototype, "firstName", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Last name of the user', required: false }),
|
|
31
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], Profile.prototype, "lastName", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'ID card of the user', required: false }),
|
|
36
|
+
(0, typeorm_1.Column)({ unique: true, nullable: true }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], Profile.prototype, "idcard", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, swagger_1.ApiProperty)({ type: Date, description: 'Birthday of the user', required: false }),
|
|
41
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
42
|
+
__metadata("design:type", Date)
|
|
43
|
+
], Profile.prototype, "birthday", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User associated with the profile' }),
|
|
46
|
+
(0, typeorm_1.OneToOne)(() => user_entity_1.User, user => user.profile, {
|
|
47
|
+
onDelete: "CASCADE",
|
|
48
|
+
onUpdate: "CASCADE",
|
|
49
|
+
}),
|
|
50
|
+
__metadata("design:type", user_entity_1.User)
|
|
51
|
+
], Profile.prototype, "user", void 0);
|
|
52
|
+
exports.Profile = Profile = __decorate([
|
|
53
|
+
(0, typeorm_1.Entity)("user_profile")
|
|
54
|
+
], Profile);
|
|
55
|
+
//# sourceMappingURL=profile.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.entity.js","sourceRoot":"","sources":["../../src/entities/profile.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA+D;AAC/D,+CAAqC;AACrC,6CAA8C;AAGvC,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,oBAAU;IAGrC,SAAS,CAAS;IAIlB,QAAQ,CAAS;IAIjB,MAAM,CAAS;IAIf,QAAQ,CAAO;IAOf,IAAI,CAAO;CACZ,CAAA;AAvBY,0BAAO;AAGlB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,wBAAwB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACrF,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACT;AAIlB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,uBAAuB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACpF,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACV;AAIjB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAClF,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCAC1B;AAIf;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,sBAAsB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACjF,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACjB,IAAI;yCAAC;AAOf;IALC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI,EAAE,WAAW,EAAE,kCAAkC,EAAE,CAAC;IAClF,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE;QAC1C,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACI,kBAAI;qCAAC;kBAtBA,OAAO;IADnB,IAAA,gBAAM,EAAC,cAAc,CAAC;GACV,OAAO,CAuBnB"}
|
|
@@ -0,0 +1,39 @@
|
|
|
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.TaskListField = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
16
|
+
class TaskListField {
|
|
17
|
+
text;
|
|
18
|
+
completed;
|
|
19
|
+
child;
|
|
20
|
+
}
|
|
21
|
+
exports.TaskListField = TaskListField;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Text of the task list field' }),
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], TaskListField.prototype, "text", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Completion status of the task list field' }),
|
|
29
|
+
(0, class_validator_1.IsBoolean)(),
|
|
30
|
+
__metadata("design:type", Boolean)
|
|
31
|
+
], TaskListField.prototype, "completed", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, swagger_1.ApiProperty)({ type: () => [TaskListField], description: 'Child task list fields', required: false }),
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
(0, class_validator_1.ValidateNested)(),
|
|
36
|
+
(0, class_transformer_1.Type)(() => TaskListField),
|
|
37
|
+
__metadata("design:type", Array)
|
|
38
|
+
], TaskListField.prototype, "child", void 0);
|
|
39
|
+
//# sourceMappingURL=task-list-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-list-field.js","sourceRoot":"","sources":["../../../src/entities/tools/task-list-field.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAAkF;AAClF,6CAA8C;AAE9C,MAAa,aAAa;IAGtB,IAAI,CAAS;IAIb,SAAS,CAAU;IAMnB,KAAK,CAAiB;CACzB;AAdD,sCAcC;AAXG;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IACzE,IAAA,0BAAQ,GAAE;;2CACE;AAIb;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,0CAA0C,EAAE,CAAC;IACvF,IAAA,2BAAS,GAAE;;gDACO;AAMnB;IAJC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,aAAa,CAAC,EAAE,WAAW,EAAE,wBAAwB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACpG,IAAA,4BAAU,GAAE;IACZ,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,aAAa,CAAC;;4CACJ"}
|
package/dist/eslint.config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint.config.js","sourceRoot":"","sources":["../src/eslint.config.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"eslint.config.js","sourceRoot":"","sources":["../src/eslint.config.js"],"names":[],"mappings":";;AAAA,MAAM,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC,OAAO,CAAC;AAEvD,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC;IACtB,SAAS,EAAE;QACT,IAAI,EAAE,IAAI;QACV,MAAM,EAAE,QAAQ;KACjB;IACD,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;IACX,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,IAAI;IACf,UAAU,EAAE;QACV,YAAY,EAAE,eAAe;KAC9B;IACD,SAAS,EAAE;QACT,IAAI,EAAE;YACJ,mBAAmB,EAAE,KAAK;SAC3B;QACD,UAAU,EAAE;YACV,wBAAwB,EAAE;gBACxB,OAAO;gBACP;oBACE,gBAAgB,EAAE,KAAK;iBACxB;aACF;YACD,yBAAyB,EAAE;gBACzB,OAAO;gBACP;oBACE,UAAU,EAAE,IAAI;iBACjB;aACF;YACD,gCAAgC,EAAE,KAAK;YACvC,+BAA+B,EAAE;gBAC/B,OAAO;gBACP;oBACE,MAAM,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,SAAS,CAAC;oBAC3D,SAAS,EAAE;wBACT,UAAU,EAAE,IAAI;wBAChB,SAAS,EAAE,IAAI;qBAChB;iBACF;aACF;SACF;KACF;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.CalendarService = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
let CalendarService = class CalendarService {
|
|
12
|
+
};
|
|
13
|
+
exports.CalendarService = CalendarService;
|
|
14
|
+
exports.CalendarService = CalendarService = __decorate([
|
|
15
|
+
(0, common_1.Injectable)()
|
|
16
|
+
], CalendarService);
|
|
17
|
+
//# sourceMappingURL=calendar.notifier.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.notifier.js","sourceRoot":"","sources":["../../../../src/modules/queue/notifiers/calendar.notifier.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAGrC,IAAM,eAAe,GAArB,MAAM,eAAe;CAAI,CAAA;AAAnB,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;GACA,eAAe,CAAI"}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.EasySchedulerService = void 0;
|
|
16
|
+
const nestjs_rabbitmq_1 = require("@golevelup/nestjs-rabbitmq");
|
|
17
|
+
const common_1 = require("@nestjs/common");
|
|
18
|
+
const logger = new common_1.Logger("EasySchedulerService");
|
|
19
|
+
let EasySchedulerService = class EasySchedulerService {
|
|
20
|
+
amqpConnection;
|
|
21
|
+
exchangeName;
|
|
22
|
+
routingKey;
|
|
23
|
+
constructor(amqpConnection, exchangeName, routingKey) {
|
|
24
|
+
this.amqpConnection = amqpConnection;
|
|
25
|
+
this.exchangeName = exchangeName;
|
|
26
|
+
this.routingKey = routingKey;
|
|
27
|
+
}
|
|
28
|
+
async scheduleTaskAlerts(task) {
|
|
29
|
+
logger.debug(`Add Task schedule Service...`);
|
|
30
|
+
await this.amqpConnection.publish(this.exchangeName, this.routingKey, task);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
exports.EasySchedulerService = EasySchedulerService;
|
|
34
|
+
exports.EasySchedulerService = EasySchedulerService = __decorate([
|
|
35
|
+
(0, common_1.Injectable)(),
|
|
36
|
+
__param(1, (0, common_1.Inject)('EXCHANGE_NAME')),
|
|
37
|
+
__param(2, (0, common_1.Inject)('SCHEDULER_ROUTING_KEY')),
|
|
38
|
+
__metadata("design:paramtypes", [nestjs_rabbitmq_1.AmqpConnection, String, String])
|
|
39
|
+
], EasySchedulerService);
|
|
40
|
+
//# sourceMappingURL=scheduler.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scheduler.service.js","sourceRoot":"","sources":["../../../src/modules/queue/scheduler.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gEAA4D;AAC5D,2CAA4D;AAG5D,MAAM,MAAM,GAAG,IAAI,eAAM,CAAC,sBAAsB,CAAC,CAAC;AAG3C,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAER;IACyB;IACQ;IAHtD,YACqB,cAA8B,EACL,YAAoB,EACZ,UAAkB;QAFnD,mBAAc,GAAd,cAAc,CAAgB;QACL,iBAAY,GAAZ,YAAY,CAAQ;QACZ,eAAU,GAAV,UAAU,CAAQ;IACpE,CAAC;IAEL,KAAK,CAAC,kBAAkB,CAAC,IAAU;QACjC,MAAM,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAC7C,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IAC9E,CAAC;CAEJ,CAAA;AAZY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;IAIJ,WAAA,IAAA,eAAM,EAAC,eAAe,CAAC,CAAA;IACvB,WAAA,IAAA,eAAM,EAAC,uBAAuB,CAAC,CAAA;qCAFC,gCAAc;GAF1C,oBAAoB,CAYhC"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easywork-common-lib",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.383",
|
|
4
4
|
"description": "Librería común de Easywork",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "tsc && cpx-fixed src/**/*.proto dist/",
|
|
8
|
+
"bump": "./scripts/bump.sh"
|
|
9
|
+
},
|
|
6
10
|
"repository": {
|
|
7
11
|
"type": "git",
|
|
8
12
|
"url": "git+https://github.com/criptopreto/easywork-common-lib.git"
|
|
@@ -34,9 +38,5 @@
|
|
|
34
38
|
"cpx-fixed": "^1.6.0",
|
|
35
39
|
"ts-loader": "^9.5.1",
|
|
36
40
|
"typescript": "^5.4.5"
|
|
37
|
-
},
|
|
38
|
-
"scripts": {
|
|
39
|
-
"build": "tsc && cpx-fixed src/**/*.proto dist/",
|
|
40
|
-
"bump": "./scripts/bump.sh"
|
|
41
41
|
}
|
|
42
|
-
}
|
|
42
|
+
}
|
package/scripts/bump.sh
CHANGED
|
File without changes
|
package/tsconfig.json
CHANGED