easywork-common-lib 1.0.889 → 1.0.891

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.
@@ -1,38 +0,0 @@
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
- }
@@ -1,115 +0,0 @@
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
@@ -1 +0,0 @@
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,CAAU;IAGf,QAAQ,CAAU;IAGlB,gBAAgB,CAAyC;IAGzD,oBAAoB,CAAgD;IAGpE,oBAAoB,CAAyD;IAI7E,SAAS,CAAU;IAGnB,UAAU,CAAU;IAGpB,QAAQ,CAAmB;IAG3B,QAAQ,CAAe;IAGvB,KAAK,CAAQ;IAGb,IAAI,CAAO;CACZ,CAAA;AApDY,oDAAoB;AAE/B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;wDACvB;AAGnB;IADC,IAAA,gBAAM,GAAE;;kDACI;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACN;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;uDACR;AAGnB;IADC,IAAA,gBAAM,GAAE;;sDACQ;AAGjB;IADC,IAAA,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AAA,gBAAM,GAAE;GACI,oBAAoB,CAoDhC"}
@@ -1,36 +0,0 @@
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
- }
@@ -1,109 +0,0 @@
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
@@ -1 +0,0 @@
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,CAAA;IACjB,qCAAiB,CAAA;IACjB,2CAAuB,CAAA;AACzB,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B;A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