easywork-common-lib 1.0.381 → 1.0.386
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.d.ts +4 -4
- 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/app_config/app-config.entity.d.ts +2 -2
- package/dist/entities/app_config/app-config.entity.js +1 -1
- package/dist/entities/currency.entity.d.ts +2 -2
- package/dist/entities/currency.entity.js +1 -1
- package/dist/entities/easyapp/filter-view.entity.d.ts +2 -2
- package/dist/entities/easyapp/filter-view.entity.js +1 -1
- package/dist/entities/email.entity.d.ts +2 -2
- package/dist/entities/email.entity.js +1 -1
- package/dist/entities/group.entity.d.ts +2 -2
- package/dist/entities/group.entity.js +1 -1
- package/dist/entities/helpers/index.js +21 -0
- package/dist/entities/helpers/index.js.map +1 -0
- package/dist/entities/helpers/sales/common/client_sources.entity.d.ts +2 -2
- package/dist/entities/helpers/sales/common/client_sources.entity.js +1 -1
- package/dist/entities/helpers/sales/common/client_types.entity.d.ts +2 -2
- package/dist/entities/helpers/sales/common/client_types.entity.js +1 -1
- 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/imap-config.entity.d.ts +2 -2
- package/dist/entities/imap-config.entity.js +1 -1
- package/dist/entities/menu-permissions.entity.d.ts +2 -2
- package/dist/entities/menu-permissions.entity.js +1 -1
- package/dist/entities/otp-log.entity.d.ts +2 -2
- package/dist/entities/otp-log.entity.js +1 -1
- package/dist/entities/permission.entity.d.ts +2 -2
- package/dist/entities/permission.entity.js +1 -1
- package/dist/entities/phone.entity.d.ts +2 -2
- package/dist/entities/phone.entity.js +1 -1
- package/dist/entities/profile.entity.js +55 -0
- package/dist/entities/profile.entity.js.map +1 -0
- package/dist/entities/protocol.entity.d.ts +2 -2
- package/dist/entities/protocol.entity.js +1 -1
- package/dist/entities/refresh-token.entity.d.ts +2 -2
- package/dist/entities/refresh-token.entity.js +1 -1
- package/dist/entities/role.entity.d.ts +2 -2
- package/dist/entities/role.entity.js +1 -1
- package/dist/entities/sales/poliza_siniestro.entity.d.ts +2 -2
- package/dist/entities/sales/poliza_siniestro.entity.js +1 -1
- package/dist/entities/sales/receipt.entity.d.ts +2 -2
- package/dist/entities/sales/receipt.entity.js +1 -1
- package/dist/entities/tag.entity.d.ts +2 -2
- package/dist/entities/tag.entity.js +1 -1
- package/dist/entities/thirdparty/email-config.entity.d.ts +2 -2
- package/dist/entities/thirdparty/email-config.entity.js +1 -1
- package/dist/entities/thirdparty/email.entity.d.ts +2 -2
- package/dist/entities/thirdparty/email.entity.js +1 -1
- package/dist/entities/thirdparty/oauth.entity.d.ts +2 -2
- package/dist/entities/thirdparty/oauth.entity.js +1 -1
- package/dist/entities/thirdparty/service.entity.d.ts +2 -2
- package/dist/entities/thirdparty/service.entity.js +1 -1
- package/dist/entities/thirdparty/user-email-relation.entity.d.ts +2 -2
- package/dist/entities/thirdparty/user-email-relation.entity.js +1 -1
- package/dist/entities/tools/task-comment.entity.d.ts +2 -2
- package/dist/entities/tools/task-comment.entity.js +1 -1
- 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/entities/tools/task.entity.d.ts +2 -2
- package/dist/entities/tools/task.entity.js +1 -1
- package/dist/entities/user.entity.d.ts +2 -2
- package/dist/entities/user.entity.js +1 -1
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EntityBase } from "../../common/database/base.entity";
|
|
2
2
|
import { EmailThirdparty } from "./email.entity";
|
|
3
|
-
export declare class ServiceThirdparty extends
|
|
3
|
+
export declare class ServiceThirdparty extends EntityBase {
|
|
4
4
|
name: string;
|
|
5
5
|
emails: EmailThirdparty[];
|
|
6
6
|
}
|
|
@@ -13,7 +13,7 @@ exports.ServiceThirdparty = void 0;
|
|
|
13
13
|
const base_entity_1 = require("../../common/database/base.entity");
|
|
14
14
|
const typeorm_1 = require("typeorm");
|
|
15
15
|
const email_entity_1 = require("./email.entity");
|
|
16
|
-
let ServiceThirdparty = class ServiceThirdparty extends base_entity_1.
|
|
16
|
+
let ServiceThirdparty = class ServiceThirdparty extends base_entity_1.EntityBase {
|
|
17
17
|
name;
|
|
18
18
|
emails;
|
|
19
19
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EntityBase } from "../../common/database/base.entity";
|
|
2
2
|
import { User } from "../user.entity";
|
|
3
3
|
import { EmailThirdparty } from "./email.entity";
|
|
4
|
-
export declare class UserEmailRelation extends
|
|
4
|
+
export declare class UserEmailRelation extends EntityBase {
|
|
5
5
|
user: User;
|
|
6
6
|
email: EmailThirdparty;
|
|
7
7
|
}
|
|
@@ -14,7 +14,7 @@ const base_entity_1 = require("../../common/database/base.entity");
|
|
|
14
14
|
const typeorm_1 = require("typeorm");
|
|
15
15
|
const user_entity_1 = require("../user.entity");
|
|
16
16
|
const email_entity_1 = require("./email.entity");
|
|
17
|
-
let UserEmailRelation = class UserEmailRelation extends base_entity_1.
|
|
17
|
+
let UserEmailRelation = class UserEmailRelation extends base_entity_1.EntityBase {
|
|
18
18
|
user;
|
|
19
19
|
email;
|
|
20
20
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EntityBase } from "../../common/database/base.entity";
|
|
2
2
|
import { User } from "../user.entity";
|
|
3
3
|
import { Task } from "./task.entity";
|
|
4
|
-
export declare class TaskComment extends
|
|
4
|
+
export declare class TaskComment extends EntityBase {
|
|
5
5
|
comment: string;
|
|
6
6
|
isSummary: boolean;
|
|
7
7
|
createdBy: User;
|
|
@@ -16,7 +16,7 @@ const user_entity_1 = require("../user.entity");
|
|
|
16
16
|
const typeorm_1 = require("typeorm");
|
|
17
17
|
const task_entity_1 = require("./task.entity");
|
|
18
18
|
const swagger_1 = require("@nestjs/swagger");
|
|
19
|
-
let TaskComment = class TaskComment extends base_entity_1.
|
|
19
|
+
let TaskComment = class TaskComment extends base_entity_1.EntityBase {
|
|
20
20
|
comment;
|
|
21
21
|
isSummary;
|
|
22
22
|
createdBy;
|
|
@@ -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"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { User } from "../user.entity";
|
|
2
2
|
import { TaskComment } from "./task-comment.entity";
|
|
3
3
|
import { Tag } from "../tag.entity";
|
|
4
|
-
import {
|
|
4
|
+
import { EntityBase } from "../../common/database/base.entity";
|
|
5
5
|
import { TaskStatus } from "../../common/enums";
|
|
6
6
|
import { TaskListField } from "./task-list-field";
|
|
7
7
|
import { TaskCRM } from "../../entities/helpers";
|
|
8
|
-
export declare class Task extends
|
|
8
|
+
export declare class Task extends EntityBase {
|
|
9
9
|
idBitrix: number;
|
|
10
10
|
name: string;
|
|
11
11
|
number: number;
|
|
@@ -20,7 +20,7 @@ const enums_1 = require("../../common/enums");
|
|
|
20
20
|
const task_list_field_1 = require("./task-list-field");
|
|
21
21
|
const helpers_1 = require("../../entities/helpers");
|
|
22
22
|
const swagger_1 = require("@nestjs/swagger");
|
|
23
|
-
let Task = class Task extends base_entity_1.
|
|
23
|
+
let Task = class Task extends base_entity_1.EntityBase {
|
|
24
24
|
idBitrix;
|
|
25
25
|
name;
|
|
26
26
|
number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EntityBase } from "../common/database/base.entity";
|
|
2
2
|
import { Profile } from "./profile.entity";
|
|
3
3
|
import { Role } from "./role.entity";
|
|
4
4
|
import { Tag } from "./tag.entity";
|
|
@@ -6,7 +6,7 @@ import { UserEmailRelation } from "./thirdparty/user-email-relation.entity";
|
|
|
6
6
|
import { PushToken } from "./notifications/push-token.entity";
|
|
7
7
|
import { Group } from "./group.entity";
|
|
8
8
|
import { MenuPermissions } from "./menu-permissions.entity";
|
|
9
|
-
export declare class User extends
|
|
9
|
+
export declare class User extends EntityBase {
|
|
10
10
|
username: string;
|
|
11
11
|
email: string;
|
|
12
12
|
bio: string;
|
|
@@ -21,7 +21,7 @@ const push_token_entity_1 = require("./notifications/push-token.entity");
|
|
|
21
21
|
const swagger_1 = require("@nestjs/swagger");
|
|
22
22
|
const group_entity_1 = require("./group.entity");
|
|
23
23
|
const menu_permissions_entity_1 = require("./menu-permissions.entity");
|
|
24
|
-
let User = class User extends base_entity_1.
|
|
24
|
+
let User = class User extends base_entity_1.EntityBase {
|
|
25
25
|
username;
|
|
26
26
|
email;
|
|
27
27
|
bio;
|
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.386",
|
|
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