easywork-common-lib 1.0.986 → 1.0.987

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,42 +1,43 @@
1
- export * from './app_config/app-config.entity';
2
- export * from './currency.entity';
3
- export * from './drive';
4
- export * from './easyapp/filter-view.entity';
5
- export * from './email.entity';
6
- export * from './group.entity';
7
- export * from './imap-config.entity';
8
- export * from './login-history.entity';
9
- export * from './meeting-comment.entity';
10
- export * from './meeting.entity';
11
- export * from './menu-permissions.entity';
12
- export * from './notifications';
13
- export * from './otp-log.entity';
14
- export * from './permission.entity';
15
- export * from './phone.entity';
16
- export * from './policy';
17
- export * from './profile.entity';
18
- export * from './protocol.entity';
19
- export * from './refresh-token.entity';
20
- export * from './role.entity';
21
- export * from './sales';
22
- export * from './tag.entity';
23
- export * from './user-invitations.entity';
24
- export * from './user.entity';
25
- export * from './company.entity';
26
- export * from './capacitation';
27
- export * from './tools';
28
- export * from './tools/mail/email-signature.entity';
29
- export * from './tools/mail/mailbox-user-access.entity';
30
- export * from './tools/mail/mailbox.entity';
31
- export * from './tools/mail/mail.entity';
32
- export * from './thirdparty/google-webhooks-config.entity';
33
- export * from './thirdparty/google-gmail-watch-record.entity';
34
- export * from './thirdparty/oauth.entity';
35
- export * from './thirdparty/diio-integration.entity';
36
- export * from './thirdparty/wati';
37
- export * from './subscriptions/plan.entity';
38
- export * from './subscriptions/subscription.entity';
39
- export * from './subscriptions/payment-history.entity';
40
- export * from './helpers';
41
- export * from './audit.entity';
42
- export * from './user-change-log.entity';
1
+ export * from "./app_config/app-config.entity";
2
+ export * from "./currency.entity";
3
+ export * from "./drive";
4
+ export * from "./easyapp/filter-view.entity";
5
+ export * from "./email.entity";
6
+ export * from "./group.entity";
7
+ export * from "./imap-config.entity";
8
+ export * from "./login-history.entity";
9
+ export * from "./meeting-comment.entity";
10
+ export * from "./meeting.entity";
11
+ export * from "./menu-permissions.entity";
12
+ export * from "./notifications";
13
+ export * from "./otp-log.entity";
14
+ export * from "./permission.entity";
15
+ export * from "./phone.entity";
16
+ export * from "./policy";
17
+ export * from "./profile.entity";
18
+ export * from "./protocol.entity";
19
+ export * from "./refresh-token.entity";
20
+ export * from "./role.entity";
21
+ export * from "./sales";
22
+ export * from "./tag.entity";
23
+ export * from "./user-invitations.entity";
24
+ export * from "./user.entity";
25
+ export * from "./company.entity";
26
+ export * from "./capacitation";
27
+ export * from "./tools";
28
+ export * from "./tools/mail/email-signature.entity";
29
+ export * from "./tools/mail/mailbox-user-access.entity";
30
+ export * from "./tools/mail/mailbox.entity";
31
+ export * from "./tools/mail/mail.entity";
32
+ export * from "./thirdparty/google-webhooks-config.entity";
33
+ export * from "./thirdparty/google-gmail-watch-record.entity";
34
+ export * from "./thirdparty/oauth.entity";
35
+ export * from "./thirdparty/diio-integration.entity";
36
+ export * from "./thirdparty/wati";
37
+ export * from "./subscriptions/plan.entity";
38
+ export * from "./subscriptions/subscription.entity";
39
+ export * from "./subscriptions/payment-history.entity";
40
+ export * from "./helpers";
41
+ export * from "./audit.entity";
42
+ export * from "./user-change-log.entity";
43
+ export * from "./subgroup.entity";
@@ -56,4 +56,5 @@ __exportStar(require("./subscriptions/payment-history.entity"), exports);
56
56
  __exportStar(require("./helpers"), exports);
57
57
  __exportStar(require("./audit.entity"), exports);
58
58
  __exportStar(require("./user-change-log.entity"), exports);
59
+ __exportStar(require("./subgroup.entity"), exports);
59
60
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C;AAC/C,oDAAkC;AAClC,0CAAwB;AACxB,+DAA6C;AAC7C,iDAA+B;AAC/B,iDAA+B;AAC/B,uDAAqC;AACrC,yDAAuC;AACvC,2DAAyC;AACzC,mDAAiC;AACjC,4DAA0C;AAC1C,kDAAgC;AAChC,mDAAiC;AACjC,sDAAoC;AACpC,iDAA+B;AAC/B,2CAAyB;AACzB,mDAAiC;AACjC,oDAAkC;AAClC,yDAAuC;AACvC,gDAA8B;AAC9B,0CAAwB;AACxB,+CAA6B;AAC7B,4DAA0C;AAC1C,gDAA8B;AAC9B,mDAAiC;AAGjC,iDAA+B;AAG/B,0CAAwB;AAGxB,sEAAoD;AACpD,0EAAwD;AACxD,8DAA4C;AAC5C,2DAAyC;AAGzC,6EAA2D;AAC3D,gFAA8D;AAC9D,4DAA0C;AAC1C,uEAAqD;AACrD,oDAAkC;AAGlC,8DAA4C;AAC5C,sEAAoD;AACpD,yEAAuD;AAGvD,4CAA0B;AAG1B,iDAA+B;AAG/B,2DAAyC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C;AAC/C,oDAAkC;AAClC,0CAAwB;AACxB,+DAA6C;AAC7C,iDAA+B;AAC/B,iDAA+B;AAC/B,uDAAqC;AACrC,yDAAuC;AACvC,2DAAyC;AACzC,mDAAiC;AACjC,4DAA0C;AAC1C,kDAAgC;AAChC,mDAAiC;AACjC,sDAAoC;AACpC,iDAA+B;AAC/B,2CAAyB;AACzB,mDAAiC;AACjC,oDAAkC;AAClC,yDAAuC;AACvC,gDAA8B;AAC9B,0CAAwB;AACxB,+CAA6B;AAC7B,4DAA0C;AAC1C,gDAA8B;AAC9B,mDAAiC;AAGjC,iDAA+B;AAG/B,0CAAwB;AAGxB,sEAAoD;AACpD,0EAAwD;AACxD,8DAA4C;AAC5C,2DAAyC;AAGzC,6EAA2D;AAC3D,gFAA8D;AAC9D,4DAA0C;AAC1C,uEAAqD;AACrD,oDAAkC;AAGlC,8DAA4C;AAC5C,sEAAoD;AACpD,yEAAuD;AAGvD,4CAA0B;AAG1B,iDAA+B;AAG/B,2DAAyC;AAGzC,oDAAkC"}
@@ -0,0 +1,8 @@
1
+ import { EntityBase } from "../common";
2
+ import { Group } from "./group.entity";
3
+ import { User } from "./user.entity";
4
+ export declare class SubGroup extends EntityBase {
5
+ group: Group;
6
+ supervisor: User;
7
+ assistants: User[];
8
+ }
@@ -0,0 +1,45 @@
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.SubGroup = void 0;
13
+ const common_1 = require("../common");
14
+ const typeorm_1 = require("typeorm");
15
+ const group_entity_1 = require("./group.entity");
16
+ const user_entity_1 = require("./user.entity");
17
+ let SubGroup = class SubGroup extends common_1.EntityBase {
18
+ group;
19
+ supervisor;
20
+ assistants;
21
+ };
22
+ exports.SubGroup = SubGroup;
23
+ __decorate([
24
+ (0, typeorm_1.ManyToOne)(() => group_entity_1.Group, { onDelete: "CASCADE" }),
25
+ (0, typeorm_1.JoinColumn)({ name: "groupId" }),
26
+ __metadata("design:type", group_entity_1.Group)
27
+ ], SubGroup.prototype, "group", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: false }),
30
+ (0, typeorm_1.JoinColumn)({ name: "supervisorId" }),
31
+ __metadata("design:type", user_entity_1.User)
32
+ ], SubGroup.prototype, "supervisor", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.ManyToMany)(() => user_entity_1.User),
35
+ (0, typeorm_1.JoinTable)({
36
+ name: "subgroup_assistants",
37
+ joinColumn: { name: "subgroupId", referencedColumnName: "id" },
38
+ inverseJoinColumn: { name: "assistantId", referencedColumnName: "id" },
39
+ }),
40
+ __metadata("design:type", Array)
41
+ ], SubGroup.prototype, "assistants", void 0);
42
+ exports.SubGroup = SubGroup = __decorate([
43
+ (0, typeorm_1.Entity)()
44
+ ], SubGroup);
45
+ //# sourceMappingURL=subgroup.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subgroup.entity.js","sourceRoot":"","sources":["../../src/entities/subgroup.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCAAuC;AACvC,qCAA+E;AAC/E,iDAAuC;AACvC,+CAAqC;AAG9B,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,mBAAU;IAGtC,KAAK,CAAQ;IAIb,UAAU,CAAO;IAQjB,UAAU,CAAS;CACpB,CAAA;AAhBY,4BAAQ;AAGnB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC/C,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BACzB,oBAAK;uCAAC;AAIb;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC1C,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;8BACzB,kBAAI;4CAAC;AAQjB;IANC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,kBAAI,CAAC;IACtB,IAAA,mBAAS,EAAC;QACT,IAAI,EAAE,qBAAqB;QAC3B,UAAU,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,oBAAoB,EAAE,IAAI,EAAE;QAC9D,iBAAiB,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,oBAAoB,EAAE,IAAI,EAAE;KACvE,CAAC;;4CACiB;mBAfR,QAAQ;IADpB,IAAA,gBAAM,GAAE;GACI,QAAQ,CAgBpB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easywork-common-lib",
3
- "version": "1.0.986",
3
+ "version": "1.0.987",
4
4
  "description": "Librería común de Easywork",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {