easywork-common-lib 1.0.785 → 1.0.787
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/database/base.entity.d.ts +7 -2
- package/dist/common/database/base.entity.js +31 -10
- package/dist/common/database/base.entity.js.map +1 -1
- package/dist/common/enums/notification.enum.d.ts +4 -1
- package/dist/common/enums/notification.enum.js +3 -0
- package/dist/common/enums/notification.enum.js.map +1 -1
- package/dist/entities/index.d.ts +7 -6
- package/dist/entities/index.js +7 -6
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/third-party/email-config.entity.d.ts +14 -0
- package/dist/entities/third-party/email-config.entity.js +76 -0
- package/dist/entities/third-party/email-config.entity.js.map +1 -0
- package/dist/entities/third-party/email.entity.d.ts +17 -0
- package/dist/entities/third-party/email.entity.js +79 -0
- package/dist/entities/third-party/email.entity.js.map +1 -0
- package/dist/entities/third-party/google-calendar-config.entity.d.ts +28 -0
- package/dist/entities/third-party/google-calendar-config.entity.js +96 -0
- package/dist/entities/third-party/google-calendar-config.entity.js.map +1 -0
- package/dist/entities/third-party/oauth-v2.entity.d.ts +20 -0
- package/dist/entities/third-party/oauth-v2.entity.js +68 -0
- package/dist/entities/third-party/oauth-v2.entity.js.map +1 -0
- package/dist/entities/third-party/oauth.entity.d.ts +21 -0
- package/dist/entities/third-party/oauth.entity.js +100 -0
- package/dist/entities/third-party/oauth.entity.js.map +1 -0
- package/dist/entities/third-party/service.entity.d.ts +8 -0
- package/dist/entities/third-party/service.entity.js +38 -0
- package/dist/entities/third-party/service.entity.js.map +1 -0
- package/dist/entities/third-party/user-email-relation.entity.d.ts +7 -0
- package/dist/entities/third-party/user-email-relation.entity.js +35 -0
- package/dist/entities/third-party/user-email-relation.entity.js.map +1 -0
- package/dist/entities/tools/calendar/event-list-calendars.entity.d.ts +2 -2
- package/dist/entities/tools/calendar/event-list-calendars.entity.js +3 -3
- package/dist/entities/tools/calendar/event-list-calendars.entity.js.map +1 -1
- package/dist/entities/user.entity.d.ts +1 -1
- package/dist/entities/user.entity.js +2 -2
- package/dist/entities/user.entity.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { User } from
|
|
2
|
-
import { BaseEntity } from
|
|
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)(
|
|
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)(
|
|
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:
|
|
90
|
+
description: 'User who created the entity',
|
|
91
91
|
required: false,
|
|
92
92
|
}),
|
|
93
93
|
(0, typeorm_1.ManyToOne)(() => entities_1.User, {
|
|
94
|
-
onDelete:
|
|
95
|
-
onUpdate:
|
|
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:
|
|
104
|
+
description: 'User who modified the entity',
|
|
105
105
|
required: false,
|
|
106
106
|
}),
|
|
107
107
|
(0, typeorm_1.ManyToOne)(() => entities_1.User, {
|
|
108
|
-
onDelete:
|
|
109
|
-
onUpdate:
|
|
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)(
|
|
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,
|
|
1
|
+
{"version":3,"file":"base.entity.js","sourceRoot":"","sources":["../../../src/common/database/base.entity.ts"],"names":[],"mappings":"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"}
|
|
@@ -32,7 +32,9 @@ export declare enum NotificationSubcategory {
|
|
|
32
32
|
LEAD_IMPORT_COMPLETED = "lead-import-completed",
|
|
33
33
|
LEAD_IMPORT_FAILED = "lead-import-failed",
|
|
34
34
|
LEAD_IMPORT_PROGRESS = "lead-import-progress",
|
|
35
|
-
LEAD_IMPORT_STARTED = "lead-import-started"
|
|
35
|
+
LEAD_IMPORT_STARTED = "lead-import-started",
|
|
36
|
+
COURSE_ASSIGNED = "course-assigned",
|
|
37
|
+
UPDATE_FROM_GOOGLE = "update-from-google"
|
|
36
38
|
}
|
|
37
39
|
export declare enum NotificationCategory {
|
|
38
40
|
TASK = "task",
|
|
@@ -44,6 +46,7 @@ export declare enum NotificationCategory {
|
|
|
44
46
|
DRIVE = "drive",
|
|
45
47
|
EMAIL = "email",
|
|
46
48
|
CALENDAR = "calendar",
|
|
49
|
+
LMS = "lms",
|
|
47
50
|
TOOLS = "tools",
|
|
48
51
|
INFO = "info",
|
|
49
52
|
POLIZA = "poliza",
|
|
@@ -38,6 +38,8 @@ var NotificationSubcategory;
|
|
|
38
38
|
NotificationSubcategory["LEAD_IMPORT_FAILED"] = "lead-import-failed";
|
|
39
39
|
NotificationSubcategory["LEAD_IMPORT_PROGRESS"] = "lead-import-progress";
|
|
40
40
|
NotificationSubcategory["LEAD_IMPORT_STARTED"] = "lead-import-started";
|
|
41
|
+
NotificationSubcategory["COURSE_ASSIGNED"] = "course-assigned";
|
|
42
|
+
NotificationSubcategory["UPDATE_FROM_GOOGLE"] = "update-from-google";
|
|
41
43
|
})(NotificationSubcategory || (exports.NotificationSubcategory = NotificationSubcategory = {}));
|
|
42
44
|
var NotificationCategory;
|
|
43
45
|
(function (NotificationCategory) {
|
|
@@ -50,6 +52,7 @@ var NotificationCategory;
|
|
|
50
52
|
NotificationCategory["DRIVE"] = "drive";
|
|
51
53
|
NotificationCategory["EMAIL"] = "email";
|
|
52
54
|
NotificationCategory["CALENDAR"] = "calendar";
|
|
55
|
+
NotificationCategory["LMS"] = "lms";
|
|
53
56
|
NotificationCategory["TOOLS"] = "tools";
|
|
54
57
|
NotificationCategory["INFO"] = "info";
|
|
55
58
|
NotificationCategory["POLIZA"] = "poliza";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.enum.js","sourceRoot":"","sources":["../../../src/common/enums/notification.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,sCAAe,CAAA;IACf,kCAAW,CAAA;IACX,oCAAa,CAAA;IACb,kCAAW,CAAA;AACb,CAAC,EALW,mBAAmB,mCAAnB,mBAAmB,QAK9B;AAED,IAAY,
|
|
1
|
+
{"version":3,"file":"notification.enum.js","sourceRoot":"","sources":["../../../src/common/enums/notification.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,sCAAe,CAAA;IACf,kCAAW,CAAA;IACX,oCAAa,CAAA;IACb,kCAAW,CAAA;AACb,CAAC,EALW,mBAAmB,mCAAnB,mBAAmB,QAK9B;AAED,IAAY,uBAuCX;AAvCD,WAAY,uBAAuB;IACjC,gDAAqB,CAAA;IACrB,2DAAgC,CAAA;IAChC,wDAA6B,CAAA;IAC7B,0DAA+B,CAAA;IAC/B,gEAAqC,CAAA;IACrC,0DAA+B,CAAA;IAC/B,0DAA+B,CAAA;IAC/B,wDAA6B,CAAA;IAE7B,oDAAyB,CAAA;IACzB,wDAA6B,CAAA;IAC7B,0DAA+B,CAAA;IAC/B,0DAA+B,CAAA;IAC/B,gEAAqC,CAAA;IACrC,4DAAiC,CAAA;IACjC,oEAAyC,CAAA;IAEzC,sEAA2C,CAAA;IAC3C,sCAAW,CAAA;IACX,8CAAmB,CAAA;IAEnB,kDAAuB,CAAA;IAEvB,sDAA2B,CAAA;IAE3B,gFAAqD,CAAA;IACrD,0EAA+C,CAAA;IAC/C,8EAAmD,CAAA;IACnD,4EAAiD,CAAA;IAEjD,0EAA+C,CAAA;IAC/C,oEAAyC,CAAA;IACzC,wEAA6C,CAAA;IAC7C,sEAA2C,CAAA;IAE3C,8DAAmC,CAAA;IAEnC,oEAAyC,CAAA;AAC3C,CAAC,EAvCW,uBAAuB,uCAAvB,uBAAuB,QAuClC;AAED,IAAY,oBAgBX;AAhBD,WAAY,oBAAoB;IAC9B,qCAAa,CAAA;IACb,mCAAW,CAAA;IACX,mCAAW,CAAA;IACX,2CAAmB,CAAA;IACnB,qCAAa,CAAA;IACb,uCAAe,CAAA;IACf,uCAAe,CAAA;IACf,uCAAe,CAAA;IACf,6CAAqB,CAAA;IACrB,mCAAW,CAAA;IACX,uCAAe,CAAA;IACf,qCAAa,CAAA;IACb,yCAAiB,CAAA;IACjB,2CAAmB,CAAA;IACnB,2CAAmB,CAAA;AACrB,CAAC,EAhBW,oBAAoB,oCAApB,oBAAoB,QAgB/B"}
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -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 './
|
|
18
|
-
export * from './
|
|
19
|
-
export * from './
|
|
20
|
-
export * from './
|
|
21
|
-
export * from './
|
|
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';
|
package/dist/entities/index.js
CHANGED
|
@@ -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("./
|
|
34
|
-
__exportStar(require("./
|
|
35
|
-
__exportStar(require("./
|
|
36
|
-
__exportStar(require("./
|
|
37
|
-
__exportStar(require("./
|
|
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,
|
|
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,20 @@
|
|
|
1
|
+
import { BaseEntityOnlyEssential } from '../../common/database/base.entity';
|
|
2
|
+
export declare enum OAuthProvider {
|
|
3
|
+
Google = "google",
|
|
4
|
+
Microsoft = "microsoft",
|
|
5
|
+
Apple = "apple"
|
|
6
|
+
}
|
|
7
|
+
export declare enum OAuthServiceType {
|
|
8
|
+
Profile = "profile",
|
|
9
|
+
Calendar = "calendar",
|
|
10
|
+
Mail = "mail"
|
|
11
|
+
}
|
|
12
|
+
export declare class OauthV2 extends BaseEntityOnlyEssential {
|
|
13
|
+
provider: OAuthProvider;
|
|
14
|
+
service: OAuthServiceType;
|
|
15
|
+
refreshToken: string;
|
|
16
|
+
accessToken: string;
|
|
17
|
+
expiresIn: number;
|
|
18
|
+
scope?: string;
|
|
19
|
+
additionalData?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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 base_entity_1 = require("../../common/database/base.entity");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
var OAuthProvider;
|
|
16
|
+
(function (OAuthProvider) {
|
|
17
|
+
OAuthProvider["Google"] = "google";
|
|
18
|
+
OAuthProvider["Microsoft"] = "microsoft";
|
|
19
|
+
OAuthProvider["Apple"] = "apple";
|
|
20
|
+
})(OAuthProvider || (exports.OAuthProvider = OAuthProvider = {}));
|
|
21
|
+
var OAuthServiceType;
|
|
22
|
+
(function (OAuthServiceType) {
|
|
23
|
+
OAuthServiceType["Profile"] = "profile";
|
|
24
|
+
OAuthServiceType["Calendar"] = "calendar";
|
|
25
|
+
OAuthServiceType["Mail"] = "mail";
|
|
26
|
+
})(OAuthServiceType || (exports.OAuthServiceType = OAuthServiceType = {}));
|
|
27
|
+
let OauthV2 = class OauthV2 extends base_entity_1.BaseEntityOnlyEssential {
|
|
28
|
+
provider;
|
|
29
|
+
service;
|
|
30
|
+
refreshToken;
|
|
31
|
+
accessToken;
|
|
32
|
+
expiresIn;
|
|
33
|
+
scope;
|
|
34
|
+
additionalData;
|
|
35
|
+
};
|
|
36
|
+
exports.OauthV2 = OauthV2;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: OAuthProvider }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], OauthV2.prototype, "provider", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'enum', enum: OAuthServiceType }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], OauthV2.prototype, "service", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], OauthV2.prototype, "refreshToken", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], OauthV2.prototype, "accessToken", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ type: 'bigint' }),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], OauthV2.prototype, "expiresIn", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], OauthV2.prototype, "scope", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], OauthV2.prototype, "additionalData", void 0);
|
|
65
|
+
exports.OauthV2 = OauthV2 = __decorate([
|
|
66
|
+
(0, typeorm_1.Entity)()
|
|
67
|
+
], OauthV2);
|
|
68
|
+
//# sourceMappingURL=oauth-v2.entity.js.map
|