easywork-common-lib 1.0.786 → 1.0.788

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 (35) hide show
  1. package/dist/common/database/base.entity.d.ts +7 -2
  2. package/dist/common/database/base.entity.js +31 -10
  3. package/dist/common/database/base.entity.js.map +1 -1
  4. package/dist/entities/index.d.ts +7 -6
  5. package/dist/entities/index.js +7 -6
  6. package/dist/entities/index.js.map +1 -1
  7. package/dist/entities/third-party/email-config.entity.d.ts +14 -0
  8. package/dist/entities/third-party/email-config.entity.js +76 -0
  9. package/dist/entities/third-party/email-config.entity.js.map +1 -0
  10. package/dist/entities/third-party/email.entity.d.ts +17 -0
  11. package/dist/entities/third-party/email.entity.js +79 -0
  12. package/dist/entities/third-party/email.entity.js.map +1 -0
  13. package/dist/entities/third-party/google-calendar-config.entity.d.ts +28 -0
  14. package/dist/entities/third-party/google-calendar-config.entity.js +96 -0
  15. package/dist/entities/third-party/google-calendar-config.entity.js.map +1 -0
  16. package/dist/entities/third-party/oauth-v2.entity.d.ts +22 -0
  17. package/dist/entities/third-party/oauth-v2.entity.js +75 -0
  18. package/dist/entities/third-party/oauth-v2.entity.js.map +1 -0
  19. package/dist/entities/third-party/oauth.entity.d.ts +21 -0
  20. package/dist/entities/third-party/oauth.entity.js +100 -0
  21. package/dist/entities/third-party/oauth.entity.js.map +1 -0
  22. package/dist/entities/third-party/service.entity.d.ts +8 -0
  23. package/dist/entities/third-party/service.entity.js +38 -0
  24. package/dist/entities/third-party/service.entity.js.map +1 -0
  25. package/dist/entities/third-party/user-email-relation.entity.d.ts +7 -0
  26. package/dist/entities/third-party/user-email-relation.entity.js +35 -0
  27. package/dist/entities/third-party/user-email-relation.entity.js.map +1 -0
  28. package/dist/entities/tools/calendar/event-list-calendars.entity.d.ts +2 -2
  29. package/dist/entities/tools/calendar/event-list-calendars.entity.js +3 -3
  30. package/dist/entities/tools/calendar/event-list-calendars.entity.js.map +1 -1
  31. package/dist/entities/user.entity.d.ts +1 -1
  32. package/dist/entities/user.entity.js +2 -2
  33. package/dist/entities/user.entity.js.map +1 -1
  34. package/package.json +1 -1
  35. package/tsconfig.tsbuildinfo +1 -1
@@ -1,5 +1,5 @@
1
- import { User } from "../../entities";
2
- import { BaseEntity } from "typeorm";
1
+ import { User } from '../../entities';
2
+ import { BaseEntity } from 'typeorm';
3
3
  export declare class EntityBase extends BaseEntity {
4
4
  id?: string;
5
5
  isActive?: boolean;
@@ -24,3 +24,8 @@ export declare class BaseEntitySimple extends BaseEntity {
24
24
  updatedAt?: Date;
25
25
  deletedAt?: Date;
26
26
  }
27
+ export declare class BaseEntityOnlyEssential extends BaseEntity {
28
+ id?: string;
29
+ createdAt?: Date;
30
+ updatedAt?: Date;
31
+ }
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.BaseEntitySimple = exports.EntityBaseWithUser = exports.EntityBase = void 0;
12
+ exports.BaseEntityOnlyEssential = exports.BaseEntitySimple = exports.EntityBaseWithUser = exports.EntityBase = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const entities_1 = require("../../entities");
15
15
  const typeorm_1 = require("typeorm");
@@ -23,7 +23,7 @@ let EntityBase = class EntityBase extends typeorm_1.BaseEntity {
23
23
  };
24
24
  exports.EntityBase = EntityBase;
25
25
  __decorate([
26
- (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
26
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
27
27
  __metadata("design:type", String)
28
28
  ], EntityBase.prototype, "id", void 0);
29
29
  __decorate([
@@ -61,7 +61,7 @@ let EntityBaseWithUser = class EntityBaseWithUser extends typeorm_1.BaseEntity {
61
61
  };
62
62
  exports.EntityBaseWithUser = EntityBaseWithUser;
63
63
  __decorate([
64
- (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
64
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
65
65
  __metadata("design:type", String)
66
66
  ], EntityBaseWithUser.prototype, "id", void 0);
67
67
  __decorate([
@@ -87,12 +87,12 @@ __decorate([
87
87
  __decorate([
88
88
  (0, swagger_1.ApiProperty)({
89
89
  type: () => entities_1.User,
90
- description: "User who created the entity",
90
+ description: 'User who created the entity',
91
91
  required: false,
92
92
  }),
93
93
  (0, typeorm_1.ManyToOne)(() => entities_1.User, {
94
- onDelete: "SET NULL",
95
- onUpdate: "CASCADE",
94
+ onDelete: 'SET NULL',
95
+ onUpdate: 'CASCADE',
96
96
  nullable: true,
97
97
  }),
98
98
  (0, typeorm_1.JoinColumn)(),
@@ -101,12 +101,12 @@ __decorate([
101
101
  __decorate([
102
102
  (0, swagger_1.ApiProperty)({
103
103
  type: () => entities_1.User,
104
- description: "User who modified the entity",
104
+ description: 'User who modified the entity',
105
105
  required: false,
106
106
  }),
107
107
  (0, typeorm_1.ManyToOne)(() => entities_1.User, {
108
- onDelete: "SET NULL",
109
- onUpdate: "CASCADE",
108
+ onDelete: 'SET NULL',
109
+ onUpdate: 'CASCADE',
110
110
  nullable: true,
111
111
  }),
112
112
  (0, typeorm_1.JoinColumn)(),
@@ -123,7 +123,7 @@ let BaseEntitySimple = class BaseEntitySimple extends typeorm_1.BaseEntity {
123
123
  };
124
124
  exports.BaseEntitySimple = BaseEntitySimple;
125
125
  __decorate([
126
- (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
126
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
127
127
  __metadata("design:type", String)
128
128
  ], BaseEntitySimple.prototype, "id", void 0);
129
129
  __decorate([
@@ -141,4 +141,25 @@ __decorate([
141
141
  exports.BaseEntitySimple = BaseEntitySimple = __decorate([
142
142
  (0, typeorm_1.Entity)()
143
143
  ], BaseEntitySimple);
144
+ let BaseEntityOnlyEssential = class BaseEntityOnlyEssential extends typeorm_1.BaseEntity {
145
+ id;
146
+ createdAt;
147
+ updatedAt;
148
+ };
149
+ exports.BaseEntityOnlyEssential = BaseEntityOnlyEssential;
150
+ __decorate([
151
+ (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
152
+ __metadata("design:type", String)
153
+ ], BaseEntityOnlyEssential.prototype, "id", void 0);
154
+ __decorate([
155
+ (0, typeorm_1.CreateDateColumn)(),
156
+ __metadata("design:type", Date)
157
+ ], BaseEntityOnlyEssential.prototype, "createdAt", void 0);
158
+ __decorate([
159
+ (0, typeorm_1.UpdateDateColumn)(),
160
+ __metadata("design:type", Date)
161
+ ], BaseEntityOnlyEssential.prototype, "updatedAt", void 0);
162
+ exports.BaseEntityOnlyEssential = BaseEntityOnlyEssential = __decorate([
163
+ (0, typeorm_1.Entity)()
164
+ ], BaseEntityOnlyEssential);
144
165
  //# sourceMappingURL=base.entity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"base.entity.js","sourceRoot":"","sources":["../../../src/common/database/base.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,6CAAsC;AACtC,qCAUiB;AAGV,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,oBAAU;IAExC,EAAE,CAAU;IAGZ,QAAQ,CAAW;IAGnB,SAAS,CAAW;IAGpB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;CAClB,CAAA;AAlBY,gCAAU;AAErB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;sCACnB;AAGZ;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;4CACP;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;6CACP;AAGpB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;6CAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;6CAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;8BAC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AE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,GAAE;8BACD,eAAI;qDAAC;6BA3CN,kBAAkB;IAD9B,IAAA,gBAAM,GAAE;GACI,kBAAkB,CA4C9B;AAGM,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,oBAAU;IAE9C,EAAE,CAAU;IAGZ,SAAS,CAAQ;IAGjB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;CAClB,CAAA;AAZY,4CAAgB;AAE3B;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;4CACnB;AAGZ;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;mDAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;mDAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;mDAAC;2BAXN,gBAAgB;IAD5B,IAAA,gBAAM,GAAE;GACI,gBAAgB,CAY5B;AAGM,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,oBAAU;IAErD,EAAE,CAAU;IAGZ,SAAS,CAAQ;IAGjB,SAAS,CAAQ;CAClB,CAAA;AATY,0DAAuB;AAElC;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;mDACnB;AAGZ;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;0DAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;0DAAC;kCARN,uBAAuB;IADnC,IAAA,gBAAM,GAAE;GACI,uBAAuB,CASnC"}
@@ -14,11 +14,11 @@ export * from './helpers';
14
14
  export * from './notifications';
15
15
  export * from './capacitation';
16
16
  export * from './easyapp/filter-view.entity';
17
- export * from './thirdparty/oauth.entity';
18
- export * from './thirdparty/service.entity';
19
- export * from './thirdparty/email.entity';
20
- export * from './thirdparty/email-config.entity';
21
- export * from './thirdparty/user-email-relation.entity';
17
+ export * from './third-party/oauth.entity';
18
+ export * from './third-party/service.entity';
19
+ export * from './third-party/email.entity';
20
+ export * from './third-party/email-config.entity';
21
+ export * from './third-party/user-email-relation.entity';
22
22
  export * from './currency.entity';
23
23
  export * from './user.entity';
24
24
  export * from './group.entity';
@@ -32,4 +32,5 @@ export * from './user-invitations.entity';
32
32
  export * from './login-history.entity';
33
33
  export * from './policy';
34
34
  export * from './google-oauth-credentials.entity';
35
- export * from './google-calendar-config.entity';
35
+ export * from './third-party/google-calendar-config.entity';
36
+ export * from './third-party/oauth-v2.entity';
@@ -30,11 +30,11 @@ __exportStar(require("./helpers"), exports);
30
30
  __exportStar(require("./notifications"), exports);
31
31
  __exportStar(require("./capacitation"), exports);
32
32
  __exportStar(require("./easyapp/filter-view.entity"), exports);
33
- __exportStar(require("./thirdparty/oauth.entity"), exports);
34
- __exportStar(require("./thirdparty/service.entity"), exports);
35
- __exportStar(require("./thirdparty/email.entity"), exports);
36
- __exportStar(require("./thirdparty/email-config.entity"), exports);
37
- __exportStar(require("./thirdparty/user-email-relation.entity"), exports);
33
+ __exportStar(require("./third-party/oauth.entity"), exports);
34
+ __exportStar(require("./third-party/service.entity"), exports);
35
+ __exportStar(require("./third-party/email.entity"), exports);
36
+ __exportStar(require("./third-party/email-config.entity"), exports);
37
+ __exportStar(require("./third-party/user-email-relation.entity"), exports);
38
38
  __exportStar(require("./currency.entity"), exports);
39
39
  __exportStar(require("./user.entity"), exports);
40
40
  __exportStar(require("./group.entity"), exports);
@@ -48,5 +48,6 @@ __exportStar(require("./user-invitations.entity"), exports);
48
48
  __exportStar(require("./login-history.entity"), exports);
49
49
  __exportStar(require("./policy"), exports);
50
50
  __exportStar(require("./google-oauth-credentials.entity"), exports);
51
- __exportStar(require("./google-calendar-config.entity"), exports);
51
+ __exportStar(require("./third-party/google-calendar-config.entity"), exports);
52
+ __exportStar(require("./third-party/oauth-v2.entity"), exports);
52
53
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,mDAAiC;AACjC,yDAAuC;AACvC,sDAAoC;AACpC,iDAA+B;AAC/B,iDAA+B;AAC/B,iEAA+C;AAC/C,uDAAqC;AACrC,+CAA6B;AAC7B,0CAAwB;AACxB,0CAAwB;AACxB,0CAAwB;AACxB,4CAA0B;AAC1B,kDAAgC;AAChC,iDAA+B;AAC/B,+DAA6C;AAC7C,4DAA0C;AAC1C,8DAA4C;AAC5C,4DAA0C;AAC1C,mEAAiD;AACjD,0EAAwD;AACxD,oDAAkC;AAClC,gDAA8B;AAC9B,iDAA+B;AAC/B,4DAA0C;AAC1C,mDAAiC;AACjC,gDAA8B;AAC9B,+EAA6D;AAC7D,2DAAyC;AACzC,mDAAiC;AACjC,4DAA0C;AAC1C,yDAAuC;AACvC,2CAAyB;AACzB,oEAAkD;AAClD,kEAAgD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,mDAAiC;AACjC,yDAAuC;AACvC,sDAAoC;AACpC,iDAA+B;AAC/B,iDAA+B;AAC/B,iEAA+C;AAC/C,uDAAqC;AACrC,+CAA6B;AAC7B,0CAAwB;AACxB,0CAAwB;AACxB,0CAAwB;AACxB,4CAA0B;AAC1B,kDAAgC;AAChC,iDAA+B;AAC/B,+DAA6C;AAC7C,6DAA2C;AAC3C,+DAA6C;AAC7C,6DAA2C;AAC3C,oEAAkD;AAClD,2EAAyD;AACzD,oDAAkC;AAClC,gDAA8B;AAC9B,iDAA+B;AAC/B,4DAA0C;AAC1C,mDAAiC;AACjC,gDAA8B;AAC9B,+EAA6D;AAC7D,2DAAyC;AACzC,mDAAiC;AACjC,4DAA0C;AAC1C,yDAAuC;AACvC,2CAAyB;AACzB,oEAAkD;AAClD,8EAA4D;AAC5D,gEAA8C"}
@@ -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/third-party/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/third-party/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,28 @@
1
+ import { OauthV2 } from './oauth-v2.entity';
2
+ export declare class GoogleCalendarConfig {
3
+ id: string;
4
+ oauth: OauthV2;
5
+ name: string;
6
+ description?: string;
7
+ isPrimary: boolean;
8
+ timeZone: string;
9
+ accessRole: string;
10
+ backgroundColor?: string;
11
+ foregroundColor?: string;
12
+ selected: boolean;
13
+ defaultReminders?: {
14
+ method: string;
15
+ minutes: number;
16
+ }[];
17
+ conferenceProperties?: {
18
+ allowedConferenceSolutionTypes: string[];
19
+ };
20
+ notificationSettings?: {
21
+ notifications: {
22
+ type: string;
23
+ method: string;
24
+ }[];
25
+ };
26
+ createdAt?: Date;
27
+ updatedAt?: Date;
28
+ }
@@ -0,0 +1,96 @@
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.GoogleCalendarConfig = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const oauth_v2_entity_1 = require("./oauth-v2.entity");
15
+ let GoogleCalendarConfig = class GoogleCalendarConfig {
16
+ id;
17
+ oauth;
18
+ name;
19
+ description;
20
+ isPrimary;
21
+ timeZone;
22
+ accessRole;
23
+ backgroundColor;
24
+ foregroundColor;
25
+ selected;
26
+ defaultReminders;
27
+ conferenceProperties;
28
+ notificationSettings;
29
+ createdAt;
30
+ updatedAt;
31
+ };
32
+ exports.GoogleCalendarConfig = GoogleCalendarConfig;
33
+ __decorate([
34
+ (0, typeorm_1.PrimaryColumn)(),
35
+ __metadata("design:type", String)
36
+ ], GoogleCalendarConfig.prototype, "id", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.ManyToOne)(() => oauth_v2_entity_1.OauthV2, { nullable: false, onDelete: 'CASCADE' }),
39
+ __metadata("design:type", oauth_v2_entity_1.OauthV2)
40
+ ], GoogleCalendarConfig.prototype, "oauth", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)(),
43
+ __metadata("design:type", String)
44
+ ], GoogleCalendarConfig.prototype, "name", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ nullable: true }),
47
+ __metadata("design:type", String)
48
+ ], GoogleCalendarConfig.prototype, "description", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ default: false }),
51
+ __metadata("design:type", Boolean)
52
+ ], GoogleCalendarConfig.prototype, "isPrimary", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)(),
55
+ __metadata("design:type", String)
56
+ ], GoogleCalendarConfig.prototype, "timeZone", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)(),
59
+ __metadata("design:type", String)
60
+ ], GoogleCalendarConfig.prototype, "accessRole", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ nullable: true }),
63
+ __metadata("design:type", String)
64
+ ], GoogleCalendarConfig.prototype, "backgroundColor", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.Column)({ nullable: true }),
67
+ __metadata("design:type", String)
68
+ ], GoogleCalendarConfig.prototype, "foregroundColor", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({ default: false }),
71
+ __metadata("design:type", Boolean)
72
+ ], GoogleCalendarConfig.prototype, "selected", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
75
+ __metadata("design:type", Array)
76
+ ], GoogleCalendarConfig.prototype, "defaultReminders", void 0);
77
+ __decorate([
78
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
79
+ __metadata("design:type", Object)
80
+ ], GoogleCalendarConfig.prototype, "conferenceProperties", void 0);
81
+ __decorate([
82
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
83
+ __metadata("design:type", Object)
84
+ ], GoogleCalendarConfig.prototype, "notificationSettings", void 0);
85
+ __decorate([
86
+ (0, typeorm_1.CreateDateColumn)(),
87
+ __metadata("design:type", Date)
88
+ ], GoogleCalendarConfig.prototype, "createdAt", void 0);
89
+ __decorate([
90
+ (0, typeorm_1.UpdateDateColumn)(),
91
+ __metadata("design:type", Date)
92
+ ], GoogleCalendarConfig.prototype, "updatedAt", void 0);
93
+ exports.GoogleCalendarConfig = GoogleCalendarConfig = __decorate([
94
+ (0, typeorm_1.Entity)()
95
+ ], GoogleCalendarConfig);
96
+ //# sourceMappingURL=google-calendar-config.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"google-calendar-config.entity.js","sourceRoot":"","sources":["../../../src/entities/third-party/google-calendar-config.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAuG;AACvG,uDAA4C;AAGrC,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAE/B,EAAE,CAAS;IAGX,KAAK,CAAU;IAGf,IAAI,CAAS;IAGb,WAAW,CAAU;IAGrB,SAAS,CAAU;IAGnB,QAAQ,CAAS;IAGjB,UAAU,CAAS;IAGnB,eAAe,CAAU;IAGzB,eAAe,CAAU;IAGzB,QAAQ,CAAU;IAGlB,gBAAgB,CAAyC;IAGzD,oBAAoB,CAAgD;IAGpE,oBAAoB,CAAyD;IAG7E,SAAS,CAAQ;IAGjB,SAAS,CAAQ;CAClB,CAAA;AA7CY,oDAAoB;AAE/B;IADC,IAAA,uBAAa,GAAE;;gDACL;AAGX;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,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,gBAAM,GAAE;;wDACU;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6DACF;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6DACF;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;sDACT;AAGlB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8DACe;AAGzD;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kEAC0B;AAGpE;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kEACmC;AAG7E;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;uDAAC;AAGjB;IADC,IAAA,0BAAgB,GAAE;8BACP,IAAI;uDAAC;+BA5CN,oBAAoB;IADhC,IAAA,gBAAM,GAAE;GACI,oBAAoB,CA6ChC"}
@@ -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, { onDelete: 'CASCADE' }),
69
+ (0, typeorm_1.JoinColumn)({ name: 'user_id' }),
70
+ __metadata("design:type", user_entity_1.User)
71
+ ], OauthV2.prototype, "user", void 0);
72
+ exports.OauthV2 = OauthV2 = __decorate([
73
+ (0, typeorm_1.Entity)()
74
+ ], OauthV2);
75
+ //# sourceMappingURL=oauth-v2.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oauth-v2.entity.js","sourceRoot":"","sources":["../../../src/entities/third-party/oauth-v2.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,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;AAGM,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;IAIxB,IAAI,CAAO;CACZ,CAAA;AAzBY,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;AAIxB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IAC9C,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAC1B,kBAAI;qCAAC;kBAxBA,OAAO;IADnB,IAAA,gBAAM,GAAE;GACI,OAAO,CAyBnB"}
@@ -0,0 +1,21 @@
1
+ import { EntityBase } from "../../common/database/base.entity";
2
+ import { EmailThirdparty } from "./email.entity";
3
+ import { ServiceThirdparty } from "./service.entity";
4
+ import { EventListCalendars } from "../tools/calendar/event-list-calendars.entity";
5
+ export declare class Oauth extends EntityBase {
6
+ refresh_token: string;
7
+ access_token: string;
8
+ expires_in: number;
9
+ userId: string;
10
+ usergoogle_id: string;
11
+ family_name: string;
12
+ given_name: string;
13
+ email: string;
14
+ picture: string;
15
+ id_token: string;
16
+ labelId: object[];
17
+ labelIdRules: object;
18
+ emails: EmailThirdparty[];
19
+ service: ServiceThirdparty;
20
+ calendarsList: EventListCalendars;
21
+ }