easywork-common-lib 1.0.264 → 1.0.266
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/.gitattributes +2 -2
- package/.github/workflows/npm-publish.yml +33 -33
- package/.vscode/settings.json +12 -12
- package/dist/common/constants/app.contants.d.ts +3 -1
- package/dist/common/constants/app.contants.js +4 -2
- package/dist/common/constants/app.contants.js.map +1 -1
- package/dist/common/enums/sales.enum.d.ts +8 -0
- package/dist/common/enums/sales.enum.js +11 -1
- package/dist/common/enums/sales.enum.js.map +1 -1
- package/dist/entities/helpers/sales/common/client_sources.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/common/client_sources.entity.js +36 -0
- package/dist/entities/helpers/sales/common/client_sources.entity.js.map +1 -0
- package/dist/entities/helpers/sales/common/client_types.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/common/client_types.entity.js +36 -0
- package/dist/entities/helpers/sales/common/client_types.entity.js.map +1 -0
- package/dist/entities/helpers/sales/contact/index.d.ts +2 -2
- package/dist/entities/helpers/sales/contact/index.js +2 -2
- package/dist/entities/helpers/sales/contact/index.js.map +1 -1
- package/dist/entities/helpers/sales/poliza/poliza_beneficiary.entity.d.ts +12 -0
- package/dist/entities/helpers/sales/poliza/poliza_beneficiary.entity.js +73 -0
- package/dist/entities/helpers/sales/poliza/poliza_beneficiary.entity.js.map +1 -0
- package/dist/entities/sales/beneficiarios/person.entity.d.ts +10 -0
- package/dist/entities/sales/beneficiarios/person.entity.js +64 -0
- package/dist/entities/sales/beneficiarios/person.entity.js.map +1 -0
- package/dist/entities/sales/beneficiarios/vehicle.entity.d.ts +15 -0
- package/dist/entities/sales/beneficiarios/vehicle.entity.js +93 -0
- package/dist/entities/sales/beneficiarios/vehicle.entity.js.map +1 -0
- package/dist/entities/sales/contact.entity.d.ts +21 -24
- package/dist/entities/sales/contact.entity.js +124 -137
- package/dist/entities/sales/contact.entity.js.map +1 -1
- package/dist/entities/sales/poliza.entity.d.ts +27 -19
- package/dist/entities/sales/poliza.entity.js +151 -106
- package/dist/entities/sales/poliza.entity.js.map +1 -1
- package/dist/grpc/drive/drive.proto +69 -69
- package/dist/modules/notifier/notifier.module.js +4 -1
- package/dist/modules/notifier/notifier.module.js.map +1 -1
- package/dist/modules/notifier/notifier.service.js +3 -3
- package/dist/modules/notifier/notifier.service.js.map +1 -1
- package/dist/modules/notifier/scheduler.service.d.ts +9 -0
- package/dist/modules/notifier/scheduler.service.js +40 -0
- package/dist/modules/notifier/scheduler.service.js.map +1 -0
- package/dist/modules/queue/subservices/calendar.service.d.ts +2 -0
- package/dist/modules/queue/subservices/calendar.service.js +17 -0
- package/dist/modules/queue/subservices/calendar.service.js.map +1 -0
- package/dist/modules/queue/subservices/contact.service.d.ts +7 -0
- package/dist/modules/queue/subservices/contact.service.js +49 -0
- package/dist/modules/queue/subservices/contact.service.js.map +1 -0
- package/dist/modules/queue/subservices/index.d.ts +3 -0
- package/dist/{entities/easyapp → modules/queue/subservices}/index.js +3 -1
- package/dist/modules/queue/subservices/index.js.map +1 -0
- package/dist/modules/queue/subservices/task.service.d.ts +12 -0
- package/dist/modules/queue/subservices/task.service.js +173 -0
- package/dist/modules/queue/subservices/task.service.js.map +1 -0
- package/package.json +41 -41
- package/scripts/bump.sh +5 -5
- package/test.bat +15 -15
- package/tsconfig.build.json +4 -4
- package/tsconfig.json +26 -26
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/entities/easyapp/index.d.ts +0 -1
- package/dist/entities/easyapp/index.js.map +0 -1
package/.gitattributes
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
# Auto detect text files and perform LF normalization
|
|
2
|
-
* text=auto
|
|
1
|
+
# Auto detect text files and perform LF normalization
|
|
2
|
+
* text=auto
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
|
2
|
-
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
|
|
3
|
-
|
|
4
|
-
name: Node.js Package
|
|
5
|
-
|
|
6
|
-
on:
|
|
7
|
-
release:
|
|
8
|
-
types: [created]
|
|
9
|
-
|
|
10
|
-
jobs:
|
|
11
|
-
build:
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
steps:
|
|
14
|
-
- uses: actions/checkout@v4
|
|
15
|
-
- uses: actions/setup-node@v4
|
|
16
|
-
with:
|
|
17
|
-
node-version: 20
|
|
18
|
-
- run: npm ci
|
|
19
|
-
- run: npm test
|
|
20
|
-
|
|
21
|
-
publish-npm:
|
|
22
|
-
needs: build
|
|
23
|
-
runs-on: ubuntu-latest
|
|
24
|
-
steps:
|
|
25
|
-
- uses: actions/checkout@v4
|
|
26
|
-
- uses: actions/setup-node@v4
|
|
27
|
-
with:
|
|
28
|
-
node-version: 20
|
|
29
|
-
registry-url: https://registry.npmjs.org/
|
|
30
|
-
- run: npm ci
|
|
31
|
-
- run: npm publish
|
|
32
|
-
env:
|
|
33
|
-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
|
1
|
+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
|
2
|
+
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
|
|
3
|
+
|
|
4
|
+
name: Node.js Package
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
release:
|
|
8
|
+
types: [created]
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
build:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
- uses: actions/setup-node@v4
|
|
16
|
+
with:
|
|
17
|
+
node-version: 20
|
|
18
|
+
- run: npm ci
|
|
19
|
+
- run: npm test
|
|
20
|
+
|
|
21
|
+
publish-npm:
|
|
22
|
+
needs: build
|
|
23
|
+
runs-on: ubuntu-latest
|
|
24
|
+
steps:
|
|
25
|
+
- uses: actions/checkout@v4
|
|
26
|
+
- uses: actions/setup-node@v4
|
|
27
|
+
with:
|
|
28
|
+
node-version: 20
|
|
29
|
+
registry-url: https://registry.npmjs.org/
|
|
30
|
+
- run: npm ci
|
|
31
|
+
- run: npm publish
|
|
32
|
+
env:
|
|
33
|
+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
package/.vscode/settings.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
{
|
|
2
|
-
"autoBarrel.language.defaultLanguage": "TypeScript",
|
|
3
|
-
"autoBarrel.files.disableRecursiveBarrelling": false,
|
|
4
|
-
"autoBarrel.files.includeExtensionOnExport": ["ts", "tsx", "vue"],
|
|
5
|
-
"autoBarrel.files.ignoreFilePathPatternOnExport": ["**/*.spec.*", "**/*.test.*"],
|
|
6
|
-
"autoBarrel.files.keepExtensionOnExport": false,
|
|
7
|
-
"autoBarrel.files.detectExportsInFiles": false,
|
|
8
|
-
"autoBarrel.files.exportDefaultFilename": "filename",
|
|
9
|
-
"autoBarrel.formatting.excludeSemiColonAtEndOfLine": false,
|
|
10
|
-
"autoBarrel.formatting.useSingleQuotes": true,
|
|
11
|
-
"autoBarrel.formatting.endOfLine": "lf",
|
|
12
|
-
"autoBarrel.formatting.insertFinalNewline": true,
|
|
1
|
+
{
|
|
2
|
+
"autoBarrel.language.defaultLanguage": "TypeScript",
|
|
3
|
+
"autoBarrel.files.disableRecursiveBarrelling": false,
|
|
4
|
+
"autoBarrel.files.includeExtensionOnExport": ["ts", "tsx", "vue"],
|
|
5
|
+
"autoBarrel.files.ignoreFilePathPatternOnExport": ["**/*.spec.*", "**/*.test.*"],
|
|
6
|
+
"autoBarrel.files.keepExtensionOnExport": false,
|
|
7
|
+
"autoBarrel.files.detectExportsInFiles": false,
|
|
8
|
+
"autoBarrel.files.exportDefaultFilename": "filename",
|
|
9
|
+
"autoBarrel.formatting.excludeSemiColonAtEndOfLine": false,
|
|
10
|
+
"autoBarrel.formatting.useSingleQuotes": true,
|
|
11
|
+
"autoBarrel.formatting.endOfLine": "lf",
|
|
12
|
+
"autoBarrel.formatting.insertFinalNewline": true,
|
|
13
13
|
}
|
|
@@ -2,5 +2,7 @@ export declare const LEAD_STAGE_INITIAL = "a233b765-d97b-43b8-8b6a-46727d97c844"
|
|
|
2
2
|
export declare const DRIVE_CONTACT_DOCUMENTS_PARTENT_FOLDER = "29168645-1bc0-40a1-9879-69fbbc62c04e";
|
|
3
3
|
export declare const DRIVE_TEMP_FOLDER = "6cc775ef-3616-4ffe-bfc9-755c453a4775";
|
|
4
4
|
export declare const DRIVE_CONTACT_PROFILES_IMAGES_PARTENT_FOLDER = "b88bdb51-806b-4dbf-a9f9-bcfba52be9fe";
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const APP_MXN_CURRENCY = "7a7f40f1-45e2-428f-bea9-a731866d6886";
|
|
6
|
+
export declare const APP_USD_CURRENCY = "c5324961-4eb9-44f9-8ee0-16a087cecaac";
|
|
7
|
+
export declare const APP_UDIS_CURRENCY = "e0262532-8377-4bda-bbf7-34f49550be66";
|
|
6
8
|
export declare const CONTACTS_DOCUMENTS_FOLDERS: string[];
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CONTACTS_DOCUMENTS_FOLDERS = exports.
|
|
3
|
+
exports.CONTACTS_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.LEAD_STAGE_INITIAL = void 0;
|
|
4
4
|
exports.LEAD_STAGE_INITIAL = "a233b765-d97b-43b8-8b6a-46727d97c844";
|
|
5
5
|
exports.DRIVE_CONTACT_DOCUMENTS_PARTENT_FOLDER = "29168645-1bc0-40a1-9879-69fbbc62c04e";
|
|
6
6
|
exports.DRIVE_TEMP_FOLDER = "6cc775ef-3616-4ffe-bfc9-755c453a4775";
|
|
7
7
|
exports.DRIVE_CONTACT_PROFILES_IMAGES_PARTENT_FOLDER = "b88bdb51-806b-4dbf-a9f9-bcfba52be9fe";
|
|
8
|
-
exports.
|
|
8
|
+
exports.APP_MXN_CURRENCY = "7a7f40f1-45e2-428f-bea9-a731866d6886";
|
|
9
|
+
exports.APP_USD_CURRENCY = "c5324961-4eb9-44f9-8ee0-16a087cecaac";
|
|
10
|
+
exports.APP_UDIS_CURRENCY = "e0262532-8377-4bda-bbf7-34f49550be66";
|
|
9
11
|
exports.CONTACTS_DOCUMENTS_FOLDERS = [
|
|
10
12
|
"Cotización Generada",
|
|
11
13
|
"Cotización Aprobada por el contratante",
|
|
@@ -1 +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,sCAAsC,GAAG,sCAAsC,CAAC;AAChF,QAAA,iBAAiB,GAAG,sCAAsC,CAAC;AAC3D,QAAA,4CAA4C,GAAG,sCAAsC,CAAC;AAEtF,QAAA,
|
|
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,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;AAE3D,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"}
|
|
@@ -21,3 +21,11 @@ export declare enum ReceiptMethodPayment {
|
|
|
21
21
|
TARJETA_CREDITO = "tarjeta_credito",
|
|
22
22
|
TARJETA_DEBITO = "tarjeta_debito"
|
|
23
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
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReceiptMethodPayment = exports.ReceiptStatus = exports.PolizaStatus = exports.StatusSiniestro = void 0;
|
|
3
|
+
exports.PolizaDiasPlazoPago = exports.PersonType = exports.ReceiptMethodPayment = exports.ReceiptStatus = exports.PolizaStatus = exports.StatusSiniestro = void 0;
|
|
4
4
|
var StatusSiniestro;
|
|
5
5
|
(function (StatusSiniestro) {
|
|
6
6
|
StatusSiniestro["LIQUIDADO"] = "liquidado";
|
|
@@ -28,4 +28,14 @@ var ReceiptMethodPayment;
|
|
|
28
28
|
ReceiptMethodPayment["TARJETA_CREDITO"] = "tarjeta_credito";
|
|
29
29
|
ReceiptMethodPayment["TARJETA_DEBITO"] = "tarjeta_debito";
|
|
30
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 = {}));
|
|
31
41
|
//# sourceMappingURL=sales.enum.js.map
|
|
@@ -1 +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,mCAAmB,CAAA;IACnB,qCAAqB,CAAA;IACrB,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"}
|
|
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,mCAAmB,CAAA;IACnB,qCAAqB,CAAA;IACrB,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,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.ClientSource = void 0;
|
|
13
|
+
const database_1 = require("../../../../common/database");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
17
|
+
let ClientSource = class ClientSource extends database_1.BaseEntity {
|
|
18
|
+
name;
|
|
19
|
+
isDefault;
|
|
20
|
+
};
|
|
21
|
+
exports.ClientSource = ClientSource;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Name of the Client source', minLength: 3 }),
|
|
24
|
+
(0, class_validator_1.MinLength)(3),
|
|
25
|
+
(0, typeorm_1.Column)({ unique: true }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], ClientSource.prototype, "name", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is this the default Client source?', default: false }),
|
|
30
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
31
|
+
__metadata("design:type", Boolean)
|
|
32
|
+
], ClientSource.prototype, "isDefault", void 0);
|
|
33
|
+
exports.ClientSource = ClientSource = __decorate([
|
|
34
|
+
(0, typeorm_1.Entity)()
|
|
35
|
+
], ClientSource);
|
|
36
|
+
//# sourceMappingURL=client_sources.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client_sources.entity.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/common/client_sources.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0DAAyD;AACzD,qDAA4C;AAC5C,qCAAyC;AACzC,6CAA8C;AAGvC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,qBAAU;IAI1C,IAAI,CAAS;IAIb,SAAS,CAAU;CACpB,CAAA;AATY,oCAAY;AAIvB;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,2BAA2B,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IACrF,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;0CACZ;AAIb;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,oCAAoC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IACjG,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;+CACR;uBARR,YAAY;IADxB,IAAA,gBAAM,GAAE;GACI,YAAY,CASxB"}
|
|
@@ -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.ClientType = void 0;
|
|
13
|
+
const database_1 = require("../../../../common/database");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
17
|
+
let ClientType = class ClientType extends database_1.BaseEntity {
|
|
18
|
+
name;
|
|
19
|
+
isDefault;
|
|
20
|
+
};
|
|
21
|
+
exports.ClientType = ClientType;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Name of the Client type', minLength: 3 }),
|
|
24
|
+
(0, class_validator_1.MinLength)(3),
|
|
25
|
+
(0, typeorm_1.Column)({ unique: true }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], ClientType.prototype, "name", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is this the default Client type?', default: false }),
|
|
30
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
31
|
+
__metadata("design:type", Boolean)
|
|
32
|
+
], ClientType.prototype, "isDefault", void 0);
|
|
33
|
+
exports.ClientType = ClientType = __decorate([
|
|
34
|
+
(0, typeorm_1.Entity)()
|
|
35
|
+
], ClientType);
|
|
36
|
+
//# sourceMappingURL=client_types.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client_types.entity.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/common/client_types.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0DAAyD;AACzD,qDAA4C;AAC5C,qCAAyC;AACzC,6CAA8C;AAGvC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,qBAAU;IAIxC,IAAI,CAAS;IAIb,SAAS,CAAU;CACpB,CAAA;AATY,gCAAU;AAIrB;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,yBAAyB,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IACnF,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;wCACZ;AAIb;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,kCAAkC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC/F,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;6CACR;qBARR,UAAU;IADtB,IAAA,gBAAM,GAAE;GACI,UAAU,CAStB"}
|
|
@@ -16,6 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./contact_email.entity"), exports);
|
|
18
18
|
__exportStar(require("./contact_phone.entity"), exports);
|
|
19
|
-
__exportStar(require("
|
|
20
|
-
__exportStar(require("
|
|
19
|
+
__exportStar(require("../common/client_types.entity"), exports);
|
|
20
|
+
__exportStar(require("../common/client_sources.entity"), exports);
|
|
21
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/contact/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,yDAAuC;AACvC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/contact/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,yDAAuC;AACvC,gEAA8C;AAC9C,kEAAgD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseEntity } from "typeorm";
|
|
2
|
+
import { Poliza } from "../../../sales/poliza.entity";
|
|
3
|
+
import { BeneficiaryPerson } from "entities/sales/beneficiarios/person.entity";
|
|
4
|
+
export declare class PolizaBeneficiary extends BaseEntity {
|
|
5
|
+
id?: string;
|
|
6
|
+
polizaId: string;
|
|
7
|
+
beneficiaryId: string;
|
|
8
|
+
relation: string;
|
|
9
|
+
percentage: number;
|
|
10
|
+
poliza: Poliza;
|
|
11
|
+
beneficiary: BeneficiaryPerson;
|
|
12
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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.PolizaBeneficiary = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const poliza_entity_1 = require("../../../sales/poliza.entity");
|
|
16
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
17
|
+
const person_entity_1 = require("entities/sales/beneficiarios/person.entity");
|
|
18
|
+
let PolizaBeneficiary = class PolizaBeneficiary extends typeorm_1.BaseEntity {
|
|
19
|
+
id;
|
|
20
|
+
polizaId;
|
|
21
|
+
beneficiaryId;
|
|
22
|
+
relation;
|
|
23
|
+
percentage;
|
|
24
|
+
poliza;
|
|
25
|
+
beneficiary;
|
|
26
|
+
};
|
|
27
|
+
exports.PolizaBeneficiary = PolizaBeneficiary;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'UUID of the policy beneficiary', format: 'uuid' }),
|
|
30
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], PolizaBeneficiary.prototype, "id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'ID of the associated policy' }),
|
|
35
|
+
(0, typeorm_1.Column)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], PolizaBeneficiary.prototype, "polizaId", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'ID of the associated beneficiary', format: 'uuid' }),
|
|
40
|
+
(0, typeorm_1.Column)({ type: "uuid" }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], PolizaBeneficiary.prototype, "beneficiaryId", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Relation description or type', required: false }),
|
|
45
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], PolizaBeneficiary.prototype, "relation", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, swagger_1.ApiProperty)({ type: Number, description: 'Distribution percentage', required: false }),
|
|
50
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], PolizaBeneficiary.prototype, "percentage", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_transformer_1.Exclude)(),
|
|
55
|
+
(0, swagger_1.ApiProperty)({ type: () => poliza_entity_1.Poliza, description: 'Policy entity associated' }),
|
|
56
|
+
(0, typeorm_1.ManyToOne)(() => poliza_entity_1.Poliza, poliza => poliza.beneficiaries, {
|
|
57
|
+
onDelete: "CASCADE",
|
|
58
|
+
onUpdate: "CASCADE",
|
|
59
|
+
}),
|
|
60
|
+
__metadata("design:type", poliza_entity_1.Poliza)
|
|
61
|
+
], PolizaBeneficiary.prototype, "poliza", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, swagger_1.ApiProperty)({ type: () => person_entity_1.BeneficiaryPerson, description: 'Beneficiary person associated' }),
|
|
64
|
+
(0, typeorm_1.ManyToOne)(() => person_entity_1.BeneficiaryPerson, {
|
|
65
|
+
onDelete: "CASCADE",
|
|
66
|
+
onUpdate: "CASCADE",
|
|
67
|
+
}),
|
|
68
|
+
__metadata("design:type", person_entity_1.BeneficiaryPerson)
|
|
69
|
+
], PolizaBeneficiary.prototype, "beneficiary", void 0);
|
|
70
|
+
exports.PolizaBeneficiary = PolizaBeneficiary = __decorate([
|
|
71
|
+
(0, typeorm_1.Entity)()
|
|
72
|
+
], PolizaBeneficiary);
|
|
73
|
+
//# sourceMappingURL=poliza_beneficiary.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"poliza_beneficiary.entity.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/poliza/poliza_beneficiary.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAwF;AACxF,yDAA4C;AAC5C,gEAAsD;AACtD,6CAA8C;AAC9C,8EAA+E;AAGxE,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,oBAAU;IAG/C,EAAE,CAAU;IAIZ,QAAQ,CAAS;IAIjB,aAAa,CAAS;IAItB,QAAQ,CAAS;IAIjB,UAAU,CAAS;IAQZ,MAAM,CAAS;IAOf,WAAW,CAAoB;CACvC,CAAA;AAnCY,8CAAiB;AAG5B;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,gCAAgC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC5F,IAAA,gCAAsB,EAAC,MAAM,CAAC;;6CACnB;AAIZ;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IACzE,IAAA,gBAAM,GAAE;;mDACQ;AAIjB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,kCAAkC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC9F,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wDACH;AAItB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,8BAA8B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC3F,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACV;AAIjB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,yBAAyB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACtF,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACR;AAQZ;IANN,IAAA,2BAAO,GAAE;IACT,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,sBAAM,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;IAC5E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,aAAa,EAAE;QACvD,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACa,sBAAM;iDAAC;AAOf;IALN,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,iCAAiB,EAAE,WAAW,EAAE,+BAA+B,EAAE,CAAC;IAC5F,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,iCAAiB,EAAE;QAClC,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACkB,iCAAiB;sDAAC;4BAlC3B,iBAAiB;IAD7B,IAAA,gBAAM,GAAE;GACI,iBAAiB,CAmC7B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseEntityWithUser } from "../../../common/database";
|
|
2
|
+
export declare class BeneficiaryPerson extends BaseEntityWithUser {
|
|
3
|
+
codigo?: number;
|
|
4
|
+
fullName?: string;
|
|
5
|
+
firstName?: string;
|
|
6
|
+
lastName?: string;
|
|
7
|
+
seniorityDate: Date;
|
|
8
|
+
policyPlan?: string;
|
|
9
|
+
movementDescription?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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.BeneficiaryPerson = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const database_1 = require("../../../common/database");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
let BeneficiaryPerson = class BeneficiaryPerson extends database_1.BaseEntityWithUser {
|
|
17
|
+
codigo;
|
|
18
|
+
fullName;
|
|
19
|
+
firstName;
|
|
20
|
+
lastName;
|
|
21
|
+
seniorityDate;
|
|
22
|
+
policyPlan;
|
|
23
|
+
movementDescription;
|
|
24
|
+
};
|
|
25
|
+
exports.BeneficiaryPerson = BeneficiaryPerson;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)({ type: Number, description: 'Codigo de cliente', required: false }),
|
|
28
|
+
(0, typeorm_1.Column)({ name: "codigo", nullable: true }),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], BeneficiaryPerson.prototype, "codigo", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Full name of the contact', required: false }),
|
|
33
|
+
(0, typeorm_1.Column)({ length: 100, nullable: true }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], BeneficiaryPerson.prototype, "fullName", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'First name of the contact', required: false }),
|
|
38
|
+
(0, typeorm_1.Column)({ length: 50, nullable: true }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], BeneficiaryPerson.prototype, "firstName", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Last name of the contact', required: false }),
|
|
43
|
+
(0, typeorm_1.Column)({ length: 50, nullable: true }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], BeneficiaryPerson.prototype, "lastName", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, swagger_1.ApiProperty)({ type: Date, description: 'Seniority date', required: false }),
|
|
48
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
49
|
+
__metadata("design:type", Date)
|
|
50
|
+
], BeneficiaryPerson.prototype, "seniorityDate", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Policy plan', required: false }),
|
|
53
|
+
(0, typeorm_1.Column)({ length: 50, nullable: true }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], BeneficiaryPerson.prototype, "policyPlan", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Description of the movement', required: false }),
|
|
58
|
+
(0, typeorm_1.Column)({ length: 50, nullable: true }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], BeneficiaryPerson.prototype, "movementDescription", void 0);
|
|
61
|
+
exports.BeneficiaryPerson = BeneficiaryPerson = __decorate([
|
|
62
|
+
(0, typeorm_1.Entity)()
|
|
63
|
+
], BeneficiaryPerson);
|
|
64
|
+
//# sourceMappingURL=person.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"person.entity.js","sourceRoot":"","sources":["../../../../src/entities/sales/beneficiarios/person.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,uDAA8D;AAC9D,qCAAyC;AAGlC,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,6BAAkB;IAGvD,MAAM,CAAU;IAKhB,QAAQ,CAAU;IAIlB,SAAS,CAAU;IAInB,QAAQ,CAAU;IAKlB,aAAa,CAAO;IAIpB,UAAU,CAAU;IAIpB,mBAAmB,CAAU;CAC9B,CAAA;AA9BY,8CAAiB;AAG5B;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,mBAAmB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChF,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDAC3B;AAKhB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,0BAA0B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACvF,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACtB;AAIlB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,2BAA2B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACxF,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACpB;AAInB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,0BAA0B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACvF,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACrB;AAKlB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,gBAAgB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC3E,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACZ,IAAI;wDAAC;AAIpB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC1E,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACnB;AAIpB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,6BAA6B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC1F,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8DACV;4BA7BlB,iBAAiB;IAD7B,IAAA,gBAAM,GAAE;GACI,iBAAiB,CA8B7B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseEntityWithUser } from "../../../common/database";
|
|
2
|
+
import { Poliza } from "../poliza.entity";
|
|
3
|
+
export declare class BeneficiaryVehicle extends BaseEntityWithUser {
|
|
4
|
+
description: string;
|
|
5
|
+
serial?: string;
|
|
6
|
+
model?: string;
|
|
7
|
+
motor?: string;
|
|
8
|
+
plates?: string;
|
|
9
|
+
usage?: string;
|
|
10
|
+
circulatesIn?: string;
|
|
11
|
+
regularDriver?: string;
|
|
12
|
+
regularDriverAge?: number;
|
|
13
|
+
preferredBeneficiary?: string;
|
|
14
|
+
poliza: Poliza;
|
|
15
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
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.BeneficiaryVehicle = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const database_1 = require("../../../common/database");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
const poliza_entity_1 = require("../poliza.entity");
|
|
17
|
+
let BeneficiaryVehicle = class BeneficiaryVehicle extends database_1.BaseEntityWithUser {
|
|
18
|
+
description;
|
|
19
|
+
serial;
|
|
20
|
+
model;
|
|
21
|
+
motor;
|
|
22
|
+
plates;
|
|
23
|
+
usage;
|
|
24
|
+
circulatesIn;
|
|
25
|
+
regularDriver;
|
|
26
|
+
regularDriverAge;
|
|
27
|
+
preferredBeneficiary;
|
|
28
|
+
poliza;
|
|
29
|
+
};
|
|
30
|
+
exports.BeneficiaryVehicle = BeneficiaryVehicle;
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Description of the vehicle', required: false, nullable: true }),
|
|
33
|
+
(0, typeorm_1.Column)({ type: "text" }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], BeneficiaryVehicle.prototype, "description", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Serial', required: false }),
|
|
38
|
+
(0, typeorm_1.Column)({ length: 55, nullable: true }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], BeneficiaryVehicle.prototype, "serial", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Modelo del vehículo', required: false }),
|
|
43
|
+
(0, typeorm_1.Column)({ length: 55, nullable: true }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], BeneficiaryVehicle.prototype, "model", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Motor del vehículo', required: false }),
|
|
48
|
+
(0, typeorm_1.Column)({ length: 55, nullable: true }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], BeneficiaryVehicle.prototype, "motor", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Placas del vehículo', required: false }),
|
|
53
|
+
(0, typeorm_1.Column)({ length: 20, nullable: true }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], BeneficiaryVehicle.prototype, "plates", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Uso', required: false }),
|
|
58
|
+
(0, typeorm_1.Column)({ length: 50, nullable: true }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], BeneficiaryVehicle.prototype, "usage", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Circula En', required: false }),
|
|
63
|
+
(0, typeorm_1.Column)({ length: 150, nullable: true }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], BeneficiaryVehicle.prototype, "circulatesIn", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Conductor Habitual', required: false }),
|
|
68
|
+
(0, typeorm_1.Column)({ length: 255, nullable: true }),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], BeneficiaryVehicle.prototype, "regularDriver", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, swagger_1.ApiProperty)({ type: Number, description: 'Edad del Conductor Habitual', required: false }),
|
|
73
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
74
|
+
__metadata("design:type", Number)
|
|
75
|
+
], BeneficiaryVehicle.prototype, "regularDriverAge", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Beneficiario Preferente', required: false }),
|
|
78
|
+
(0, typeorm_1.Column)({ length: 255, nullable: true }),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], BeneficiaryVehicle.prototype, "preferredBeneficiary", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, swagger_1.ApiProperty)({ type: () => poliza_entity_1.Poliza, description: 'Policy', required: false }),
|
|
83
|
+
(0, typeorm_1.ManyToOne)(() => poliza_entity_1.Poliza, {
|
|
84
|
+
onDelete: "CASCADE",
|
|
85
|
+
onUpdate: "CASCADE",
|
|
86
|
+
nullable: true,
|
|
87
|
+
}),
|
|
88
|
+
__metadata("design:type", poliza_entity_1.Poliza)
|
|
89
|
+
], BeneficiaryVehicle.prototype, "poliza", void 0);
|
|
90
|
+
exports.BeneficiaryVehicle = BeneficiaryVehicle = __decorate([
|
|
91
|
+
(0, typeorm_1.Entity)()
|
|
92
|
+
], BeneficiaryVehicle);
|
|
93
|
+
//# sourceMappingURL=vehicle.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vehicle.entity.js","sourceRoot":"","sources":["../../../../src/entities/sales/beneficiarios/vehicle.entity.ts"],"names":[],"mappings":"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"}
|