easywork-common-lib 1.0.380 → 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.d.ts +2 -0
- package/dist/eslint.config.js +47 -0
- package/dist/eslint.config.js.map +1 -0
- 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 +2 -2
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EventRepeatMode = exports.TaskCRMType = exports.TaskStatus = void 0;
|
|
4
|
+
var TaskStatus;
|
|
5
|
+
(function (TaskStatus) {
|
|
6
|
+
TaskStatus["PENDING"] = "pending";
|
|
7
|
+
TaskStatus["OVERDUE"] = "overdue";
|
|
8
|
+
TaskStatus["COMPLETED"] = "completed";
|
|
9
|
+
TaskStatus["PENDING_REVIEW"] = "pending_review";
|
|
10
|
+
})(TaskStatus || (exports.TaskStatus = TaskStatus = {}));
|
|
11
|
+
var TaskCRMType;
|
|
12
|
+
(function (TaskCRMType) {
|
|
13
|
+
TaskCRMType["CONTACT"] = "contact";
|
|
14
|
+
TaskCRMType["POLIZA"] = "poliza";
|
|
15
|
+
TaskCRMType["LEAD"] = "lead";
|
|
16
|
+
TaskCRMType["RECEIPT"] = "receipt";
|
|
17
|
+
})(TaskCRMType || (exports.TaskCRMType = TaskCRMType = {}));
|
|
18
|
+
var EventRepeatMode;
|
|
19
|
+
(function (EventRepeatMode) {
|
|
20
|
+
EventRepeatMode["NONE"] = "none";
|
|
21
|
+
EventRepeatMode["DIARIO"] = "diario";
|
|
22
|
+
EventRepeatMode["SEMANAL"] = "semanal";
|
|
23
|
+
EventRepeatMode["MENSUAL"] = "mensual";
|
|
24
|
+
EventRepeatMode["ANUAL"] = "anual";
|
|
25
|
+
})(EventRepeatMode || (exports.EventRepeatMode = EventRepeatMode = {}));
|
|
26
|
+
//# sourceMappingURL=tools.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.enum.js","sourceRoot":"","sources":["../../../src/common/enums/tools.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAKX;AALD,WAAY,UAAU;IAClB,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;IACnB,qCAAuB,CAAA;IACvB,+CAAiC,CAAA;AACrC,CAAC,EALW,UAAU,0BAAV,UAAU,QAKrB;AAED,IAAY,WAKX;AALD,WAAY,WAAW;IACnB,kCAAmB,CAAA;IACnB,gCAAiB,CAAA;IACjB,4BAAa,CAAA;IACb,kCAAmB,CAAA;AACvB,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB;AAED,IAAY,eAMX;AAND,WAAY,eAAe;IACvB,gCAAa,CAAA;IACb,oCAAiB,CAAA;IACjB,sCAAmB,CAAA;IACnB,sCAAmB,CAAA;IACnB,kCAAe,CAAA;AACnB,CAAC,EANW,eAAe,+BAAf,eAAe,QAM1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function generateId(length_?: number): Promise<string>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generateId = void 0;
|
|
4
|
+
const nanoid_1 = require("nanoid");
|
|
5
|
+
async function generateId(length_ = 21) {
|
|
6
|
+
return (0, nanoid_1.nanoid)(length_);
|
|
7
|
+
}
|
|
8
|
+
exports.generateId = generateId;
|
|
9
|
+
//# sourceMappingURL=cripto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cripto.js","sourceRoot":"","sources":["../../../src/common/functions/cripto.ts"],"names":[],"mappings":";;;AAAA,mCAAgC;AAEzB,KAAK,UAAU,UAAU,CAAC,UAAkB,EAAE;IACjD,OAAO,IAAA,eAAM,EAAC,OAAO,CAAC,CAAC;AAC3B,CAAC;AAFD,gCAEC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.resizeImage = void 0;
|
|
7
|
+
const rxjs_1 = require("rxjs");
|
|
8
|
+
const sharp_1 = __importDefault(require("sharp"));
|
|
9
|
+
function resizeImage(buffer, width = 200) {
|
|
10
|
+
return (0, rxjs_1.from)((0, sharp_1.default)(buffer)
|
|
11
|
+
.resize({ width })
|
|
12
|
+
.toBuffer());
|
|
13
|
+
}
|
|
14
|
+
exports.resizeImage = resizeImage;
|
|
15
|
+
//# sourceMappingURL=image.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.js","sourceRoot":"","sources":["../../../src/common/functions/image.ts"],"names":[],"mappings":";;;;;;AAAA,+BAAwC;AACxC,kDAA0B;AAE1B,SAAgB,WAAW,CAAC,MAAc,EAAE,QAAgB,GAAG;IAC3D,OAAO,IAAA,WAAI,EACP,IAAA,eAAK,EAAC,MAAM,CAAC;SACR,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;SACjB,QAAQ,EAAE,CAClB,CAAA;AACL,CAAC;AAND,kCAMC"}
|
|
@@ -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("./cripto"), exports);
|
|
18
|
+
__exportStar(require("./image"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/functions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AppUtils = void 0;
|
|
4
|
+
const common_1 = require("@nestjs/common");
|
|
5
|
+
const helpers_utils_1 = require("./helpers.utils");
|
|
6
|
+
const logger = new common_1.Logger("App:Utils");
|
|
7
|
+
exports.AppUtils = {
|
|
8
|
+
validationPipeOptions() {
|
|
9
|
+
return {
|
|
10
|
+
whitelist: true,
|
|
11
|
+
transform: true,
|
|
12
|
+
forbidUnknownValues: false,
|
|
13
|
+
validateCustomDecorators: true,
|
|
14
|
+
enableDebugMessages: helpers_utils_1.HelperService.isDev(),
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
async gracefulShutdown(app, code) {
|
|
18
|
+
setTimeout(() => process.exit(1), 5000);
|
|
19
|
+
logger.verbose(`Signal received with code ${code} ⚡.`);
|
|
20
|
+
logger.log("❗Closing http server with grace.");
|
|
21
|
+
try {
|
|
22
|
+
await app.close();
|
|
23
|
+
logger.log("✅ Http server closed.");
|
|
24
|
+
process.exit(0);
|
|
25
|
+
}
|
|
26
|
+
catch (error) {
|
|
27
|
+
logger.error(`❌ Http server closed with error: ${error}`);
|
|
28
|
+
process.exit(1);
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=app.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.utils.js","sourceRoot":"","sources":["../../../src/common/helpers/app.utils.ts"],"names":[],"mappings":";;;AAAA,2CAAiF;AACjF,mDAAgD;AAEhD,MAAM,MAAM,GAAG,IAAI,eAAM,CAAC,WAAW,CAAC,CAAC;AAE1B,QAAA,QAAQ,GAAG;IACpB,qBAAqB;QACjB,OAAO;YACH,SAAS,EAAE,IAAI;YACf,SAAS,EAAE,IAAI;YACf,mBAAmB,EAAE,KAAK;YAC1B,wBAAwB,EAAE,IAAI;YAC9B,mBAAmB,EAAE,6BAAa,CAAC,KAAK,EAAE;SAC7C,CAAA;IACL,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,GAAqB,EAAE,IAAY;QACtD,UAAU,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;QACxC,MAAM,CAAC,OAAO,CAAC,6BAA6B,IAAI,KAAK,CAAC,CAAC;QACvD,MAAM,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAC;QAE/C,IAAI,CAAC;YACD,MAAM,GAAG,CAAC,KAAK,EAAE,CAAC;YAClB,MAAM,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;YACpC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACpB,CAAC;QAAC,OAAO,KAAU,EAAE,CAAC;YAClB,MAAM,CAAC,KAAK,CAAC,oCAAoC,KAAK,EAAE,CAAC,CAAC;YAC1D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACpB,CAAC;IACL,CAAC;CAEJ,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.HelperService = void 0;
|
|
7
|
+
const node_process_1 = __importDefault(require("node:process"));
|
|
8
|
+
const node_path_1 = require("node:path");
|
|
9
|
+
const node_fs_1 = require("node:fs");
|
|
10
|
+
exports.HelperService = {
|
|
11
|
+
isDev() {
|
|
12
|
+
return node_process_1.default.env.NODE_ENV?.startsWith("dev");
|
|
13
|
+
},
|
|
14
|
+
isProd() {
|
|
15
|
+
return node_process_1.default.env.NODE_ENV?.startsWith("prod");
|
|
16
|
+
},
|
|
17
|
+
getAppRootDir() {
|
|
18
|
+
let currentDirectory = __dirname;
|
|
19
|
+
while (!(0, node_fs_1.existsSync)((0, node_path_1.join)(currentDirectory, "resources")))
|
|
20
|
+
currentDirectory = (0, node_path_1.join)(currentDirectory, "..");
|
|
21
|
+
return node_process_1.default.env.NODE_ENV === "prod"
|
|
22
|
+
? (0, node_path_1.join)(currentDirectory, "dist")
|
|
23
|
+
: currentDirectory;
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=helpers.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.utils.js","sourceRoot":"","sources":["../../../src/common/helpers/helpers.utils.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAmC;AACnC,yCAAiC;AACjC,qCAAqC;AAExB,QAAA,aAAa,GAAG;IACzB,KAAK;QACD,OAAO,sBAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;IACnD,CAAC;IAED,MAAM;QACF,OAAO,sBAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;IACpD,CAAC;IAED,aAAa;QACT,IAAI,gBAAgB,GAAG,SAAS,CAAC;QAEjC,OAAO,CAAC,IAAA,oBAAU,EAAC,IAAA,gBAAI,EAAC,gBAAgB,EAAE,WAAW,CAAC,CAAC;YACnD,gBAAgB,GAAG,IAAA,gBAAI,EAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC;QAEpD,OAAO,sBAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,MAAM;YAClC,CAAC,CAAC,IAAA,gBAAI,EAAC,gBAAgB,EAAE,MAAM,CAAC;YAChC,CAAC,CAAC,gBAAgB,CAAC;IAC3B,CAAC;CACJ,CAAA"}
|
|
@@ -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("./app.utils"), exports);
|
|
18
|
+
__exportStar(require("./helpers.utils"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/helpers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,kDAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./security.interceptor";
|
|
@@ -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("./security.interceptor"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/interceptors/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CallHandler, ExecutionContext, NestInterceptor } from "@nestjs/common";
|
|
2
|
+
import type { Observable } from "rxjs";
|
|
3
|
+
export declare class SecurityInterceptor implements NestInterceptor {
|
|
4
|
+
intercept(_context: ExecutionContext, next: CallHandler): Observable<any>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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.SecurityInterceptor = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const class_transformer_1 = require("class-transformer");
|
|
12
|
+
const rxjs_1 = require("rxjs");
|
|
13
|
+
let SecurityInterceptor = class SecurityInterceptor {
|
|
14
|
+
intercept(_context, next) {
|
|
15
|
+
return next.handle().pipe((0, rxjs_1.map)(data => (0, class_transformer_1.instanceToPlain)(data)));
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
exports.SecurityInterceptor = SecurityInterceptor;
|
|
19
|
+
exports.SecurityInterceptor = SecurityInterceptor = __decorate([
|
|
20
|
+
(0, common_1.Injectable)()
|
|
21
|
+
], SecurityInterceptor);
|
|
22
|
+
//# sourceMappingURL=security.interceptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security.interceptor.js","sourceRoot":"","sources":["../../../src/common/interceptors/security.interceptor.ts"],"names":[],"mappings":";;;;;;;;;AAKA,2CAEwB;AACxB,yDAAoD;AAEpD,+BAA2B;AAGpB,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC5B,SAAS,CAAC,QAA0B,EAAE,IAAiB;QACnD,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,IAAA,UAAG,EAAC,IAAI,CAAC,EAAE,CAAC,IAAA,mCAAe,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClE,CAAC;CACJ,CAAA;AAJY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;GACA,mBAAmB,CAI/B"}
|
|
@@ -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("./entity_file.entity"), exports);
|
|
18
|
+
__exportStar(require("./entity_folder.entity"), exports);
|
|
19
|
+
__exportStar(require("./sales"), exports);
|
|
20
|
+
__exportStar(require("./tools"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/helpers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,yDAAuC;AACvC,0CAAwB;AACxB,0CAAwB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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("./poliza/h_poliza_forma_cobro.entity"), exports);
|
|
18
|
+
__exportStar(require("./poliza/h_poliza_frecuencia_pago.entity"), exports);
|
|
19
|
+
__exportStar(require("./poliza/h_poliza_type.entity"), exports);
|
|
20
|
+
__exportStar(require("./lead"), exports);
|
|
21
|
+
__exportStar(require("./contact"), exports);
|
|
22
|
+
__exportStar(require("./poliza"), exports);
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/helpers/sales/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uEAAqD;AACrD,2EAAyD;AACzD,gEAA8C;AAC9C,yCAAuB;AACvB,4CAA0B;AAC1B,2CAAyB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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.PolizaCategory = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let PolizaCategory = class PolizaCategory extends typeorm_1.BaseEntity {
|
|
15
|
+
id;
|
|
16
|
+
name;
|
|
17
|
+
};
|
|
18
|
+
exports.PolizaCategory = PolizaCategory;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], PolizaCategory.prototype, "id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ unique: true }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], PolizaCategory.prototype, "name", void 0);
|
|
27
|
+
exports.PolizaCategory = PolizaCategory = __decorate([
|
|
28
|
+
(0, typeorm_1.Entity)()
|
|
29
|
+
], PolizaCategory);
|
|
30
|
+
//# sourceMappingURL=h_poliza_category.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"h_poliza_category.entity.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/poliza/h_poliza_category.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA8E;AAGvE,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,oBAAU;IAE1C,EAAE,CAAU;IAGZ,IAAI,CAAS;CAChB,CAAA;AANY,wCAAc;AAEvB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;0CACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;4CACZ;yBALJ,cAAc;IAD1B,IAAA,gBAAM,GAAE;GACI,cAAc,CAM1B"}
|
|
@@ -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.PolizaConductoPago = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
let PolizaConductoPago = class PolizaConductoPago extends typeorm_1.BaseEntity {
|
|
16
|
+
id;
|
|
17
|
+
name;
|
|
18
|
+
};
|
|
19
|
+
exports.PolizaConductoPago = PolizaConductoPago;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'UUID del conducto de pago', format: 'uuid' }),
|
|
22
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], PolizaConductoPago.prototype, "id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Nombre del conducto de pago', example: "Agente" }),
|
|
27
|
+
(0, typeorm_1.Column)({ unique: true }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], PolizaConductoPago.prototype, "name", void 0);
|
|
30
|
+
exports.PolizaConductoPago = PolizaConductoPago = __decorate([
|
|
31
|
+
(0, typeorm_1.Entity)()
|
|
32
|
+
], PolizaConductoPago);
|
|
33
|
+
//# sourceMappingURL=h_poliza_conducto_pago.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"h_poliza_conducto_pago.entity.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/poliza/h_poliza_conducto_pago.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA6E;AAC7E,6CAA8C;AAGvC,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,oBAAU;IAGhD,EAAE,CAAU;IAIZ,IAAI,CAAS;CACd,CAAA;AARY,gDAAkB;AAG7B;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,2BAA2B,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IACvF,IAAA,gCAAsB,EAAC,MAAM,CAAC;;8CACnB;AAIZ;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,6BAA6B,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;IAC5F,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;gDACZ;6BAPF,kBAAkB;IAD9B,IAAA,gBAAM,GAAE;GACI,kBAAkB,CAQ9B"}
|
|
@@ -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.PolizaFormaCobro = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
let PolizaFormaCobro = class PolizaFormaCobro extends typeorm_1.BaseEntity {
|
|
16
|
+
id;
|
|
17
|
+
name;
|
|
18
|
+
description;
|
|
19
|
+
};
|
|
20
|
+
exports.PolizaFormaCobro = PolizaFormaCobro;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'UUID of the payment method', format: 'uuid' }),
|
|
23
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], PolizaFormaCobro.prototype, "id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Name of the payment method' }),
|
|
28
|
+
(0, typeorm_1.Column)({ unique: true }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], PolizaFormaCobro.prototype, "name", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Description of the payment method', required: false }),
|
|
33
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], PolizaFormaCobro.prototype, "description", void 0);
|
|
36
|
+
exports.PolizaFormaCobro = PolizaFormaCobro = __decorate([
|
|
37
|
+
(0, typeorm_1.Entity)()
|
|
38
|
+
], PolizaFormaCobro);
|
|
39
|
+
//# sourceMappingURL=h_poliza_forma_cobro.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"h_poliza_forma_cobro.entity.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA6E;AAC7E,6CAA8C;AAGvC,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,oBAAU;IAG9C,EAAE,CAAU;IAIZ,IAAI,CAAS;IAIb,WAAW,CAAS;CACrB,CAAA;AAZY,4CAAgB;AAG3B;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,4BAA4B,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IACxF,IAAA,gCAAsB,EAAC,MAAM,CAAC;;4CACnB;AAIZ;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,4BAA4B,EAAE,CAAC;IACxE,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;8CACZ;AAIb;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,mCAAmC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChG,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACP;2BAXT,gBAAgB;IAD5B,IAAA,gBAAM,GAAE;GACI,gBAAgB,CAY5B"}
|
|
@@ -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.PolizaFrecuenciaPago = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
let PolizaFrecuenciaPago = class PolizaFrecuenciaPago extends typeorm_1.BaseEntity {
|
|
16
|
+
id;
|
|
17
|
+
name;
|
|
18
|
+
cobrosEsperados;
|
|
19
|
+
};
|
|
20
|
+
exports.PolizaFrecuenciaPago = PolizaFrecuenciaPago;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'UUID of the payment frequency', format: 'uuid' }),
|
|
23
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], PolizaFrecuenciaPago.prototype, "id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Name of the payment frequency' }),
|
|
28
|
+
(0, typeorm_1.Column)({ unique: true }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], PolizaFrecuenciaPago.prototype, "name", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, swagger_1.ApiProperty)({ type: Number, description: 'Expected number of payments' }),
|
|
33
|
+
(0, typeorm_1.Column)(),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], PolizaFrecuenciaPago.prototype, "cobrosEsperados", void 0);
|
|
36
|
+
exports.PolizaFrecuenciaPago = PolizaFrecuenciaPago = __decorate([
|
|
37
|
+
(0, typeorm_1.Entity)()
|
|
38
|
+
], PolizaFrecuenciaPago);
|
|
39
|
+
//# sourceMappingURL=h_poliza_frecuencia_pago.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"h_poliza_frecuencia_pago.entity.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA6E;AAC7E,6CAA8C;AAGvC,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,oBAAU;IAGlD,EAAE,CAAU;IAIZ,IAAI,CAAS;IAIb,eAAe,CAAS;CACzB,CAAA;AAZY,oDAAoB;AAG/B;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,+BAA+B,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC3F,IAAA,gCAAsB,EAAC,MAAM,CAAC;;gDACnB;AAIZ;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,+BAA+B,EAAE,CAAC;IAC3E,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;kDACZ;AAIb;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IACzE,IAAA,gBAAM,GAAE;;6DACe;+BAXb,oBAAoB;IADhC,IAAA,gBAAM,GAAE;GACI,oBAAoB,CAYhC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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.PolizaInsurance = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let PolizaInsurance = class PolizaInsurance extends typeorm_1.BaseEntity {
|
|
15
|
+
id;
|
|
16
|
+
name;
|
|
17
|
+
};
|
|
18
|
+
exports.PolizaInsurance = PolizaInsurance;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], PolizaInsurance.prototype, "id", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ unique: true }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], PolizaInsurance.prototype, "name", void 0);
|
|
27
|
+
exports.PolizaInsurance = PolizaInsurance = __decorate([
|
|
28
|
+
(0, typeorm_1.Entity)()
|
|
29
|
+
], PolizaInsurance);
|
|
30
|
+
//# sourceMappingURL=h_poliza_insurance.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"h_poliza_insurance.entity.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/poliza/h_poliza_insurance.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA8E;AAGvE,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,oBAAU;IAE3C,EAAE,CAAU;IAGZ,IAAI,CAAS;CAChB,CAAA;AANY,0CAAe;AAExB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;2CACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;6CACZ;0BALJ,eAAe;IAD3B,IAAA,gBAAM,GAAE;GACI,eAAe,CAM3B"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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.PolizaSubramo = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let PolizaSubramo = class PolizaSubramo extends typeorm_1.BaseEntity {
|
|
15
|
+
id;
|
|
16
|
+
name;
|
|
17
|
+
salud;
|
|
18
|
+
};
|
|
19
|
+
exports.PolizaSubramo = PolizaSubramo;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], PolizaSubramo.prototype, "id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ length: 100 }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], PolizaSubramo.prototype, "name", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
30
|
+
__metadata("design:type", Boolean)
|
|
31
|
+
], PolizaSubramo.prototype, "salud", void 0);
|
|
32
|
+
exports.PolizaSubramo = PolizaSubramo = __decorate([
|
|
33
|
+
(0, typeorm_1.Entity)(),
|
|
34
|
+
(0, typeorm_1.Index)(["name", "salud"], { unique: true })
|
|
35
|
+
], PolizaSubramo);
|
|
36
|
+
//# sourceMappingURL=h_poliza_subramo.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"h_poliza_subramo.entity.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/poliza/h_poliza_subramo.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAqF;AAI9E,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,oBAAU;IAEzC,EAAE,CAAU;IAGZ,IAAI,CAAS;IAGb,KAAK,CAAU;CAClB,CAAA;AATY,sCAAa;AAEtB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;yCACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAC,MAAM,EAAE,GAAG,EAAC,CAAC;;2CACT;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;4CACZ;wBARN,aAAa;IAFzB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GAC9B,aAAa,CASzB"}
|