easywork-common-lib 1.0.1149 → 1.0.1151
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/entities/subscriptions/feature.d.ts +15 -0
- package/dist/entities/subscriptions/feature.js +64 -0
- package/dist/entities/subscriptions/feature.js.map +1 -0
- package/dist/entities/subscriptions/plan-feature.d.ts +8 -0
- package/dist/entities/subscriptions/plan-feature.js +44 -0
- package/dist/entities/subscriptions/plan-feature.js.map +1 -0
- package/dist/entities/tools/mail/mail.entity.d.ts +11 -1
- package/dist/entities/tools/mail/mail.entity.js.map +1 -1
- package/dist/entities/user-group.entity.d.ts +1 -5
- package/dist/entities/user-group.entity.js +7 -41
- package/dist/entities/user-group.entity.js.map +1 -1
- package/dist/grpc/drive/drive.proto +290 -290
- package/dist/grpc/drive/leads.proto +114 -114
- package/dist/modules/authorization/authorization.module.d.ts +2 -2
- package/dist/modules/authorization/services/resource-access-filter.service.js +21 -21
- package/package.json +54 -54
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment_other_referrals.d.ts +0 -9
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment_other_referrals.js +0 -64
- package/dist/entities/helpers/sales/agent/recruitment/h_agent_recruitment_other_referrals.js.map +0 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseEntityOnlyEssential } from '../../common/database/base.entity';
|
|
2
|
+
import { PlanFeature } from './plan-feature';
|
|
3
|
+
export declare enum FeatureType {
|
|
4
|
+
BOOLEAN = "boolean",
|
|
5
|
+
LIMIT = "limit",
|
|
6
|
+
TEXT = "text"
|
|
7
|
+
}
|
|
8
|
+
export declare class Feature extends BaseEntityOnlyEssential {
|
|
9
|
+
key: string;
|
|
10
|
+
name: string;
|
|
11
|
+
description: string;
|
|
12
|
+
category: string;
|
|
13
|
+
type: FeatureType;
|
|
14
|
+
planFeatures: PlanFeature[];
|
|
15
|
+
}
|
|
@@ -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.Feature = exports.FeatureType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const base_entity_1 = require("../../common/database/base.entity");
|
|
15
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
16
|
+
const plan_feature_1 = require("./plan-feature");
|
|
17
|
+
var FeatureType;
|
|
18
|
+
(function (FeatureType) {
|
|
19
|
+
FeatureType["BOOLEAN"] = "boolean";
|
|
20
|
+
FeatureType["LIMIT"] = "limit";
|
|
21
|
+
FeatureType["TEXT"] = "text";
|
|
22
|
+
})(FeatureType || (exports.FeatureType = FeatureType = {}));
|
|
23
|
+
let Feature = class Feature extends base_entity_1.BaseEntityOnlyEssential {
|
|
24
|
+
key;
|
|
25
|
+
name;
|
|
26
|
+
description;
|
|
27
|
+
category;
|
|
28
|
+
type;
|
|
29
|
+
planFeatures;
|
|
30
|
+
};
|
|
31
|
+
exports.Feature = Feature;
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, swagger_1.ApiProperty)({ description: 'Nombre único y programático de la característica', example: 'PRO_POLICY_READER' }),
|
|
34
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, unique: true, nullable: false }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], Feature.prototype, "key", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, swagger_1.ApiProperty)({ description: 'Nombre de la característica para mostrar al usuario', example: 'Lector de Pólizas Pro' }),
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], Feature.prototype, "name", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, swagger_1.ApiProperty)({ description: 'Descripción detallada de lo que hace la característica', example: 'Permite analizar y extraer datos de pólizas en formato PDF.' }),
|
|
44
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], Feature.prototype, "description", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, swagger_1.ApiProperty)({ description: 'Categoría para agrupar en la UI', example: 'Reportes' }),
|
|
49
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], Feature.prototype, "category", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, swagger_1.ApiProperty)({ description: 'El tipo de valor que esta característica almacena', enum: FeatureType, example: FeatureType.BOOLEAN }),
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: FeatureType, nullable: false }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], Feature.prototype, "type", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.OneToMany)(() => plan_feature_1.PlanFeature, planFeature => planFeature.feature),
|
|
59
|
+
__metadata("design:type", Array)
|
|
60
|
+
], Feature.prototype, "planFeatures", void 0);
|
|
61
|
+
exports.Feature = Feature = __decorate([
|
|
62
|
+
(0, typeorm_1.Entity)('features')
|
|
63
|
+
], Feature);
|
|
64
|
+
//#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EAAE,iCAAiC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;IACpF,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACxC;AAIjB;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,mDAAmD,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,CAAC,OAAO,EAAE,CAAC;IAClI,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;qCAC3C;AAGlB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAW,EAAE,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC;;6CACrC;kBAtBjB,OAAO;IADnB,IAAA,gBAAM,EAAC,UAAU,CAAC;GACN,OAAO,CAuBnB"}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.PlanFeature = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const plan_entity_1 = require("./plan.entity");
|
|
15
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
16
|
+
const feature_1 = require("./feature");
|
|
17
|
+
let PlanFeature = class PlanFeature {
|
|
18
|
+
id;
|
|
19
|
+
value;
|
|
20
|
+
plan;
|
|
21
|
+
feature;
|
|
22
|
+
};
|
|
23
|
+
exports.PlanFeature = PlanFeature;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], PlanFeature.prototype, "id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, swagger_1.ApiProperty)({ description: 'Valor de la característica para este plan. Puede ser "true", "100", "ilimitado", etc.', example: 'true' }),
|
|
30
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: false }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], PlanFeature.prototype, "value", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.ManyToOne)(() => plan_entity_1.Plan, plan => plan.planFeatures, { onDelete: 'CASCADE' }),
|
|
35
|
+
__metadata("design:type", plan_entity_1.Plan)
|
|
36
|
+
], PlanFeature.prototype, "plan", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.ManyToOne)(() => feature_1.Feature, feature => feature.planFeatures, { onDelete: 'CASCADE', eager: true }),
|
|
39
|
+
__metadata("design:type", feature_1.Feature)
|
|
40
|
+
], PlanFeature.prototype, "feature", void 0);
|
|
41
|
+
exports.PlanFeature = PlanFeature = __decorate([
|
|
42
|
+
(0, typeorm_1.Entity)('plan_features')
|
|
43
|
+
], PlanFeature);
|
|
44
|
+
//# sourceMappingURL=plan-feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan-feature.js","sourceRoot":"","sources":["../../../src/entities/subscriptions/plan-feature.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4E;AAC5E,+CAAqC;AACrC,6CAA8C;AAC9C,uCAAoC;AAG7B,IAAM,WAAW,GAAjB,MAAM,WAAW;IAEtB,EAAE,CAAS;IAIX,KAAK,CAAS;IAGd,IAAI,CAAO;IAGX,OAAO,CAAU;CAClB,CAAA;AAbY,kCAAW;AAEtB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;uCACpB;AAIX;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,uFAAuF,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IACtI,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;0CAC5C;AAGd;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BACpE,kBAAI;yCAAC;AAGX;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,iBAAO,EAAE,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;8BACvF,iBAAO;4CAAC;sBAZN,WAAW;IADvB,IAAA,gBAAM,EAAC,eAAe,CAAC;GACX,WAAW,CAavB"}
|
|
@@ -5,7 +5,17 @@ import { EventCalendar } from '../calendar';
|
|
|
5
5
|
export declare enum MailCRMType {
|
|
6
6
|
CONTACT = "contact",
|
|
7
7
|
LEAD = "lead",
|
|
8
|
-
AGENT = "agent"
|
|
8
|
+
AGENT = "agent",
|
|
9
|
+
POLIZA = "poliza",
|
|
10
|
+
POLIZA_CLAIM = "poliza_claim",
|
|
11
|
+
POLIZA_FUND_RECOVERY = "poliza_fund_recovery",
|
|
12
|
+
POLIZA_REIMBURSEMENT = "poliza_reimbursement",
|
|
13
|
+
POLIZA_SCHEDULING = "poliza_scheduling",
|
|
14
|
+
RECEIPT = "receipt",
|
|
15
|
+
RENEWAL = "renewal",
|
|
16
|
+
POLICY = "policy",
|
|
17
|
+
POLICY_RENEWAL = "policy_renewal",
|
|
18
|
+
TASK = "task"
|
|
9
19
|
}
|
|
10
20
|
export type MailMessageCRMLink = {
|
|
11
21
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mail.entity.js","sourceRoot":"","sources":["../../../../src/entities/tools/mail/mail.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA6H;AAC7H,6CAA8C;AAE9C,qDAA2C;AAC3C,gDAAsC;AACtC,0CAA4C;
|
|
1
|
+
{"version":3,"file":"mail.entity.js","sourceRoot":"","sources":["../../../../src/entities/tools/mail/mail.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA6H;AAC7H,6CAA8C;AAE9C,qDAA2C;AAC3C,gDAAsC;AACtC,0CAA4C;AAiDrC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,oBAAU;IAEzC,EAAE,CAAS;IAIX,QAAQ,CAAW;IAInB,EAAE,CAAgB;IAIlB,SAAS,CAAS;IAIlB,IAAI,CAAS;IAIb,OAAO,CAAS;IAIhB,IAAI,CAAkB;IAItB,OAAO,CAAS;IAIhB,YAAY,CAAO;IAInB,IAAI,CAAkB;IAItB,WAAW,CAA0B;IAIrC,GAAG,CAAuB;IAG1B,OAAO,CAAU;IAGjB,IAAI,CAAQ;IAGZ,KAAK,CAAiB;IAGtB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;CAClB,CAAA;AA9DY,kCAAW;AAEtB;IADC,IAAA,uBAAa,EAAC,SAAS,CAAC;;uCACd;AAIX;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC5D,IAAA,gBAAM,EAAC,EAAE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GAAE;8BACP,IAAI;8CAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;8CAAC;sBA7DN,WAAW;IADvB,IAAA,gBAAM,GAAE;GACI,WAAW,CA8DvB"}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { EntityBase } from '../common/database/base.entity';
|
|
2
|
-
import { User } from './user.entity';
|
|
3
|
-
import { Group } from './group.entity';
|
|
4
2
|
import { Role } from './role.entity';
|
|
5
|
-
export declare class
|
|
6
|
-
user: User;
|
|
7
|
-
group: Group;
|
|
3
|
+
export declare class UserGroupNewRelation extends EntityBase {
|
|
8
4
|
role: Role;
|
|
9
5
|
}
|
|
@@ -9,57 +9,23 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
13
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
12
|
+
exports.UserGroupNewRelation = void 0;
|
|
14
13
|
const typeorm_1 = require("typeorm");
|
|
15
14
|
const base_entity_1 = require("../common/database/base.entity");
|
|
16
|
-
const user_entity_1 = require("./user.entity");
|
|
17
|
-
const group_entity_1 = require("./group.entity");
|
|
18
15
|
const role_entity_1 = require("./role.entity");
|
|
19
|
-
let
|
|
20
|
-
user;
|
|
21
|
-
group;
|
|
16
|
+
let UserGroupNewRelation = class UserGroupNewRelation extends base_entity_1.EntityBase {
|
|
22
17
|
role;
|
|
23
18
|
};
|
|
24
|
-
exports.
|
|
19
|
+
exports.UserGroupNewRelation = UserGroupNewRelation;
|
|
25
20
|
__decorate([
|
|
26
|
-
(0, swagger_1.ApiProperty)({
|
|
27
|
-
type: () => user_entity_1.User,
|
|
28
|
-
description: 'User in the group',
|
|
29
|
-
}),
|
|
30
|
-
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, user => user.userGroups, {
|
|
31
|
-
onDelete: 'CASCADE',
|
|
32
|
-
onUpdate: 'CASCADE',
|
|
33
|
-
}),
|
|
34
|
-
(0, typeorm_1.JoinColumn)(),
|
|
35
|
-
__metadata("design:type", user_entity_1.User)
|
|
36
|
-
], UserGroup.prototype, "user", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, swagger_1.ApiProperty)({
|
|
39
|
-
type: () => group_entity_1.Group,
|
|
40
|
-
description: 'Group where the user belongs',
|
|
41
|
-
}),
|
|
42
|
-
(0, typeorm_1.ManyToOne)(() => group_entity_1.Group, group => group.userGroups, {
|
|
43
|
-
onDelete: 'CASCADE',
|
|
44
|
-
onUpdate: 'CASCADE',
|
|
45
|
-
}),
|
|
46
|
-
(0, typeorm_1.JoinColumn)(),
|
|
47
|
-
__metadata("design:type", group_entity_1.Group)
|
|
48
|
-
], UserGroup.prototype, "group", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, swagger_1.ApiProperty)({
|
|
51
|
-
type: () => role_entity_1.Role,
|
|
52
|
-
description: 'Role assigned to the user in this specific group',
|
|
53
|
-
}),
|
|
54
21
|
(0, typeorm_1.ManyToOne)(() => role_entity_1.Role, {
|
|
55
22
|
onDelete: 'RESTRICT',
|
|
56
23
|
onUpdate: 'CASCADE',
|
|
57
24
|
}),
|
|
58
25
|
(0, typeorm_1.JoinColumn)(),
|
|
59
26
|
__metadata("design:type", role_entity_1.Role)
|
|
60
|
-
],
|
|
61
|
-
exports.
|
|
62
|
-
(0, typeorm_1.Entity)()
|
|
63
|
-
|
|
64
|
-
], UserGroup);
|
|
27
|
+
], UserGroupNewRelation.prototype, "role", void 0);
|
|
28
|
+
exports.UserGroupNewRelation = UserGroupNewRelation = __decorate([
|
|
29
|
+
(0, typeorm_1.Entity)()
|
|
30
|
+
], UserGroupNewRelation);
|
|
65
31
|
//# sourceMappingURL=user-group.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-group.entity.js","sourceRoot":"","sources":["../../src/entities/user-group.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"user-group.entity.js","sourceRoot":"","sources":["../../src/entities/user-group.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAwD;AACxD,gEAA4D;AAG5D,+CAAqC;AAI9B,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,wBAAU;IA4BlD,IAAI,CAAO;CACZ,CAAA;AA7BY,oDAAoB;AA4B/B;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACrB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,GAAE;8BACP,kBAAI;kDAAC;+BA5BA,oBAAoB;IAFhC,IAAA,gBAAM,GAAE;GAEI,oBAAoB,CA6BhC"}
|