easywork-common-lib 1.0.863 → 1.0.866
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/tools/calendar/calendar-external-item.entity.d.ts +38 -0
- package/dist/entities/tools/calendar/calendar-external-item.entity.js +115 -0
- package/dist/entities/tools/calendar/calendar-external-item.entity.js.map +1 -0
- package/dist/entities/tools/calendar/calendar-item.entity.d.ts +3 -0
- package/dist/entities/tools/calendar/calendar-item.entity.js +11 -0
- package/dist/entities/tools/calendar/calendar-item.entity.js.map +1 -1
- package/dist/entities/tools/calendar/calendar-sub-item.entity.d.ts +38 -0
- package/dist/entities/tools/calendar/calendar-sub-item.entity.js +115 -0
- package/dist/entities/tools/calendar/calendar-sub-item.entity.js.map +1 -0
- package/dist/entities/tools/calendar/index.d.ts +1 -1
- package/dist/entities/tools/calendar/index.js +1 -1
- package/dist/entities/tools/calendar/index.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { BaseEntityOnlyEssential } from '../../../common/database/base.entity';
|
|
2
|
+
import { Oauth } from '../../thirdparty/oauth.entity';
|
|
3
|
+
import { User } from '../../user.entity';
|
|
4
|
+
import { CalendarItem } from './calendar-item.entity';
|
|
5
|
+
export declare enum CalendarProvider {
|
|
6
|
+
GOOGLE = "google",
|
|
7
|
+
ICLOUD = "icloud",
|
|
8
|
+
MICROSOFT = "microsoft"
|
|
9
|
+
}
|
|
10
|
+
export declare class CalendarExternalItem extends BaseEntityOnlyEssential {
|
|
11
|
+
calendarId: string;
|
|
12
|
+
name: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
isPrimary: boolean;
|
|
15
|
+
timeZone: string;
|
|
16
|
+
accessRole?: string;
|
|
17
|
+
color?: string;
|
|
18
|
+
selected: boolean;
|
|
19
|
+
defaultReminders?: {
|
|
20
|
+
method: string;
|
|
21
|
+
minutes: number;
|
|
22
|
+
}[];
|
|
23
|
+
conferenceProperties?: {
|
|
24
|
+
allowedConferenceSolutionTypes: string[];
|
|
25
|
+
};
|
|
26
|
+
notificationSettings?: {
|
|
27
|
+
notifications: {
|
|
28
|
+
type: string;
|
|
29
|
+
method: string;
|
|
30
|
+
}[];
|
|
31
|
+
};
|
|
32
|
+
ownerName?: string;
|
|
33
|
+
ownerEmail?: string;
|
|
34
|
+
provider: CalendarProvider;
|
|
35
|
+
calendar: CalendarItem;
|
|
36
|
+
oauth: Oauth;
|
|
37
|
+
user: User;
|
|
38
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
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.CalendarExternalItem = 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
|
+
const calendar_item_entity_1 = require("./calendar-item.entity");
|
|
18
|
+
var CalendarProvider;
|
|
19
|
+
(function (CalendarProvider) {
|
|
20
|
+
CalendarProvider["GOOGLE"] = "google";
|
|
21
|
+
CalendarProvider["ICLOUD"] = "icloud";
|
|
22
|
+
CalendarProvider["MICROSOFT"] = "microsoft";
|
|
23
|
+
})(CalendarProvider || (exports.CalendarProvider = CalendarProvider = {}));
|
|
24
|
+
let CalendarExternalItem = class CalendarExternalItem extends base_entity_1.BaseEntityOnlyEssential {
|
|
25
|
+
calendarId;
|
|
26
|
+
name;
|
|
27
|
+
description;
|
|
28
|
+
isPrimary;
|
|
29
|
+
timeZone;
|
|
30
|
+
accessRole;
|
|
31
|
+
color;
|
|
32
|
+
selected;
|
|
33
|
+
defaultReminders;
|
|
34
|
+
conferenceProperties;
|
|
35
|
+
notificationSettings;
|
|
36
|
+
ownerName;
|
|
37
|
+
ownerEmail;
|
|
38
|
+
provider;
|
|
39
|
+
calendar;
|
|
40
|
+
oauth;
|
|
41
|
+
user;
|
|
42
|
+
};
|
|
43
|
+
exports.CalendarExternalItem = CalendarExternalItem;
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'varchar', unique: true }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], CalendarExternalItem.prototype, "calendarId", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], CalendarExternalItem.prototype, "name", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], CalendarExternalItem.prototype, "description", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
58
|
+
__metadata("design:type", Boolean)
|
|
59
|
+
], CalendarExternalItem.prototype, "isPrimary", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)(),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], CalendarExternalItem.prototype, "timeZone", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], CalendarExternalItem.prototype, "accessRole", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], CalendarExternalItem.prototype, "color", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
74
|
+
__metadata("design:type", Boolean)
|
|
75
|
+
], CalendarExternalItem.prototype, "selected", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
78
|
+
__metadata("design:type", Array)
|
|
79
|
+
], CalendarExternalItem.prototype, "defaultReminders", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
82
|
+
__metadata("design:type", Object)
|
|
83
|
+
], CalendarExternalItem.prototype, "conferenceProperties", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
86
|
+
__metadata("design:type", Object)
|
|
87
|
+
], CalendarExternalItem.prototype, "notificationSettings", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
90
|
+
__metadata("design:type", String)
|
|
91
|
+
], CalendarExternalItem.prototype, "ownerName", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], CalendarExternalItem.prototype, "ownerEmail", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: CalendarProvider }),
|
|
98
|
+
__metadata("design:type", String)
|
|
99
|
+
], CalendarExternalItem.prototype, "provider", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, typeorm_1.ManyToOne)(() => calendar_item_entity_1.CalendarItem, { nullable: false, onDelete: 'CASCADE' }),
|
|
102
|
+
__metadata("design:type", calendar_item_entity_1.CalendarItem)
|
|
103
|
+
], CalendarExternalItem.prototype, "calendar", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, typeorm_1.ManyToOne)(() => oauth_entity_1.Oauth, { nullable: false, onDelete: 'CASCADE' }),
|
|
106
|
+
__metadata("design:type", oauth_entity_1.Oauth)
|
|
107
|
+
], CalendarExternalItem.prototype, "oauth", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: false, onDelete: 'CASCADE' }),
|
|
110
|
+
__metadata("design:type", user_entity_1.User)
|
|
111
|
+
], CalendarExternalItem.prototype, "user", void 0);
|
|
112
|
+
exports.CalendarExternalItem = CalendarExternalItem = __decorate([
|
|
113
|
+
(0, typeorm_1.Entity)()
|
|
114
|
+
], CalendarExternalItem);
|
|
115
|
+
//# sourceMappingURL=calendar-external-item.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-external-item.entity.js","sourceRoot":"","sources":["../../../../src/entities/tools/calendar/calendar-external-item.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AAEpD,sEAA+E;AAC/E,gEAAsD;AACtD,mDAAyC;AACzC,iEAAsD;AAEtD,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,qCAAiB,CAAA;IACjB,qCAAiB,CAAA;IACjB,2CAAuB,CAAA;AACzB,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B;AAGM,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,qCAAuB;IAE/D,UAAU,CAAS;IAGnB,IAAI,CAAS;IAGb,WAAW,CAAU;IAGrB,SAAS,CAAU;IAGnB,QAAQ,CAAS;IAGjB,UAAU,CAAU;IAGpB,KAAK,C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,CAAC;;wDACP;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;;sDACtB;AAG3B;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mCAAY,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC9D,mCAAY;sDAAC;AAGvB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC1D,oBAAK;mDAAC;AAGb;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC1D,kBAAI;kDAAC;+BAnDA,oBAAoB;IADhC,IAAA,gBAAM,GAAE;GACI,oBAAoB,CAoDhC"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { BaseEntityOnlyEssential } from '../../../common/database/base.entity';
|
|
2
2
|
import { Oauth } from '../../thirdparty/oauth.entity';
|
|
3
3
|
import { User } from '../../user.entity';
|
|
4
|
+
import { CalendarProvider, CalendarSubItem } from './calendar-sub-item.entity';
|
|
4
5
|
export declare class CalendarItem extends BaseEntityOnlyEssential {
|
|
5
6
|
name?: string;
|
|
6
7
|
email: string;
|
|
8
|
+
provider: CalendarProvider;
|
|
9
|
+
subCalendars: CalendarSubItem[];
|
|
7
10
|
oauth: Oauth;
|
|
8
11
|
user: User;
|
|
9
12
|
}
|
|
@@ -14,9 +14,12 @@ const typeorm_1 = require("typeorm");
|
|
|
14
14
|
const base_entity_1 = require("../../../common/database/base.entity");
|
|
15
15
|
const oauth_entity_1 = require("../../thirdparty/oauth.entity");
|
|
16
16
|
const user_entity_1 = require("../../user.entity");
|
|
17
|
+
const calendar_sub_item_entity_1 = require("./calendar-sub-item.entity");
|
|
17
18
|
let CalendarItem = class CalendarItem extends base_entity_1.BaseEntityOnlyEssential {
|
|
18
19
|
name;
|
|
19
20
|
email;
|
|
21
|
+
provider;
|
|
22
|
+
subCalendars;
|
|
20
23
|
oauth;
|
|
21
24
|
user;
|
|
22
25
|
};
|
|
@@ -29,6 +32,14 @@ __decorate([
|
|
|
29
32
|
(0, typeorm_1.Column)(),
|
|
30
33
|
__metadata("design:type", String)
|
|
31
34
|
], CalendarItem.prototype, "email", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: calendar_sub_item_entity_1.CalendarProvider }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], CalendarItem.prototype, "provider", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.OneToMany)(() => calendar_sub_item_entity_1.CalendarSubItem, calendarSubItem => calendarSubItem.calendar, { nullable: true }),
|
|
41
|
+
__metadata("design:type", Array)
|
|
42
|
+
], CalendarItem.prototype, "subCalendars", void 0);
|
|
32
43
|
__decorate([
|
|
33
44
|
(0, typeorm_1.ManyToOne)(() => oauth_entity_1.Oauth, { nullable: false, onDelete: 'CASCADE' }),
|
|
34
45
|
__metadata("design:type", oauth_entity_1.Oauth)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-item.entity.js","sourceRoot":"","sources":["../../../../src/entities/tools/calendar/calendar-item.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"calendar-item.entity.js","sourceRoot":"","sources":["../../../../src/entities/tools/calendar/calendar-item.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA+D;AAE/D,sEAA+E;AAC/E,gEAAsD;AACtD,mDAAyC;AACzC,yEAA+E;AAGxE,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,qCAAuB;IAEvD,IAAI,CAAU;IAGd,KAAK,CAAS;IAGd,QAAQ,CAAmB;IAG3B,YAAY,CAAoB;IAGhC,KAAK,CAAQ;IAGb,IAAI,CAAO;CACZ,CAAA;AAlBY,oCAAY;AAEvB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACb;AAGd;IADC,IAAA,gBAAM,GAAE;;2CACK;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,2CAAgB,EAAE,CAAC;;8CACtB;AAG3B;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0CAAe,EAAE,eAAe,CAAC,EAAE,CAAC,eAAe,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDAClE;AAGhC;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;uBAjBA,YAAY;IADxB,IAAA,gBAAM,GAAE;GACI,YAAY,CAkBxB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { BaseEntityOnlyEssential } from '../../../common/database/base.entity';
|
|
2
|
+
import { Oauth } from '../../thirdparty/oauth.entity';
|
|
3
|
+
import { User } from '../../user.entity';
|
|
4
|
+
import { CalendarItem } from './calendar-item.entity';
|
|
5
|
+
export declare enum CalendarProvider {
|
|
6
|
+
GOOGLE = "google",
|
|
7
|
+
ICLOUD = "icloud",
|
|
8
|
+
MICROSOFT = "microsoft"
|
|
9
|
+
}
|
|
10
|
+
export declare class CalendarSubItem extends BaseEntityOnlyEssential {
|
|
11
|
+
calendarId: string;
|
|
12
|
+
name: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
isPrimary: boolean;
|
|
15
|
+
timeZone: string;
|
|
16
|
+
accessRole?: string;
|
|
17
|
+
color?: string;
|
|
18
|
+
selected: boolean;
|
|
19
|
+
defaultReminders?: {
|
|
20
|
+
method: string;
|
|
21
|
+
minutes: number;
|
|
22
|
+
}[];
|
|
23
|
+
conferenceProperties?: {
|
|
24
|
+
allowedConferenceSolutionTypes: string[];
|
|
25
|
+
};
|
|
26
|
+
notificationSettings?: {
|
|
27
|
+
notifications: {
|
|
28
|
+
type: string;
|
|
29
|
+
method: string;
|
|
30
|
+
}[];
|
|
31
|
+
};
|
|
32
|
+
ownerName?: string;
|
|
33
|
+
ownerEmail?: string;
|
|
34
|
+
provider: CalendarProvider;
|
|
35
|
+
calendar: CalendarItem;
|
|
36
|
+
oauth: Oauth;
|
|
37
|
+
user: User;
|
|
38
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
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.CalendarSubItem = 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
|
+
const calendar_item_entity_1 = require("./calendar-item.entity");
|
|
18
|
+
var CalendarProvider;
|
|
19
|
+
(function (CalendarProvider) {
|
|
20
|
+
CalendarProvider["GOOGLE"] = "google";
|
|
21
|
+
CalendarProvider["ICLOUD"] = "icloud";
|
|
22
|
+
CalendarProvider["MICROSOFT"] = "microsoft";
|
|
23
|
+
})(CalendarProvider || (exports.CalendarProvider = CalendarProvider = {}));
|
|
24
|
+
let CalendarSubItem = class CalendarSubItem extends base_entity_1.BaseEntityOnlyEssential {
|
|
25
|
+
calendarId;
|
|
26
|
+
name;
|
|
27
|
+
description;
|
|
28
|
+
isPrimary;
|
|
29
|
+
timeZone;
|
|
30
|
+
accessRole;
|
|
31
|
+
color;
|
|
32
|
+
selected;
|
|
33
|
+
defaultReminders;
|
|
34
|
+
conferenceProperties;
|
|
35
|
+
notificationSettings;
|
|
36
|
+
ownerName;
|
|
37
|
+
ownerEmail;
|
|
38
|
+
provider;
|
|
39
|
+
calendar;
|
|
40
|
+
oauth;
|
|
41
|
+
user;
|
|
42
|
+
};
|
|
43
|
+
exports.CalendarSubItem = CalendarSubItem;
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)({ type: 'varchar', unique: true }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], CalendarSubItem.prototype, "calendarId", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], CalendarSubItem.prototype, "name", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], CalendarSubItem.prototype, "description", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
58
|
+
__metadata("design:type", Boolean)
|
|
59
|
+
], CalendarSubItem.prototype, "isPrimary", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)(),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], CalendarSubItem.prototype, "timeZone", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], CalendarSubItem.prototype, "accessRole", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], CalendarSubItem.prototype, "color", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
74
|
+
__metadata("design:type", Boolean)
|
|
75
|
+
], CalendarSubItem.prototype, "selected", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
78
|
+
__metadata("design:type", Array)
|
|
79
|
+
], CalendarSubItem.prototype, "defaultReminders", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
82
|
+
__metadata("design:type", Object)
|
|
83
|
+
], CalendarSubItem.prototype, "conferenceProperties", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
86
|
+
__metadata("design:type", Object)
|
|
87
|
+
], CalendarSubItem.prototype, "notificationSettings", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
90
|
+
__metadata("design:type", String)
|
|
91
|
+
], CalendarSubItem.prototype, "ownerName", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], CalendarSubItem.prototype, "ownerEmail", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: CalendarProvider }),
|
|
98
|
+
__metadata("design:type", String)
|
|
99
|
+
], CalendarSubItem.prototype, "provider", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, typeorm_1.ManyToOne)(() => calendar_item_entity_1.CalendarItem, { nullable: false, onDelete: 'CASCADE' }),
|
|
102
|
+
__metadata("design:type", calendar_item_entity_1.CalendarItem)
|
|
103
|
+
], CalendarSubItem.prototype, "calendar", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, typeorm_1.ManyToOne)(() => oauth_entity_1.Oauth, { nullable: false, onDelete: 'CASCADE' }),
|
|
106
|
+
__metadata("design:type", oauth_entity_1.Oauth)
|
|
107
|
+
], CalendarSubItem.prototype, "oauth", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: false, onDelete: 'CASCADE' }),
|
|
110
|
+
__metadata("design:type", user_entity_1.User)
|
|
111
|
+
], CalendarSubItem.prototype, "user", void 0);
|
|
112
|
+
exports.CalendarSubItem = CalendarSubItem = __decorate([
|
|
113
|
+
(0, typeorm_1.Entity)()
|
|
114
|
+
], CalendarSubItem);
|
|
115
|
+
//# sourceMappingURL=calendar-sub-item.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-sub-item.entity.js","sourceRoot":"","sources":["../../../../src/entities/tools/calendar/calendar-sub-item.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AAEpD,sEAA+E;AAC/E,gEAAsD;AACtD,mDAAyC;AACzC,iEAAsD;AAEtD,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,qCAAiB,CAAA;IACjB,qCAAiB,CAAA;IACjB,2CAAuB,CAAA;AACzB,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B;AAGM,IAAM,eAAe,GAArB,M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AAE,CAAC;;6DACmC;AAI7E;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACR;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACP;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;;iDACtB;AAG3B;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mCAAY,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC9D,mCAAY;iDAAC;AAGvB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC1D,oBAAK;8CAAC;AAGb;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC1D,kBAAI;6CAAC;0BAnDA,eAAe;IAD3B,IAAA,gBAAM,GAAE;GACI,eAAe,CAoD3B"}
|
|
@@ -2,6 +2,6 @@ export * from './event.entity';
|
|
|
2
2
|
export * from './calendar-user-access.entity';
|
|
3
3
|
export * from './calendar-event-invitations.entity';
|
|
4
4
|
export * from './calendar-general-config.entity';
|
|
5
|
-
export * from './calendar-
|
|
5
|
+
export * from './calendar-sub-item.entity';
|
|
6
6
|
export * from './calendar-item.entity';
|
|
7
7
|
export * from './calendar-reminder.entity';
|
|
@@ -18,7 +18,7 @@ __exportStar(require("./event.entity"), exports);
|
|
|
18
18
|
__exportStar(require("./calendar-user-access.entity"), exports);
|
|
19
19
|
__exportStar(require("./calendar-event-invitations.entity"), exports);
|
|
20
20
|
__exportStar(require("./calendar-general-config.entity"), exports);
|
|
21
|
-
__exportStar(require("./calendar-
|
|
21
|
+
__exportStar(require("./calendar-sub-item.entity"), exports);
|
|
22
22
|
__exportStar(require("./calendar-item.entity"), exports);
|
|
23
23
|
__exportStar(require("./calendar-reminder.entity"), exports);
|
|
24
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/tools/calendar/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,gEAA8C;AAC9C,sEAAoD;AACpD,mEAAiD;AACjD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/tools/calendar/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,gEAA8C;AAC9C,sEAAoD;AACpD,mEAAiD;AACjD,6DAA2C;AAC3C,yDAAuC;AACvC,6DAA2C"}
|