easywork-common-lib 1.0.1311 → 1.0.1314

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.
@@ -0,0 +1,11 @@
1
+ import { BaseEntity } from 'typeorm';
2
+ import { User } from '../../user.entity';
3
+ export declare class MailContact extends BaseEntity {
4
+ id: string;
5
+ name: string;
6
+ lastname: string;
7
+ email: string;
8
+ createdBy?: User;
9
+ createdAt?: Date;
10
+ updatedAt?: Date;
11
+ }
@@ -0,0 +1,61 @@
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.MailContact = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const swagger_1 = require("@nestjs/swagger");
15
+ const user_entity_1 = require("../../user.entity");
16
+ let MailContact = class MailContact extends typeorm_1.BaseEntity {
17
+ id;
18
+ name;
19
+ lastname;
20
+ email;
21
+ createdBy;
22
+ createdAt;
23
+ updatedAt;
24
+ };
25
+ exports.MailContact = MailContact;
26
+ __decorate([
27
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
28
+ __metadata("design:type", String)
29
+ ], MailContact.prototype, "id", void 0);
30
+ __decorate([
31
+ (0, swagger_1.ApiProperty)({ description: 'Contact name', required: true }),
32
+ (0, typeorm_1.Column)(),
33
+ __metadata("design:type", String)
34
+ ], MailContact.prototype, "name", void 0);
35
+ __decorate([
36
+ (0, swagger_1.ApiProperty)({ description: 'Contact last name', required: true }),
37
+ (0, typeorm_1.Column)(),
38
+ __metadata("design:type", String)
39
+ ], MailContact.prototype, "lastname", void 0);
40
+ __decorate([
41
+ (0, swagger_1.ApiProperty)({ description: 'Contact email', required: true }),
42
+ (0, typeorm_1.Column)(),
43
+ __metadata("design:type", String)
44
+ ], MailContact.prototype, "email", void 0);
45
+ __decorate([
46
+ (0, swagger_1.ApiProperty)({ description: 'User who created this contact', required: false }),
47
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: true, onDelete: 'SET NULL' }),
48
+ __metadata("design:type", user_entity_1.User)
49
+ ], MailContact.prototype, "createdBy", void 0);
50
+ __decorate([
51
+ (0, typeorm_1.CreateDateColumn)(),
52
+ __metadata("design:type", Date)
53
+ ], MailContact.prototype, "createdAt", void 0);
54
+ __decorate([
55
+ (0, typeorm_1.UpdateDateColumn)(),
56
+ __metadata("design:type", Date)
57
+ ], MailContact.prototype, "updatedAt", void 0);
58
+ exports.MailContact = MailContact = __decorate([
59
+ (0, typeorm_1.Entity)()
60
+ ], MailContact);
61
+ //# sourceMappingURL=mail-contact.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mail-contact.entity.js","sourceRoot":"","sources":["../../../../src/entities/tools/mail/mail-contact.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4H;AAC5H,6CAA8C;AAE9C,mDAAyC;AAGlC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,oBAAU;IAEzC,EAAE,CAAS;IAIX,IAAI,CAAS;IAIb,QAAQ,CAAS;IAIjB,KAAK,CAAS;IAId,SAAS,CAAQ;IAGjB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;CAClB,CAAA;AAzBY,kCAAW;AAEtB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;uCACpB;AAIX;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5D,IAAA,gBAAM,GAAE;;yCACI;AAIb;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,mBAAmB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACjE,IAAA,gBAAM,GAAE;;6CACQ;AAIjB;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7D,IAAA,gBAAM,GAAE;;0CACK;AAId;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,+BAA+B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC9E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;8BACpD,kBAAI;8CAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;8CAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;8CAAC;sBAxBN,WAAW;IADvB,IAAA,gBAAM,GAAE;GACI,WAAW,CAyBvB"}