easywork-common-lib 1.0.1066 → 1.0.1069

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.
@@ -1,5 +1,7 @@
1
1
  import { EntityBase } from "../../../../common/database/base.entity";
2
+ import { Group } from "../../../group.entity";
2
3
  export declare class ClientSource extends EntityBase {
3
4
  name: string;
4
5
  isDefault: boolean;
6
+ group?: Group;
5
7
  }
@@ -14,22 +14,41 @@ 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
+ const group_entity_1 = require("../../../group.entity");
17
18
  let ClientSource = class ClientSource extends base_entity_1.EntityBase {
18
19
  name;
19
20
  isDefault;
21
+ group;
20
22
  };
21
23
  exports.ClientSource = ClientSource;
22
24
  __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, swagger_1.ApiProperty)({ type: String, description: "Nombre", minLength: 3 }),
26
+ (0, class_validator_1.MinLength)(2),
25
27
  (0, typeorm_1.Column)({ unique: true }),
26
28
  __metadata("design:type", String)
27
29
  ], ClientSource.prototype, "name", void 0);
28
30
  __decorate([
29
- (0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is this the default Client source?', default: false }),
31
+ (0, swagger_1.ApiProperty)({
32
+ type: Boolean,
33
+ description: "¿Es la fuente de cliente por defecto?",
34
+ default: false,
35
+ }),
30
36
  (0, typeorm_1.Column)({ default: false }),
31
37
  __metadata("design:type", Boolean)
32
38
  ], ClientSource.prototype, "isDefault", void 0);
39
+ __decorate([
40
+ (0, swagger_1.ApiProperty)({
41
+ type: () => group_entity_1.Group,
42
+ description: "Grupo",
43
+ required: false,
44
+ }),
45
+ (0, typeorm_1.ManyToOne)(() => group_entity_1.Group, {
46
+ onDelete: "SET NULL",
47
+ onUpdate: "CASCADE",
48
+ nullable: true,
49
+ }),
50
+ __metadata("design:type", group_entity_1.Group)
51
+ ], ClientSource.prototype, "group", void 0);
33
52
  exports.ClientSource = ClientSource = __decorate([
34
53
  (0, typeorm_1.Entity)()
35
54
  ], ClientSource);
@@ -1 +1 @@
1
- {"version":3,"file":"client_sources.entity.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/common/client_sources.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yEAAqE;AACrE,qDAA4C;AAC5C,qCAAyC;AACzC,6CAA8C;AAGvC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,wBAAU;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"}
1
+ {"version":3,"file":"client_sources.entity.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/common/client_sources.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yEAAqE;AACrE,qDAA4C;AAC5C,qCAAoD;AACpD,6CAA8C;AAC9C,wDAA8C;AAGvC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,wBAAU;IAI1C,IAAI,CAAS;IAQb,SAAS,CAAU;IAYnB,KAAK,CAAS;CACf,CAAA;AAzBY,oCAAY;AAIvB;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IAClE,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;0CACZ;AAQb;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,uCAAuC;QACpD,OAAO,EAAE,KAAK;KACf,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;+CACR;AAYnB;IAVC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,GAAG,EAAE,CAAC,oBAAK;QACjB,WAAW,EAAE,OAAO;QACpB,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE;QACtB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;8BACM,oBAAK;2CAAC;uBAxBH,YAAY;IADxB,IAAA,gBAAM,GAAE;GACI,YAAY,CAyBxB"}
@@ -20,13 +20,17 @@ let ClientType = class ClientType extends base_entity_1.EntityBase {
20
20
  };
21
21
  exports.ClientType = ClientType;
22
22
  __decorate([
23
- (0, swagger_1.ApiProperty)({ type: String, description: 'Name of the Client type', minLength: 3 }),
23
+ (0, swagger_1.ApiProperty)({ type: String, description: "Nombre", minLength: 3 }),
24
24
  (0, class_validator_1.MinLength)(3),
25
25
  (0, typeorm_1.Column)({ unique: true }),
26
26
  __metadata("design:type", String)
27
27
  ], ClientType.prototype, "name", void 0);
28
28
  __decorate([
29
- (0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is this the default Client type?', default: false }),
29
+ (0, swagger_1.ApiProperty)({
30
+ type: Boolean,
31
+ description: "¿Es el tipo de cliente por defecto?",
32
+ default: false,
33
+ }),
30
34
  (0, typeorm_1.Column)({ default: false }),
31
35
  __metadata("design:type", Boolean)
32
36
  ], ClientType.prototype, "isDefault", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"client_types.entity.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/common/client_types.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yEAAqE;AACrE,qDAA4C;AAC5C,qCAAyC;AACzC,6CAA8C;AAGvC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,wBAAU;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"}
1
+ {"version":3,"file":"client_types.entity.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/common/client_types.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yEAAqE;AACrE,qDAA4C;AAC5C,qCAAyC;AACzC,6CAA8C;AAGvC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,wBAAU;IAIxC,IAAI,CAAS;IAQb,SAAS,CAAU;CACpB,CAAA;AAbY,gCAAU;AAIrB;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IAClE,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;wCACZ;AAQb;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,qCAAqC;QAClD,OAAO,EAAE,KAAK;KACf,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;6CACR;qBAZR,UAAU;IADtB,IAAA,gBAAM,GAAE;GACI,UAAU,CAatB"}
@@ -0,0 +1,35 @@
1
+ export declare class AppModule {
2
+ }
3
+ import { Repository } from 'typeorm';
4
+ import { ContactAuthorizationService, ResourceAuthorizationFactory, PermissionAction } from 'easywork-common-lib/modules';
5
+ import { Contact, SubGroup, User } from 'easywork-common-lib/entities';
6
+ export declare class ContactService {
7
+ private contactRepository;
8
+ private subGroupRepository;
9
+ private readonly contactAuthService;
10
+ private readonly authFactory;
11
+ constructor(contactRepository: Repository<Contact>, subGroupRepository: Repository<SubGroup>, contactAuthService: ContactAuthorizationService, authFactory: ResourceAuthorizationFactory);
12
+ getAllContacts(user: User): Promise<Contact[]>;
13
+ getContactById(id: string, user: User): Promise<Contact>;
14
+ }
15
+ export declare class PoliciesService {
16
+ private subGroupRepository;
17
+ private readonly authFactory;
18
+ constructor(subGroupRepository: Repository<SubGroup>, authFactory: ResourceAuthorizationFactory);
19
+ getAllPolicies(user: User): Promise<any>;
20
+ }
21
+ import { AuthorizationService } from 'easywork-common-lib/modules';
22
+ export declare class GenericResourceService {
23
+ private readonly authService;
24
+ constructor(authService: AuthorizationService);
25
+ checkUserAccess(user: User, action: PermissionAction, resource: string): Promise<any>;
26
+ validateMultiplePermissions(user: User): Promise<any>;
27
+ }
28
+ export declare class ContactController {
29
+ private readonly contactService;
30
+ constructor(contactService: ContactService);
31
+ getAllContacts(user: User): Promise<Contact[]>;
32
+ getContactById(id: string, user: User): Promise<Contact>;
33
+ }
34
+ export declare class ContactModule {
35
+ }
@@ -0,0 +1,180 @@
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
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ var _a, _b, _c, _d, _e, _f;
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ContactModule = exports.ContactController = exports.GenericResourceService = exports.PoliciesService = exports.ContactService = exports.AppModule = void 0;
17
+ const common_1 = require("@nestjs/common");
18
+ const modules_1 = require("easywork-common-lib/modules");
19
+ let AppModule = class AppModule {
20
+ };
21
+ exports.AppModule = AppModule;
22
+ exports.AppModule = AppModule = __decorate([
23
+ (0, common_1.Module)({
24
+ imports: [
25
+ modules_1.AuthorizationModule,
26
+ modules_1.AuthorizationModule.forRoot({
27
+ cache: {
28
+ ttl: 600,
29
+ max: 2000,
30
+ },
31
+ }),
32
+ ],
33
+ })
34
+ ], AppModule);
35
+ const common_2 = require("@nestjs/common");
36
+ const typeorm_1 = require("typeorm");
37
+ const typeorm_2 = require("@nestjs/typeorm");
38
+ const modules_2 = require("easywork-common-lib/modules");
39
+ const entities_1 = require("easywork-common-lib/entities");
40
+ let ContactService = class ContactService {
41
+ contactRepository;
42
+ subGroupRepository;
43
+ contactAuthService;
44
+ authFactory;
45
+ constructor(contactRepository, subGroupRepository, contactAuthService, authFactory) {
46
+ this.contactRepository = contactRepository;
47
+ this.subGroupRepository = subGroupRepository;
48
+ this.contactAuthService = contactAuthService;
49
+ this.authFactory = authFactory;
50
+ }
51
+ async getAllContacts(user) {
52
+ const queryBuilder = this.contactRepository
53
+ .createQueryBuilder('contact');
54
+ await this.contactAuthService.applyContactPermissionFilters(queryBuilder, user, {
55
+ action: modules_2.PermissionAction.READ,
56
+ subGroupRepository: this.subGroupRepository,
57
+ });
58
+ return queryBuilder.getMany();
59
+ }
60
+ async getContactById(id, user) {
61
+ const contact = await this.contactRepository.findOne({ where: { id } });
62
+ if (!contact) {
63
+ throw new Error('Contact not found');
64
+ }
65
+ await this.contactAuthService.validateContactAccess(user, modules_2.PermissionAction.READ, contact, this.subGroupRepository);
66
+ return contact;
67
+ }
68
+ };
69
+ exports.ContactService = ContactService;
70
+ exports.ContactService = ContactService = __decorate([
71
+ (0, common_2.Injectable)(),
72
+ __param(0, (0, typeorm_2.InjectRepository)(entities_1.Contact)),
73
+ __param(1, (0, typeorm_2.InjectRepository)(entities_1.SubGroup)),
74
+ __metadata("design:paramtypes", [typeorm_1.Repository,
75
+ typeorm_1.Repository, typeof (_a = typeof modules_2.ContactAuthorizationService !== "undefined" && modules_2.ContactAuthorizationService) === "function" ? _a : Object, typeof (_b = typeof modules_2.ResourceAuthorizationFactory !== "undefined" && modules_2.ResourceAuthorizationFactory) === "function" ? _b : Object])
76
+ ], ContactService);
77
+ let PoliciesService = class PoliciesService {
78
+ subGroupRepository;
79
+ authFactory;
80
+ constructor(subGroupRepository, authFactory) {
81
+ this.subGroupRepository = subGroupRepository;
82
+ this.authFactory = authFactory;
83
+ }
84
+ async getAllPolicies(user) {
85
+ const queryBuilder = this.policyRepository
86
+ .createQueryBuilder('policy');
87
+ const policyAuth = this.authFactory.forPolicy(this.subGroupRepository);
88
+ await policyAuth.applyPermissionFilters(queryBuilder, user, {
89
+ action: modules_2.PermissionAction.READ,
90
+ });
91
+ return queryBuilder.getMany();
92
+ }
93
+ };
94
+ exports.PoliciesService = PoliciesService;
95
+ exports.PoliciesService = PoliciesService = __decorate([
96
+ (0, common_2.Injectable)(),
97
+ __param(0, (0, typeorm_2.InjectRepository)(entities_1.SubGroup)),
98
+ __metadata("design:paramtypes", [typeorm_1.Repository, typeof (_c = typeof modules_2.ResourceAuthorizationFactory !== "undefined" && modules_2.ResourceAuthorizationFactory) === "function" ? _c : Object])
99
+ ], PoliciesService);
100
+ const modules_3 = require("easywork-common-lib/modules");
101
+ let GenericResourceService = class GenericResourceService {
102
+ authService;
103
+ constructor(authService) {
104
+ this.authService = authService;
105
+ }
106
+ async checkUserAccess(user, action, resource) {
107
+ const result = await this.authService.canAccess({
108
+ user,
109
+ action,
110
+ resource,
111
+ });
112
+ return result.allowed;
113
+ }
114
+ async validateMultiplePermissions(user) {
115
+ const results = await this.authService.canAccessMultiple([
116
+ { user, action: modules_2.PermissionAction.READ, resource: 'contact' },
117
+ { user, action: modules_2.PermissionAction.CREATE, resource: 'lead' },
118
+ { user, action: modules_2.PermissionAction.UPDATE, resource: 'policy' },
119
+ ]);
120
+ return results;
121
+ }
122
+ };
123
+ exports.GenericResourceService = GenericResourceService;
124
+ exports.GenericResourceService = GenericResourceService = __decorate([
125
+ (0, common_2.Injectable)(),
126
+ __metadata("design:paramtypes", [typeof (_d = typeof modules_3.AuthorizationService !== "undefined" && modules_3.AuthorizationService) === "function" ? _d : Object])
127
+ ], GenericResourceService);
128
+ const common_3 = require("@nestjs/common");
129
+ const modules_4 = require("easywork-common-lib/modules");
130
+ const your_auth_decorator_1 = require("your-auth-decorator");
131
+ let ContactController = class ContactController {
132
+ contactService;
133
+ constructor(contactService) {
134
+ this.contactService = contactService;
135
+ }
136
+ async getAllContacts(user) {
137
+ return this.contactService.getAllContacts(user);
138
+ }
139
+ async getContactById(id, user) {
140
+ return this.contactService.getContactById(id, user);
141
+ }
142
+ };
143
+ exports.ContactController = ContactController;
144
+ __decorate([
145
+ (0, common_3.Get)(),
146
+ __param(0, (0, your_auth_decorator_1.CurrentUser)()),
147
+ __metadata("design:type", Function),
148
+ __metadata("design:paramtypes", [typeof (_e = typeof entities_1.User !== "undefined" && entities_1.User) === "function" ? _e : Object]),
149
+ __metadata("design:returntype", Promise)
150
+ ], ContactController.prototype, "getAllContacts", null);
151
+ __decorate([
152
+ (0, common_3.Get)(':id'),
153
+ __param(0, (0, common_3.Param)('id')),
154
+ __param(1, (0, your_auth_decorator_1.CurrentUser)()),
155
+ __metadata("design:type", Function),
156
+ __metadata("design:paramtypes", [String, typeof (_f = typeof entities_1.User !== "undefined" && entities_1.User) === "function" ? _f : Object]),
157
+ __metadata("design:returntype", Promise)
158
+ ], ContactController.prototype, "getContactById", null);
159
+ exports.ContactController = ContactController = __decorate([
160
+ (0, common_3.Controller)('contacts'),
161
+ (0, common_3.UseGuards)(modules_4.EnhancedRolesPolicyGuard),
162
+ __metadata("design:paramtypes", [ContactService])
163
+ ], ContactController);
164
+ let ContactModule = class ContactModule {
165
+ };
166
+ exports.ContactModule = ContactModule;
167
+ exports.ContactModule = ContactModule = __decorate([
168
+ (0, common_1.Module)({
169
+ imports: [
170
+ TypeOrmModule.forFeature([entities_1.Contact, entities_1.Lead, Policy]),
171
+ ],
172
+ controllers: [ContactController],
173
+ providers: [
174
+ ContactService,
175
+ PoliciesService,
176
+ GenericResourceService,
177
+ ],
178
+ })
179
+ ], ContactModule);
180
+ //# sourceMappingURL=usage-example.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage-example.js","sourceRoot":"","sources":["../../../src/modules/authorization/usage-example.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAiBA,2CAAwC;AACxC,yDAAkE;AAoB3D,IAAM,SAAS,GAAf,MAAM,SAAS;CAAG,CAAA;AAAZ,8BAAS;oBAAT,SAAS;IAlBrB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YAEP,6BAAmB;YAGnB,6BAAmB,CAAC,OA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A,YAAG,GAAE;IACgB,WAAA,IAAA,iCAAW,GAAE,CAAA;;yDAAO,eAAI,oBAAJ,eAAI;;uDAE7C;AAGK;IADL,IAAA,YAAG,EAAC,KAAK,CAAC;IAER,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IACX,WAAA,IAAA,iCAAW,GAAE,CAAA;;iEAAO,eAAI,oBAAJ,eAAI;;uDAG1B;4BAdU,iBAAiB;IAF7B,IAAA,mBAAU,EAAC,UAAU,CAAC;IACtB,IAAA,kBAAS,EAAC,kCAAwB,CAAC;qCAEW,cAAc;GADhD,iBAAiB,CAe7B;AAoBM,IAAM,aAAa,GAAnB,MAAM,aAAa;CAAG,CAAA;AAAhB,sCAAa;wBAAb,aAAa;IAbzB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,aAAa,CAAC,UAAU,CAAC,CAAC,kBAAO,EAAE,eAAI,EAAE,MAAM,CAAC,CAAC;SAElD;QACD,WAAW,EAAE,CAAC,iBAAiB,CAAC;QAChC,SAAS,EAAE;YACT,cAAc;YACd,eAAe;YACf,sBAAsB;SAEvB;KACF,CAAC;GACW,aAAa,CAAG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easywork-common-lib",
3
- "version": "1.0.1066",
3
+ "version": "1.0.1069",
4
4
  "description": "Librería común de Easywork",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",