easywork-common-lib 1.0.187 → 1.0.189

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.
@@ -20,3 +20,5 @@ export * from "./drive";
20
20
  export * from "./helpers";
21
21
  export * from "./notifications";
22
22
  export * from "./easyapp/filter-view.entity";
23
+ export * from "./thirdparty/service.entity";
24
+ export * from "./thirdparty/email.entity";
@@ -36,4 +36,6 @@ __exportStar(require("./drive"), exports);
36
36
  __exportStar(require("./helpers"), exports);
37
37
  __exportStar(require("./notifications"), exports);
38
38
  __exportStar(require("./easyapp/filter-view.entity"), exports);
39
+ __exportStar(require("./thirdparty/service.entity"), exports);
40
+ __exportStar(require("./thirdparty/email.entity"), exports);
39
41
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,oDAAkC;AAClC,mDAAiC;AACjC,yDAAuC;AACvC,mDAAiC;AACjC,gDAA8B;AAC9B,sDAAoC;AACpC,yDAAuC;AACvC,sDAAoC;AACpC,wDAAsC;AACtC,iDAA+B;AAC/B,iDAA+B;AAC/B,iEAA+C;AAC/C,uDAAqC;AACrC,uDAAqC;AACrC,+CAA6B;AAC7B,iDAA+B;AAC/B,0CAAwB;AACxB,0CAAwB;AACxB,4CAA0B;AAC1B,kDAAgC;AAChC,+DAA6C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,oDAAkC;AAClC,mDAAiC;AACjC,yDAAuC;AACvC,mDAAiC;AACjC,gDAA8B;AAC9B,sDAAoC;AACpC,yDAAuC;AACvC,sDAAoC;AACpC,wDAAsC;AACtC,iDAA+B;AAC/B,iDAA+B;AAC/B,iEAA+C;AAC/C,uDAAqC;AACrC,uDAAqC;AACrC,+CAA6B;AAC7B,iDAA+B;AAC/B,0CAAwB;AACxB,0CAAwB;AACxB,4CAA0B;AAC1B,kDAAgC;AAChC,+DAA6C;AAC7C,8DAA4C;AAC5C,4DAA0C"}
@@ -0,0 +1,10 @@
1
+ import { BaseEntity } from "../../common/database";
2
+ import { ServiceThirdparty } from "./service.entity";
3
+ export declare class EmailThirdparty extends BaseEntity {
4
+ subject: string;
5
+ from: string;
6
+ date: Date;
7
+ to: string[];
8
+ body: string;
9
+ service: ServiceThirdparty;
10
+ }
@@ -0,0 +1,52 @@
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.EmailThirdparty = void 0;
13
+ const database_1 = require("../../common/database");
14
+ const typeorm_1 = require("typeorm");
15
+ const service_entity_1 = require("./service.entity");
16
+ let EmailThirdparty = class EmailThirdparty extends database_1.BaseEntity {
17
+ subject;
18
+ from;
19
+ date;
20
+ to;
21
+ body;
22
+ service;
23
+ };
24
+ exports.EmailThirdparty = EmailThirdparty;
25
+ __decorate([
26
+ (0, typeorm_1.Column)(),
27
+ __metadata("design:type", String)
28
+ ], EmailThirdparty.prototype, "subject", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)(),
31
+ __metadata("design:type", String)
32
+ ], EmailThirdparty.prototype, "from", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)(),
35
+ __metadata("design:type", Date)
36
+ ], EmailThirdparty.prototype, "date", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)("text", { array: true }),
39
+ __metadata("design:type", Array)
40
+ ], EmailThirdparty.prototype, "to", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)(),
43
+ __metadata("design:type", String)
44
+ ], EmailThirdparty.prototype, "body", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.ManyToOne)(() => service_entity_1.ServiceThirdparty, service => service.emails),
47
+ __metadata("design:type", service_entity_1.ServiceThirdparty)
48
+ ], EmailThirdparty.prototype, "service", void 0);
49
+ exports.EmailThirdparty = EmailThirdparty = __decorate([
50
+ (0, typeorm_1.Entity)()
51
+ ], EmailThirdparty);
52
+ //# sourceMappingURL=email.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/email.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,qCAAoD;AACpD,qDAAoD;AAG7C,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,qBAAU;IAE7C,OAAO,CAAS;IAGhB,IAAI,CAAS;IAGb,IAAI,CAAO;IAGX,EAAE,CAAW;IAGb,IAAI,CAAS;IAGb,OAAO,CAAoB;CAC5B,CAAA;AAlBY,0CAAe;AAE1B;IADC,IAAA,gBAAM,GAAE;;gDACO;AAGhB;IADC,IAAA,gBAAM,GAAE;;6CACI;AAGb;IADC,IAAA,gBAAM,GAAE;8BACH,IAAI;6CAAC;AAGX;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;2CACnB;AAGb;IADC,IAAA,gBAAM,GAAE;;6CACI;AAGb;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kCAAiB,EAAE,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;8BACrD,kCAAiB;gDAAC;0BAjBhB,eAAe;IAD3B,IAAA,gBAAM,GAAE;GACI,eAAe,CAkB3B"}
@@ -0,0 +1,6 @@
1
+ import { BaseEntity } from "../../common/database";
2
+ import { EmailThirdparty } from "./email.entity";
3
+ export declare class ServiceThirdparty extends BaseEntity {
4
+ name: string;
5
+ emails: EmailThirdparty[];
6
+ }
@@ -0,0 +1,32 @@
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.ServiceThirdparty = void 0;
13
+ const database_1 = require("../../common/database");
14
+ const typeorm_1 = require("typeorm");
15
+ const email_entity_1 = require("./email.entity");
16
+ let ServiceThirdparty = class ServiceThirdparty extends database_1.BaseEntity {
17
+ name;
18
+ emails;
19
+ };
20
+ exports.ServiceThirdparty = ServiceThirdparty;
21
+ __decorate([
22
+ (0, typeorm_1.Column)(),
23
+ __metadata("design:type", String)
24
+ ], ServiceThirdparty.prototype, "name", void 0);
25
+ __decorate([
26
+ (0, typeorm_1.OneToMany)(() => email_entity_1.EmailThirdparty, email => email.service),
27
+ __metadata("design:type", Array)
28
+ ], ServiceThirdparty.prototype, "emails", void 0);
29
+ exports.ServiceThirdparty = ServiceThirdparty = __decorate([
30
+ (0, typeorm_1.Entity)()
31
+ ], ServiceThirdparty);
32
+ //# sourceMappingURL=service.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/service.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,qCAAoD;AACpD,iDAAgD;AAGzC,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,qBAAU;IAE/C,IAAI,CAAS;IAGb,MAAM,CAAoB;CAC3B,CAAA;AANY,8CAAiB;AAE5B;IADC,IAAA,gBAAM,GAAE;;+CACI;AAGb;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAe,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC;;iDAC/B;4BALf,iBAAiB;IAD7B,IAAA,gBAAM,GAAE;GACI,iBAAiB,CAM7B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easywork-common-lib",
3
- "version": "1.0.187",
3
+ "version": "1.0.189",
4
4
  "description": "Librería común de Easywork",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {