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
|
@@ -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
|
+
}
|
|
@@ -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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class AppConfig extends
|
|
1
|
+
import { EntityBase } from "../../common/database/base.entity";
|
|
2
|
+
export declare class AppConfig extends EntityBase {
|
|
3
3
|
key: string;
|
|
4
4
|
value: string;
|
|
5
5
|
}
|
|
@@ -13,7 +13,7 @@ exports.AppConfig = void 0;
|
|
|
13
13
|
const base_entity_1 = require("../../common/database/base.entity");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const typeorm_1 = require("typeorm");
|
|
16
|
-
let AppConfig = class AppConfig extends base_entity_1.
|
|
16
|
+
let AppConfig = class AppConfig extends base_entity_1.EntityBase {
|
|
17
17
|
key;
|
|
18
18
|
value;
|
|
19
19
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class Currency extends
|
|
1
|
+
import { EntityBase } from "../common/database/base.entity";
|
|
2
|
+
export declare class Currency extends EntityBase {
|
|
3
3
|
name: string;
|
|
4
4
|
symbol: string;
|
|
5
5
|
isDefault: boolean;
|
|
@@ -14,7 +14,7 @@ const swagger_1 = require("@nestjs/swagger");
|
|
|
14
14
|
const base_entity_1 = require("../common/database/base.entity");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
16
16
|
const typeorm_1 = require("typeorm");
|
|
17
|
-
let Currency = class Currency extends base_entity_1.
|
|
17
|
+
let Currency = class Currency extends base_entity_1.EntityBase {
|
|
18
18
|
name;
|
|
19
19
|
symbol;
|
|
20
20
|
isDefault;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class FilterView extends
|
|
1
|
+
import { EntityBase } from "../../common/database/base.entity";
|
|
2
|
+
export declare class FilterView extends EntityBase {
|
|
3
3
|
view: string;
|
|
4
4
|
name: string;
|
|
5
5
|
userId: string;
|
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.FilterView = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const base_entity_1 = require("../../common/database/base.entity");
|
|
15
|
-
let FilterView = class FilterView extends base_entity_1.
|
|
15
|
+
let FilterView = class FilterView extends base_entity_1.EntityBase {
|
|
16
16
|
view;
|
|
17
17
|
name;
|
|
18
18
|
userId;
|
|
@@ -14,7 +14,7 @@ const base_entity_1 = require("../common/database/base.entity");
|
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const typeorm_1 = require("typeorm");
|
|
16
16
|
const swagger_1 = require("@nestjs/swagger");
|
|
17
|
-
let Email = class Email extends base_entity_1.
|
|
17
|
+
let Email = class Email extends base_entity_1.EntityBase {
|
|
18
18
|
email;
|
|
19
19
|
isDefault;
|
|
20
20
|
};
|
|
@@ -13,7 +13,7 @@ exports.Group = void 0;
|
|
|
13
13
|
const base_entity_1 = require("../common/database/base.entity");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const typeorm_1 = require("typeorm");
|
|
16
|
-
let Group = class Group extends base_entity_1.
|
|
16
|
+
let Group = class Group extends base_entity_1.EntityBase {
|
|
17
17
|
name;
|
|
18
18
|
level;
|
|
19
19
|
};
|
|
@@ -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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class ClientSource extends
|
|
1
|
+
import { EntityBase } from "../../../../common/database/base.entity";
|
|
2
|
+
export declare class ClientSource extends EntityBase {
|
|
3
3
|
name: string;
|
|
4
4
|
isDefault: boolean;
|
|
5
5
|
}
|
|
@@ -14,7 +14,7 @@ const base_entity_1 = require("../../../../common/database/base.entity");
|
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const typeorm_1 = require("typeorm");
|
|
16
16
|
const swagger_1 = require("@nestjs/swagger");
|
|
17
|
-
let ClientSource = class ClientSource extends base_entity_1.
|
|
17
|
+
let ClientSource = class ClientSource extends base_entity_1.EntityBase {
|
|
18
18
|
name;
|
|
19
19
|
isDefault;
|
|
20
20
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class ClientType extends
|
|
1
|
+
import { EntityBase } from "../../../../common/database/base.entity";
|
|
2
|
+
export declare class ClientType extends EntityBase {
|
|
3
3
|
name: string;
|
|
4
4
|
isDefault: boolean;
|
|
5
5
|
}
|
|
@@ -14,7 +14,7 @@ const base_entity_1 = require("../../../../common/database/base.entity");
|
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const typeorm_1 = require("typeorm");
|
|
16
16
|
const swagger_1 = require("@nestjs/swagger");
|
|
17
|
-
let ClientType = class ClientType extends base_entity_1.
|
|
17
|
+
let ClientType = class ClientType extends base_entity_1.EntityBase {
|
|
18
18
|
name;
|
|
19
19
|
isDefault;
|
|
20
20
|
};
|
|
@@ -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"}
|