easywork-common-lib 1.0.923 → 1.0.925
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/common/enums/tools.enum.d.ts +8 -4
- package/dist/common/enums/tools.enum.js +7 -3
- package/dist/common/enums/tools.enum.js.map +1 -1
- package/dist/entities/helpers/user/access_history.entity.d.ts +9 -0
- package/dist/entities/helpers/user/access_history.entity.js +58 -0
- package/dist/entities/helpers/user/access_history.entity.js.map +1 -0
- package/dist/entities/policy/policy-details.entity.d.ts +42 -0
- package/dist/entities/policy/policy-details.entity.js +380 -0
- package/dist/entities/policy/policy-details.entity.js.map +1 -0
- package/dist/entities/policy/policy-version.entity.d.ts +0 -2
- package/dist/entities/policy/policy-version.entity.js +0 -11
- package/dist/entities/policy/policy-version.entity.js.map +1 -1
- package/dist/entities/policy/policy.entity.d.ts +2 -1
- package/dist/entities/policy/policy.entity.js +10 -0
- package/dist/entities/policy/policy.entity.js.map +1 -1
- package/dist/entities/sales/receipt-sub-agente.entity.d.ts +5 -0
- package/dist/entities/sales/receipt-sub-agente.entity.js +35 -0
- package/dist/entities/sales/receipt-sub-agente.entity.js.map +1 -0
- package/dist/entities/thirdparty/email-config.entity.d.ts +14 -0
- package/dist/entities/thirdparty/email-config.entity.js +76 -0
- package/dist/entities/thirdparty/email-config.entity.js.map +1 -0
- package/dist/entities/thirdparty/email.entity.d.ts +17 -0
- package/dist/entities/thirdparty/email.entity.js +79 -0
- package/dist/entities/thirdparty/email.entity.js.map +1 -0
- package/dist/entities/thirdparty/service.entity.d.ts +8 -0
- package/dist/entities/thirdparty/service.entity.js +38 -0
- package/dist/entities/thirdparty/service.entity.js.map +1 -0
- package/dist/entities/thirdparty/user-email-relation.entity.d.ts +7 -0
- package/dist/entities/thirdparty/user-email-relation.entity.js +35 -0
- package/dist/entities/thirdparty/user-email-relation.entity.js.map +1 -0
- package/dist/entities/tools/calendar/calendar-list.entity.d.ts +36 -0
- package/dist/entities/tools/calendar/calendar-list.entity.js +109 -0
- package/dist/entities/tools/calendar/calendar-list.entity.js.map +1 -0
- package/dist/entities/tools/calendar/event-list-calendars.entity.d.ts +6 -0
- package/dist/entities/tools/calendar/event-list-calendars.entity.js +32 -0
- package/dist/entities/tools/calendar/event-list-calendars.entity.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/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/entities/thirdparty/raw-diio-webhook.entity.d.ts +0 -8
- package/dist/entities/thirdparty/raw-diio-webhook.entity.js +0 -46
- package/dist/entities/thirdparty/raw-diio-webhook.entity.js.map +0 -1
|
@@ -38,6 +38,7 @@ let Policy = class Policy extends base_entity_1.EntityBaseWithUser {
|
|
|
38
38
|
comments;
|
|
39
39
|
cancelReason;
|
|
40
40
|
settlement;
|
|
41
|
+
receipts;
|
|
41
42
|
};
|
|
42
43
|
exports.Policy = Policy;
|
|
43
44
|
__decorate([
|
|
@@ -270,6 +271,15 @@ __decorate([
|
|
|
270
271
|
}),
|
|
271
272
|
__metadata("design:type", entities_1.PolizaSettlement)
|
|
272
273
|
], Policy.prototype, "settlement", void 0);
|
|
274
|
+
__decorate([
|
|
275
|
+
(0, swagger_1.ApiProperty)({ type: () => [entities_1.Receipt], description: "Receipts" }),
|
|
276
|
+
(0, typeorm_1.OneToMany)(() => entities_1.Receipt, (receipts) => receipts.policy, {
|
|
277
|
+
onDelete: "CASCADE",
|
|
278
|
+
onUpdate: "CASCADE",
|
|
279
|
+
eager: true,
|
|
280
|
+
}),
|
|
281
|
+
__metadata("design:type", Array)
|
|
282
|
+
], Policy.prototype, "receipts", void 0);
|
|
273
283
|
exports.Policy = Policy = __decorate([
|
|
274
284
|
(0, typeorm_1.Entity)()
|
|
275
285
|
], Policy);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policy.entity.js","sourceRoot":"","sources":["../../../src/entities/policy/policy.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"policy.entity.js","sourceRoot":"","sources":["../../../src/entities/policy/policy.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAgBwB;AACxB,mEAAuE;AACvE,qCAQiB;AACjB,6CAA8C;AAC9C,8CAAkD;AAClD,mEAAwD;AAcjD,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,gCAAkB;IAU5C,MAAM,CAAS;IAYf,IAAI,CAAa;IAajB,SAAS,CAAkB;IAI3B,UAAU,CAAS;IAYnB,OAAO,CAAU;IAQjB,IAAI,CAAS;IAYb,MAAM,CAAe;IAWrB,QAAQ,CAAkB;IAY1B,UAAU,CAAQ;IAYlB,SAAS,CAAU;IAYnB,OAAO,CAAQ;IAYf,mBAAmB,CAAsB;IAczC,cAAc,CAAwB;IAUtC,MAAM,CAAgB;IActB,WAAW,CAAqB;IAchC,cAAc,CAAuB;IAGrC,YAAY,CAAS;IAUrB,KAAK,CAAY;IAQjB,QAAQ,CAAkB;IAW1B,YAAY,CAAqB;IAWjC,UAAU,CAAmB;IAQ7B,QAAQ,CAAa;CACtB,CAAA;AA1OY,wBAAM;AAUjB;IALC,IAAA,qBAAW,EAAC;QACX,OAAO,EAAE,YAAY;QACrB,WAAW,EAAE,yCAAyC;KACvD,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;sCAC1B;AAYf;IAVC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,GAAG,EAAE,CAAC,qBAAU;QACtB,WAAW,EAAE,oBAAoB;QACjC,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,qBAAU,EAAE;QAC3B,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE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AkB,EAAE;QACnC,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACY,6BAAkB;4CAAC;AAWjC;IATC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,GAAG,EAAE,CAAC,2BAAgB;QAC5B,WAAW,EAAE,YAAY;QACzB,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,2BAAgB,EAAE;QACjC,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACU,2BAAgB;0CAAC;AAQ7B;IANC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,kBAAO,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;IAC/D,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,MAAM,EAAE;QACvD,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,IAAI;KACZ,CAAC;;wCACmB;iBAzOV,MAAM;IADlB,IAAA,gBAAM,GAAE;GACI,MAAM,CA0OlB"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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.SubAgente = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const base_entity_1 = require("../../common/database/base.entity");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
let SubAgente = class SubAgente extends base_entity_1.BaseEntitySimple {
|
|
17
|
+
name;
|
|
18
|
+
cua;
|
|
19
|
+
};
|
|
20
|
+
exports.SubAgente = SubAgente;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'name of the sub agent' }),
|
|
23
|
+
(0, typeorm_1.Column)({ length: 255 }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], SubAgente.prototype, "name", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'CUA of the sub agent', required: false }),
|
|
28
|
+
(0, typeorm_1.Column)({ length: 50, unique: true, nullable: true }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], SubAgente.prototype, "cua", void 0);
|
|
31
|
+
exports.SubAgente = SubAgente = __decorate([
|
|
32
|
+
(0, typeorm_1.Index)('sub_agente_unique', ['name', "cua"], { unique: true }),
|
|
33
|
+
(0, typeorm_1.Entity)()
|
|
34
|
+
], SubAgente);
|
|
35
|
+
//# sourceMappingURL=receipt-sub-agente.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"receipt-sub-agente.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/receipt-sub-agente.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,mEAAqE;AACrE,qCAAgD;AAIzC,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,8BAAgB;IAG7C,IAAI,CAAS;IAIb,GAAG,CAAS;CACb,CAAA;AARY,8BAAS;AAGpB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,uBAAuB,EAAE,CAAC;IACnE,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;uCACX;AAIb;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,sBAAsB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACnF,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACzC;oBAPD,SAAS;IAFrB,IAAA,eAAK,EAAC,mBAAmB,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC7D,IAAA,gBAAM,GAAE;GACI,SAAS,CAQrB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EntityBase } from "../../common/database/base.entity";
|
|
2
|
+
export declare class EmailConfigThirdparty extends EntityBase {
|
|
3
|
+
countExtractMessagesDays: number;
|
|
4
|
+
mailboxName: string;
|
|
5
|
+
senderName: string;
|
|
6
|
+
countProcessMessagesDays: number;
|
|
7
|
+
routeExistingClientEmailsToCrmManagers: boolean;
|
|
8
|
+
createIncomingMessages: string;
|
|
9
|
+
createForOutgoingMessages: string;
|
|
10
|
+
createUsingAttachedVCard: boolean;
|
|
11
|
+
contactLeadDistribution: object[];
|
|
12
|
+
mailboxAccess: object[];
|
|
13
|
+
email: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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.EmailConfigThirdparty = void 0;
|
|
13
|
+
const base_entity_1 = require("../../common/database/base.entity");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
let EmailConfigThirdparty = class EmailConfigThirdparty extends base_entity_1.EntityBase {
|
|
16
|
+
countExtractMessagesDays;
|
|
17
|
+
mailboxName;
|
|
18
|
+
senderName;
|
|
19
|
+
countProcessMessagesDays;
|
|
20
|
+
routeExistingClientEmailsToCrmManagers;
|
|
21
|
+
createIncomingMessages;
|
|
22
|
+
createForOutgoingMessages;
|
|
23
|
+
createUsingAttachedVCard;
|
|
24
|
+
contactLeadDistribution;
|
|
25
|
+
mailboxAccess;
|
|
26
|
+
email;
|
|
27
|
+
};
|
|
28
|
+
exports.EmailConfigThirdparty = EmailConfigThirdparty;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], EmailConfigThirdparty.prototype, "countExtractMessagesDays", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], EmailConfigThirdparty.prototype, "mailboxName", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], EmailConfigThirdparty.prototype, "senderName", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: "integer", nullable: true }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], EmailConfigThirdparty.prototype, "countProcessMessagesDays", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ type: "boolean", nullable: true }),
|
|
47
|
+
__metadata("design:type", Boolean)
|
|
48
|
+
], EmailConfigThirdparty.prototype, "routeExistingClientEmailsToCrmManagers", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], EmailConfigThirdparty.prototype, "createIncomingMessages", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], EmailConfigThirdparty.prototype, "createForOutgoingMessages", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: "boolean", nullable: true }),
|
|
59
|
+
__metadata("design:type", Boolean)
|
|
60
|
+
], EmailConfigThirdparty.prototype, "createUsingAttachedVCard", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)("text", { array: true, nullable: true }),
|
|
63
|
+
__metadata("design:type", Array)
|
|
64
|
+
], EmailConfigThirdparty.prototype, "contactLeadDistribution", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)("text", { array: true, nullable: true }),
|
|
67
|
+
__metadata("design:type", Array)
|
|
68
|
+
], EmailConfigThirdparty.prototype, "mailboxAccess", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)(),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], EmailConfigThirdparty.prototype, "email", void 0);
|
|
73
|
+
exports.EmailConfigThirdparty = EmailConfigThirdparty = __decorate([
|
|
74
|
+
(0, typeorm_1.Entity)()
|
|
75
|
+
], EmailConfigThirdparty);
|
|
76
|
+
//# sourceMappingURL=email-config.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"email-config.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/email-config.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAAyC;AAGlC,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,wBAAU;IAEnD,wBAAwB,CAAS;IAGjC,WAAW,CAAS;IAGpB,UAAU,CAAS;IAGnB,wBAAwB,CAAS;IAGjC,sCAAsC,CAAU;IAGhD,sBAAsB,CAAS;IAG/B,yBAAyB,CAAS;IAGlC,wBAAwB,CAAU;IAGlC,uBAAuB,CAAW;IAGlC,aAAa,CAAW;IAGxB,KAAK,CAAS;CACf,CAAA;AAjCY,sDAAqB;AAEhC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uEACX;AAGjC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACrC;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACtC;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uEACX;AAGjC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qFACI;AAGhD;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qEAC1B;AAG/B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wEACvB;AAGlC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uEACV;AAGlC;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sEACd;AAGlC;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4DACxB;AAGxB;IADC,IAAA,gBAAM,GAAE;;oDACK;gCAhCH,qBAAqB;IADjC,IAAA,gBAAM,GAAE;GACI,qBAAqB,CAiCjC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EntityBase } from "../../common/database/base.entity";
|
|
2
|
+
import { UserEmailRelation } from "./user-email-relation.entity";
|
|
3
|
+
import { ServiceThirdparty } from "./service.entity";
|
|
4
|
+
import { Oauth } from "./oauth.entity";
|
|
5
|
+
export declare class EmailThirdparty extends EntityBase {
|
|
6
|
+
googleId: string;
|
|
7
|
+
subject: string;
|
|
8
|
+
from: string;
|
|
9
|
+
date: Date;
|
|
10
|
+
to: string[];
|
|
11
|
+
body: string;
|
|
12
|
+
folder: string[];
|
|
13
|
+
attachment: string[];
|
|
14
|
+
service: ServiceThirdparty;
|
|
15
|
+
userRelations: UserEmailRelation[];
|
|
16
|
+
oAuth: Oauth;
|
|
17
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
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 base_entity_1 = require("../../common/database/base.entity");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const user_email_relation_entity_1 = require("./user-email-relation.entity");
|
|
16
|
+
const service_entity_1 = require("./service.entity");
|
|
17
|
+
const oauth_entity_1 = require("./oauth.entity");
|
|
18
|
+
let EmailThirdparty = class EmailThirdparty extends base_entity_1.EntityBase {
|
|
19
|
+
googleId;
|
|
20
|
+
subject;
|
|
21
|
+
from;
|
|
22
|
+
date;
|
|
23
|
+
to;
|
|
24
|
+
body;
|
|
25
|
+
folder;
|
|
26
|
+
attachment;
|
|
27
|
+
service;
|
|
28
|
+
userRelations;
|
|
29
|
+
oAuth;
|
|
30
|
+
};
|
|
31
|
+
exports.EmailThirdparty = EmailThirdparty;
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], EmailThirdparty.prototype, "googleId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], EmailThirdparty.prototype, "subject", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], EmailThirdparty.prototype, "from", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)(),
|
|
46
|
+
__metadata("design:type", Date)
|
|
47
|
+
], EmailThirdparty.prototype, "date", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)("text", { array: true }),
|
|
50
|
+
__metadata("design:type", Array)
|
|
51
|
+
], EmailThirdparty.prototype, "to", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)(),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], EmailThirdparty.prototype, "body", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)("text", { array: true }),
|
|
58
|
+
__metadata("design:type", Array)
|
|
59
|
+
], EmailThirdparty.prototype, "folder", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)("text", { array: true, nullable: true }),
|
|
62
|
+
__metadata("design:type", Array)
|
|
63
|
+
], EmailThirdparty.prototype, "attachment", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.ManyToOne)(() => service_entity_1.ServiceThirdparty, (service) => service.emails),
|
|
66
|
+
__metadata("design:type", service_entity_1.ServiceThirdparty)
|
|
67
|
+
], EmailThirdparty.prototype, "service", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.OneToMany)(() => user_email_relation_entity_1.UserEmailRelation, (relation) => relation.email),
|
|
70
|
+
__metadata("design:type", Array)
|
|
71
|
+
], EmailThirdparty.prototype, "userRelations", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.ManyToOne)(() => oauth_entity_1.Oauth, (oauth) => oauth.id),
|
|
74
|
+
__metadata("design:type", oauth_entity_1.Oauth)
|
|
75
|
+
], EmailThirdparty.prototype, "oAuth", void 0);
|
|
76
|
+
exports.EmailThirdparty = EmailThirdparty = __decorate([
|
|
77
|
+
(0, typeorm_1.Entity)()
|
|
78
|
+
], EmailThirdparty);
|
|
79
|
+
//# 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,mEAA+D;AAC/D,qCAA+D;AAC/D,6EAAiE;AACjE,qDAAqD;AACrD,iDAAuC;AAGhC,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,wBAAU;IAE7C,QAAQ,CAAS;IAGjB,OAAO,CAAS;IAGhB,IAAI,CAAS;IAGb,IAAI,CAAO;IAGX,EAAE,CAAW;IAGb,IAAI,CAAS;IAGb,MAAM,CAAW;IAGjB,UAAU,CAAW;IAGrB,OAAO,CAAoB;IAG3B,aAAa,CAAsB;IAGnC,KAAK,CAAQ;CACd,CAAA;AAjCY,0CAAe;AAE1B;IADC,IAAA,gBAAM,GAAE;;iDACQ;AAGjB;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,gBAAM,EAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;+CACf;AAGjB;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDAC3B;AAGrB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kCAAiB,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;8BACvD,kCAAiB;gDAAC;AAG3B;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8CAAiB,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC;;sDAC9B;AAGnC;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;8BACrC,oBAAK;8CAAC;0BAhCF,eAAe;IAD3B,IAAA,gBAAM,GAAE;GACI,eAAe,CAiC3B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EntityBase } from "../../common/database/base.entity";
|
|
2
|
+
import { EmailThirdparty } from "./email.entity";
|
|
3
|
+
import { Oauth } from "./oauth.entity";
|
|
4
|
+
export declare class ServiceThirdparty extends EntityBase {
|
|
5
|
+
name: string;
|
|
6
|
+
emails: EmailThirdparty[];
|
|
7
|
+
oauth: Oauth[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 base_entity_1 = require("../../common/database/base.entity");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const email_entity_1 = require("./email.entity");
|
|
16
|
+
const oauth_entity_1 = require("./oauth.entity");
|
|
17
|
+
let ServiceThirdparty = class ServiceThirdparty extends base_entity_1.EntityBase {
|
|
18
|
+
name;
|
|
19
|
+
emails;
|
|
20
|
+
oauth;
|
|
21
|
+
};
|
|
22
|
+
exports.ServiceThirdparty = ServiceThirdparty;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ServiceThirdparty.prototype, "name", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.OneToMany)(() => email_entity_1.EmailThirdparty, email => email.service),
|
|
29
|
+
__metadata("design:type", Array)
|
|
30
|
+
], ServiceThirdparty.prototype, "emails", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.OneToMany)(() => oauth_entity_1.Oauth, oauth => oauth.service),
|
|
33
|
+
__metadata("design:type", Array)
|
|
34
|
+
], ServiceThirdparty.prototype, "oauth", void 0);
|
|
35
|
+
exports.ServiceThirdparty = ServiceThirdparty = __decorate([
|
|
36
|
+
(0, typeorm_1.Entity)()
|
|
37
|
+
], ServiceThirdparty);
|
|
38
|
+
//# 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,mEAA+D;AAC/D,qCAAoD;AACpD,iDAAgD;AAChD,iDAAsC;AAG/B,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,wBAAU;IAE/C,IAAI,CAAS;IAGb,MAAM,CAAoB;IAG1B,KAAK,CAAU;CAChB,CAAA;AATY,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;AAG1B;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC;;gDAChC;4BARJ,iBAAiB;IAD7B,IAAA,gBAAM,GAAE;GACI,iBAAiB,CAS7B"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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.UserEmailRelation = void 0;
|
|
13
|
+
const base_entity_1 = require("../../common/database/base.entity");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const user_entity_1 = require("../user.entity");
|
|
16
|
+
const email_entity_1 = require("./email.entity");
|
|
17
|
+
let UserEmailRelation = class UserEmailRelation extends base_entity_1.EntityBase {
|
|
18
|
+
user;
|
|
19
|
+
email;
|
|
20
|
+
};
|
|
21
|
+
exports.UserEmailRelation = UserEmailRelation;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, (user) => user.emailRelations, { onDelete: "CASCADE", onUpdate: "CASCADE" }),
|
|
24
|
+
(0, typeorm_1.JoinColumn)(),
|
|
25
|
+
__metadata("design:type", user_entity_1.User)
|
|
26
|
+
], UserEmailRelation.prototype, "user", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.ManyToOne)(() => email_entity_1.EmailThirdparty, (email) => email.userRelations, { onDelete: "CASCADE", onUpdate: "CASCADE" }),
|
|
29
|
+
(0, typeorm_1.JoinColumn)(),
|
|
30
|
+
__metadata("design:type", email_entity_1.EmailThirdparty)
|
|
31
|
+
], UserEmailRelation.prototype, "email", void 0);
|
|
32
|
+
exports.UserEmailRelation = UserEmailRelation = __decorate([
|
|
33
|
+
(0, typeorm_1.Entity)()
|
|
34
|
+
], UserEmailRelation);
|
|
35
|
+
//# sourceMappingURL=user-email-relation.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-email-relation.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/user-email-relation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAAwD;AACxD,gDAAsC;AACtC,iDAAiD;AAG1C,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,wBAAU;IAG/C,IAAI,CAAO;IAIX,KAAK,CAAkB;CACxB,CAAA;AARY,8CAAiB;AAG5B;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAClG,IAAA,oBAAU,GAAE;8BACP,kBAAI;+CAAC;AAIX;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAe,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC9G,IAAA,oBAAU,GAAE;8BACN,8BAAe;gDAAC;4BAPZ,iBAAiB;IAD7B,IAAA,gBAAM,GAAE;GACI,iBAAiB,CAQ7B"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { BaseEntityOnlyEssential } from '../../../common/database/base.entity';
|
|
2
|
+
import { Oauth } from '../../thirdparty/oauth.entity';
|
|
3
|
+
import { User } from '../../user.entity';
|
|
4
|
+
export declare enum CalendarProvider {
|
|
5
|
+
GOOGLE = "google",
|
|
6
|
+
ICLOUD = "icloud",
|
|
7
|
+
MICROSOFT = "microsoft"
|
|
8
|
+
}
|
|
9
|
+
export declare class CalendarList extends BaseEntityOnlyEssential {
|
|
10
|
+
calendarId: string;
|
|
11
|
+
name: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
isPrimary: boolean;
|
|
14
|
+
timeZone: string;
|
|
15
|
+
accessRole?: string;
|
|
16
|
+
color?: string;
|
|
17
|
+
selected: boolean;
|
|
18
|
+
defaultReminders?: {
|
|
19
|
+
method: string;
|
|
20
|
+
minutes: number;
|
|
21
|
+
}[];
|
|
22
|
+
conferenceProperties?: {
|
|
23
|
+
allowedConferenceSolutionTypes: string[];
|
|
24
|
+
};
|
|
25
|
+
notificationSettings?: {
|
|
26
|
+
notifications: {
|
|
27
|
+
type: string;
|
|
28
|
+
method: string;
|
|
29
|
+
}[];
|
|
30
|
+
};
|
|
31
|
+
ownerName?: string;
|
|
32
|
+
ownerEmail?: string;
|
|
33
|
+
provider: CalendarProvider;
|
|
34
|
+
oauth: Oauth;
|
|
35
|
+
user: User;
|
|
36
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
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.CalendarList = exports.CalendarProvider = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const base_entity_1 = require("../../../common/database/base.entity");
|
|
15
|
+
const oauth_entity_1 = require("../../thirdparty/oauth.entity");
|
|
16
|
+
const user_entity_1 = require("../../user.entity");
|
|
17
|
+
var CalendarProvider;
|
|
18
|
+
(function (CalendarProvider) {
|
|
19
|
+
CalendarProvider["GOOGLE"] = "google";
|
|
20
|
+
CalendarProvider["ICLOUD"] = "icloud";
|
|
21
|
+
CalendarProvider["MICROSOFT"] = "microsoft";
|
|
22
|
+
})(CalendarProvider || (exports.CalendarProvider = CalendarProvider = {}));
|
|
23
|
+
let CalendarList = class CalendarList extends base_entity_1.BaseEntityOnlyEssential {
|
|
24
|
+
calendarId;
|
|
25
|
+
name;
|
|
26
|
+
description;
|
|
27
|
+
isPrimary;
|
|
28
|
+
timeZone;
|
|
29
|
+
accessRole;
|
|
30
|
+
color;
|
|
31
|
+
selected;
|
|
32
|
+
defaultReminders;
|
|
33
|
+
conferenceProperties;
|
|
34
|
+
notificationSettings;
|
|
35
|
+
ownerName;
|
|
36
|
+
ownerEmail;
|
|
37
|
+
provider;
|
|
38
|
+
oauth;
|
|
39
|
+
user;
|
|
40
|
+
};
|
|
41
|
+
exports.CalendarList = CalendarList;
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'varchar', unique: true }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], CalendarList.prototype, "calendarId", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], CalendarList.prototype, "name", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], CalendarList.prototype, "description", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
56
|
+
__metadata("design:type", Boolean)
|
|
57
|
+
], CalendarList.prototype, "isPrimary", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)(),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], CalendarList.prototype, "timeZone", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], CalendarList.prototype, "accessRole", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], CalendarList.prototype, "color", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
72
|
+
__metadata("design:type", Boolean)
|
|
73
|
+
], CalendarList.prototype, "selected", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
76
|
+
__metadata("design:type", Array)
|
|
77
|
+
], CalendarList.prototype, "defaultReminders", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
80
|
+
__metadata("design:type", Object)
|
|
81
|
+
], CalendarList.prototype, "conferenceProperties", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
84
|
+
__metadata("design:type", Object)
|
|
85
|
+
], CalendarList.prototype, "notificationSettings", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], CalendarList.prototype, "ownerName", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], CalendarList.prototype, "ownerEmail", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: CalendarProvider }),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], CalendarList.prototype, "provider", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, typeorm_1.ManyToOne)(() => oauth_entity_1.Oauth, { nullable: false, onDelete: 'CASCADE' }),
|
|
100
|
+
__metadata("design:type", oauth_entity_1.Oauth)
|
|
101
|
+
], CalendarList.prototype, "oauth", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: false, onDelete: 'CASCADE' }),
|
|
104
|
+
__metadata("design:type", user_entity_1.User)
|
|
105
|
+
], CalendarList.prototype, "user", void 0);
|
|
106
|
+
exports.CalendarList = CalendarList = __decorate([
|
|
107
|
+
(0, typeorm_1.Entity)()
|
|
108
|
+
], CalendarList);
|
|
109
|
+
//# sourceMappingURL=calendar-list.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-list.entity.js","sourceRoot":"","sources":["../../../../src/entities/tools/calendar/calendar-list.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AAEpD,sEAA+E;AAC/E,gEAAsD;AACtD,mDAAyC;AAEzC,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,qCAAiB,CA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AE,CAAC;;0DAC0B;AAGpE;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACmC;AAI7E;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACR;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACP;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;;8CACtB;AAG3B;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC1D,oBAAK;2CAAC;AAGb;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC1D,kBAAI;0CAAC;uBAhDA,YAAY;IADxB,IAAA,gBAAM,GAAE;GACI,YAAY,CAiDxB"}
|
|
@@ -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.EventListCalendars = void 0;
|
|
13
|
+
const base_entity_1 = require("../../../common/database/base.entity");
|
|
14
|
+
const oauth_entity_1 = require("../../thirdparty/oauth.entity");
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
let EventListCalendars = class EventListCalendars extends base_entity_1.EntityBase {
|
|
17
|
+
calendars;
|
|
18
|
+
oAuth;
|
|
19
|
+
};
|
|
20
|
+
exports.EventListCalendars = EventListCalendars;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ type: "jsonb" }),
|
|
23
|
+
__metadata("design:type", Array)
|
|
24
|
+
], EventListCalendars.prototype, "calendars", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.OneToOne)(() => oauth_entity_1.Oauth, (oauth) => oauth.calendarsList),
|
|
27
|
+
__metadata("design:type", oauth_entity_1.Oauth)
|
|
28
|
+
], EventListCalendars.prototype, "oAuth", void 0);
|
|
29
|
+
exports.EventListCalendars = EventListCalendars = __decorate([
|
|
30
|
+
(0, typeorm_1.Entity)()
|
|
31
|
+
], EventListCalendars);
|
|
32
|
+
//# sourceMappingURL=event-list-calendars.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-list-calendars.entity.js","sourceRoot":"","sources":["../../../../src/entities/tools/calendar/event-list-calendars.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sEAAkE;AAClE,gEAAsD;AACtD,qCAAmD;AAG5C,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,wBAAU;IAEhD,SAAS,CAAW;IAGpB,KAAK,CAAQ;CACd,CAAA;AANY,gDAAkB;AAE7B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;qDACN;AAGpB;IADC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC;8BAC/C,oBAAK;iDAAC;6BALF,kBAAkB;IAD9B,IAAA,gBAAM,GAAE;GACI,kBAAkB,CAM9B"}
|