easywork-common-lib 1.0.803 → 1.0.811

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.
Files changed (36) hide show
  1. package/dist/entities/index.d.ts +2 -4
  2. package/dist/entities/index.js +2 -4
  3. package/dist/entities/index.js.map +1 -1
  4. package/dist/entities/{third-party → thirdparty}/google-calendar-config.entity.d.ts +2 -4
  5. package/dist/entities/{third-party → thirdparty}/google-calendar-config.entity.js +2 -16
  6. package/dist/entities/thirdparty/google-calendar-config.entity.js.map +1 -0
  7. package/dist/entities/thirdparty/google-webhooks-config.entity.d.ts +14 -0
  8. package/dist/entities/thirdparty/google-webhooks-config.entity.js +72 -0
  9. package/dist/entities/thirdparty/google-webhooks-config.entity.js.map +1 -0
  10. package/dist/entities/thirdparty/oauth-v2.entity.d.ts +22 -0
  11. package/dist/entities/thirdparty/oauth-v2.entity.js +75 -0
  12. package/dist/entities/thirdparty/oauth-v2.entity.js.map +1 -0
  13. package/dist/entities/tools/calendar/calendar-event-invitations.entity.d.ts +13 -0
  14. package/dist/entities/tools/calendar/calendar-event-invitations.entity.js +48 -0
  15. package/dist/entities/tools/calendar/calendar-event-invitations.entity.js.map +1 -0
  16. package/dist/entities/tools/calendar/calendar-general-config.entity.d.ts +20 -0
  17. package/dist/entities/tools/calendar/calendar-general-config.entity.js +118 -0
  18. package/dist/entities/tools/calendar/calendar-general-config.entity.js.map +1 -0
  19. package/dist/entities/tools/calendar/calendar-list.entity.d.ts +36 -0
  20. package/dist/entities/tools/calendar/calendar-list.entity.js +109 -0
  21. package/dist/entities/tools/calendar/calendar-list.entity.js.map +1 -0
  22. package/dist/entities/tools/calendar/calendar-user-access.entity.d.ts +13 -0
  23. package/dist/entities/tools/calendar/calendar-user-access.entity.js +46 -0
  24. package/dist/entities/tools/calendar/calendar-user-access.entity.js.map +1 -0
  25. package/dist/entities/tools/calendar/index.d.ts +4 -0
  26. package/dist/entities/tools/calendar/index.js +4 -0
  27. package/dist/entities/tools/calendar/index.js.map +1 -1
  28. package/package.json +1 -1
  29. package/tsconfig.tsbuildinfo +1 -1
  30. package/dist/entities/google-calendar-config.entity.d.ts +0 -31
  31. package/dist/entities/google-calendar-config.entity.js +0 -31
  32. package/dist/entities/google-calendar-config.entity.js.map +0 -1
  33. package/dist/entities/google-oauth-credentials.entity.d.ts +0 -9
  34. package/dist/entities/google-oauth-credentials.entity.js +0 -51
  35. package/dist/entities/google-oauth-credentials.entity.js.map +0 -1
  36. package/dist/entities/third-party/google-calendar-config.entity.js.map +0 -1
@@ -1,10 +1,8 @@
1
1
  export * from './app_config/app-config.entity';
2
- export * from './capacitation';
3
2
  export * from './currency.entity';
4
3
  export * from './drive';
5
4
  export * from './easyapp/filter-view.entity';
6
5
  export * from './email.entity';
7
- export * from './google-oauth-credentials.entity';
8
6
  export * from './group.entity';
9
7
  export * from './helpers';
10
8
  export * from './imap-config.entity';
@@ -24,12 +22,12 @@ export * from './role.entity';
24
22
  export * from './sales';
25
23
  export * from './tag.entity';
26
24
  export * from './tools';
27
- export * from './tools/calendar/event-list-calendars.entity';
28
25
  export * from './user-invitations.entity';
29
26
  export * from './user.entity';
27
+ export * from './capacitation';
28
+ export * from './tools/calendar';
30
29
  export * from './third-party/email-config.entity';
31
30
  export * from './third-party/email.entity';
32
- export * from './third-party/google-calendar-config.entity';
33
31
  export * from './third-party/google-webhooks-config.entity';
34
32
  export * from './third-party/oauth-v2.entity';
35
33
  export * from './third-party/oauth.entity';
@@ -15,12 +15,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./app_config/app-config.entity"), exports);
18
- __exportStar(require("./capacitation"), exports);
19
18
  __exportStar(require("./currency.entity"), exports);
20
19
  __exportStar(require("./drive"), exports);
21
20
  __exportStar(require("./easyapp/filter-view.entity"), exports);
22
21
  __exportStar(require("./email.entity"), exports);
23
- __exportStar(require("./google-oauth-credentials.entity"), exports);
24
22
  __exportStar(require("./group.entity"), exports);
25
23
  __exportStar(require("./helpers"), exports);
26
24
  __exportStar(require("./imap-config.entity"), exports);
@@ -40,12 +38,12 @@ __exportStar(require("./role.entity"), exports);
40
38
  __exportStar(require("./sales"), exports);
41
39
  __exportStar(require("./tag.entity"), exports);
42
40
  __exportStar(require("./tools"), exports);
43
- __exportStar(require("./tools/calendar/event-list-calendars.entity"), exports);
44
41
  __exportStar(require("./user-invitations.entity"), exports);
45
42
  __exportStar(require("./user.entity"), exports);
43
+ __exportStar(require("./capacitation"), exports);
44
+ __exportStar(require("./tools/calendar"), exports);
46
45
  __exportStar(require("./third-party/email-config.entity"), exports);
47
46
  __exportStar(require("./third-party/email.entity"), exports);
48
- __exportStar(require("./third-party/google-calendar-config.entity"), exports);
49
47
  __exportStar(require("./third-party/google-webhooks-config.entity"), exports);
50
48
  __exportStar(require("./third-party/oauth-v2.entity"), exports);
51
49
  __exportStar(require("./third-party/oauth.entity"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C;AAC/C,iDAA+B;AAC/B,oDAAkC;AAClC,0CAAwB;AACxB,+DAA6C;AAC7C,iDAA+B;AAC/B,oEAAkD;AAClD,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,+EAA6D;AAC7D,4DAA0C;AAC1C,gDAA8B;AAG9B,oEAAkD;AAClD,6DAA2C;AAC3C,8EAA4D;AAC5D,8EAA4D;AAC5D,gEAA8C;AAC9C,6DAA2C;AAC3C,+DAA6C;AAC7C,2EAAyD"}
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,mDAAiC;AAGjC,oEAAkD;AAClD,6DAA2C;AAC3C,8EAA4D;AAC5D,gEAA8C;AAC9C,6DAA2C;AAC3C,+DAA6C;AAC7C,2EAAyD"}
@@ -1,7 +1,7 @@
1
+ import { BaseEntityOnlyEssential } from '../../common/database/base.entity';
1
2
  import { OauthV2 } from './oauth-v2.entity';
2
3
  import { User } from '../user.entity';
3
- export declare class GoogleCalendarConfig {
4
- id: string;
4
+ export declare class GoogleCalendarConfig extends BaseEntityOnlyEssential {
5
5
  calendarId: string;
6
6
  name: string;
7
7
  description?: string;
@@ -24,8 +24,6 @@ export declare class GoogleCalendarConfig {
24
24
  method: string;
25
25
  }[];
26
26
  };
27
- createdAt?: Date;
28
- updatedAt?: Date;
29
27
  oauth: OauthV2;
30
28
  user: User;
31
29
  }
@@ -11,10 +11,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.GoogleCalendarConfig = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
+ const base_entity_1 = require("../../common/database/base.entity");
14
15
  const oauth_v2_entity_1 = require("./oauth-v2.entity");
15
16
  const user_entity_1 = require("../user.entity");
16
- let GoogleCalendarConfig = class GoogleCalendarConfig {
17
- id;
17
+ let GoogleCalendarConfig = class GoogleCalendarConfig extends base_entity_1.BaseEntityOnlyEssential {
18
18
  calendarId;
19
19
  name;
20
20
  description;
@@ -27,16 +27,10 @@ let GoogleCalendarConfig = class GoogleCalendarConfig {
27
27
  defaultReminders;
28
28
  conferenceProperties;
29
29
  notificationSettings;
30
- createdAt;
31
- updatedAt;
32
30
  oauth;
33
31
  user;
34
32
  };
35
33
  exports.GoogleCalendarConfig = GoogleCalendarConfig;
36
- __decorate([
37
- (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
38
- __metadata("design:type", String)
39
- ], GoogleCalendarConfig.prototype, "id", void 0);
40
34
  __decorate([
41
35
  (0, typeorm_1.Column)({ type: 'varchar', unique: true }),
42
36
  __metadata("design:type", String)
@@ -85,14 +79,6 @@ __decorate([
85
79
  (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
86
80
  __metadata("design:type", Object)
87
81
  ], GoogleCalendarConfig.prototype, "notificationSettings", void 0);
88
- __decorate([
89
- (0, typeorm_1.CreateDateColumn)(),
90
- __metadata("design:type", Date)
91
- ], GoogleCalendarConfig.prototype, "createdAt", void 0);
92
- __decorate([
93
- (0, typeorm_1.UpdateDateColumn)(),
94
- __metadata("design:type", Date)
95
- ], GoogleCalendarConfig.prototype, "updatedAt", void 0);
96
82
  __decorate([
97
83
  (0, typeorm_1.ManyToOne)(() => oauth_v2_entity_1.OauthV2, { nullable: false, onDelete: 'CASCADE' }),
98
84
  __metadata("design:type", oauth_v2_entity_1.OauthV2)
@@ -0,0 +1 @@
1
+ {"version":3,"file":"google-calendar-config.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/google-calendar-config.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AAEpD,mEAA4E;AAC5E,uDAA4C;AAC5C,gDAAsC;AAG/B,IAAM,oBAAoB,GAA1B,MA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AG7E;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,yBAAO,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC5D,yBAAO;mDAAC;AAGf;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC1D,kBAAI;kDAAC;+BAzCA,oBAAoB;IADhC,IAAA,gBAAM,GAAE;GACI,oBAAoB,CA0ChC"}
@@ -0,0 +1,14 @@
1
+ import { OauthV2 } from './oauth-v2.entity';
2
+ import { User } from '../user.entity';
3
+ export declare class GoogleWebhooksConfig {
4
+ channelId: string;
5
+ resourceId: string;
6
+ notificationUrl: string;
7
+ expiration: number;
8
+ active: boolean;
9
+ syncToken?: string;
10
+ createdAt?: Date;
11
+ updatedAt?: Date;
12
+ oauth: OauthV2;
13
+ user: User;
14
+ }
@@ -0,0 +1,72 @@
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.GoogleWebhooksConfig = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const oauth_v2_entity_1 = require("./oauth-v2.entity");
15
+ const user_entity_1 = require("../user.entity");
16
+ let GoogleWebhooksConfig = class GoogleWebhooksConfig {
17
+ channelId;
18
+ resourceId;
19
+ notificationUrl;
20
+ expiration;
21
+ active;
22
+ syncToken;
23
+ createdAt;
24
+ updatedAt;
25
+ oauth;
26
+ user;
27
+ };
28
+ exports.GoogleWebhooksConfig = GoogleWebhooksConfig;
29
+ __decorate([
30
+ (0, typeorm_1.PrimaryColumn)('uuid'),
31
+ __metadata("design:type", String)
32
+ ], GoogleWebhooksConfig.prototype, "channelId", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)(),
35
+ __metadata("design:type", String)
36
+ ], GoogleWebhooksConfig.prototype, "resourceId", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)(),
39
+ __metadata("design:type", String)
40
+ ], GoogleWebhooksConfig.prototype, "notificationUrl", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: 'bigint' }),
43
+ __metadata("design:type", Number)
44
+ ], GoogleWebhooksConfig.prototype, "expiration", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ default: true }),
47
+ __metadata("design:type", Boolean)
48
+ ], GoogleWebhooksConfig.prototype, "active", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ nullable: true }),
51
+ __metadata("design:type", String)
52
+ ], GoogleWebhooksConfig.prototype, "syncToken", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.CreateDateColumn)(),
55
+ __metadata("design:type", Date)
56
+ ], GoogleWebhooksConfig.prototype, "createdAt", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.UpdateDateColumn)(),
59
+ __metadata("design:type", Date)
60
+ ], GoogleWebhooksConfig.prototype, "updatedAt", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.OneToOne)(() => oauth_v2_entity_1.OauthV2, { nullable: false, onDelete: 'CASCADE' }),
63
+ __metadata("design:type", oauth_v2_entity_1.OauthV2)
64
+ ], GoogleWebhooksConfig.prototype, "oauth", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.OneToOne)(() => user_entity_1.User, { nullable: false, onDelete: 'CASCADE' }),
67
+ __metadata("design:type", user_entity_1.User)
68
+ ], GoogleWebhooksConfig.prototype, "user", void 0);
69
+ exports.GoogleWebhooksConfig = GoogleWebhooksConfig = __decorate([
70
+ (0, typeorm_1.Entity)()
71
+ ], GoogleWebhooksConfig);
72
+ //# sourceMappingURL=google-webhooks-config.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"google-webhooks-config.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/google-webhooks-config.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAsG;AACtG,uDAA4C;AAC5C,gDAAsC;AAG/B,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAE/B,SAAS,CAAS;IAGlB,UAAU,CAAS;IAGnB,eAAe,CAAS;IAGxB,UAAU,CAAS;IAGnB,MAAM,CAAU;IAGhB,SAAS,CAAU;IAGnB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;IAGjB,KAAK,CAAU;IAGf,IAAI,CAAO;CACZ,CAAA;AA9BY,oDAAoB;AAE/B;IADC,IAAA,uBAAa,EAAC,MAAM,CAAC;;uDACJ;AAGlB;IADC,IAAA,gBAAM,GAAE;;wDACU;AAGnB;IADC,IAAA,gBAAM,GAAE;;6DACe;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;wDACR;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;oDACV;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACR;AAGnB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;uDAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;uDAAC;AAGjB;IADC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,yBAAO,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC3D,yBAAO;mDAAC;AAGf;IADC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BACzD,kBAAI;kDAAC;+BA7BA,oBAAoB;IADhC,IAAA,gBAAM,GAAE;GACI,oBAAoB,CA8BhC"}
@@ -0,0 +1,22 @@
1
+ import { BaseEntityOnlyEssential } from '../../common/database/base.entity';
2
+ import { User } from '../user.entity';
3
+ export declare enum OAuthProvider {
4
+ Google = "google",
5
+ Microsoft = "microsoft",
6
+ Apple = "apple"
7
+ }
8
+ export declare enum OAuthServiceType {
9
+ Profile = "profile",
10
+ Calendar = "calendar",
11
+ Mail = "mail"
12
+ }
13
+ export declare class OauthV2 extends BaseEntityOnlyEssential {
14
+ provider: OAuthProvider;
15
+ service: OAuthServiceType;
16
+ refreshToken: string;
17
+ accessToken: string;
18
+ expiresIn: number;
19
+ scope?: string;
20
+ additionalData?: string;
21
+ user: User;
22
+ }
@@ -0,0 +1,75 @@
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.OauthV2 = exports.OAuthServiceType = exports.OAuthProvider = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const base_entity_1 = require("../../common/database/base.entity");
15
+ const user_entity_1 = require("../user.entity");
16
+ var OAuthProvider;
17
+ (function (OAuthProvider) {
18
+ OAuthProvider["Google"] = "google";
19
+ OAuthProvider["Microsoft"] = "microsoft";
20
+ OAuthProvider["Apple"] = "apple";
21
+ })(OAuthProvider || (exports.OAuthProvider = OAuthProvider = {}));
22
+ var OAuthServiceType;
23
+ (function (OAuthServiceType) {
24
+ OAuthServiceType["Profile"] = "profile";
25
+ OAuthServiceType["Calendar"] = "calendar";
26
+ OAuthServiceType["Mail"] = "mail";
27
+ })(OAuthServiceType || (exports.OAuthServiceType = OAuthServiceType = {}));
28
+ let OauthV2 = class OauthV2 extends base_entity_1.BaseEntityOnlyEssential {
29
+ provider;
30
+ service;
31
+ refreshToken;
32
+ accessToken;
33
+ expiresIn;
34
+ scope;
35
+ additionalData;
36
+ user;
37
+ };
38
+ exports.OauthV2 = OauthV2;
39
+ __decorate([
40
+ (0, typeorm_1.Column)({ type: 'enum', enum: OAuthProvider }),
41
+ __metadata("design:type", String)
42
+ ], OauthV2.prototype, "provider", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ type: 'enum', enum: OAuthServiceType }),
45
+ __metadata("design:type", String)
46
+ ], OauthV2.prototype, "service", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)(),
49
+ __metadata("design:type", String)
50
+ ], OauthV2.prototype, "refreshToken", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.Column)(),
53
+ __metadata("design:type", String)
54
+ ], OauthV2.prototype, "accessToken", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.Column)({ type: 'bigint' }),
57
+ __metadata("design:type", Number)
58
+ ], OauthV2.prototype, "expiresIn", void 0);
59
+ __decorate([
60
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
61
+ __metadata("design:type", String)
62
+ ], OauthV2.prototype, "scope", void 0);
63
+ __decorate([
64
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
65
+ __metadata("design:type", String)
66
+ ], OauthV2.prototype, "additionalData", void 0);
67
+ __decorate([
68
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: false, onDelete: 'CASCADE' }),
69
+ __metadata("design:type", user_entity_1.User)
70
+ ], OauthV2.prototype, "user", void 0);
71
+ exports.OauthV2 = OauthV2 = __decorate([
72
+ (0, typeorm_1.Entity)(),
73
+ (0, typeorm_1.Unique)(['user', 'service', 'provider'])
74
+ ], OauthV2);
75
+ //# sourceMappingURL=oauth-v2.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oauth-v2.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/oauth-v2.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4D;AAC5D,mEAA4E;AAC5E,gDAAsC;AAEtC,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,wCAAuB,CAAA;IACvB,gCAAe,CAAA;AACjB,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;IACrB,iCAAa,CAAA;AACf,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B;AAIM,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,qCAAuB;IAElD,QAAQ,CAAgB;IAGxB,OAAO,CAAmB;IAG1B,YAAY,CAAS;IAGrB,WAAW,CAAS;IAGpB,SAAS,CAAS;IAGlB,KAAK,CAAU;IAGf,cAAc,CAAU;IAGxB,IAAI,CAAO;CACZ,CAAA;AAxBY,0BAAO;AAElB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;yCACtB;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;;wCACvB;AAG1B;IADC,IAAA,gBAAM,GAAE;;6CACY;AAGrB;IADC,IAAA,gBAAM,GAAE;;4CACW;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;0CACT;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCAC1B;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACjB;AAGxB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC1D,kBAAI;qCAAC;kBAvBA,OAAO;IAFnB,IAAA,gBAAM,GAAE;IACR,IAAA,gBAAM,EAAC,CAAC,MAAM,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;GAC3B,OAAO,CAwBnB"}
@@ -0,0 +1,13 @@
1
+ import { BaseEntityOnlyEssential } from '../../../common/database/base.entity';
2
+ import { User } from '../../user.entity';
3
+ import { EventCalendar } from './event.entity';
4
+ export declare enum CalendarEventInvitationStatus {
5
+ ACCEPTED = "accepted",
6
+ REJECTED = "rejected",
7
+ PENDING = "pending"
8
+ }
9
+ export declare class CalendarEventInvitations extends BaseEntityOnlyEssential {
10
+ status: CalendarEventInvitationStatus;
11
+ event: EventCalendar;
12
+ invitedUser: User;
13
+ }
@@ -0,0 +1,48 @@
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.CalendarEventInvitations = exports.CalendarEventInvitationStatus = 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
+ const event_entity_1 = require("./event.entity");
18
+ var CalendarEventInvitationStatus;
19
+ (function (CalendarEventInvitationStatus) {
20
+ CalendarEventInvitationStatus["ACCEPTED"] = "accepted";
21
+ CalendarEventInvitationStatus["REJECTED"] = "rejected";
22
+ CalendarEventInvitationStatus["PENDING"] = "pending";
23
+ })(CalendarEventInvitationStatus || (exports.CalendarEventInvitationStatus = CalendarEventInvitationStatus = {}));
24
+ let CalendarEventInvitations = class CalendarEventInvitations extends base_entity_1.BaseEntityOnlyEssential {
25
+ status;
26
+ event;
27
+ invitedUser;
28
+ };
29
+ exports.CalendarEventInvitations = CalendarEventInvitations;
30
+ __decorate([
31
+ (0, swagger_1.ApiProperty)({ description: 'Invitation status', required: true }),
32
+ (0, typeorm_1.Column)({ type: 'enum', enum: CalendarEventInvitationStatus, default: CalendarEventInvitationStatus.PENDING }),
33
+ __metadata("design:type", String)
34
+ ], CalendarEventInvitations.prototype, "status", void 0);
35
+ __decorate([
36
+ (0, swagger_1.ApiProperty)({ description: 'Event invited to', required: true }),
37
+ (0, typeorm_1.OneToOne)(() => event_entity_1.EventCalendar, { onDelete: 'CASCADE' }),
38
+ __metadata("design:type", event_entity_1.EventCalendar)
39
+ ], CalendarEventInvitations.prototype, "event", void 0);
40
+ __decorate([
41
+ (0, swagger_1.ApiProperty)({ description: 'Invited user', required: true }),
42
+ (0, typeorm_1.OneToOne)(() => user_entity_1.User, { onDelete: 'CASCADE' }),
43
+ __metadata("design:type", user_entity_1.User)
44
+ ], CalendarEventInvitations.prototype, "invitedUser", void 0);
45
+ exports.CalendarEventInvitations = CalendarEventInvitations = __decorate([
46
+ (0, typeorm_1.Entity)()
47
+ ], CalendarEventInvitations);
48
+ //# sourceMappingURL=calendar-event-invitations.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar-event-invitations.entity.js","sourceRoot":"","sources":["../../../../src/entities/tools/calendar/calendar-event-invitations.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAmD;AACnD,6CAA8C;AAE9C,sEAA+E;AAC/E,mDAAyC;AACzC,iDAA+C;AAE/C,IAAY,6BAIX;AAJD,WAAY,6BAA6B;IACvC,sDAAqB,CAAA;IACrB,sDAAqB,CAAA;IACrB,oDAAmB,CAAA;AACrB,CAAC,EAJW,6BAA6B,6CAA7B,6BAA6B,QAIxC;AAGM,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,qCAAuB;IAGnE,MAAM,CAAgC;IAItC,KAAK,CAAgB;IAIrB,WAAW,CAAO;CACnB,CAAA;AAZY,4DAAwB;AAGnC;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,mBAAmB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACjE,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,6BAA6B,EAAE,OAAO,EAAE,6BAA6B,CAAC,OAAO,EAAE,CAAC;;wDACxE;AAItC;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,kBAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAChE,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,4BAAa,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAChD,4BAAa;uDAAC;AAIrB;IAFC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5D,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BACjC,kBAAI;6DAAC;mCAXP,wBAAwB;IADpC,IAAA,gBAAM,GAAE;GACI,wBAAwB,CAYpC"}
@@ -0,0 +1,20 @@
1
+ import { BaseEntityOnlyEssential } from '../../../common/database/base.entity';
2
+ import { User } from '../../user.entity';
3
+ export declare class CalendarGeneralConfig extends BaseEntityOnlyEssential {
4
+ timeZone: string;
5
+ calendarIdForInvitation?: string;
6
+ calendarIdForCRM?: string;
7
+ showRejectedEvents: boolean;
8
+ showTasks: boolean;
9
+ synchronizeTasks: boolean;
10
+ doNotInviteIfTimeIsAssigned: boolean;
11
+ showWeekNumber: boolean;
12
+ sendInvitationsByEmail: boolean;
13
+ invitationsByEmailFrom?: string;
14
+ workTimeStart?: string;
15
+ workTimeEnd?: string;
16
+ weekends?: string;
17
+ holidays?: string;
18
+ workingDays?: string;
19
+ user: User;
20
+ }
@@ -0,0 +1,118 @@
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.CalendarGeneralConfig = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const base_entity_1 = require("../../../common/database/base.entity");
15
+ const swagger_1 = require("@nestjs/swagger");
16
+ const user_entity_1 = require("../../user.entity");
17
+ let CalendarGeneralConfig = class CalendarGeneralConfig extends base_entity_1.BaseEntityOnlyEssential {
18
+ timeZone;
19
+ calendarIdForInvitation;
20
+ calendarIdForCRM;
21
+ showRejectedEvents;
22
+ showTasks;
23
+ synchronizeTasks;
24
+ doNotInviteIfTimeIsAssigned;
25
+ showWeekNumber;
26
+ sendInvitationsByEmail;
27
+ invitationsByEmailFrom;
28
+ workTimeStart;
29
+ workTimeEnd;
30
+ weekends;
31
+ holidays;
32
+ workingDays;
33
+ user;
34
+ };
35
+ exports.CalendarGeneralConfig = CalendarGeneralConfig;
36
+ __decorate([
37
+ (0, swagger_1.ApiProperty)({ description: 'General timezone', required: true }),
38
+ (0, typeorm_1.Column)(),
39
+ __metadata("design:type", String)
40
+ ], CalendarGeneralConfig.prototype, "timeZone", void 0);
41
+ __decorate([
42
+ (0, swagger_1.ApiProperty)({ description: 'Selected calendar to send invitations', required: false }),
43
+ (0, typeorm_1.Column)({ nullable: true }),
44
+ __metadata("design:type", String)
45
+ ], CalendarGeneralConfig.prototype, "calendarIdForInvitation", void 0);
46
+ __decorate([
47
+ (0, swagger_1.ApiProperty)({ description: 'Selected calendar to set CRM integrations', required: false }),
48
+ (0, typeorm_1.Column)({ nullable: true }),
49
+ __metadata("design:type", String)
50
+ ], CalendarGeneralConfig.prototype, "calendarIdForCRM", void 0);
51
+ __decorate([
52
+ (0, swagger_1.ApiProperty)({ description: 'Show rejected events', required: true, default: false }),
53
+ (0, typeorm_1.Column)({ default: false }),
54
+ __metadata("design:type", Boolean)
55
+ ], CalendarGeneralConfig.prototype, "showRejectedEvents", void 0);
56
+ __decorate([
57
+ (0, swagger_1.ApiProperty)({ description: 'Show tasks', required: true, default: false }),
58
+ (0, typeorm_1.Column)({ default: false }),
59
+ __metadata("design:type", Boolean)
60
+ ], CalendarGeneralConfig.prototype, "showTasks", void 0);
61
+ __decorate([
62
+ (0, swagger_1.ApiProperty)({ description: 'Synchronize calendar with tasks', required: true, default: false }),
63
+ (0, typeorm_1.Column)({ default: false }),
64
+ __metadata("design:type", Boolean)
65
+ ], CalendarGeneralConfig.prototype, "synchronizeTasks", void 0);
66
+ __decorate([
67
+ (0, swagger_1.ApiProperty)({ description: "Don't send invitations if time is assigned", required: true, default: false }),
68
+ (0, typeorm_1.Column)({ default: false }),
69
+ __metadata("design:type", Boolean)
70
+ ], CalendarGeneralConfig.prototype, "doNotInviteIfTimeIsAssigned", void 0);
71
+ __decorate([
72
+ (0, swagger_1.ApiProperty)({ description: 'Show week number', required: true, default: false }),
73
+ (0, typeorm_1.Column)({ default: false }),
74
+ __metadata("design:type", Boolean)
75
+ ], CalendarGeneralConfig.prototype, "showWeekNumber", void 0);
76
+ __decorate([
77
+ (0, swagger_1.ApiProperty)({ description: 'Send invitations by email', required: true, default: false }),
78
+ (0, typeorm_1.Column)({ default: false }),
79
+ __metadata("design:type", Boolean)
80
+ ], CalendarGeneralConfig.prototype, "sendInvitationsByEmail", void 0);
81
+ __decorate([
82
+ (0, swagger_1.ApiProperty)({ description: 'Email address from invitation will be sent', required: false }),
83
+ (0, typeorm_1.Column)({ nullable: true }),
84
+ __metadata("design:type", String)
85
+ ], CalendarGeneralConfig.prototype, "invitationsByEmailFrom", void 0);
86
+ __decorate([
87
+ (0, swagger_1.ApiProperty)({ description: 'Work starts at', required: false }),
88
+ (0, typeorm_1.Column)({ nullable: true }),
89
+ __metadata("design:type", String)
90
+ ], CalendarGeneralConfig.prototype, "workTimeStart", void 0);
91
+ __decorate([
92
+ (0, swagger_1.ApiProperty)({ description: 'Work ends at', required: false }),
93
+ (0, typeorm_1.Column)({ nullable: true }),
94
+ __metadata("design:type", String)
95
+ ], CalendarGeneralConfig.prototype, "workTimeEnd", void 0);
96
+ __decorate([
97
+ (0, swagger_1.ApiProperty)({ description: 'Weekends days', required: true }),
98
+ (0, typeorm_1.Column)({ nullable: true }),
99
+ __metadata("design:type", String)
100
+ ], CalendarGeneralConfig.prototype, "weekends", void 0);
101
+ __decorate([
102
+ (0, swagger_1.ApiProperty)({ description: 'Holiday days', required: false }),
103
+ (0, typeorm_1.Column)({ nullable: true }),
104
+ __metadata("design:type", String)
105
+ ], CalendarGeneralConfig.prototype, "holidays", void 0);
106
+ __decorate([
107
+ (0, swagger_1.ApiProperty)({ description: 'Working days', required: false }),
108
+ (0, typeorm_1.Column)({ nullable: true }),
109
+ __metadata("design:type", String)
110
+ ], CalendarGeneralConfig.prototype, "workingDays", void 0);
111
+ __decorate([
112
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, { nullable: false, onDelete: 'CASCADE' }),
113
+ __metadata("design:type", user_entity_1.User)
114
+ ], CalendarGeneralConfig.prototype, "user", void 0);
115
+ exports.CalendarGeneralConfig = CalendarGeneralConfig = __decorate([
116
+ (0, typeorm_1.Entity)()
117
+ ], CalendarGeneralConfig);
118
+ //# sourceMappingURL=calendar-general-config.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar-general-config.entity.js","sourceRoot":"","sources":["../../../../src/entities/tools/calendar/calendar-general-config.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AAEpD,sEAA+E;AAC/E,6CAA8C;AAC9C,mDAAyC;AAGlC,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,qCAAuB;IAGhE,QAAQ,CAAS;IAIjB,uBAAuB,CAAU;IAIjC,gBAAgB,CAAU;IAI1B,kBAAkB,CAAU;IAI5B,SAAS,CAAU;IAInB,gBAAgB,CAAU;IAI1B,2BAA2B,CAAU;IAIrC,cAAc,CAAU;IAIxB,sBAAsB,CAAU;IAIhC,sBAAsB,CAAU;IAKhC,aAAa,CAAU;IAIvB,WAAW,CAAU;IAIrB,QAAQ,CAAU;IAIlB,QAAQ,CAAU;IAIlB,WAAW,CAAU;IAGrB,IAAI,CAAO;CACZ,CAAA;AAhEY,sDAAqB;AAGhC;IAFC,IAAA,qBAAW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QAAQ,EAAE,KAAK,EAAE,CAAC;IAC7D,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACN;AAGrB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC1D,kBAAI;mDAAC;gCA/DA,qBAAqB;IADjC,IAAA,gBAAM,GAAE;GACI,qBAAqB,CAgEjC"}
@@ -0,0 +1,36 @@
1
+ import { BaseEntityOnlyEssential } from '../../../common/database/base.entity';
2
+ import { OauthV2 } from '../../third-party/oauth-v2.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: OauthV2;
35
+ user: User;
36
+ }