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,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CONTACTS_DOCUMENTS_FOLDERS = exports.CLIENTS_POLIZA_FOLDERS = exports.CLIENT_DOCUMENTS_FOLDERS = exports.APP_UDIS_CURRENCY = exports.APP_USD_CURRENCY = exports.APP_MXN_CURRENCY = exports.DRIVE_CONTACT_PROFILES_IMAGES_PARTENT_FOLDER = exports.DRIVE_TEMP_FOLDER = exports.DRIVE_CONTACT_DOCUMENTS_PARTENT_FOLDER = exports.DRIVE_LEADS_DOCUMENTS_PARTENT_FOLDER = exports.LEAD_STAGE_CANCELED = exports.LEAD_STAGE_INITIAL = void 0;
|
|
4
|
+
exports.LEAD_STAGE_INITIAL = "a233b765-d97b-43b8-8b6a-46727d97c844";
|
|
5
|
+
exports.LEAD_STAGE_CANCELED = "6a6cef5c-2530-407c-8d66-9030f5334551";
|
|
6
|
+
exports.DRIVE_LEADS_DOCUMENTS_PARTENT_FOLDER = "a68f36f9-7a47-43ea-99ce-ec40d5e61d87";
|
|
7
|
+
exports.DRIVE_CONTACT_DOCUMENTS_PARTENT_FOLDER = "29168645-1bc0-40a1-9879-69fbbc62c04e";
|
|
8
|
+
exports.DRIVE_TEMP_FOLDER = "6cc775ef-3616-4ffe-bfc9-755c453a4775";
|
|
9
|
+
exports.DRIVE_CONTACT_PROFILES_IMAGES_PARTENT_FOLDER = "b88bdb51-806b-4dbf-a9f9-bcfba52be9fe";
|
|
10
|
+
exports.APP_MXN_CURRENCY = "7a7f40f1-45e2-428f-bea9-a731866d6886";
|
|
11
|
+
exports.APP_USD_CURRENCY = "c5324961-4eb9-44f9-8ee0-16a087cecaac";
|
|
12
|
+
exports.APP_UDIS_CURRENCY = "e0262532-8377-4bda-bbf7-34f49550be66";
|
|
13
|
+
exports.CLIENT_DOCUMENTS_FOLDERS = [
|
|
14
|
+
"Documentos del cliente: RFC, IFE, Comprobantes de domicilio",
|
|
15
|
+
"Cotizaciones",
|
|
16
|
+
"Propuesta comercial",
|
|
17
|
+
"Solicitudes",
|
|
18
|
+
"Póliza",
|
|
19
|
+
];
|
|
20
|
+
exports.CLIENTS_POLIZA_FOLDERS = {
|
|
21
|
+
VIDA: [
|
|
22
|
+
"Pagos Recibos",
|
|
23
|
+
"Renovaciones",
|
|
24
|
+
"Siniestros",
|
|
25
|
+
"Reembolsos",
|
|
26
|
+
"Versiones",
|
|
27
|
+
"Comisiones",
|
|
28
|
+
"Facturas",
|
|
29
|
+
"Rescate de Fondos",
|
|
30
|
+
"Otros Documentos"
|
|
31
|
+
],
|
|
32
|
+
GMM: [
|
|
33
|
+
"Pagos Recibos",
|
|
34
|
+
"Renovaciones",
|
|
35
|
+
"Siniestros",
|
|
36
|
+
"Reembolsos",
|
|
37
|
+
"Versiones",
|
|
38
|
+
"Comisiones",
|
|
39
|
+
"Formatos",
|
|
40
|
+
"Programaciones",
|
|
41
|
+
"Facturas",
|
|
42
|
+
"Otros Documentos"
|
|
43
|
+
],
|
|
44
|
+
AUTOS: [
|
|
45
|
+
"Pagos Recibos",
|
|
46
|
+
"Renovaciones",
|
|
47
|
+
"Siniestros",
|
|
48
|
+
"Versiones",
|
|
49
|
+
"Comisiones",
|
|
50
|
+
"Otros formatos",
|
|
51
|
+
"Facturas",
|
|
52
|
+
]
|
|
53
|
+
};
|
|
54
|
+
exports.CONTACTS_DOCUMENTS_FOLDERS = [
|
|
55
|
+
"Cotización Generada",
|
|
56
|
+
"Cotización Aprobada por el contratante",
|
|
57
|
+
"Presentación o Propuesta Comercial",
|
|
58
|
+
"Anotaciones Varias - Documentos adicionales",
|
|
59
|
+
"Documentos o textos explicativos",
|
|
60
|
+
"Documentos del cliente: RFC, IFE, Comp de domicilio",
|
|
61
|
+
"Solicitud",
|
|
62
|
+
"Póliza emitida",
|
|
63
|
+
"Recibos y Facturas",
|
|
64
|
+
"Reembolsos",
|
|
65
|
+
"Siniestros",
|
|
66
|
+
"Programaciones",
|
|
67
|
+
"Rescate",
|
|
68
|
+
"Finiquito de Reclamaciones de Accidente o Enfermedad",
|
|
69
|
+
"Documentos Reembolso Subsecuente",
|
|
70
|
+
"Documentos Explicativos",
|
|
71
|
+
"Documentos del Reembolso Inicial",
|
|
72
|
+
"Documentos del Beneficiario",
|
|
73
|
+
"Muerte",
|
|
74
|
+
"Invalidez",
|
|
75
|
+
"Documentos (Medicamentos - Cirugías y Servicios Auxiliares)",
|
|
76
|
+
"Carta de Autorización",
|
|
77
|
+
];
|
|
78
|
+
//# sourceMappingURL=app.contants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.contants.js","sourceRoot":"","sources":["../../../src/common/constants/app.contants.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG,sCAAsC,CAAC;AAC5D,QAAA,mBAAmB,GAAG,sCAAsC,CAAC;AAC7D,QAAA,oCAAoC,GAAG,sCAAsC,CAAC;AAC9E,QAAA,sCAAsC,GAAG,sCAAsC,CAAC;AAChF,QAAA,iBAAiB,GAAG,sCAAsC,CAAC;AAC3D,QAAA,4CAA4C,GAAG,sCAAsC,CAAC;AAEtF,QAAA,gBAAgB,GAAG,sCAAsC,CAAC;AAC1D,QAAA,gBAAgB,GAAG,sCAAsC,CAAC;AAC1D,QAAA,iBAAiB,GAAG,sCAAsC,CAAC;AAG3D,QAAA,wBAAwB,GAAG;IACtC,6DAA6D;IAC7D,cAAc;IACd,qBAAqB;IACrB,aAAa;IACb,QAAQ;CACT,CAAA;AAEY,QAAA,sBAAsB,GAAG;IACpC,IAAI,EAAE;QACJ,eAAe;QACf,cAAc;QACd,YAAY;QACZ,YAAY;QACZ,WAAW;QACX,YAAY;QACZ,UAAU;QACV,mBAAmB;QACnB,kBAAkB;KACnB;IACD,GAAG,EAAE;QACH,eAAe;QACf,cAAc;QACd,YAAY;QACZ,YAAY;QACZ,WAAW;QACX,YAAY;QACZ,UAAU;QACV,gBAAgB;QAChB,UAAU;QACV,kBAAkB;KACnB;IACD,KAAK,EAAE;QACL,eAAe;QACf,cAAc;QACd,YAAY;QACZ,WAAW;QACX,YAAY;QACZ,gBAAgB;QAChB,UAAU;KACX;CACF,CAAA;AAEY,QAAA,0BAA0B,GAAG;IACxC,qBAAqB;IACrB,wCAAwC;IACxC,oCAAoC;IACpC,6CAA6C;IAC7C,kCAAkC;IAClC,qDAAqD;IACrD,WAAW;IACX,gBAAgB;IAChB,oBAAoB;IACpB,YAAY;IACZ,YAAY;IACZ,gBAAgB;IAChB,SAAS;IACT,sDAAsD;IACtD,kCAAkC;IAClC,yBAAyB;IACzB,kCAAkC;IAClC,6BAA6B;IAC7B,QAAQ;IACR,WAAW;IACX,6DAA6D;IAC7D,uBAAuB;CACxB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./regex.constant"), exports);
|
|
18
|
+
__exportStar(require("./app.contants"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,iDAA+B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const JWT_EXPIRY_REGEX: RegExp;
|
|
2
|
+
export declare const SENTRY_DSN_REGEX: RegExp;
|
|
3
|
+
export declare const RABBIT_MQ_URI_REGEX: RegExp;
|
|
4
|
+
export declare const REDIS_URI_REGEX: RegExp;
|
|
5
|
+
export declare const USERNAME_REGEX: RegExp;
|
|
6
|
+
export declare const PASSWORD_REGEX: RegExp;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PASSWORD_REGEX = exports.USERNAME_REGEX = exports.REDIS_URI_REGEX = exports.RABBIT_MQ_URI_REGEX = exports.SENTRY_DSN_REGEX = exports.JWT_EXPIRY_REGEX = void 0;
|
|
4
|
+
exports.JWT_EXPIRY_REGEX = /\b(\d+)\s*(ms|s|m|h|d)\b/;
|
|
5
|
+
exports.SENTRY_DSN_REGEX = /https:\/\/[\da-f]{32}@o\d+\.ingest\.sentry\.io\/\d+/;
|
|
6
|
+
exports.RABBIT_MQ_URI_REGEX = /^(amqps?):\/\/(?:[^:@]+:[^:@]+@)?[^/:?]+(?::\d+)?(?:\/[^/?]+)?(?:\?.*)?$/;
|
|
7
|
+
exports.REDIS_URI_REGEX = /^redis:\/\/(?:([^:@]+):([^:@]+)@)?([^/:]+)(?::(\d+))?(?:\/(\d+))?$/;
|
|
8
|
+
exports.USERNAME_REGEX = /^(?![\d._-])[\w-.]+$/;
|
|
9
|
+
exports.PASSWORD_REGEX = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*\W).*$/;
|
|
10
|
+
//# sourceMappingURL=regex.constant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regex.constant.js","sourceRoot":"","sources":["../../../src/common/constants/regex.constant.ts"],"names":[],"mappings":";;;AACa,QAAA,gBAAgB,GAAG,0BAA0B,CAAC;AAC9C,QAAA,gBAAgB,GACzB,qDAAqD,CAAC;AAC7C,QAAA,mBAAmB,GAC5B,0EAA0E,CAAC;AAClE,QAAA,eAAe,GACxB,oEAAoE,CAAC;AAC5D,QAAA,cAAc,GAAG,sBAAsB,CAAC;AACxC,QAAA,cAAc,GAAG,4CAA4C,CAAC"}
|
|
@@ -0,0 +1,142 @@
|
|
|
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.BaseEntityWithUser = exports.BaseEntitySimple = exports.BaseEntity = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const user_entity_1 = require("../../entities/user.entity");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
let BaseEntity = class BaseEntity extends typeorm_1.BaseEntity {
|
|
17
|
+
id;
|
|
18
|
+
isActive;
|
|
19
|
+
isDeleted;
|
|
20
|
+
createdAt;
|
|
21
|
+
updatedAt;
|
|
22
|
+
deletedAt;
|
|
23
|
+
};
|
|
24
|
+
exports.BaseEntity = BaseEntity;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], BaseEntity.prototype, "id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ default: true }),
|
|
31
|
+
__metadata("design:type", Boolean)
|
|
32
|
+
], BaseEntity.prototype, "isActive", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
35
|
+
__metadata("design:type", Boolean)
|
|
36
|
+
], BaseEntity.prototype, "isDeleted", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
39
|
+
__metadata("design:type", Date)
|
|
40
|
+
], BaseEntity.prototype, "createdAt", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
43
|
+
__metadata("design:type", Date)
|
|
44
|
+
], BaseEntity.prototype, "updatedAt", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.DeleteDateColumn)(),
|
|
47
|
+
__metadata("design:type", Date)
|
|
48
|
+
], BaseEntity.prototype, "deletedAt", void 0);
|
|
49
|
+
exports.BaseEntity = BaseEntity = __decorate([
|
|
50
|
+
(0, typeorm_1.Entity)()
|
|
51
|
+
], BaseEntity);
|
|
52
|
+
let BaseEntitySimple = class BaseEntitySimple extends typeorm_1.BaseEntity {
|
|
53
|
+
id;
|
|
54
|
+
createdAt;
|
|
55
|
+
updatedAt;
|
|
56
|
+
deletedAt;
|
|
57
|
+
};
|
|
58
|
+
exports.BaseEntitySimple = BaseEntitySimple;
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], BaseEntitySimple.prototype, "id", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
65
|
+
__metadata("design:type", Date)
|
|
66
|
+
], BaseEntitySimple.prototype, "createdAt", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
69
|
+
__metadata("design:type", Date)
|
|
70
|
+
], BaseEntitySimple.prototype, "updatedAt", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.DeleteDateColumn)(),
|
|
73
|
+
__metadata("design:type", Date)
|
|
74
|
+
], BaseEntitySimple.prototype, "deletedAt", void 0);
|
|
75
|
+
exports.BaseEntitySimple = BaseEntitySimple = __decorate([
|
|
76
|
+
(0, typeorm_1.Entity)()
|
|
77
|
+
], BaseEntitySimple);
|
|
78
|
+
let BaseEntityWithUser = class BaseEntityWithUser extends typeorm_1.BaseEntity {
|
|
79
|
+
id;
|
|
80
|
+
number;
|
|
81
|
+
isActive;
|
|
82
|
+
isDeleted;
|
|
83
|
+
createdAt;
|
|
84
|
+
updatedAt;
|
|
85
|
+
deletedAt;
|
|
86
|
+
createdBy;
|
|
87
|
+
modifiedBy;
|
|
88
|
+
};
|
|
89
|
+
exports.BaseEntityWithUser = BaseEntityWithUser;
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], BaseEntityWithUser.prototype, "id", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.Column)(),
|
|
96
|
+
(0, typeorm_1.Generated)("increment"),
|
|
97
|
+
__metadata("design:type", Number)
|
|
98
|
+
], BaseEntityWithUser.prototype, "number", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, typeorm_1.Column)({ default: true }),
|
|
101
|
+
__metadata("design:type", Boolean)
|
|
102
|
+
], BaseEntityWithUser.prototype, "isActive", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
105
|
+
__metadata("design:type", Boolean)
|
|
106
|
+
], BaseEntityWithUser.prototype, "isDeleted", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
109
|
+
__metadata("design:type", Date)
|
|
110
|
+
], BaseEntityWithUser.prototype, "createdAt", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
113
|
+
__metadata("design:type", Date)
|
|
114
|
+
], BaseEntityWithUser.prototype, "updatedAt", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, typeorm_1.DeleteDateColumn)(),
|
|
117
|
+
__metadata("design:type", Date)
|
|
118
|
+
], BaseEntityWithUser.prototype, "deletedAt", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who created the comment', required: false }),
|
|
121
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
122
|
+
onDelete: "SET NULL",
|
|
123
|
+
onUpdate: "CASCADE",
|
|
124
|
+
nullable: true,
|
|
125
|
+
}),
|
|
126
|
+
(0, typeorm_1.JoinColumn)(),
|
|
127
|
+
__metadata("design:type", user_entity_1.User)
|
|
128
|
+
], BaseEntityWithUser.prototype, "createdBy", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who modified the comment', required: false }),
|
|
131
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
132
|
+
onDelete: "SET NULL",
|
|
133
|
+
onUpdate: "CASCADE",
|
|
134
|
+
nullable: true,
|
|
135
|
+
}),
|
|
136
|
+
(0, typeorm_1.JoinColumn)(),
|
|
137
|
+
__metadata("design:type", user_entity_1.User)
|
|
138
|
+
], BaseEntityWithUser.prototype, "modifiedBy", void 0);
|
|
139
|
+
exports.BaseEntityWithUser = BaseEntityWithUser = __decorate([
|
|
140
|
+
(0, typeorm_1.Entity)()
|
|
141
|
+
], BaseEntityWithUser);
|
|
142
|
+
//# sourceMappingURL=base.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.entity.js","sourceRoot":"","sources":["../../../src/common/database/base.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,4DAAkD;AAClD,qCAWiB;AAGV,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,oBAAU;IAExC,EAAE,CAAU;IAGZ,QAAQ,CAAW;IAGnB,SAAS,CAAW;IAGpB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;CAClB,CAAA;AAlBY,gCAAU;AAErB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;sCACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;4CACP;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;6CACP;AAGpB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;6CAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;6CAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;6CAAC;qBAjBN,UAAU;IADtB,IAAA,gBAAM,GAAE;GACI,UAAU,CAkBtB;AAGM,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,oBAAU;IAE9C,EAAE,CAAU;IAGZ,SAAS,CAAQ;IAGjB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;CAClB,CAAA;AAZY,4CAAgB;AAE3B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;4CACnB;AAGZ;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;mDAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;mDAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;mDAAC;2BAXN,gBAAgB;IAD5B,IAAA,gBAAM,GAAE;GACI,gBAAgB,CAY5B;AAGM,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,oBAAU;IAEhD,EAAE,CAAU;IAIZ,MAAM,CAAS;IAGf,QAAQ,CAAW;IAGnB,SAAS,CAAW;IAGpB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;IASjB,SAAS,CAAQ;IASjB,UAAU,CAAQ;CACnB,CAAA;AAxCY,gDAAkB;AAE7B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;8CACnB;AAIZ;IAFC,IAAA,gBAAM,GAAE;IACR,IAAA,mBAAS,EAAC,WAAW,CAAC;;kDACR;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;oDACP;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;qDACP;AAGpB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;qDAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;qDAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;qDAAC;AASjB;IAPC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI,EAAE,WAAW,EAAE,8BAA8B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC/F,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACrB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,GAAE;8BACD,kBAAI;qDAAC;AASjB;IAPC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI,EAAE,WAAW,EAAE,+BAA+B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChG,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACrB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,GAAE;8BACA,kBAAI;sDAAC;6BAvCP,kBAAkB;IAD9B,IAAA,gBAAM,GAAE;GACI,kBAAkB,CAwC9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './send-notification.dto';
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./send-notification.dto"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NotificationCategory, NotificationChannel, NotificationSubcategory } from "../enums";
|
|
2
|
+
export declare class SendNotificationDto {
|
|
3
|
+
title: string;
|
|
4
|
+
recipientsId: string[];
|
|
5
|
+
entityId?: string;
|
|
6
|
+
content: string;
|
|
7
|
+
channels: NotificationChannel[];
|
|
8
|
+
category?: NotificationCategory;
|
|
9
|
+
subCategory?: NotificationSubcategory;
|
|
10
|
+
metadata?: Record<string, any>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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.SendNotificationDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const enums_1 = require("../enums");
|
|
15
|
+
class SendNotificationDto {
|
|
16
|
+
title;
|
|
17
|
+
recipientsId;
|
|
18
|
+
entityId;
|
|
19
|
+
content;
|
|
20
|
+
channels;
|
|
21
|
+
category;
|
|
22
|
+
subCategory;
|
|
23
|
+
metadata;
|
|
24
|
+
}
|
|
25
|
+
exports.SendNotificationDto = SendNotificationDto;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], SendNotificationDto.prototype, "title", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsUUID)("all", { each: true }),
|
|
32
|
+
__metadata("design:type", Array)
|
|
33
|
+
], SendNotificationDto.prototype, "recipientsId", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
|
+
(0, class_validator_1.IsUUID)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], SendNotificationDto.prototype, "entityId", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsString)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], SendNotificationDto.prototype, "content", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsEnum)(enums_1.NotificationChannel, { each: true }),
|
|
45
|
+
__metadata("design:type", Array)
|
|
46
|
+
], SendNotificationDto.prototype, "channels", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsEnum)(enums_1.NotificationCategory),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], SendNotificationDto.prototype, "category", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.IsEnum)(enums_1.NotificationSubcategory),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], SendNotificationDto.prototype, "subCategory", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_validator_1.IsOptional)(),
|
|
57
|
+
(0, class_validator_1.IsObject)(),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], SendNotificationDto.prototype, "metadata", void 0);
|
|
60
|
+
//# sourceMappingURL=send-notification.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-notification.dto.js","sourceRoot":"","sources":["../../../src/common/dtos/send-notification.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiF;AACjF,oCAA8F;AAE9F,MAAa,mBAAmB;IAE5B,KAAK,CAAS;IAGd,YAAY,CAAW;IAIvB,QAAQ,CAAU;IAGlB,OAAO,CAAS;IAGhB,QAAQ,CAAwB;IAGhC,QAAQ,CAAwB;IAGhC,WAAW,CAA2B;IAItC,QAAQ,CAAuB;CAClC;AA1BD,kDA0BC;AAxBG;IADC,IAAA,0BAAQ,GAAE;;kDACG;AAGd;IADC,IAAA,wBAAM,EAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;yDACP;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;qDACS;AAGlB;IADC,IAAA,0BAAQ,GAAE;;oDACK;AAGhB;IADC,IAAA,wBAAM,EAAC,2BAAmB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;qDACZ;AAGhC;IADC,IAAA,wBAAM,EAAC,4BAAoB,CAAC;;qDACG;AAGhC;IADC,IAAA,wBAAM,EAAC,+BAAuB,CAAC;;wDACM;AAItC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACoB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare enum AttachModule {
|
|
2
|
+
TOOLS = "tools",
|
|
3
|
+
SALES = "sales",
|
|
4
|
+
COLLECTIONS = "collections",
|
|
5
|
+
OPERATIONS = "operations",
|
|
6
|
+
MARKETING = "marketing",
|
|
7
|
+
SERVICES = "services",
|
|
8
|
+
AGENT_MANAGEMENT = "agent_management",
|
|
9
|
+
COMPANIES = "companies",
|
|
10
|
+
SIGNATURE = "signature"
|
|
11
|
+
}
|
|
12
|
+
export declare enum AttachEntityType {
|
|
13
|
+
TASK = "task",
|
|
14
|
+
EMAIL = "email",
|
|
15
|
+
CONTACT = "contact",
|
|
16
|
+
LEAD = "lead",
|
|
17
|
+
POLIZA = "poliza",
|
|
18
|
+
USER = "user",
|
|
19
|
+
RECEIPT = "receipt"
|
|
20
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AttachEntityType = exports.AttachModule = void 0;
|
|
4
|
+
var AttachModule;
|
|
5
|
+
(function (AttachModule) {
|
|
6
|
+
AttachModule["TOOLS"] = "tools";
|
|
7
|
+
AttachModule["SALES"] = "sales";
|
|
8
|
+
AttachModule["COLLECTIONS"] = "collections";
|
|
9
|
+
AttachModule["OPERATIONS"] = "operations";
|
|
10
|
+
AttachModule["MARKETING"] = "marketing";
|
|
11
|
+
AttachModule["SERVICES"] = "services";
|
|
12
|
+
AttachModule["AGENT_MANAGEMENT"] = "agent_management";
|
|
13
|
+
AttachModule["COMPANIES"] = "companies";
|
|
14
|
+
AttachModule["SIGNATURE"] = "signature";
|
|
15
|
+
})(AttachModule || (exports.AttachModule = AttachModule = {}));
|
|
16
|
+
var AttachEntityType;
|
|
17
|
+
(function (AttachEntityType) {
|
|
18
|
+
AttachEntityType["TASK"] = "task";
|
|
19
|
+
AttachEntityType["EMAIL"] = "email";
|
|
20
|
+
AttachEntityType["CONTACT"] = "contact";
|
|
21
|
+
AttachEntityType["LEAD"] = "lead";
|
|
22
|
+
AttachEntityType["POLIZA"] = "poliza";
|
|
23
|
+
AttachEntityType["USER"] = "user";
|
|
24
|
+
AttachEntityType["RECEIPT"] = "receipt";
|
|
25
|
+
})(AttachEntityType || (exports.AttachEntityType = AttachEntityType = {}));
|
|
26
|
+
//# sourceMappingURL=drive.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drive.enum.js","sourceRoot":"","sources":["../../../src/common/enums/drive.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAUX;AAVD,WAAY,YAAY;IACtB,+BAAe,CAAA;IACf,+BAAe,CAAA;IACf,2CAA2B,CAAA;IAC3B,yCAAyB,CAAA;IACzB,uCAAuB,CAAA;IACvB,qCAAqB,CAAA;IACrB,qDAAqC,CAAA;IACrC,uCAAuB,CAAA;IACvB,uCAAuB,CAAA;AACzB,CAAC,EAVW,YAAY,4BAAZ,YAAY,QAUvB;AAED,IAAY,gBAQX;AARD,WAAY,gBAAgB;IAC1B,iCAAa,CAAA;IACb,mCAAe,CAAA;IACf,uCAAmB,CAAA;IACnB,iCAAa,CAAA;IACb,qCAAiB,CAAA;IACjB,iCAAa,CAAA;IACb,uCAAmB,CAAA;AACrB,CAAC,EARW,gBAAgB,gCAAhB,gBAAgB,QAQ3B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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("./notification.enum"), exports);
|
|
18
|
+
__exportStar(require("./sales.enum"), exports);
|
|
19
|
+
__exportStar(require("./tools.enum"), exports);
|
|
20
|
+
__exportStar(require("./drive.enum"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,+CAA6B;AAC7B,+CAA6B;AAC7B,+CAA6B"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare enum NotificationChannel {
|
|
2
|
+
EMAIL = "email",
|
|
3
|
+
SMS = "sms",
|
|
4
|
+
PUSH = "push",
|
|
5
|
+
APP = "app"
|
|
6
|
+
}
|
|
7
|
+
export declare enum NotificationSubcategory {
|
|
8
|
+
NEW_TASK = "new-task",
|
|
9
|
+
TASK_COMPLETED = "task-complete",
|
|
10
|
+
TASK_OVERDUE = "task-overdue",
|
|
11
|
+
TASK_REMINDER = "task-reminder",
|
|
12
|
+
TASK_NEW_COMMENT = "task-new-comment",
|
|
13
|
+
TASK_APPROVED = "task-approved",
|
|
14
|
+
TASK_REJECTED = "task-rejected",
|
|
15
|
+
TASK_UPDATED = "task-updated",
|
|
16
|
+
CONTACT_NEW_COMMENT = "contact-new-comment",
|
|
17
|
+
OTP = "otp",
|
|
18
|
+
DEFAULT = "default"
|
|
19
|
+
}
|
|
20
|
+
export declare enum NotificationCategory {
|
|
21
|
+
TASK = "task",
|
|
22
|
+
OTP = "otp",
|
|
23
|
+
CRM = "crm",
|
|
24
|
+
CONTACT = "contact",
|
|
25
|
+
SALES = "sales",
|
|
26
|
+
DRIVE = "drive",
|
|
27
|
+
EMAIL = "email",
|
|
28
|
+
CALENDAR = "calendar",
|
|
29
|
+
TOOLS = "tools",
|
|
30
|
+
INFO = "info",
|
|
31
|
+
DEFAULT = "default"
|
|
32
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationCategory = exports.NotificationSubcategory = exports.NotificationChannel = void 0;
|
|
4
|
+
var NotificationChannel;
|
|
5
|
+
(function (NotificationChannel) {
|
|
6
|
+
NotificationChannel["EMAIL"] = "email";
|
|
7
|
+
NotificationChannel["SMS"] = "sms";
|
|
8
|
+
NotificationChannel["PUSH"] = "push";
|
|
9
|
+
NotificationChannel["APP"] = "app";
|
|
10
|
+
})(NotificationChannel || (exports.NotificationChannel = NotificationChannel = {}));
|
|
11
|
+
var NotificationSubcategory;
|
|
12
|
+
(function (NotificationSubcategory) {
|
|
13
|
+
NotificationSubcategory["NEW_TASK"] = "new-task";
|
|
14
|
+
NotificationSubcategory["TASK_COMPLETED"] = "task-complete";
|
|
15
|
+
NotificationSubcategory["TASK_OVERDUE"] = "task-overdue";
|
|
16
|
+
NotificationSubcategory["TASK_REMINDER"] = "task-reminder";
|
|
17
|
+
NotificationSubcategory["TASK_NEW_COMMENT"] = "task-new-comment";
|
|
18
|
+
NotificationSubcategory["TASK_APPROVED"] = "task-approved";
|
|
19
|
+
NotificationSubcategory["TASK_REJECTED"] = "task-rejected";
|
|
20
|
+
NotificationSubcategory["TASK_UPDATED"] = "task-updated";
|
|
21
|
+
NotificationSubcategory["CONTACT_NEW_COMMENT"] = "contact-new-comment";
|
|
22
|
+
NotificationSubcategory["OTP"] = "otp";
|
|
23
|
+
NotificationSubcategory["DEFAULT"] = "default";
|
|
24
|
+
})(NotificationSubcategory || (exports.NotificationSubcategory = NotificationSubcategory = {}));
|
|
25
|
+
var NotificationCategory;
|
|
26
|
+
(function (NotificationCategory) {
|
|
27
|
+
NotificationCategory["TASK"] = "task";
|
|
28
|
+
NotificationCategory["OTP"] = "otp";
|
|
29
|
+
NotificationCategory["CRM"] = "crm";
|
|
30
|
+
NotificationCategory["CONTACT"] = "contact";
|
|
31
|
+
NotificationCategory["SALES"] = "sales";
|
|
32
|
+
NotificationCategory["DRIVE"] = "drive";
|
|
33
|
+
NotificationCategory["EMAIL"] = "email";
|
|
34
|
+
NotificationCategory["CALENDAR"] = "calendar";
|
|
35
|
+
NotificationCategory["TOOLS"] = "tools";
|
|
36
|
+
NotificationCategory["INFO"] = "info";
|
|
37
|
+
NotificationCategory["DEFAULT"] = "default";
|
|
38
|
+
})(NotificationCategory || (exports.NotificationCategory = NotificationCategory = {}));
|
|
39
|
+
//# sourceMappingURL=notification.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.enum.js","sourceRoot":"","sources":["../../../src/common/enums/notification.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC3B,sCAAe,CAAA;IACf,kCAAW,CAAA;IACX,oCAAa,CAAA;IACb,kCAAW,CAAA;AACf,CAAC,EALW,mBAAmB,mCAAnB,mBAAmB,QAK9B;AAED,IAAY,uBAYX;AAZD,WAAY,uBAAuB;IAC/B,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;IAC7B,sEAA2C,CAAA;IAC3C,sCAAW,CAAA;IACX,8CAAmB,CAAA;AACvB,CAAC,EAZW,uBAAuB,uCAAvB,uBAAuB,QAYlC;AAED,IAAY,oBAYX;AAZD,WAAY,oBAAoB;IAC5B,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,2CAAmB,CAAA;AACvB,CAAC,EAZW,oBAAoB,oCAApB,oBAAoB,QAY/B"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare enum StatusSiniestro {
|
|
2
|
+
LIQUIDADO = "liquidado",
|
|
3
|
+
VIGENTE = "vigente",
|
|
4
|
+
ANULADO = "anulado",
|
|
5
|
+
VENCIDO = "vencido"
|
|
6
|
+
}
|
|
7
|
+
export declare enum PolizaStatus {
|
|
8
|
+
ACTIVA = "activa",
|
|
9
|
+
EXPIRADA = "expirada",
|
|
10
|
+
CANCELADA = "cancelada",
|
|
11
|
+
ENPROCESO = "en_proceso"
|
|
12
|
+
}
|
|
13
|
+
export declare enum ReceiptStatus {
|
|
14
|
+
VIGENTE = "vigente",
|
|
15
|
+
ANULADO = "anulado",
|
|
16
|
+
VENCIDO = "vencido",
|
|
17
|
+
LIQUIDADO = "liquidado"
|
|
18
|
+
}
|
|
19
|
+
export declare enum ReceiptMethodPayment {
|
|
20
|
+
EFECTIVO = "efectivo",
|
|
21
|
+
TARJETA_CREDITO = "tarjeta_credito",
|
|
22
|
+
TARJETA_DEBITO = "tarjeta_debito"
|
|
23
|
+
}
|
|
24
|
+
export declare enum PersonType {
|
|
25
|
+
FISICA = "fisica",
|
|
26
|
+
MORAL = "moral"
|
|
27
|
+
}
|
|
28
|
+
export declare enum PolizaDiasPlazoPago {
|
|
29
|
+
Day15 = "15",
|
|
30
|
+
Day30 = "30"
|
|
31
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PolizaDiasPlazoPago = exports.PersonType = exports.ReceiptMethodPayment = exports.ReceiptStatus = exports.PolizaStatus = exports.StatusSiniestro = void 0;
|
|
4
|
+
var StatusSiniestro;
|
|
5
|
+
(function (StatusSiniestro) {
|
|
6
|
+
StatusSiniestro["LIQUIDADO"] = "liquidado";
|
|
7
|
+
StatusSiniestro["VIGENTE"] = "vigente";
|
|
8
|
+
StatusSiniestro["ANULADO"] = "anulado";
|
|
9
|
+
StatusSiniestro["VENCIDO"] = "vencido";
|
|
10
|
+
})(StatusSiniestro || (exports.StatusSiniestro = StatusSiniestro = {}));
|
|
11
|
+
var PolizaStatus;
|
|
12
|
+
(function (PolizaStatus) {
|
|
13
|
+
PolizaStatus["ACTIVA"] = "activa";
|
|
14
|
+
PolizaStatus["EXPIRADA"] = "expirada";
|
|
15
|
+
PolizaStatus["CANCELADA"] = "cancelada";
|
|
16
|
+
PolizaStatus["ENPROCESO"] = "en_proceso";
|
|
17
|
+
})(PolizaStatus || (exports.PolizaStatus = PolizaStatus = {}));
|
|
18
|
+
var ReceiptStatus;
|
|
19
|
+
(function (ReceiptStatus) {
|
|
20
|
+
ReceiptStatus["VIGENTE"] = "vigente";
|
|
21
|
+
ReceiptStatus["ANULADO"] = "anulado";
|
|
22
|
+
ReceiptStatus["VENCIDO"] = "vencido";
|
|
23
|
+
ReceiptStatus["LIQUIDADO"] = "liquidado";
|
|
24
|
+
})(ReceiptStatus || (exports.ReceiptStatus = ReceiptStatus = {}));
|
|
25
|
+
var ReceiptMethodPayment;
|
|
26
|
+
(function (ReceiptMethodPayment) {
|
|
27
|
+
ReceiptMethodPayment["EFECTIVO"] = "efectivo";
|
|
28
|
+
ReceiptMethodPayment["TARJETA_CREDITO"] = "tarjeta_credito";
|
|
29
|
+
ReceiptMethodPayment["TARJETA_DEBITO"] = "tarjeta_debito";
|
|
30
|
+
})(ReceiptMethodPayment || (exports.ReceiptMethodPayment = ReceiptMethodPayment = {}));
|
|
31
|
+
var PersonType;
|
|
32
|
+
(function (PersonType) {
|
|
33
|
+
PersonType["FISICA"] = "fisica";
|
|
34
|
+
PersonType["MORAL"] = "moral";
|
|
35
|
+
})(PersonType || (exports.PersonType = PersonType = {}));
|
|
36
|
+
var PolizaDiasPlazoPago;
|
|
37
|
+
(function (PolizaDiasPlazoPago) {
|
|
38
|
+
PolizaDiasPlazoPago["Day15"] = "15";
|
|
39
|
+
PolizaDiasPlazoPago["Day30"] = "30";
|
|
40
|
+
})(PolizaDiasPlazoPago || (exports.PolizaDiasPlazoPago = PolizaDiasPlazoPago = {}));
|
|
41
|
+
//# sourceMappingURL=sales.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sales.enum.js","sourceRoot":"","sources":["../../../src/common/enums/sales.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAKX;AALD,WAAY,eAAe;IACvB,0CAAuB,CAAA;IACvB,sCAAmB,CAAA;IACnB,sCAAmB,CAAA;IACnB,sCAAmB,CAAA;AACvB,CAAC,EALW,eAAe,+BAAf,eAAe,QAK1B;AAED,IAAY,YAKX;AALD,WAAY,YAAY;IACpB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,uCAAuB,CAAA;IACvB,wCAAwB,CAAA;AAC5B,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAED,IAAY,aAKX;AALD,WAAY,aAAa;IACrB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;AAC3B,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AAED,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC5B,6CAAqB,CAAA;IACrB,2DAAmC,CAAA;IACnC,yDAAiC,CAAA;AACrC,CAAC,EAJW,oBAAoB,oCAApB,oBAAoB,QAI/B;AAED,IAAY,UAGX;AAHD,WAAY,UAAU;IAClB,+BAAiB,CAAA;IACjB,6BAAe,CAAA;AACnB,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB;AAED,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC3B,mCAAY,CAAA;IACZ,mCAAY,CAAA;AAChB,CAAC,EAHW,mBAAmB,mCAAnB,mBAAmB,QAG9B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare enum TaskStatus {
|
|
2
|
+
PENDING = "pending",
|
|
3
|
+
OVERDUE = "overdue",
|
|
4
|
+
COMPLETED = "completed",
|
|
5
|
+
PENDING_REVIEW = "pending_review"
|
|
6
|
+
}
|
|
7
|
+
export declare enum TaskCRMType {
|
|
8
|
+
CONTACT = "contact",
|
|
9
|
+
POLIZA = "poliza",
|
|
10
|
+
LEAD = "lead",
|
|
11
|
+
RECEIPT = "receipt"
|
|
12
|
+
}
|
|
13
|
+
export declare enum EventRepeatMode {
|
|
14
|
+
NONE = "none",
|
|
15
|
+
DIARIO = "diario",
|
|
16
|
+
SEMANAL = "semanal",
|
|
17
|
+
MENSUAL = "mensual",
|
|
18
|
+
ANUAL = "anual"
|
|
19
|
+
}
|