easywork-common-lib 1.0.813 → 1.0.814
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/index.d.ts +0 -1
- package/dist/entities/index.js +0 -1
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/tools/index.d.ts +8 -7
- package/dist/entities/tools/index.js +5 -4
- package/dist/entities/tools/index.js.map +1 -1
- package/dist/entities/tools/mail/index.d.ts +3 -0
- package/dist/entities/tools/mail/index.js +20 -0
- package/dist/entities/tools/mail/index.js.map +1 -0
- package/dist/entities/tools/mail/mailbox-signatures.entity.d.ts +6 -0
- package/dist/entities/tools/mail/mailbox-signatures.entity.js +34 -0
- package/dist/entities/tools/mail/mailbox-signatures.entity.js.map +1 -0
- package/dist/entities/tools/mail/mailbox-user-access.entity.d.ts +13 -0
- package/dist/entities/tools/mail/mailbox-user-access.entity.js +46 -0
- package/dist/entities/tools/mail/mailbox-user-access.entity.js.map +1 -0
- package/dist/entities/tools/mail/mailbox.entity.d.ts +46 -0
- package/dist/entities/tools/mail/mailbox.entity.js +70 -0
- package/dist/entities/tools/mail/mailbox.entity.js.map +1 -0
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/dist/entities/index.d.ts
CHANGED
|
@@ -25,7 +25,6 @@ export * from './tools';
|
|
|
25
25
|
export * from './user-invitations.entity';
|
|
26
26
|
export * from './user.entity';
|
|
27
27
|
export * from './capacitation';
|
|
28
|
-
export * from './tools/calendar';
|
|
29
28
|
export * from './third-party/email-config.entity';
|
|
30
29
|
export * from './third-party/email.entity';
|
|
31
30
|
export * from './third-party/google-webhooks-config.entity';
|
package/dist/entities/index.js
CHANGED
|
@@ -41,7 +41,6 @@ __exportStar(require("./tools"), exports);
|
|
|
41
41
|
__exportStar(require("./user-invitations.entity"), exports);
|
|
42
42
|
__exportStar(require("./user.entity"), exports);
|
|
43
43
|
__exportStar(require("./capacitation"), exports);
|
|
44
|
-
__exportStar(require("./tools/calendar"), exports);
|
|
45
44
|
__exportStar(require("./third-party/email-config.entity"), exports);
|
|
46
45
|
__exportStar(require("./third-party/email.entity"), exports);
|
|
47
46
|
__exportStar(require("./third-party/google-webhooks-config.entity"), exports);
|
|
@@ -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,4CAA0B;AAC1B,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,0CAAwB;AACxB,4DAA0C;AAC1C,gDAA8B;AAG9B,iDAA+B;AAG/B,
|
|
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,4CAA0B;AAC1B,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,0CAAwB;AACxB,4DAA0C;AAC1C,gDAA8B;AAG9B,iDAA+B;AAG/B,oEAAkD;AAClD,6DAA2C;AAC3C,8EAA4D;AAC5D,gEAA8C;AAC9C,6DAA2C;AAC3C,+DAA6C;AAC7C,2EAAyD"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
1
|
+
export * from './calendar';
|
|
2
|
+
export * from './mail';
|
|
3
|
+
export * from './task-comment.entity';
|
|
4
|
+
export * from './task-history.entity';
|
|
5
|
+
export * from './task-list-field';
|
|
6
|
+
export * from './task-objection.entity';
|
|
7
|
+
export * from './task-time-track.entity';
|
|
8
|
+
export * from './task.entity';
|
|
@@ -14,11 +14,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./task-comment.entity"), exports);
|
|
18
|
-
__exportStar(require("./task.entity"), exports);
|
|
19
|
-
__exportStar(require("./task-list-field"), exports);
|
|
20
17
|
__exportStar(require("./calendar"), exports);
|
|
21
|
-
__exportStar(require("./
|
|
18
|
+
__exportStar(require("./mail"), exports);
|
|
19
|
+
__exportStar(require("./task-comment.entity"), exports);
|
|
22
20
|
__exportStar(require("./task-history.entity"), exports);
|
|
21
|
+
__exportStar(require("./task-list-field"), exports);
|
|
23
22
|
__exportStar(require("./task-objection.entity"), exports);
|
|
23
|
+
__exportStar(require("./task-time-track.entity"), exports);
|
|
24
|
+
__exportStar(require("./task.entity"), exports);
|
|
24
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/tools/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/tools/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAE3B,yCAAuB;AAEvB,wDAAsC;AACtC,wDAAsC;AACtC,oDAAkC;AAClC,0DAAwC;AACxC,2DAAyC;AACzC,gDAA8B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./mailbox.entity"), exports);
|
|
18
|
+
__exportStar(require("./mailbox-user-access.entity"), exports);
|
|
19
|
+
__exportStar(require("./mailbox-signatures.entity"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/tools/mail/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,+DAA6C;AAC7C,8DAA4C"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.MailboxSignatures = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const base_entity_1 = require("../../../common/database/base.entity");
|
|
16
|
+
const mailbox_entity_1 = require("./mailbox.entity");
|
|
17
|
+
let MailboxSignatures = class MailboxSignatures extends base_entity_1.BaseEntityOnlyEssential {
|
|
18
|
+
signature;
|
|
19
|
+
mailbox;
|
|
20
|
+
};
|
|
21
|
+
exports.MailboxSignatures = MailboxSignatures;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, swagger_1.ApiProperty)({ description: 'Mailbox signature', required: true }),
|
|
24
|
+
(0, typeorm_1.Column)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], MailboxSignatures.prototype, "signature", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.ManyToOne)(() => mailbox_entity_1.Mailbox, { nullable: false, onDelete: 'CASCADE' }),
|
|
29
|
+
__metadata("design:type", mailbox_entity_1.Mailbox)
|
|
30
|
+
], MailboxSignatures.prototype, "mailbox", void 0);
|
|
31
|
+
exports.MailboxSignatures = MailboxSignatures = __decorate([
|
|
32
|
+
(0, typeorm_1.Entity)()
|
|
33
|
+
], MailboxSignatures);
|
|
34
|
+
//# sourceMappingURL=mailbox-signatures.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mailbox-signatures.entity.js","sourceRoot":"","sources":["../../../../src/entities/tools/mail/mailbox-signatures.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AACpD,6CAA8C;AAE9C,sEAA+E;AAC/E,qDAA2C;AAGpC,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,qCAAuB;IAG5D,SAAS,CAAS;IAGlB,OAAO,CAAU;CAClB,CAAA;AAPY,8CAAiB;AAG5B;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,mBAAmB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACjE,IAAA,gBAAM,GAAE;;oDACS;AAGlB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC1D,wBAAO;kDAAC;4BANN,iBAAiB;IAD7B,IAAA,gBAAM,GAAE;GACI,iBAAiB,CAO7B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseEntityOnlyEssential } from '../../../common/database/base.entity';
|
|
2
|
+
import { User } from '../../user.entity';
|
|
3
|
+
export declare enum MailboxUserPermissionAccess {
|
|
4
|
+
ACCESS_DENIED = "access-denied",
|
|
5
|
+
READ_ONLY = "read-only",
|
|
6
|
+
EDIT_CALENDAR_EVENTS = "edit-calendar-events",
|
|
7
|
+
FULL_ACCESS = "full-access"
|
|
8
|
+
}
|
|
9
|
+
export declare class MailboxUserAccess extends BaseEntityOnlyEssential {
|
|
10
|
+
permissions: MailboxUserPermissionAccess;
|
|
11
|
+
mailboxOwner: User;
|
|
12
|
+
userInvited: User;
|
|
13
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.MailboxUserAccess = exports.MailboxUserPermissionAccess = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const base_entity_1 = require("../../../common/database/base.entity");
|
|
16
|
+
const user_entity_1 = require("../../user.entity");
|
|
17
|
+
var MailboxUserPermissionAccess;
|
|
18
|
+
(function (MailboxUserPermissionAccess) {
|
|
19
|
+
MailboxUserPermissionAccess["ACCESS_DENIED"] = "access-denied";
|
|
20
|
+
MailboxUserPermissionAccess["READ_ONLY"] = "read-only";
|
|
21
|
+
MailboxUserPermissionAccess["EDIT_CALENDAR_EVENTS"] = "edit-calendar-events";
|
|
22
|
+
MailboxUserPermissionAccess["FULL_ACCESS"] = "full-access";
|
|
23
|
+
})(MailboxUserPermissionAccess || (exports.MailboxUserPermissionAccess = MailboxUserPermissionAccess = {}));
|
|
24
|
+
let MailboxUserAccess = class MailboxUserAccess extends base_entity_1.BaseEntityOnlyEssential {
|
|
25
|
+
permissions;
|
|
26
|
+
mailboxOwner;
|
|
27
|
+
userInvited;
|
|
28
|
+
};
|
|
29
|
+
exports.MailboxUserAccess = MailboxUserAccess;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, swagger_1.ApiProperty)({ description: 'Permissions granted', required: true }),
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: MailboxUserPermissionAccess }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], MailboxUserAccess.prototype, "permissions", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: false, onDelete: 'CASCADE' }),
|
|
37
|
+
__metadata("design:type", user_entity_1.User)
|
|
38
|
+
], MailboxUserAccess.prototype, "mailboxOwner", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: false, onDelete: 'CASCADE' }),
|
|
41
|
+
__metadata("design:type", user_entity_1.User)
|
|
42
|
+
], MailboxUserAccess.prototype, "userInvited", void 0);
|
|
43
|
+
exports.MailboxUserAccess = MailboxUserAccess = __decorate([
|
|
44
|
+
(0, typeorm_1.Entity)()
|
|
45
|
+
], MailboxUserAccess);
|
|
46
|
+
//# sourceMappingURL=mailbox-user-access.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mailbox-user-access.entity.js","sourceRoot":"","sources":["../../../../src/entities/tools/mail/mailbox-user-access.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AACpD,6CAA8C;AAE9C,sEAA+E;AAC/E,mDAAyC;AAEzC,IAAY,2BAKX;AALD,WAAY,2BAA2B;IACrC,8DAA+B,CAAA;IAC/B,sDAAuB,CAAA;IACvB,4EAA6C,CAAA;IAC7C,0DAA2B,CAAA;AAC7B,CAAC,EALW,2BAA2B,2CAA3B,2BAA2B,QAKtC;AAGM,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,qCAAuB;IAG5D,WAAW,CAA8B;IAGzC,YAAY,CAAO;IAGnB,WAAW,CAAO;CACnB,CAAA;AAVY,8CAAiB;AAG5B;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,qBAAqB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACnE,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,2BAA2B,EAAE,CAAC;;sDACnB;AAGzC;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAClD,kBAAI;uDAAC;AAGnB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BACnD,kBAAI;sDAAC;4BATP,iBAAiB;IAD7B,IAAA,gBAAM,GAAE;GACI,iBAAiB,CAU7B"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { BaseEntityOnlyEssential } from '../../../common/database/base.entity';
|
|
2
|
+
import { User } from '../../user.entity';
|
|
3
|
+
export declare enum MailboxProvider {
|
|
4
|
+
GOOGLE = "google",
|
|
5
|
+
ICLOUD = "icloud",
|
|
6
|
+
MICROSOFT = "microsoft"
|
|
7
|
+
}
|
|
8
|
+
export type MailboxRules = {
|
|
9
|
+
folders: {
|
|
10
|
+
sentEmailsFolder: string;
|
|
11
|
+
deletedEmailsFolder: string;
|
|
12
|
+
spamFolder: string;
|
|
13
|
+
selected: string[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export type MailboxSender = {
|
|
17
|
+
name: string;
|
|
18
|
+
limit: number;
|
|
19
|
+
};
|
|
20
|
+
export type MailboxCrmIntegrationRules = {
|
|
21
|
+
active: boolean;
|
|
22
|
+
mailQueueDistribution: string[];
|
|
23
|
+
config: {
|
|
24
|
+
importation: boolean;
|
|
25
|
+
routing: boolean;
|
|
26
|
+
onIncomingMail: {
|
|
27
|
+
createLead: boolean;
|
|
28
|
+
createContact: boolean;
|
|
29
|
+
createTask: boolean;
|
|
30
|
+
};
|
|
31
|
+
onOutgoingMail: {
|
|
32
|
+
createLead: boolean;
|
|
33
|
+
createContact: boolean;
|
|
34
|
+
createTask: boolean;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export declare class Mailbox extends BaseEntityOnlyEssential {
|
|
39
|
+
name: string;
|
|
40
|
+
sender: MailboxSender;
|
|
41
|
+
email: string;
|
|
42
|
+
rules: MailboxRules;
|
|
43
|
+
crm: MailboxCrmIntegrationRules;
|
|
44
|
+
provider: MailboxProvider;
|
|
45
|
+
user: User;
|
|
46
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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.Mailbox = exports.MailboxProvider = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const base_entity_1 = require("../../../common/database/base.entity");
|
|
16
|
+
const user_entity_1 = require("../../user.entity");
|
|
17
|
+
var MailboxProvider;
|
|
18
|
+
(function (MailboxProvider) {
|
|
19
|
+
MailboxProvider["GOOGLE"] = "google";
|
|
20
|
+
MailboxProvider["ICLOUD"] = "icloud";
|
|
21
|
+
MailboxProvider["MICROSOFT"] = "microsoft";
|
|
22
|
+
})(MailboxProvider || (exports.MailboxProvider = MailboxProvider = {}));
|
|
23
|
+
let Mailbox = class Mailbox extends base_entity_1.BaseEntityOnlyEssential {
|
|
24
|
+
name;
|
|
25
|
+
sender;
|
|
26
|
+
email;
|
|
27
|
+
rules;
|
|
28
|
+
crm;
|
|
29
|
+
provider;
|
|
30
|
+
user;
|
|
31
|
+
};
|
|
32
|
+
exports.Mailbox = Mailbox;
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, swagger_1.ApiProperty)({ description: 'Mailbox name', required: true }),
|
|
35
|
+
(0, typeorm_1.Column)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], Mailbox.prototype, "name", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, swagger_1.ApiProperty)({ description: 'Mailbox sender rules', required: true }),
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], Mailbox.prototype, "sender", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, swagger_1.ApiProperty)({ description: 'Mailbox email', required: true }),
|
|
45
|
+
(0, typeorm_1.Column)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], Mailbox.prototype, "email", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, swagger_1.ApiProperty)({ description: 'Mailbox folder rules', required: true }),
|
|
50
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], Mailbox.prototype, "rules", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, swagger_1.ApiProperty)({ description: 'Mailbox crm integration rules', required: true }),
|
|
55
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
56
|
+
__metadata("design:type", Object)
|
|
57
|
+
], Mailbox.prototype, "crm", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, swagger_1.ApiProperty)({ description: 'Mailbox ID', required: true }),
|
|
60
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: MailboxProvider }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], Mailbox.prototype, "provider", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: false, onDelete: 'CASCADE' }),
|
|
65
|
+
__metadata("design:type", user_entity_1.User)
|
|
66
|
+
], Mailbox.prototype, "user", void 0);
|
|
67
|
+
exports.Mailbox = Mailbox = __decorate([
|
|
68
|
+
(0, typeorm_1.Entity)()
|
|
69
|
+
], Mailbox);
|
|
70
|
+
//# sourceMappingURL=mailbox.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mailbox.entity.js","sourceRoot":"","sources":["../../../../src/entities/tools/mail/mailbox.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AACpD,6CAA8C;AAE9C,sEAA+E;AAC/E,mDAAyC;AAEzC,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;IACjB,0CAAuB,CAAA;AACzB,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B;AAoCM,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,qCAAuB;IAGlD,IAAI,CAAS;IAIb,MAAM,CAAgB;IAItB,KAAK,CAAS;IAId,KAAK,CAAe;IAIpB,GAAG,CAA6B;IAIhC,QAAQ,CAAkB;IAG1B,IAAI,CAAO;CACZ,CAAA;AA3BY,0BAAO;AAGlB;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5D,IAAA,gBAAM,GAAE;;qCACI;AAIb;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,sBAAsB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACpE,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACpB;AAItB;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7D,IAAA,gBAAM,GAAE;;sCACK;AAId;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,sBAAsB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACpE,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACtB;AAIpB;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,+BAA+B,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7E,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCACV;AAIhC;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC1D,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;;yCACtB;AAG1B;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC1D,kBAAI;qCAAC;kBA1BA,OAAO;IADnB,IAAA,gBAAM,GAAE;GACI,OAAO,CA2BnB"}
|